/* =========================================================
   BeiCheck — landing page styles
   Mobile-first. Tokens → base → components → sections.
   ========================================================= */

:root {
  /* Colour */
  --white: #FFFFFF;
  --bg: #FFFFFF;            /* page background */
  --offwhite: #F5F7FA;      /* alternate sections */
  --navy: #142B45;          /* headings, logo */
  --surface: #F5F7FA;       /* light grey cards on white */
  --surface-alt: #FFFFFF;   /* cards on off-white sections */
  --line: #E3E8EF;          /* subtle borders */
  --line-2: #D3DAE4;
  --text: #263445;          /* body text */
  --muted: #56657A;
  --dim: #7A879A;
  --blue: #2878F0;          /* electric blue */
  --blue-2: #1D62CF;        /* blue for small text (AA contrast on white) */
  --blue-tint: #EAF2FE;
  --blue-glow: rgba(40, 120, 240, .28);
  --high: #C8501C;
  --warn: #A86E06;
  --ok: #12804F;
  --error: #D23A3A;
  --shadow-sm: 0 1px 2px rgba(20,43,69,.05), 0 4px 12px -6px rgba(20,43,69,.08);
  --shadow-lg: 0 2px 4px rgba(20,43,69,.04), 0 30px 60px -24px rgba(20,43,69,.22);

  /* Photography slots — drop photos in /assets/img and uncomment.
     With no photo set, an intentional blueprint/gradient treatment is shown. */
  /* Free photos from Unsplash (Unsplash License), served from their CDN.
     For production, download them into /assets/img and switch to the local paths. */
  --hero-img: none;  /* hero panel now shows the Kenya coverage map */
  --why-img:  url("https://images.unsplash.com/photo-1778438387226-73b14195c492?auto=format&fit=crop&w=800&q=70");    /* house: brickwork + scaffolding */
  --cta-img:  url("../assets/img/photos/team-site.jpg");  /* team reviewing plans on site */
  --p1-img:   none;  /* audience cards use illustrations in /assets/illustrations */
  --p2-img:   none;  /* audience cards use illustrations in /assets/illustrations */
  --p3-img:   none;  /* audience cards use illustrations in /assets/illustrations */

  /* Type */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: 20px;
  --radius: 14px;
  --radius-lg: 22px;
  --section-y: 72px;
  --header-h: 64px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 120px; --header-h: 72px; }
}
@media (min-width: 1100px) {
  :root { --section-y: 148px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--navy); margin: 0; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  font: 600 14px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 12px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 14px; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 10px 30px -10px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn--primary:hover { background: #1F6AE0; box-shadow: 0 14px 40px -10px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--ghost { background: var(--white); color: var(--navy); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-2); }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2);
  margin-bottom: 20px;
}
.eyebrow .num { color: var(--dim); }
.eyebrow .num::after { content: ""; display: inline-block; width: 24px; height: 1px; background: var(--line-2); margin-left: 10px; vertical-align: middle; }

.h2 {
  font-size: clamp(30px, 6.4vw, 60px);
  text-wrap: balance;
  font-weight: 700; font-stretch: 112%;
  letter-spacing: -.03em; max-width: 18ch;
}
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 60ch; margin-top: 20px; }
.note { margin-top: 40px; color: var(--muted); font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.note::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: #E8A51E; box-shadow: 0 0 0 4px rgba(232,165,30,.18); }

/* ---------- Pilot bar ---------- */
.pilot-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px var(--gutter);
  background: var(--navy);
  border-bottom: 1px solid var(--navy);
  font-size: 13px; color: #C9D6EA; text-align: center; line-height: 1.45;
}
.pilot-bar strong { color: #fff; font-weight: 600; }
.pilot-bar__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #E8A51E; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(232,165,30,.5);} 50% { box-shadow: 0 0 0 6px rgba(232,165,30,0);} }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .94); box-shadow: 0 4px 20px -12px rgba(20,43,69,.18); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo__mark { width: 30px; height: 30px; }
.logo__word { font-size: 21px; font-weight: 800; font-stretch: 115%; letter-spacing: -.03em; }
.logo__word span { color: var(--blue); }
.logo--sm .logo__word { font-size: 19px; }

.nav { display: none; gap: 32px; }
.nav a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--navy); }
.nav a.nav__feature {
  display: inline-flex; align-items: center; gap: 8px; margin: -8px 0; padding: 8px 14px;
  font-weight: 600; color: var(--navy); background: var(--blue-tint);
  border: 1px solid rgba(40,120,240,.3); border-radius: 999px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.nav__ico { width: 15px; height: 15px; flex: none; color: var(--blue); transition: color .2s; }
.nav a.nav__feature:hover .nav__ico { color: #fff; }
.nav a.nav__feature--green { background: #E8F7EF; border-color: rgba(18,128,79,.3); }
.nav a.nav__feature--green .nav__ico { color: #12804F; }
.nav a.nav__feature--green:hover { background: #12804F; border-color: #12804F; color: #fff; }
.nav a.nav__feature--green:hover .nav__ico { color: #fff; }
.nav { gap: 24px; }
@media (max-width: 1100px) { .nav { gap: 16px; } .nav a { font-size: 13.5px; } }
.nav a.nav__feature:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.nav { align-items: center; }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 64px; isolation: isolate; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.80) 0%, rgba(255,255,255,.90) 70%, var(--bg) 100%),
    radial-gradient(55% 60% at 82% 25%, rgba(40,120,240,.14), transparent 70%),
    radial-gradient(45% 50% at 5% 95%, rgba(40,120,240,.06), transparent 70%),
    linear-gradient(180deg, var(--offwhite), var(--white));
}
/* Blueprint grid overlay */
.hero__bg::after, .blueprint {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(20,43,69,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,43,69,.07) 1px, transparent 1px),
    linear-gradient(rgba(20,43,69,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,43,69,.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(80% 70% at 60% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 70% at 60% 30%, #000 30%, transparent 80%);
}
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero__title {
  font-size: clamp(38px, 10.2vw, 76px);
  font-weight: 800; font-stretch: 112%;
  letter-spacing: -.035em; line-height: 1.0;
  max-width: 14ch;
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--blue); position: relative; }
.hero__copy { min-width: 0; }
.hero__sub { margin-top: 20px; font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); max-width: 34ch; }
.hero__ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.hero__ctas .btn { width: 100%; }
@media (min-width: 560px) { .hero__ctas .btn { width: auto; } }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }
.hero__trust li { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.hero__trust li::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2L10 5' fill='none' stroke='%232878F0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

@media (min-width: 560px) {
  .hero__ctas { flex-direction: row; }
}
@media (min-width: 1000px) {
  .hero { padding: 96px 0 128px; }
  .hero__grid { grid-template-columns: 1.02fr .98fr; gap: 56px; }
}

/* Hero visual: navy-framed photo with the report card overlapping */
.hero__visual { position: relative; padding-bottom: 8px; }
.hero__photo {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  background:
    linear-gradient(200deg, rgba(20,43,69,0) 35%, rgba(20,43,69,.55) 100%),
    var(--hero-img) center / cover no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 40px),
    linear-gradient(160deg, #1D3D63, var(--navy));
  border: 6px solid var(--navy);
  box-shadow: var(--shadow-lg);
}
.hero__chip {
  position: absolute; top: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  font: 600 12px/1 var(--font); color: #fff;
  background: rgba(20,43,69,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.16);
}
.hero__chip-dot { width: 7px; height: 7px; border-radius: 50%; background: #4BD08E; box-shadow: 0 0 0 3px rgba(75,208,142,.25); }
.hero__visual .report { position: relative; margin: -56px 12px 0; z-index: 1; }
@media (min-width: 560px) { .hero__visual .report { margin: -72px 28px 0; } }
@media (min-width: 1000px) {
  .hero__visual { padding: 0 0 40px; }
  .hero__photo { aspect-ratio: 4 / 5; max-height: 600px; margin-left: 72px; }
  .hero__visual .report { position: absolute; left: 0; bottom: 0; width: min(360px, 80%); margin: 0; }
  .hero__visual .report .report__row:not(.report__row--head) { padding-top: 10px; padding-bottom: 10px; font-size: 13px; }
}

/* Sample report card */
.report {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 80px -30px rgba(40,120,240,.25);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.report__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.report__label { display: block; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.report__title { font-size: 15px; font-weight: 600; }
.report__tag { flex: none; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--warn); background: #FFF6E3; border: 1px solid #F2D9A4; padding: 6px 8px; border-radius: 6px; }
.report__table { padding: 6px 0; }
.report__row {
  display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 10px; align-items: center;
  padding: 12px 20px; font-size: 13.5px; border-bottom: 1px solid var(--line);
}
.report__row:last-child { border-bottom: 0; }
.report__row--head { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding-top: 10px; padding-bottom: 10px; }
.report__row .mono { color: var(--navy); font-size: 13px; }
@media (max-width: 420px) {
  .report__row { grid-template-columns: 1.3fr .9fr auto; padding: 11px 14px; font-size: 13px; gap: 8px; }
  .report__head, .report__foot { padding-left: 14px; padding-right: 14px; }
  .flag { padding: 5px 7px; font-size: 10.5px; }
}
.flag { font: 600 11px/1 var(--font); letter-spacing: .02em; padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.flag--high { color: var(--high); background: #FDEDE5; }
.flag--warn { color: var(--warn); background: #FFF4DC; }
.flag--ok   { color: var(--ok);   background: #E4F5EC; }
.report__foot { padding: 14px 20px; font-size: 12px; color: var(--dim); background: var(--offwhite); border-top: 1px solid var(--line); }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.section--alt { background: var(--offwhite); overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--alt .blueprint { mask-image: radial-gradient(70% 60% at 85% 10%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 85% 10%, #000 20%, transparent 75%); }
.section--alt > .container { position: relative; }
.section__head { margin-bottom: 40px; }
@media (min-width: 768px) { .section__head { margin-bottom: 56px; } }
.section__head--center { text-align: center; }
.section__head--center .h2 { margin: 0 auto; }

/* Cards */
.cards { display: grid; gap: 16px; }
@media (min-width: 820px) { .cards--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card {
  padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease);
}
.card:hover { box-shadow: var(--shadow-lg); border-color: rgba(40,120,240,.35); transform: translateY(-3px); }
.card__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: var(--blue); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Steps */
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.step {
  position: relative; padding: 32px 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-alt);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) {
  .step { border-radius: 0; border-right-width: 0; }
  .step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
  .step:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-right-width: 1px; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 48px; right: -8px; z-index: 1; width: 16px; height: 16px;
    background: var(--white); border: 1px solid var(--line-2); border-radius: 50%;
    box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 8px var(--blue);
  }
}
.step__n { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; font: 500 22px/1 var(--mono); color: #fff; background: var(--navy); letter-spacing: -.02em; margin-bottom: 24px; box-shadow: 0 10px 24px -12px rgba(20,43,69,.6); }
.step h3 { font-size: 21px; margin-bottom: 12px; max-width: 18ch; }
.step p { color: var(--muted); font-size: 15.5px; }

/* Personas */
.persona { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.persona:hover { box-shadow: var(--shadow-lg); border-color: rgba(40,120,240,.35); transform: translateY(-3px); }
.persona__img {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--blue);
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--line);
}
.persona__img::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .6;
  background-image: linear-gradient(rgba(40,120,240,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(40,120,240,.08) 1px, transparent 1px);
  background-size: 20px 20px;
}
.persona__img svg {
  position: absolute; left: 16px; bottom: 16px; width: 44px; height: 44px; padding: 10px;
  color: #fff; background: var(--navy); border-radius: 12px; box-shadow: 0 8px 20px -8px rgba(20,43,69,.5);
}
.persona__img--1 { background-image: linear-gradient(180deg, rgba(255,255,255,0), rgba(20,43,69,.30)), var(--p1-img), linear-gradient(135deg, #EEF4FD, #DDE8F8); }
.persona__img--2 { background-image: linear-gradient(180deg, rgba(255,255,255,0), rgba(20,43,69,.30)), var(--p2-img), linear-gradient(135deg, #E8F0FC, #D6E4F7); }
.persona__img--3 { background-image: linear-gradient(180deg, rgba(255,255,255,0), rgba(20,43,69,.30)), var(--p3-img), linear-gradient(135deg, #F0F5FD, #E0EAF8); }
.persona__body { padding: 26px 28px 30px; }
.persona h3 { font-size: 22px; margin-bottom: 10px; }
.persona p { color: var(--muted); font-size: 15.5px; }

/* Why */
.why { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .why { grid-template-columns: .95fr 1.05fr; gap: 88px; } }
.why__media { position: relative; }
.why__photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); border: 6px solid var(--navy); box-shadow: var(--shadow-lg);
  background:
    linear-gradient(180deg, transparent 50%, rgba(20,43,69,.45)),
    var(--why-img) center / cover no-repeat,
    repeating-linear-gradient(90deg, rgba(40,120,240,.09) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(40,120,240,.09) 0 1px, transparent 1px 48px),
    radial-gradient(80% 60% at 30% 20%, rgba(40,120,240,.16), transparent 70%),
    linear-gradient(160deg, #EEF4FD, #DCE7F7);
  max-height: 560px; width: 100%;
}
.why__stamp {
  position: absolute; left: 20px; bottom: 20px;
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 20px; border-radius: 12px;
  background: var(--navy); border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.why__stamp .mono { font-size: 11px; letter-spacing: .18em; color: #8DB8FF; }
.why__stamp strong { font-size: 20px; font-stretch: 112%; color: #fff; }
.ticks { display: grid; gap: 28px; margin-top: 40px; }
.ticks li { position: relative; padding-left: 44px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 8px;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M8 14.5l4 4L20 10' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/28px no-repeat;
  box-shadow: 0 8px 20px -8px var(--blue-glow);
}
.section__cta { margin-top: 32px; }
.section__cta .btn, .why__cta { width: 100%; }
.why__cta { margin-top: 40px; }
@media (min-width: 560px) { .section__cta .btn, .why__cta { width: auto; } }
.ticks h3 { font-size: 20px; margin-bottom: 6px; }
.ticks p { color: var(--muted); font-size: 15.5px; max-width: 52ch; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(40,120,240,.35); background: var(--white); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-size: 17px; font-weight: 600; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--blue-2); border-bottom: 2px solid var(--blue-2); transform: rotate(45deg);
  transition: transform .25s var(--ease), margin .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 22px 22px; color: var(--muted); font-size: 15.5px; }
.faq a { color: var(--blue-2); }

/* ---------- Final CTA + form ---------- */
.cta { position: relative; isolation: isolate; padding: var(--section-y) 0; overflow: hidden; border-top: 1px solid var(--line); }
.cta__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 12% 25%, rgba(40,120,240,.13), transparent 70%),
    linear-gradient(180deg, rgba(245,247,250,.88), rgba(245,247,250,.94)),
    var(--cta-img) center / cover no-repeat,
    linear-gradient(160deg, #EEF3FA, var(--offwhite));
}
.cta__grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 980px) { .cta__grid { grid-template-columns: 1fr minmax(420px, 480px); gap: 80px; align-items: center; } }
.cta__title { font-size: clamp(36px, 8.4vw, 76px); text-wrap: balance; font-weight: 800; font-stretch: 112%; letter-spacing: -.035em; line-height: 1.02; max-width: 13ch; }
.cta--simple .cta__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta--simple .cta__title { margin: 0 auto; }
.cta--simple .lead { margin-left: auto; margin-right: auto; }
.cta__actions { margin-top: 32px; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.cta__actions .btn { width: 100%; }
@media (min-width: 560px) { .cta__actions { width: auto; flex-direction: row; justify-content: center; } .cta__actions .btn { width: auto; } }

/* BeiTrack product tag */
.product-tag { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--font); letter-spacing: 0; text-transform: none; color: var(--navy); }
.product-tag__ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #E8F7EF; color: #12804F; border: 1px solid rgba(18,128,79,.25); }
.product-tag__ico svg { width: 15px; height: 15px; }

/* Free resources */
.res-grid { display: grid; gap: 20px; }
@media (min-width: 980px) { .res-grid { grid-template-columns: 1.25fr 1fr; } .res--wide { grid-column: 1 / -1; } }
.res { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 24px 20px; min-width: 0; }
@media (min-width: 600px) { .res { padding: 32px; } }
.res h3 { font-size: 22px; margin-bottom: 8px; }
.res__kind { font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 10px; }
.res__intro { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.res--guide { display: grid; gap: 24px; border-top: 5px solid var(--navy); }
@media (min-width: 600px) { .res--guide { grid-template-columns: 180px 1fr; align-items: start; } }
.res-guide__cover {
  position: relative; aspect-ratio: 3 / 4; max-width: 200px; border-radius: 10px; padding: 18px 16px;
  display: flex; flex-direction: column; gap: 10px; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, #1D3D63, var(--navy));
  box-shadow: 0 20px 40px -18px rgba(20,43,69,.6), inset 0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(-2deg);
}
.res-guide__cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 18px 18px;
}
.res-guide__brand { font: 600 10px/1 var(--mono); letter-spacing: .2em; color: #6FA6FF; }
.res-guide__title { font-size: 26px; line-height: 1; font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; margin-top: auto; }
.res-guide__tag { font-size: 10.5px; line-height: 1.4; color: #B9C8DC; }
.res__list { display: grid; gap: 8px; margin: 14px 0 24px; }
.res__list li { position: relative; padding-left: 26px; color: var(--text); font-size: 15px; }
.res__list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2L11.5 5.6' fill='none' stroke='%232878F0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.res--guide .btn { width: 100%; }
@media (min-width: 560px) { .res--guide .btn { width: auto; } }

.calc { display: grid; gap: 12px; }
.calc__row label { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.calc__row label span { font-weight: 400; color: var(--dim); font-size: 12.5px; text-align: right; }
.calc__row input {
  width: 100%; height: 48px; padding: 0 14px; font: 400 16px/1 var(--font); color: var(--text);
  background: var(--offwhite); border: 1px solid var(--line-2); border-radius: 10px; appearance: textfield; -moz-appearance: textfield;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.calc__row input::-webkit-outer-spin-button, .calc__row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__row input::placeholder { color: var(--dim); }
.calc__row input:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(40,120,240,.16); }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.calc__out > div { padding: 14px 16px; border-radius: 12px; background: var(--navy); color: #fff; }
.calc__out span { display: block; font-size: 12.5px; color: #B9C8DC; margin-bottom: 4px; }
.calc__out strong { font-size: 20px; font-weight: 700; font-feature-settings: "tnum"; white-space: nowrap; }
.calc__out strong.is-muted { font-size: 13px; font-weight: 500; color: #B9C8DC; white-space: normal; }
.calc__note { margin-top: 14px; font-size: 13px; color: var(--muted); }

.res__head { display: grid; gap: 16px; margin-bottom: 20px; }
@media (min-width: 760px) { .res__head { grid-template-columns: 1fr 260px; align-items: end; } .res__head .res__intro { margin-bottom: 0; } }
.quotes { display: grid; gap: 14px; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote { position: relative; padding: 18px; border-radius: 14px; background: var(--offwhite); border: 1.5px solid var(--line); display: grid; gap: 12px; transition: border-color .2s, background-color .2s; }
.quote__name { font-weight: 700; color: var(--navy); font-size: 16px; }
.quote__total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.quote__total span { font-size: 13px; color: var(--muted); }
.quote__total strong { font-size: 19px; color: var(--navy); font-feature-settings: "tnum"; white-space: nowrap; }
.quote__badge { position: absolute; top: 14px; right: 14px; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--ok); padding: 5px 9px; border-radius: 999px; }
.quote.is-lowest { border-color: var(--ok); background: #F2FBF6; }

/* BeiTrack */
.badge {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 4px;
  padding: 5px 10px; border-radius: 999px;
  font: 600 11px/1 var(--font); letter-spacing: .02em; text-transform: none;
  color: #fff; background: var(--navy);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #E8A51E; }
.cards--caps { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards--caps { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .cards--caps { grid-template-columns: repeat(3, 1fr); } }
.card--cta { background: var(--navy); border-color: var(--navy); color: #fff; display: flex; flex-direction: column; }
.card--cta h3 { color: #fff; }
.card--cta p { color: #C9D6EA; margin-bottom: 20px; }
.card--cta .btn { margin-top: auto; }
.card--cta .card__fine { font-size: 13px; color: #93A4BB; margin: 12px 0 0; text-align: center; }
.card--cta:hover { border-color: var(--navy); }
.persona__fit { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted) !important; }
.persona__fit strong { color: var(--blue-2); font-weight: 600; }
.section--alt .persona, .section--alt .faq details { background: var(--white); }
.cta__points { display: grid; gap: 12px; margin-top: 32px; }
.cta__points li { display: flex; gap: 12px; align-items: center; color: var(--text); }
.cta__points li::before { content: ""; width: 20px; height: 1px; background: var(--blue); flex: none; }

.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 22px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
@media (min-width: 600px) { .form-card { padding: 36px; } }
.form-card { border-top: 5px solid var(--navy); }
.form-card.is-highlight { animation: formPulse 1.4s var(--ease); }
@keyframes formPulse { 0% { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(40,120,240,.5); } 60% { box-shadow: var(--shadow-lg), 0 0 0 12px rgba(40,120,240,0); } 100% { box-shadow: var(--shadow-lg); } }
.form__title { font-size: 24px; margin-bottom: 24px; font-stretch: 110%; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select {
  width: 100%; height: 52px; padding: 0 16px;
  font: 400 16px/1 var(--font); color: var(--text);  /* 16px prevents iOS zoom */
  background: var(--offwhite); border: 1px solid var(--line-2); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2398A5B7' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 40px;
}
.field select:invalid { color: var(--dim); }
.field select option { color: var(--text); }
.field input::placeholder { color: var(--dim); }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(40,120,240,.16); }
.field.has-error input, .field.has-error select { border-color: var(--error); }
.field__error { min-height: 0; font-size: 13px; color: var(--error); margin-top: 6px; }
.field__error:empty { display: none; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field--check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 6px 0 20px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.field--check label { margin: 0; font-size: 13.5px; font-weight: 400; color: var(--muted); line-height: 1.5; }
.field--check label a { color: var(--blue-2); }
.field--check .field__error { grid-column: 2; margin-top: 0; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; background: #FDECEC; border: 1px solid #F3BEBE; color: #9E2222; }
.form__fine { margin-top: 14px; font-size: 12.5px; color: var(--dim); text-align: center; }

.btn .spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.success { text-align: center; padding: 12px 4px; }
.success:focus { outline: none; }
.success__icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--blue); box-shadow: 0 0 0 8px var(--blue-tint), 0 16px 40px -10px var(--blue-glow); }
.success__icon svg { width: 30px; height: 30px; }
.success__title { font-size: 26px; font-stretch: 110%; margin-bottom: 12px; }
.success p { color: var(--text); }
.success__fine { font-size: 13.5px; color: var(--dim) !important; margin: 16px 0 24px; }
.success__test { font: 500 12px/1.5 var(--mono); color: var(--warn) !important; background: #FFF6E3; border: 1px dashed #E3B85F; border-radius: 8px; padding: 10px 12px; margin-bottom: 20px; text-align: left; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--navy); padding: 48px 0 calc(48px + 76px); background: var(--navy); }
.footer .logo__word { color: #fff; }
.footer .logo__word span { color: #6FA6FF; }
@media (min-width: 768px) { .footer { padding-bottom: 48px; } }
.footer__inner { display: grid; gap: 20px; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1fr 1.4fr auto; align-items: end; gap: 48px; } }
.footer__tag { color: #C9D6EA; font-size: 14px; margin-top: 8px; }
.footer__note, .footer__legal { color: #93A4BB; font-size: 13px; }
.footer__legal a { color: #C9D6EA; }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.95) 35%);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Plans ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.plans { display: grid; gap: 20px; max-width: 980px; margin: 0 auto; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.plan {
  display: flex; flex-direction: column; gap: 22px; padding: 28px 22px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); min-width: 0;
}
@media (min-width: 600px) { .plan { padding: 34px; } }
.plan--free { border-top: 5px solid var(--blue); }
.plan--track { background: var(--navy); border-color: var(--navy); color: #fff; }
.plan__name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 20px; font-weight: 700; color: var(--navy); }
.plan--track .plan__name { color: #fff; }
.plan__ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--blue-tint); color: var(--blue); }
.plan__ico svg { width: 17px; height: 17px; }
.plan__ico--light { background: rgba(255,255,255,.1); color: #6FA6FF; }
.plan__price { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.plan__price strong { font-size: 36px; font-weight: 800; font-stretch: 110%; letter-spacing: -.02em; color: var(--navy); }
.plan__price span { color: var(--muted); font-size: 15px; }
.plan--track .plan__price strong { font-size: 22px; color: #fff; }
.plan__for { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.plan--track .plan__for { color: #B9C8DC; }
.plan__list { display: grid; gap: 10px; }
.plan__list li { position: relative; padding-left: 28px; font-size: 15px; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.4 2.4L13 6.3' fill='none' stroke='%232878F0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.plan--track .plan__list li { color: #DCE5F1; }
.plan--track .plan__list li::before { background-color: rgba(255,255,255,.1); }
.plan__form { margin-top: auto; display: grid; gap: 10px; }
.plan__form input {
  width: 100%; height: 52px; padding: 0 16px; font: 400 16px/1 var(--font); color: var(--text);
  background: var(--offwhite); border: 1px solid var(--line-2); border-radius: 10px;
}
.plan__form input:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(40,120,240,.16); }
.plan__form input[aria-invalid="true"] { border-color: var(--error); }
.plan__error { font-size: 13.5px; color: var(--error); }
.plan__error[hidden] { display: none; }
.plan--track .btn { margin-top: auto; }
.plan__fine { font-size: 12.5px; color: #93A4BB; text-align: center; margin-top: -10px; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--blue-tint); }
.badge--light { background: rgba(255,255,255,.12); margin-left: 0; }

/* ---------- Newsletter ---------- */
.newsletter__inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .newsletter__inner { grid-template-columns: 1fr 460px; gap: 64px; } }
.newsletter__form {
  padding: 24px 20px; border-radius: var(--radius-lg); background: var(--white);
  border: 1px solid var(--line); border-top: 5px solid var(--navy); box-shadow: var(--shadow-lg);
}
@media (min-width: 600px) { .newsletter__form { padding: 30px; } }
.nl-fields { display: grid; gap: 14px; margin-bottom: 16px; }
.nl-field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.nl-field label span { font-weight: 400; color: var(--dim); }
.nl-field input, .nl-field select {
  width: 100%; height: 52px; padding: 0 16px; font: 400 16px/1 var(--font); color: var(--text);
  background: var(--offwhite); border: 1px solid var(--line-2); border-radius: 10px; appearance: none; -webkit-appearance: none;
}
.nl-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2356657A' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 40px;
}
.nl-field input:focus, .nl-field select:focus { outline: none; border-color: var(--blue); background-color: var(--white); box-shadow: 0 0 0 4px rgba(40,120,240,.16); }
.nl-field input[aria-invalid="true"] { border-color: var(--error); }
.nl-msg { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.nl-msg[hidden] { display: none; }
.nl-msg--ok { background: #E4F5EC; color: #0E6A41; border: 1px solid #B9E3CC; }
.nl-msg--error { background: #FDECEC; color: #9E2222; border: 1px solid #F3BEBE; }
.nl-fine { margin-top: 12px; font-size: 12.5px; color: var(--dim); }
.nl-fine a { color: var(--blue-2); }

/* ---------- Modal (home page) ---------- */
.bc-modal {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0;
  border-radius: var(--radius-lg); background: var(--white); color: var(--text);
  box-shadow: 0 40px 100px -20px rgba(20,43,69,.45); overflow: hidden;
}
.bc-modal[open] { animation: bcModalIn .28s var(--ease); }
.bc-modal::backdrop { background: rgba(20,43,69,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes bcModalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.bc-modal__inner { padding: 32px 24px 24px; text-align: center; border-top: 5px solid var(--navy); }
@media (min-width: 480px) { .bc-modal__inner { padding: 36px 32px 28px; } }
.bc-modal__icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; color: #B4570F; background: #FFF3E3; box-shadow: 0 0 0 8px #FFF9F1; }
.bc-modal__icon svg { width: 30px; height: 30px; }
.bc-modal__title { font-size: 22px; letter-spacing: -.02em; margin-bottom: 10px; }
.bc-modal__desc { color: var(--muted); font-size: 15.5px; line-height: 1.55; margin-bottom: 24px; }
body.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .bc-modal[open] { animation: none; } }
.section__head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Plans (3 tiers) ---------- */
.plans--3 { max-width: 1160px; }
@media (min-width: 980px) { .plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 979px) { .plans--3 { grid-template-columns: 1fr 1fr; } .plans--3 .plan--track { grid-column: 1 / -1; } }
.plan--featured { border: 2px solid var(--blue); box-shadow: var(--shadow-lg), 0 0 0 4px rgba(40,120,240,.08); }
.plan__btn { margin-top: auto; }
.plan__ico--green { background: rgba(75,208,142,.14); color: #4BD08E; }
.plan__ico svg { width: 18px; height: 18px; }
.plan--track .plan__price strong { font-size: 36px; }
.plan--track .plan__price span { color: #93A4BB; }

/* Notify-me form inside the modal */
.bc-modal__plan { display: inline-block; margin: -12px 0 20px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--navy); background: var(--offwhite); border: 1px solid var(--line); }
.bc-modal__plan:empty { display: none; }
.notify { text-align: left; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.notify[hidden] { display: none; }
.notify__label { font-size: 14.5px; font-weight: 600; color: var(--navy); line-height: 1.45; }
.notify input {
  width: 100%; height: 50px; padding: 0 14px; font: 400 16px/1 var(--font); color: var(--text);
  background: var(--offwhite); border: 1px solid var(--line-2); border-radius: 10px;
}
.notify input:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(40,120,240,.16); }
.notify input[aria-invalid="true"] { border-color: var(--error); }
.notify input:disabled { opacity: .6; }
.notify__msg { padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.notify__msg[hidden] { display: none; }
.notify__msg--ok { background: #E4F5EC; color: #0E6A41; border: 1px solid #B9E3CC; }
.notify__msg--error { background: #FDECEC; color: #9E2222; border: 1px solid #F3BEBE; }
.bc-modal__close {
  margin-top: 14px; padding: 10px 16px; border: 0; background: none; cursor: pointer;
  font: 600 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.bc-modal__close:hover { color: var(--navy); }

/* ---------- "Why" product mock (cost report) ---------- */
.why__mock {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--white);
  border: 6px solid var(--navy); box-shadow: var(--shadow-lg);
}
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--navy); }
.mock__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); }
.mock__bar p { margin-left: 8px; font-size: 13px; font-weight: 600; color: #fff; }
.mock__body { padding: 18px 16px 14px; }
@media (min-width: 500px) { .mock__body { padding: 22px 22px 16px; } }
.mock__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.mock__kpis div { padding: 10px; border-radius: 10px; background: var(--offwhite); border: 1px solid var(--line); min-width: 0; }
.mock__kpis span { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }
.mock__kpis strong { display: block; margin-top: 4px; font-size: 18px; color: var(--navy); font-feature-settings: "tnum"; }
.mock__kpis strong.is-up { color: #C8501C; }
.mock__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mock__table th { text-align: left; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 0 6px 10px 0; border-bottom: 1px solid var(--line); }
.mock__table td { padding: 11px 6px 11px 0; border-bottom: 1px solid var(--line); color: var(--navy); white-space: nowrap; }
.mock__table td:nth-child(2) { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.mock__table td:last-child { font-size: 12.5px; color: var(--muted); }
.mock__table tr:last-child td { border-bottom: 0; }
.mock__prog { display: inline-block; vertical-align: middle; width: 56px; height: 6px; margin-right: 8px; border-radius: 999px; background: var(--offwhite); border: 1px solid var(--line); overflow: hidden; }
.mock__prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #12804F); border-radius: 999px; }
@media (max-width: 400px) { .mock__prog { width: 34px; } .mock__table { font-size: 12px; } }
.mock__foot { margin-top: 10px; font-size: 11.5px; color: var(--dim); text-align: right; }

/* ---------- Plans (4 tiers) ---------- */
.plans--4 { max-width: 1240px; }
@media (min-width: 680px) { .plans--4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .plans--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .plans--4 .plan { padding: 28px 24px; } .plans--4 .plan__price strong { font-size: 30px; } }
.plan__alt { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.plan__alt strong { color: var(--navy); }
.plan__btns { margin-top: auto; display: grid; gap: 10px; }
.plan__btns .plan__btn { margin-top: 0; }
.plan__from { font-size: 14px; color: var(--muted); margin-right: 2px; }
.plan--firm { border-top: 5px solid var(--navy); }
.plan__ico--navy { background: var(--navy); color: #fff; }
.plans__note { margin-top: 24px; text-align: center; color: var(--muted); font-size: 15px; }
.plans__note strong { color: #12804F; }
.plan__price { flex-wrap: wrap; }
.plan__price strong { white-space: nowrap; }
@media (min-width: 1180px) { .plans--4 .btn { font-size: 13px; letter-spacing: .06em; padding: 0 14px; } }

/* ---------- Hero map ---------- */
.hero__map { position: absolute; inset: 9% 6% auto 6%; width: 88%; height: 78%; }
@media (min-width: 1000px) { .hero__map { inset: 7% 4% auto 14%; width: 82%; height: 62%; } }
.map__land { fill: rgba(40,120,240,.16); stroke: #6FA6FF; stroke-width: 2; stroke-linejoin: round; }
.map__pin circle { fill: #4BD08E; stroke: #142B45; stroke-width: 2; }
.map__pin .map__pulse { fill: rgba(75,208,142,.35); stroke: none; transform-box: fill-box; transform-origin: center; animation: mapPulse 2.4s ease-out infinite; }
.map__pin:nth-child(3) .map__pulse { animation-delay: .4s; } .map__pin:nth-child(4) .map__pulse { animation-delay: .8s; }
.map__pin:nth-child(5) .map__pulse { animation-delay: 1.2s; } .map__pin:nth-child(6) .map__pulse { animation-delay: 1.6s; } .map__pin:nth-child(7) .map__pulse { animation-delay: 2s; }
@keyframes mapPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.map__pin text { font: 600 15px var(--font); fill: #fff; paint-order: stroke; stroke: #142B45; stroke-width: 4px; }
.map__label { font: 500 13px var(--mono); fill: #8DB8FF; letter-spacing: .1em; text-transform: uppercase; text-anchor: middle; }
@media (prefers-reduced-motion: reduce) { .map__pin .map__pulse { animation: none; } }

/* ---------- People illustrations ---------- */
.persona__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.persona__img svg { z-index: 1; width: 38px; height: 38px; padding: 8px; }

/* ---------- Measuring tools behind free resources ---------- */
.res-tools { position: absolute; inset: 0; pointer-events: none; color: var(--navy); opacity: .07; overflow: hidden; }
.res-tools svg { position: absolute; }
.res-tools__a { width: 340px; top: 40px; right: -40px; transform: rotate(-8deg); }
.res-tools__b { width: 380px; bottom: 40px; left: -60px; transform: rotate(6deg); }
@media (max-width: 700px) { .res-tools__a { width: 220px; top: 20px; right: -70px; } .res-tools__b { width: 240px; bottom: 10px; left: -90px; } }
#resources > .container { position: relative; z-index: 1; }

/* ---------- Yearly price ---------- */
.plan__year { margin-top: 8px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.plan__year strong { color: var(--navy); }
.plan__year span { font-size: 11.5px; font-weight: 700; color: #12804F; background: #E8F7EF; padding: 3px 8px; border-radius: 999px; }
.plan--track .plan__year { color: #B9C8DC; }
.plan--track .plan__year strong { color: #fff; }
.plan--track .plan__year span { background: rgba(75,208,142,.15); color: #4BD08E; }
/* Hero: map panel on top, sample card overlapping its lower edge (all sizes) */
.hero__map { inset: 8% 6% auto 6%; height: 72%; }
.map__pin text { font-size: 17px; }
@media (min-width: 1000px) {
  .hero__visual { padding-bottom: 0; }
  .hero__photo { aspect-ratio: 16 / 12; max-height: none; margin-left: 0; }
  .hero__visual .report { position: relative; left: auto; bottom: auto; width: auto; margin: -70px 28px 0; }
  .hero__map { inset: 6% 6% auto 6%; height: 74%; }
}
/* Real photos on audience cards (illustration underneath is the fallback) */
.persona__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.persona__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,43,69,0) 55%, rgba(20,43,69,.35)); pointer-events: none; }
.persona__img svg { z-index: 2; }

/* Final CTA: let the team photo show through */
.cta__bg {
  background:
    linear-gradient(180deg, rgba(245,247,250,.80), rgba(245,247,250,.90)),
    var(--cta-img) center 35% / cover no-repeat,
    var(--offwhite) !important;
}

/* Hero headline background: real steel truss photo (Unsplash, free licence).
   Faded with white on the left so the headline stays readable. */
:root { --hero-bg-img: url("https://images.unsplash.com/photo-1706552128399-43e2baff0fe5?auto=format&fit=crop&w=1800&q=70"); }
.hero__bg {
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 42%, rgba(255,255,255,.55) 75%, rgba(255,255,255,.35) 100%),
    linear-gradient(180deg, rgba(255,255,255,0) 70%, var(--bg) 100%),
    var(--hero-bg-img) center 40% / cover no-repeat,
    linear-gradient(180deg, var(--offwhite), var(--white)) !important;
}
@media (max-width: 999px) {
  .hero__bg {
    background:
      linear-gradient(180deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.86) 55%, rgba(255,255,255,.96) 85%, var(--bg) 100%),
      var(--hero-bg-img) center top / cover no-repeat,
      linear-gradient(180deg, var(--offwhite), var(--white)) !important;
  }
}

/* ---------- Monthly / Yearly switch ---------- */
.billing { display: flex; width: fit-content; margin: -12px auto 32px; padding: 5px; gap: 4px; border-radius: 999px; background: var(--offwhite); border: 1px solid var(--line); }
.billing__opt {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
  font: 600 14.5px/1 var(--font); color: var(--muted); background: transparent; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s;
}
.billing__opt:hover { color: var(--navy); }
.billing__opt.is-active { background: var(--navy); color: #fff; box-shadow: 0 6px 16px -8px rgba(20,43,69,.6); }
.billing__opt:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.billing__badge { font-size: 11px; font-weight: 700; color: #12804F; background: #E8F7EF; padding: 4px 8px; border-radius: 999px; }
.billing__opt.is-active .billing__badge { background: rgba(75,208,142,.2); color: #8EF0BE; }
.plan__save { margin-top: 8px; font-size: 13px; color: var(--muted); }
.plan__save[hidden], .plan__alt[hidden], .plan__btn[hidden] { display: none; }
.plan__save span { font-size: 11.5px; font-weight: 700; color: #12804F; background: #E8F7EF; padding: 3px 8px; border-radius: 999px; margin-left: 4px; }
.plan--track .plan__save { color: #B9C8DC; }
.plan--track .plan__save span { background: rgba(75,208,142,.15); color: #4BD08E; }
.plans.is-switching .plan__price strong { animation: priceIn .35s var(--ease); }
@keyframes priceIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .plans.is-switching .plan__price strong { animation: none; } }
@media (min-width: 1180px) { .plans--4 .plan__from { flex-basis: 100%; margin-bottom: -6px; } }
@media (min-width: 1180px) { .plans--4 .plan--firm .plan__price strong { font-size: 25px; } .plan__per { white-space: nowrap; } }
