:root{
  --blue:#0b3d91;
  --red:#d62828;
  --bg:#f7f9fc;
  --text:#0f172a;
  --muted:#475569;
  --card:#ffffff;
  --border:#e2e8f0;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar{
  background: linear-gradient(90deg, var(--blue), #114bb3);
  color: #fff;
  padding: 18px 0;
  border-bottom: 4px solid var(--red);
}

.wrap{
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px;
}

.brand h1{
  margin:0;
  font-size: 20px;
  letter-spacing: .2px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  font-size: 13px;
  white-space: nowrap;
}

.badge .dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(214,40,40,.25);
}

/* ===== Header + Navigation (single source of truth) ===== */

.brand{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}

.brand-left{
  display:flex;
  align-items:center;
  gap:14px;
}

/* ONE-LINE NAV (no wrapping) */
.nav{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:nowrap;          /* key */
  white-space:nowrap;        /* key */
  overflow-x:auto;           /* key */
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;      /* Firefox hide */
}
.nav::-webkit-scrollbar{ display:none; } /* Chrome/Safari hide */

/* Make sure links don’t break */
.nav a{ flex:0 0 auto; }


.nav a{
  color:#fff;
  text-decoration:none;
  font-weight:650;
  opacity:.92;
  padding: 6px 8px;
  border-radius: 10px;
}
.nav a:hover{
  opacity:1;
  text-decoration:underline;
}

.nav-main,
.nav-auth{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}

.nav-auth{
  margin-left:auto;
}

/* Responsive header */
@media (max-width: 1000px){
  .nav{ max-width: 100%; }
}

@media (max-width: 700px){
  .badge{ display:none; }

  .brand{
    flex-direction: column;
    align-items: flex-start;
  }

  .nav{
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .nav a{
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
  }
}

/* Compact header for inner pages */
.topbar.compact{
  padding: 12px 0;
}

.topbar.compact .brand-left h1{
  font-size: 18px;
  line-height: 1.2;
}

.topbar.compact .badge{
  padding: 6px 10px;
  font-size: 12px;
}

main{
  padding: 22px 0 40px;
}

.panel{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
}

h2{
  margin: 0 0 12px;
  font-size: 18px;
}

form{
  display:grid;
  gap: 12px;
  margin-top: 10px;
}

label{
  display:grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

input, select{
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  font-size: 15px;
  background: #fff;
  color: var(--text);
}

input:focus, select:focus{
  border-color: rgba(11,61,145,.55);
  box-shadow: 0 0 0 4px rgba(11,61,145,.15);
}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.actions{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 6px;
}

button{
  appearance:none;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  cursor:pointer;
  font-size: 15px;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(90deg, var(--red), #ef4444);
  box-shadow: 0 10px 20px rgba(214,40,40,.22);
}

button:hover{
  filter: brightness(1.02);
}

/* Button-style links */
a.btn{
  display:inline-block;
  text-decoration:none;
  appearance:none;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  cursor:pointer;
  font-size: 15px;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(90deg, var(--red), #ef4444);
  box-shadow: 0 10px 20px rgba(214,40,40,.22);
}
a.btn:hover{ filter:brightness(1.02); }
a.btn.ghost{
  background:#fff;
  color: var(--text);
  border:1px solid var(--border);
  box-shadow: 0 10px 20px rgba(2,6,23,.06);
}

.notice{
  border:1px solid var(--border);
  background:#f1f5f9;
  padding:12px;
  border-radius:12px;
}
.notice.ok{ background:#ecfdf5; border-color:#bbf7d0; }
.notice.err{ background:#fef2f2; border-color:#fecaca; }

/* When we use "button" for list rows, the global button style can hide text.
   Fix by forcing dark text for list-style buttons inside results lists. */
.results button{ color: var(--text); box-shadow:none; }

/* Landing page hero */
.hero{ display:grid; grid-template-columns: 1.4fr .9fr; gap:16px; align-items:start; }
.hero-title{ font-size: 26px; margin:0 0 10px; }
.hero-sub{ color: var(--muted); margin:0; line-height:1.45; }
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:14px; }
.hero-card{ background:#fff; border:1px solid var(--border); border-radius:16px; padding:14px; box-shadow: 0 10px 30px rgba(2,6,23,.06); }

small.hint{
  color: var(--muted);
}

#meta{
  margin-top: 14px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 12px;
  overflow:auto;
  color: #0f172a;
}

#results{
  margin-top: 14px;
  display:grid;
  gap: 12px;
}

.card{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
}

.price{
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
}

.muted{
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.35;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

.tag strong{
  color: var(--blue);
}

@media (max-width: 700px){
  .grid3{ grid-template-columns: 1fr; }
  .badge{ display:none; }
  .hero{ grid-template-columns: 1fr; }
}

/* Customer account tabs */
.tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 16px 0 10px;
}

.tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #e5e7eb;
  color: #0f172a;
  text-decoration:none;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(2,6,23,.05);
}

.tab:hover{ filter: brightness(1.02); }

.tab.active{
  background:#fff;
  border-color: rgba(11,61,145,.35);
  box-shadow: 0 0 0 3px rgba(11,61,145,.16);
}

.notice{
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:#fff;
  margin: 12px 0;
}

.notice.ok{ border-color: rgba(10,122,47,.35); background: rgba(10,122,47,.06); }
.notice.err{ border-color: rgba(176,0,32,.35); background: rgba(176,0,32,.06); }

/* Account layout (main + right sidebar) */
.account-layout{
  display:grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items:start;
  margin-top: 16px;
}

.account-main{ min-width: 0; } /* prevents overflow */

.uk-card{
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 25px rgba(2,6,23,.06);
}

.uk-title{
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.uk-body{
  margin-top: 8px;
  line-height: 1.35;
}

.uk-muted{
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px){
  .account-layout{ grid-template-columns: 1fr; }
}

/* Wider layout just for account pages */
.account-wrap{
  max-width: 1200px; /* was 920 via .wrap */
}

/* Make account pages wider */
.account-wrap{ max-width: 1200px; }

/* Account layout: prevent overflow painting under sidebar */
.account-layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items:start;
  margin-top: 16px;
}
.account-main{ min-width: 0; }
.account-side{ position: relative; z-index: 2; }

/* keep overflow contained inside panels */
.account-main .panel{ overflow: hidden; }

/* tables: scroll instead of overlap */
.table-scroll{ overflow-x:auto; max-width:100%; }
.table{ width:100%; border-collapse:collapse; }
.table th, .table td{
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align:left;
  vertical-align: top;
}
.right{ text-align:right; }

.pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid var(--border);
  font-weight: 700;
}

@media (max-width: 900px){
  .account-layout{ grid-template-columns: 1fr; }
}

/* === SEO content tuning (homepage + landing pages) === */

/* Slightly narrower line length for SEO copy */
.panel.seo p{
  max-width: 72ch;
  line-height: 1.55;
}

/* Give SEO panels a subtle visual separation */
.panel.seo{
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

/* Steps list (How it works) */
.steps{
  margin: 6px 0 0;
  padding-left: 18px;
}

.steps li{
  margin: 12px 0;
  padding-left: 6px;
  line-height: 1.45;
}

/* Step titles stand out slightly */
.steps strong{
  color: var(--blue);
}

/* Improve spacing when panels stack */
.panel + .panel{
  margin-top: 14px;
}

/* Ensure hero title hierarchy feels right */
.hero-title{
  letter-spacing: -0.2px;
}

/* Optional: improve paragraph spacing site-wide */
.panel p{
  margin: 0 0 10px;
}
.panel p:last-child{
  margin-bottom: 0;
}

/* Popular pages grid (homepage) */
.links-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.links-grid a.btn{
  width: 100%;
  text-align: center;
}

@media (max-width: 700px){
  .links-grid{
    grid-template-columns: 1fr;
  }
}

/* Header layout */
.brand{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}

/* Navigation grouping */
.nav{
  display:flex;
  align-items:flex-start;
  gap:28px;
  flex-wrap:wrap;
  max-width: 520px; /* prevents nav from spanning full width */
}

.nav-main,
.nav-auth{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}

.nav-auth{
  margin-left:auto;
}

/* Make wrapping look intentional */
@media (max-width: 1000px){
  .nav{
    max-width: 100%;
  }
}

/* Compact header for inner pages */
.topbar.compact .brand-left h1{
  font-size: 18px;
  line-height: 1.2;
}

.topbar.compact .badge{
  padding: 6px 10px;
  font-size: 12px;
}

.topbar.compact{
  padding: 12px 0;
}

.trust-row{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.trust-item{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  background:#fff;
  box-shadow: 0 8px 18px rgba(2,6,23,.05);
}
.trust-item strong{ display:block; color:var(--blue); font-size:14px; }
.trust-item span{ display:block; color:var(--muted); font-size:13px; margin-top:4px; }
@media(max-width:700px){ .trust-row{ grid-template-columns:1fr; } }

a.btn, button, .card, .panel{
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
a.btn:hover, button:hover{ transform: translateY(-1px); }
a.btn:active, button:active{ transform: translateY(0); filter: brightness(.98); }

.panel:hover{
  box-shadow: 0 14px 35px rgba(2,6,23,.08);
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
/* Status pills (orders) */
.status{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid var(--border);
  background: #fff;
  line-height: 1;
}
.status-depot{ background: rgba(11,61,145,.10); color: var(--blue); }
.status-awaiting{ background: rgba(214,40,40,.10); color: var(--red); }
.status-new{ background: #f1f5f9; color: var(--text); }
.status-paid{ background: rgba(10,122,47,.10); color: #0a7a2f; }
.status-dispatched{ background: rgba(10,122,47,.10); color: #0a7a2f; }
.status-delivered{ background: rgba(10,122,47,.10); color: #0a7a2f; }
.status-cancelled{ background: rgba(176,0,32,.10); color: #b00020; }
.status-default{ background: #f1f5f9; color: var(--text); }

.card h3{
  font-size:18px;
  letter-spacing:-0.2px;
}

.brand-home,
.brand-home:visited,
.brand-home:hover,
.brand-home:active,
.brand-home:focus{
  color:#fff;
  text-decoration:none;
}

.brand-home:hover{
  text-decoration:underline;
}

.trust-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.trust-icon-img{
  width:22px;
  height:22px;
  flex:0 0 22px;
  margin-top:2px;
  color: var(--blue);
}

.brand-home:hover{ text-decoration: underline; }

.brand-home{
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  text-decoration:none;
}

.brand-icon{
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:block;
  filter: brightness(0) invert(1);
}



@media (max-width:700px){
  .brand-icon{
    width:24px;
    height:24px;
    flex-basis:24px;
  }
}

/* Union Jack watermark behind hero (subtle, premium) */
.hero-watermark{
  position: relative;
  overflow: hidden;
}

.hero-watermark:before{
  content:"";
  position:absolute;
  inset:-40px -40px -40px -40px;
  background: url("/icons/unionjack-watermark.svg") no-repeat;
  background-position: right -80px top -40px;
  background-size: 600px auto;
  opacity: .12;
  transform: rotate(-8deg);
  pointer-events:none;
}

.hero-watermark > *{
  position: relative;
  z-index: 1;
}

/* Irish flag watermark (used on Ireland pages) */
.hero-watermark-ie{
  position: relative;
  overflow: hidden;
}

.hero-watermark-ie:before{
  content:"";
  position:absolute;
  inset:-40px -40px -40px -40px;
  background: url("/icons/irish-flag-watermark.svg") no-repeat;
  background-size: 520px auto;
  background-position: left -80px top -40px;
  opacity: .12;            /* tweak 0.06–0.12 */
  transform: rotate(6deg);
  pointer-events:none;
}

.hero-watermark-ie > *{
  position: relative;
  z-index: 1;
}

.brand-title{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.brand-tagline{
  font-size:12px;
  font-weight:600;
  opacity:.85;
  letter-spacing:.2px;
}

/* Header layout */
.header-inner{
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Top row */
.header-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* Brand */
.brand-title{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.brand-home{
  display:flex;
  align-items:center;
  gap:8px;
  color:#fff;
  text-decoration:none;
}

.brand-name{
  font-size:22px;
  font-weight:800;
}

/* Bottom nav */
.nav-bottom{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  padding-top:6px;
  border-top:1px solid rgba(255,255,255,.18);
}

.nav-bottom a{
  font-weight:650;
  padding:6px 8px;
  border-radius:8px;
}

.nav-bottom a:hover{
  background:rgba(255,255,255,.12);
}

/* ===== HERO VIDEO ===== */
.hero-video{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 18px 45px rgba(2,6,23,.12);
  border: 1px solid rgba(226,232,240,.8);
  background: #0b1220;
}

.hero-video__media{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transform: scale(1.02);
}

.hero-video__overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(2,6,23,.78) 0%, rgba(2,6,23,.35) 55%, rgba(2,6,23,.15) 100%),
    linear-gradient(180deg, rgba(2,6,23,.12) 0%, rgba(2,6,23,.62) 100%);
}

.hero-video__content{
  position: relative;
  z-index: 2;
  padding: 48px 28px;
  max-width: 720px;
}

.hero-video .hero-title{
  margin: 0 0 10px;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.6px;
  color: #fff;
}

.hero-video .hero-sub{
  margin: 0;
  max-width: 54ch;
  color: rgba(255,255,255,.92);
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 780px){
  .hero-video{ min-height: 360px; }
  .hero-video__content{ padding: 34px 18px; }
}

/* Accessibility: disable motion */
@media (prefers-reduced-motion: reduce){
  .hero-video__media{ display:none; }
  .hero-video{ background: url("/assets/video/hero-poster.jpg") center/cover no-repeat; }
}

/* =========================
   REAL ESTATE BOOST (SAFE)
   Put at END of styles.css
========================= */

/* 1) Make the homepage hero go FULL-BLEED (edge-to-edge) */
.hero-video{
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  border-radius: 0;              /* forward2me style */
  min-height: 520px;             /* taller = more impact */
}

/* Keep the hero text constrained for readability */
.hero-video__content{
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px;            /* slightly tighter than before */
}

/* 2) Tighten overall page vertical padding (more above-the-fold) */
main{
  padding: 14px 0 32px;          /* was 22px 0 40px */
}

/* 3) Panels: less padding + smaller gap */
.panel{
  padding: 16px;                 /* was 18px */
}
.panel + .panel{
  margin-top: 12px;              /* was 14px */
}

/* 4) Reduce heading spacing so content stacks tighter */
h2{
  margin: 0 0 10px;              /* was 12px */
}
.panel p{
  margin: 0 0 8p
}

/* Full-width topbar (safe for SEO) */
.topbar{
  width: 100%;
}

/* Wider container inside header only */
.topbar .wrap{
  max-width: 1200px;   /* adjust 1100–1300 */
}

/* Ensure flex children can shrink */
.brand{ min-width:0; }
.brand-left{ min-width:0; }

/* Keep menu items on one line */
.nav{
  display:flex;
  align-items:center;

  flex-wrap:nowrap !important;
  white-space:nowrap !important;

  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;

  gap: 16px;
  min-width:0;
  justify-content:flex-end;

  padding-left: 12px;  /* stops left clipping */
  padding-right: 6px;
  scroll-padding-left: 12px;
}

.nav::-webkit-scrollbar{ display:none; }
.nav a{ flex:0 0 auto; white-space:nowrap; }

/* === FIX: left-clipped first nav item (“Pricing” -> “icing”) === */
.brand{ min-width:0; }
.nav{
  display:flex;
  align-items:center;
  flex-wrap:nowrap !important;
  white-space:nowrap !important;

  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;

  /* IMPORTANT: make the left edge visible */
  padding-left: 22px !important;
  padding-right: 10px !important;
  scroll-padding-left: 22px !important;

  /* avoid “start offscreen” effect */
  justify-content:flex-end;
  min-width:0;
}

.nav::-webkit-scrollbar{ display:none; }
.nav a{ flex:0 0 auto; white-space:nowrap; }

/* If any parent has overflow hidden, it can clip the nav contents */
.topbar{ overflow: visible !important; }
.brand{ overflow: visible !important; }

/* safer layout: pushes nav to the right without clipping the left edge */
.nav{
  margin-left: auto;
  justify-content:flex-start; /* let padding-left actually work */
}

/* ===== Bigger brand (logo + PostUK + tagline) ===== */
.brand-home{
  gap: 12px;                 /* a bit more spacing between icon + text */
}

.brand-icon{
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
}

.brand-name{
  font-size: 28px !important;
  font-weight: 900 !important;
  letter-spacing: -0.3px;
  line-height: 1.05;
}

.brand-tagline{
  font-size: 14px !important;
  font-weight: 700 !important;
  opacity: 0.9 !important;
  margin-top: 2px;
}

/* Keep it sensible on smaller screens */
@media (max-width: 780px){
  .brand-icon{
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
  }
  .brand-name{ font-size: 24px !important; }
  .brand-tagline{ font-size: 13px !important; }
}

/* ===== Floating CTA buttons over hero video ===== */
.hero-video__topcta{
  position:absolute;
  z-index: 3;
  top: 18px;
  left: 18px;

  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap:wrap;
}

/* Slightly smaller buttons for hero overlay */
.btn.small{
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 800;
}

/* Make the ghost button readable on dark video */
.hero-video__topcta .btn.ghost{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.25);
  color: #0f172a;
  box-shadow: 0 10px 20px rgba(2,6,23,.18);
}

.hero-video__topcta .btn.ghost:hover{
  filter: brightness(1.02);
}

/* Mobile: keep it tidy */
@media (max-width: 700px){
  .hero-video__topcta{
    top: 12px;
    left: 12px;
    right: 12px;
  }
  .btn.small{
    padding: 9px 12px;
    border-radius: 12px;
  }
}

/* Ensure hero content is always above the overlay/video */
.hero-video__content{
  position: relative !important;
  z-index: 3 !important;
}

/* Price note under hero buttons */
.hero-price-note{
  display:block !important;
  margin: 10px 0 0 !important;
  font-size: 15px !important;
  line-height: 1.4 !important;

  color: #fff !important;
  opacity: .92 !important;

  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}

.hero-price-note strong{
  color:#fff !important;
  font-weight: 900 !important;
}

/* ===== How it works: forward2me-style ===== */
.how-hero{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(180deg, rgba(11,61,145,.18), rgba(11,61,145,0));
  padding: 28px 0 8px;
}

.how-hero__inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.how-hero h1{
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.6px;
}

.how-hero__sub{
  margin: 0;
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.55;
  font-size: 16px;
}

.how-hero__actions{
  margin-top: 16px;
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
}

.how-hero__highlights{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(2,6,23,.06);
}

/* Step cards */
.section-title{ margin:0 0 8px; }

.steps-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step-card{
  position: relative;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(2,6,23,.06);
  overflow:hidden;
}

.step-card h3{
  margin: 10px 0 8px;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.step-card p{ margin: 0 0 10px; }

.step-icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  color: #fff;
  background: linear-gradient(90deg, var(--blue), #114bb3);
  box-shadow: 0 12px 24px rgba(11,61,145,.18);
}

.step-link{
  display:inline-flex;
  margin-top: 4px;
  font-weight: 850;
  text-decoration:none;
  color: var(--blue);
}
.step-link:hover{ text-decoration: underline; }

@media (max-width: 980px){
  .steps-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px){
  .steps-grid{ grid-template-columns: 1fr; }
}

/* ===== Plans (reusable section) ===== */
.plans-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}

.plans-head h2{ margin:0; }
.plans-head .muted{ margin:0; max-width: 75ch; }

.plans-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.plan-card{
  position: relative;
  background:#fff;
  border:1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(2,6,23,.06);
  overflow:hidden;
}

.plan-card.featured{
  border-color: rgba(11,61,145,.35);
  box-shadow: 0 18px 45px rgba(11,61,145,.12);
}

.plan-top h3{
  margin:0;
  font-size: 20px;
  font-weight: 900;
}

.plan-price{
  margin-top: 10px;
  display:flex;
  align-items:baseline;
  gap: 6px;
}

.plan-price .amount{
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.4px;
  color: var(--text);
}

.plan-price .per{
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.plan-list{
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.plan-list li{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  line-height: 1.35;
}

.plan-list li::before{
  content:"✓";
  font-weight: 900;
  color: #22c55e;
  margin-top: 1px;
}

.plan-cta{
  margin-top: 16px;
  width: 100%;
}

.plans-foot{
  margin-top: 14px;
  display:flex;
  justify-content:center;
}

.ribbon{
  position:absolute;
  top: 14px;
  right: -42px;
  transform: rotate(45deg);
  background: #22c55e;
  color:#fff;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 56px;
  box-shadow: 0 10px 24px rgba(2,6,23,.18);
  text-transform: uppercase;
  letter-spacing: .4px;
}

@media (max-width: 900px){
  .plans-grid{ grid-template-columns: 1fr; }
}

/* ===== Membership teaser (How it works) ===== */
.membership-teaser__inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  align-items:center;
}

.membership-points{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.membership-teaser__cta{
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 25px rgba(2,6,23,.06);
  display:grid;
  gap: 10px;
  justify-items: stretch;
}

.membership-price{
  display:flex;
  align-items:baseline;
  gap:8px;
  justify-content:center;
}

.membership-price__big{
  font-size: 36px;
  font-weight: 950;
  letter-spacing: -0.4px;
  color: var(--text);
}

.membership-price__small{
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

@media (max-width: 900px){
  .membership-teaser__inner{ grid-template-columns: 1fr; }
}

.how-visual img{
  width:100%;
  height:auto;
  border-radius:16px;
  box-shadow:0 14px 35px rgba(2,6,23,.08);
}

/* Prevent sticky header from covering page content */
:root{ --header-offset: 92px; } /* tweak if needed */

main.wrap{
  padding-top: var(--header-offset);
}

@media (max-width: 700px){
  :root{ --header-offset: 78px; }
}

/* Wide visual section (more forward2me-like) */
.how-visual-wide{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 8px 0 6px;
}

.how-visual-wide__inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.how-visual-wide img{
  width: 100%;
  height: 340px;           /* controls how “tall” it feels */
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(2,6,23,.10);
  display:block;
}

@media (max-width: 700px){
  .how-visual-wide img{ height: 240px; }
}

/* EU flag watermark (used on Europe pages) */
.hero-watermark-eu{
  position: relative;
  overflow: hidden;
}

.hero-watermark-eu:before{
  content:"";
  position:absolute;
  inset:-40px;
  background: url("/icons/eu-flag-watermark.svg") no-repeat;
  background-size: 560px auto;
  background-position: right -70px top -40px;
  opacity: .10;            /* tweak 0.06–0.12 */
  transform: rotate(-6deg);
  pointer-events:none;
}

.hero-watermark-eu > *{
  position: relative;
  z-index: 1;
}

.quote-mini-visual{
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.quote-mini-visual img{
  display:block;
  width:100%;
  height: 160px;
  object-fit: cover;
}

@media (max-width:700px){
  .quote-mini-visual img{ height: 120px; }
}

/* How-it-works hero: reduce oversized H1 safely (keeps H1 for SEO) */
.how-hero h1{
  font-size: 40px;          /* was likely huge */
  line-height: 1.06;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
}

.how-hero__sub{
  font-size: 16px;
  line-height: 1.55;
  max-width: 72ch;
}

/* Responsive */
@media (max-width: 900px){
  .how-hero h1{ font-size: 34px; }
}

@media (max-width: 700px){
  .how-hero h1{ font-size: 30px; }
}

/* Guides: slightly better readability */
.panel.seo h2{
  margin-top: 14px;
}
.panel.seo h2:first-of-type{
  margin-top: 0;
}
.panel.seo p{
  max-width: 75ch;
  line-height: 1.6;
}

/* === NAV OVERFLOW FIX: keep all links accessible === */
.topbar .brand{
  align-items: center;
}

.topbar .brand-left{
  flex: 0 0 auto;      /* logo doesn't shrink weirdly */
  min-width: 0;
}

.topbar .nav.nav-one-line{
  flex: 1 1 auto;      /* IMPORTANT: nav takes remaining space */
  min-width: 0;        /* allow overflow instead of pushing items off */
  max-width: none;     /* remove any cap like 620px */
  justify-content: flex-start; /* show first items first */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;

  padding-left: 14px;  /* prevent left clipping */
  scroll-padding-left: 14px;
}

.topbar .nav.nav-one-line::-webkit-scrollbar{ display:none; }

/* Make links a bit larger but compact */
.topbar .nav.nav-one-line a{
  font-size: 15px;
  padding: 8px 10px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav a.active{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.18);
}

.btn-link{
  display:inline-block;
  margin-left:10px;
  font-weight:600;
  text-decoration:underline;
  color:inherit;
  opacity:.9;
}

.btn-link:hover{ opacity:1; }

.cta-micro{
  margin-top:10px;
  font-size:14px;
  opacity:.9;
}

.hero-login{ margin-top:10px; }

.hero-video .btn-link{
  color:#fff;
  text-decoration:underline;
  font-weight:600;
  opacity:.9;
}

.hero-video .btn-link:hover{ opacity:1; }

.hero-video .cta-micro{
  margin-top:10px;
  font-size:14px;
  color:#fff;
  opacity:.9;
}

.nav .nav-cta{
  margin-left:12px;
  padding:10px 14px;
  font-size:14px;
  line-height:1;
  white-space:nowrap;
}

.pill{
  border:1px solid var(--border, #e2e8f0);
  border-radius:999px;
  padding:8px 12px;
  background:#fff;
  font-size:14px;
  color:var(--text, #0f172a);
}

.table .btn2.primary{
  padding:8px 14px;
  font-size:14px;
}

.pf-upsell-line{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
.pf-link{ text-decoration: underline; }

/* ===== Plan / Upsell UI ===== */
.pf-link { color: #5b21b6; text-decoration: underline; }
.pf-muted { color: #64748b; }

.pf-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:12px; font-weight:700;
  border:1px solid #e2e8f0; text-decoration:none; cursor:pointer;
  background:#fff; color:#0f172a;
}
.pf-btn:hover{ transform: translateY(-1px); }
.pf-btn-primary{
  background:#d62828; color:#fff; border-color:#d62828;
  box-shadow: 0 10px 20px rgba(214,40,40,.18);
}
.pf-btn-ghost{ background:#fff; color:#0f172a; }

.pf-card{
  background:#fff; border:1px solid #e2e8f0; border-radius:18px;
  padding:18px; box-shadow: 0 10px 30px rgba(2,6,23,.06);
}
.pf-card-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }

.pf-plan-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap:14px;
  margin-top:16px;
}
@media (max-width: 900px){
  .pf-plan-grid{ grid-template-columns: 1fr; }
}

.pf-plan{
  position:relative;
  border:1px solid #e2e8f0; border-radius:18px;
  padding:16px;
  background: #fff;
}
.pf-plan-featured{
  border-color: rgba(11,61,145,.35);
  box-shadow: 0 18px 40px rgba(11,61,145,.12);
}
.pf-badge{
  position:absolute; top:12px; right:12px;
  background:#0b3d91; color:#fff;
  padding:6px 10px; border-radius:999px;
  font-size:12px; font-weight:800;
}

.pf-plan-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.pf-price{ text-align:right; }
.pf-price-amt{ font-size:28px; font-weight:900; line-height:1; }
.pf-price-sub{ color:#64748b; font-weight:700; margin-left:6px; }

.pf-list{ margin:14px 0 16px; padding-left:18px; }
.pf-list li{ margin:8px 0; }

.pf-hr{ border:none; border-top:1px solid #e2e8f0; margin:18px 0; }

.pf-faq-item{ padding:10px 0; border-top:1px dashed #e2e8f0; }
.pf-faq-item:first-child{ border-top:none; padding-top:0; }

.pf-upsell-line{
  display:flex; align-items:center; flex-wrap:wrap;
  gap:8px;
}
.pf-bulb{ font-size:16px; }

.pf-sidecard{
  background:#fff; border:1px solid #e2e8f0; border-radius:18px;
  padding:16px; box-shadow: 0 10px 30px rgba(2,6,23,.06);
}
.pf-sidecard-title{
  font-weight:900; letter-spacing:.03em;
  margin-bottom:8px;
}

.pf-layout{
  display:grid;
  grid-template-columns: 1fr minmax(360px, 420px); /* wider sidebar */
  gap:16px;
  margin-top:16px;
  align-items:start;
}
@media (max-width: 1100px){
  .pf-layout{ grid-template-columns: 1fr; }
}

.pf-aside{ min-width: 360px; }

.pf-sidecard{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:14px;
}

.pf-sidecard-title{
  font-weight:900;
  letter-spacing:.04em;
  font-size:12px;
  margin-bottom:8px;
  color:#0f172a;
}

.panel{ overflow: visible; }
.pf-layout{ overflow: visible; }

.pf-sidecard{
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;          /* keep it neat */
}

.pf-sidecard *{
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.pf-layout{
  display:grid;
  grid-template-columns: minmax(0,1fr) 360px;
  gap:16px;
  margin-top:16px;
  align-items:start;
}
@media (max-width: 1100px){
  .pf-layout{ grid-template-columns: 1fr; }
}

.pf-aside{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.btn2.active { 
  border: 1px solid rgba(11,61,145,.35);
  background: rgba(11,61,145,.08);
}

.muted-help{
  margin-top: 8px;
  font-size: 14px;
  color: #475569; /* muted slate */
}

/* Neutral/blue action (non-payment) */
.btn.btn-neutral{
  background: #2563eb;      /* blue */
  color: #fff;
  border: 1px solid #1d4ed8;
}
.btn.btn-neutral:hover{ filter: brightness(0.95); }
.btn.btn-neutral:disabled{
  background: #cbd5e1;      /* muted grey */
  border-color: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  filter: none;
}




/* ===== Hero: foreground Vimeo explainer card ===== */

.hero-video__grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
}

.hero-video__left{
  min-width: 0;
}

.hero-video__right{
  min-width: 0;
}

.vimeo-card{
  background: rgba(245,247,250,0.95);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
}

.vimeo-embed{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  border-radius: 12px;
}

.vimeo-embed iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

/* Mobile: stack text above video */
@media (max-width: 900px){
  .hero-video__grid{
    grid-template-columns: 1fr;
  }
  .vimeo-card{
    margin-top: 10px;
  }
}

/* Optional: reduce “motion on motion” on mobile by hiding background MP4 */
@media (max-width: 900px){
  .hero-video__media{ display:none; }
  /* If your overlay depends on the video, you can keep a solid fallback */
  /* .hero-video{ background: #0b3d91; } */
}

.cta-micro{
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.cta-micro .cta-price{
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #fff;
  background: var(--blue);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 6px 18px rgba(11,61,145,.18);
}
