/* ==========================================================================
   Surv8 — design system and site styles
   Tokens first, then base, layout, components, page sections, responsive.
   ========================================================================== */

:root {
  /* Brand palette: Black & Ice Platinum (colour 4, chosen 14 Nov 2026). Variable names kept from the first palette. */
  --navy-900: #0A0B0E;   /* near-black: hero, footer */
  --navy-800: #15171C;   /* graphite: panels on dark */
  --navy-700: #2A2E36;   /* slate: borders/hover on dark */
  --green: #8FF0E4;      /* ice aqua: CTAs, accents on dark */
  --green-600: #0F766E;  /* deep teal: accent text on white (AA) */
  --green-tint: #E6F7F5; /* pale ice wash for icon tiles */
  --white: #FFFFFF;
  --grey-50: #F2F5F8;    /* pale grey: cards, bands */
  --grey-200: #E3E8EE;   /* border grey */
  --ink: #12151A;        /* body text on white */
  --ink-2: #4A5361;      /* secondary text on white */
  --on-dark: #CDD3DA;    /* secondary text on navy */
  --on-dark-2: #9AA3AE;  /* muted text on navy */

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1200px;
  --gutter: 24px;
  --shadow-lg: 0 40px 80px -30px rgba(2, 10, 22, 0.65);
  --shadow-card: 0 18px 40px -24px rgba(10,11,14, 0.35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--green-600); text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; color: var(--navy-900); }
p { margin: 0; }
ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.on-light :focus-visible, .section :focus-visible { outline-color: var(--green-600); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 200; background: var(--green); color: var(--navy-900); padding: 12px 18px; border-radius: 10px; font-weight: 800; }
.skip-link:focus { top: 12px; color: var(--navy-900); }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; color: var(--white); }
.logo:hover { color: var(--white); }
.logo-mark { width: 52px; height: 26px; flex: none; }
.logo-word { font-weight: 800; font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1; }
.logo-word .eight { color: var(--green); }
.logo.on-light-logo { color: var(--navy-900); }
.logo.on-light-logo .eight { color: var(--green-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 10px;
  font: inherit; font-weight: 800; font-size: 1.02rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-green { background: var(--green); color: var(--navy-900); }
.btn-green:hover { color: var(--navy-900); background: #B5F7EE; box-shadow: 0 10px 30px -8px rgba(143,240,228, .55); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .85); }
.btn-outline:hover { color: var(--navy-900); background: var(--white); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { color: var(--white); background: var(--navy-700); }
.btn-outline-dark { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-outline-dark:hover { background: var(--navy-900); color: var(--white); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(10,11,14, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
.nav-toggle { display: none; min-width: 48px; min-height: 48px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--white); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { list-style: none; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  color: var(--white); font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none;
  background: none; border: 0; cursor: pointer; border-radius: 8px;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--green); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px;
  background: var(--navy-800); border: 1px solid var(--navy-700); border-radius: 14px;
  padding: 8px; list-style: none; box-shadow: var(--shadow-lg);
}
.dropdown[hidden] { display: none; }
.dropdown a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; color: var(--white); text-decoration: none; font-weight: 700; font-size: .95rem; }
.dropdown a span { font-weight: 500; font-size: .82rem; color: var(--on-dark-2); }
.dropdown a:hover { background: var(--navy-700); color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(120% 90% at 85% 10%, #1A1D23 0%, var(--navy-900) 55%);
  padding-top: 64px;
}
.hero-photo { position: absolute; z-index: 0; top: 0; right: 0; width: min(100%, 1700px); pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(180deg, #000 62%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 22%);
          mask-composite: intersect; }
.hero-photo img { width: 100%; height: auto; }
.hero-devices { position: relative; z-index: 2; margin-top: -90px; padding-bottom: 130px; }
.hero-devices .showcase { max-width: 980px; margin: 0 auto; }
.hero-ribbon { position: absolute; z-index: 1; right: -7%; top: -9%; width: min(1100px, 70%); mix-blend-mode: screen; pointer-events: none; animation: ribbon-drift 16s ease-in-out infinite; }
.hero-ribbon img { width: 100%; height: auto; }
@keyframes ribbon-drift { 0%,100% { transform: translate(0,0) rotate(0deg) scale(1); } 50% { transform: translate(-10px, 8px) rotate(-1.2deg) scale(1.015); } }
.hero::after { /* soften art into navy at top for the header */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,11,14,.55) 0%, rgba(10,11,14,0) 22%, rgba(10,11,14,0) 70%, rgba(10,11,14,.35) 100%);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; min-height: min(56vw, 860px); padding-bottom: 40px; }
.hero .hero-ribbon { display: none; }
.hero-title { font-size: clamp(3.6rem, 9vw, 7.2rem); font-weight: 800; letter-spacing: -0.045em; line-height: .95; color: var(--white); }
.hero-title .eight { color: var(--green); text-shadow: 0 0 40px rgba(143,240,228, .35); }
.hero-sub { margin-top: 22px; font-size: clamp(1.6rem, 3.1vw, 2.55rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--white); max-width: 15em; }
.powered { margin-top: 26px; display: flex; align-items: center; gap: 18px; font-size: 1.35rem; font-weight: 600; color: var(--white); }
.powered::before { content: ""; width: 58px; height: 4px; border-radius: 4px; background: var(--green); flex: none; }
.powered strong { font-weight: 800; color: var(--white); }
.powered strong .si { color: var(--green); }
.hero-desc { margin-top: 22px; color: var(--on-dark); font-size: 1.08rem; max-width: 30em; text-shadow: 0 1px 12px rgba(10,11,14,.8); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px; }

/* Product showcase: laptop + phone are live HTML over the artwork */
.showcase { position: relative; min-height: 0; aspect-ratio: 1.75 / 1; perspective: 1800px; }
.laptop { position: absolute; left: 2%; top: 40px; width: 86%; transform: rotateY(-16deg) rotateX(4deg) rotateZ(.6deg); transform-style: preserve-3d; filter: drop-shadow(0 50px 50px rgba(0,0,0,.55)); animation: float-laptop 9s ease-in-out infinite; }
.laptop-lid { background: #1A1F27; border-radius: 16px 16px 6px 6px; padding: 12px 12px 14px; border: 1px solid #3A414C; box-shadow: inset 0 0 0 2px #0D1117; }
.laptop-base { height: 18px; margin: 0 -7%; background: linear-gradient(180deg, #D8DDE3 0%, #A7AFBA 60%, #7D8692 100%); border-radius: 0 0 18px 18px; position: relative; }
.laptop-base::before { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 6px; background: #8A929D; border-radius: 0 0 8px 8px; }
.phone { position: absolute; right: 0; bottom: -10px; width: 30%; max-width: 210px; transform: rotateY(-10deg) rotateX(2deg); filter: drop-shadow(0 40px 40px rgba(0,0,0,.6)); animation: float-phone 9s ease-in-out infinite; }
@keyframes float-laptop { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes float-phone { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* App UI shared by laptop + large mock-ups */
.app { display: grid; grid-template-columns: 26% minmax(0, 1fr); background: var(--grey-50); border-radius: 8px; overflow: hidden; font-size: 11px; line-height: 1.3; color: var(--ink); aspect-ratio: 16 / 10; }
.app-side { background: var(--navy-900); color: var(--white); padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.app-brand { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 13px; padding: 2px 6px 10px; }
.app-brand svg { width: 24px; height: 12px; }
.app-brand .eight { color: var(--green); }
.app-nav { display: flex; align-items: center; gap: 7px; padding: 5px 7px; border-radius: 6px; color: #D7E0EA; font-weight: 600; white-space: nowrap; overflow: hidden; }
.app-nav svg { width: 11px; height: 11px; flex: none; }
.app-nav.active { background: var(--green); color: var(--navy-900); }
.app-main { padding: 12px; display: grid; gap: 9px; align-content: start; min-width: 0; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-top h4 { font-size: 15px; letter-spacing: -0.01em; }
.demo-tag { font-size: 8.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); border: 1px solid var(--grey-200); background: var(--white); border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.kpi { background: var(--white); border-radius: 6px; padding: 7px 8px; border: 1px solid var(--grey-200); min-width: 0; }
.kpi span { display: block; color: var(--ink-2); font-size: 9px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b { display: block; font-size: 15px; font-weight: 800; margin-top: 2px; }
.kpi i { font-style: normal; font-size: 8.5px; color: var(--green-600); font-weight: 700; }
.chart { background: var(--white); border-radius: 6px; border: 1px solid var(--grey-200); padding: 6px 8px; }
.chart svg { width: 100%; height: auto; }
.flow { background: var(--white); border-radius: 6px; border: 1px solid var(--grey-200); padding: 7px 8px; }
.flow-title { font-weight: 700; font-size: 10px; margin-bottom: 6px; }
.flow-steps { display: flex; align-items: center; justify-content: space-between; gap: 3px; }
.flow-step { display: grid; justify-items: center; gap: 2px; font-size: 8.5px; font-weight: 600; color: var(--ink-2); }
.flow-step .ic { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; border: 1px solid var(--grey-200); background: var(--grey-50); }
.flow-step .ic svg { width: 12px; height: 12px; }
.flow-step.done .ic { background: #3CC7B5; border-color: #3CC7B5; color: var(--white); }
.flow-arrow { color: #9AA6B6; font-size: 10px; }

/* Phone */
.phone-frame { background: #10141A; border-radius: 30px; padding: 8px; border: 1px solid #39404B; box-shadow: inset 0 0 0 2px #05070A; }
.phone-screen { background: var(--white); border-radius: 23px; overflow: hidden; aspect-ratio: 9 / 19; display: flex; flex-direction: column; font-size: 10px; color: var(--ink); position: relative; }
.phone-notch { position: absolute; top: 6px; left: 50%; translate: -50% 0; width: 34%; height: 14px; background: #10141A; border-radius: 10px; z-index: 2; }
.phone-head { background: var(--navy-900); color: var(--white); padding: 26px 12px 12px; display: flex; align-items: center; justify-content: center; gap: 5px; font-weight: 800; font-size: 14px; }
.phone-head svg { width: 26px; height: 13px; }
.phone-head .eight { color: var(--green); }
.phone-body { padding: 12px 10px; display: grid; gap: 7px; align-content: start; flex: 1; background: var(--grey-50); }
.phone-body h5 { margin: 0 0 2px; font-size: 12px; font-weight: 800; }
.p-step { display: flex; align-items: center; gap: 7px; background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; padding: 6px 7px; font-weight: 600; font-size: 9.5px; }
.p-step .tick { width: 13px; height: 13px; border-radius: 50%; background: #3CC7B5; display: grid; place-items: center; flex: none; }
.p-step .tick svg { width: 8px; height: 8px; color: var(--white); }
.p-step.current { background: var(--green); border-color: var(--green); color: var(--navy-900); }
.p-step.todo .tick { background: var(--grey-200); }
.p-house { margin-top: auto; height: 64px; border-radius: 8px; background-size: cover; background-position: center; }

/* Curved transition from navy into white */
.curve { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; pointer-events: none; }
.curve svg { width: 100%; height: clamp(60px, 9vw, 140px); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 72px 0; }
.band-grey { background: var(--grey-50); }
.band-navy { background: var(--navy-900); color: var(--white); }
.band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy p { color: var(--on-dark); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green-600); }
.band-navy .eyebrow, .page-hero .eyebrow { color: var(--green); }
.eyebrow svg { width: 30px; height: 15px; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-top: 14px; }
.section-head p { margin-top: 18px; font-size: 1.12rem; color: var(--ink-2); }
.band-navy .section-head p { color: var(--on-dark); }
.green { color: var(--green-600); }
.band-navy .green, .page-hero .green, .cta-band .green, .hero .green { color: var(--green); }

/* Capabilities headline row (matches concept: big infinity + headline) */
.lifelong { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; text-align: center; margin-bottom: 44px; }
.lifelong svg { width: 104px; height: 52px; flex: none; }
.lifelong h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 800; }

/* Eight capability cards */
.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cap {
  background: var(--grey-50); border: 1px solid transparent; border-radius: var(--radius);
  padding: 28px 14px 26px; text-align: center; display: grid; justify-items: center; align-content: start; gap: 12px;
  text-decoration: none; color: var(--ink); position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.cap:hover { transform: translateY(-4px); background: var(--white); border-color: var(--grey-200); box-shadow: var(--shadow-card); color: var(--ink); }
.cap-num { position: absolute; top: 12px; left: 14px; font-size: .72rem; font-weight: 800; color: #8B97A8; letter-spacing: .06em; }
.cap svg { width: 46px; height: 46px; color: #3CC7B5; }
.cap h3 { font-size: 1.12rem; font-weight: 800; line-height: 1.2; }
.cap p { font-size: .93rem; color: var(--ink-2); line-height: 1.45; }

/* Split feature: copy + visual */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; margin-top: 14px; }
.split .lead { margin-top: 18px; font-size: 1.1rem; color: var(--ink-2); }
.band-navy .split .lead { color: var(--on-dark); }
.checks { list-style: none; padding: 0; margin-top: 26px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink); font-weight: 600; }
.band-navy .checks li { color: var(--white); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071426' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }

/* Desktop window mock-up (large) */
.window { border-radius: 16px; background: #1A1F27; padding: 10px; box-shadow: var(--shadow-lg); border: 1px solid #2C333E; }
.window-bar { display: flex; gap: 6px; padding: 2px 4px 9px; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A414C; }
.window .app { font-size: 12px; aspect-ratio: auto; min-height: 380px; }
.table { background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; overflow: hidden; }
.tr { display: grid; grid-template-columns: 1.4fr 1fr .9fr .9fr; gap: 6px; padding: 7px 10px; border-top: 1px solid var(--grey-200); align-items: center; font-size: 10.5px; }
.tr:first-child { border-top: 0; background: var(--grey-50); font-weight: 800; color: var(--ink-2); font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; }
.tr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { display: inline-block; border-radius: 999px; padding: 2px 8px; font-weight: 700; font-size: 9.5px; white-space: nowrap; }
.chip.g { background: #E6F7F5; color: #0F766E; }
.chip.b { background: #E1ECFA; color: #1F4E8A; }
.chip.a { background: #FFF1D6; color: #8A5A00; }
.chip.n { background: var(--grey-50); color: var(--ink-2); border: 1px solid var(--grey-200); }
.pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.pipe-col { background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; padding: 7px; display: grid; gap: 5px; align-content: start; min-width: 0; }
.pipe-col h6 { margin: 0 0 2px; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); display: flex; justify-content: space-between; }
.pcard { border: 1px solid var(--grey-200); border-radius: 6px; padding: 6px; font-size: 10px; background: var(--grey-50); display: grid; gap: 2px; }
.pcard b { font-size: 10.5px; }
.pcard small { color: var(--ink-2); font-size: 9px; }
.timeline { background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; padding: 8px 10px; display: grid; gap: 7px; }
.tl { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: start; font-size: 10.5px; }
.tl::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-top: 3px; box-shadow: 0 0 0 3px #E6F7F5; }
.tl small { color: var(--ink-2); font-size: 9.5px; }
.two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 9px; }

/* AI workspace */
.ai-pane { background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; padding: 10px; display: grid; gap: 8px; font-size: 11px; }
.ai-msg { border-radius: 8px; padding: 8px 10px; background: var(--grey-50); }
.ai-msg.ai { background: #E6F7F5; border: 1px solid #E8FFFC; }
.ai-msg b { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 3px; }
.ai-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ai-btn { border-radius: 6px; padding: 4px 9px; font-weight: 700; font-size: 10px; border: 1px solid var(--grey-200); background: var(--white); }
.ai-btn.ok { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.guard { display: flex; gap: 6px; align-items: center; font-size: 9.5px; color: var(--ink-2); }
.guard svg { width: 12px; height: 12px; color: var(--green-600); }

/* Flow diagram (marketing) */
.pathway { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; position: relative; }
.pathway::before { content: ""; position: absolute; left: 7%; right: 7%; top: 38px; height: 3px; background: linear-gradient(90deg, rgba(143,240,228,.2), var(--green), rgba(143,240,228,.2)); border-radius: 3px; }
.pathway li { position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; padding: 0 6px; }
.pathway .node { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: var(--navy-800); border: 1px solid var(--navy-700); box-shadow: 0 0 0 6px var(--navy-900); }
.pathway .node svg { width: 32px; height: 32px; color: var(--green); }
.pathway li:last-child .node { background: var(--green); border-color: var(--green); }
.pathway li:last-child .node svg { color: var(--navy-900); }
.pathway b { color: var(--white); font-size: 1rem; }
.pathway small { color: var(--on-dark-2); font-size: .85rem; line-height: 1.35; }

/* Phones trio (white-label) */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; gap: 36px; align-items: end; }
.phones .phone-frame { box-shadow: 0 40px 60px -30px rgba(0,0,0,.7); }
.phones > div:nth-child(2) { transform: translateY(-28px); }
.brand-a .phone-head { background: #1D2B4F; }
.brand-a .p-step.current { background: #F2B544; border-color: #F2B544; }
.brand-b .phone-head { background: #2E3B32; }
.brand-b .p-step.current { background: #8FD3C1; border-color: #8FD3C1; }
.brand-c .phone-head { background: #3B2440; }
.brand-c .p-step.current { background: #E9A6C8; border-color: #E9A6C8; }
.phone-head .firm { font-weight: 800; letter-spacing: .02em; }
.powered-tiny { text-align: center; font-size: 8px; color: var(--ink-2); padding: 6px 0 8px; background: var(--grey-50); }
.phone-caption { text-align: center; margin-top: 16px; color: var(--on-dark-2); font-size: .9rem; }

/* Infinity journey */
.journey { position: relative; max-width: 1040px; margin: 0 auto; }
.journey-art { position: relative; aspect-ratio: 2.1 / 1; }
.journey-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; }
.journey-art svg.labels { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.j-label { font-family: var(--font); font-weight: 800; font-size: 15px; fill: var(--white); }
.j-dot { fill: var(--green); }
.j-dot-ring { fill: none; stroke: rgba(143,240,228,.35); stroke-width: 6; }
.journey-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.journey-key div { border: 1px solid var(--navy-700); border-radius: var(--radius); padding: 22px 24px; background: rgba(21,23,28, .6); }
.journey-key h3 { font-size: 1.15rem; }
.journey-key p { margin-top: 6px; }
.journey-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.journey-list li { border: 1px solid var(--navy-700); border-radius: 999px; padding: 4px 12px; font-size: .88rem; font-weight: 700; color: var(--white); }

/* Retention stages */
.stages { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.stages li { counter-increment: st; background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; position: relative; }
.stages li::before { content: counter(st, decimal-leading-zero); font-weight: 800; color: var(--green-600); font-size: .9rem; letter-spacing: .08em; }
.stages li:not(:last-child)::after { content: ""; position: absolute; right: -13px; top: 50%; width: 10px; height: 10px; border-top: 3px solid var(--green-600); border-right: 3px solid var(--green-600); transform: translateY(-50%) rotate(45deg); }
.stages h3 { font-size: 1.15rem; }
.stages p { color: var(--ink-2); font-size: .97rem; }

/* Responsibilities */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.role { border-radius: var(--radius); padding: 36px; border: 1px solid var(--grey-200); background: var(--white); display: grid; gap: 18px; align-content: start; }
.role.platform { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.role.platform h3 { color: var(--white); }
.role-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.role h3 { font-size: 1.4rem; }
.badge { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 6px 12px; background: var(--grey-50); color: var(--ink-2); }
.role.platform .badge { background: var(--green); color: var(--navy-900); }
.role.platform .checks li { color: var(--white); }
.role .fine { font-size: .92rem; color: var(--on-dark); border-top: 1px solid var(--navy-700); padding-top: 16px; }

/* Generic cards grid */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--grey-50); border-radius: var(--radius); padding: 30px; display: grid; gap: 12px; align-content: start; border: 1px solid transparent; transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
a.card { text-decoration: none; color: var(--ink); }
a.card:hover { background: var(--white); border-color: var(--grey-200); transform: translateY(-3px); color: var(--ink); }
.card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--green-tint); display: grid; place-items: center; }
.card .ic svg { width: 28px; height: 28px; color: #3CC7B5; }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--ink-2); font-size: .98rem; }
.card .more { font-weight: 800; color: var(--green-600); font-size: .95rem; margin-top: 4px; }
.band-navy .card { background: var(--navy-800); border-color: var(--navy-700); }
.band-navy .card h3 { color: var(--white); }
.band-navy .card p { color: var(--on-dark); }
.band-navy .card .ic { background: rgba(143,240,228,.12); }
.band-navy .card .ic svg { color: var(--green); }

.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 4px 10px; justify-self: start; }
.status-pill.live { background: #E6F7F5; color: #0F766E; }
.status-pill.concept { background: #FFF1D6; color: #7A4F00; }
.band-navy .status-pill.live { background: rgba(143,240,228,.16); color: var(--green); }
.band-navy .status-pill.concept { background: rgba(242,181,68,.16); color: #F2C46D; }

/* Page hero (secondary pages) */
.page-hero { position: relative; overflow: hidden; background: radial-gradient(110% 120% at 90% 0%, #1C2026 0%, var(--navy-900) 60%); color: var(--white); padding: 88px 0 150px; }
.page-hero .ribbon-bg { position: absolute; right: -12%; top: -10%; width: 70%; max-width: 900px; opacity: .55; mix-blend-mode: screen; pointer-events: none; animation: drift 18s ease-in-out infinite; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -0.035em; margin-top: 16px; max-width: 14em; }
.page-hero p.lead { margin-top: 22px; color: var(--on-dark); font-size: 1.15rem; max-width: 40em; }
.page-hero .hero-actions { margin-top: 30px; }
.crumbs { font-size: .88rem; color: var(--on-dark-2); }
.crumbs a { color: var(--on-dark); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
@keyframes drift { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-14px, 10px) rotate(-1.5deg); } }

/* Pricing */
.price-card { background: var(--white); border: 1px solid var(--grey-200); border-radius: 24px; padding: 44px; box-shadow: var(--shadow-card); display: grid; gap: 18px; }
.price-card h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.contact-box { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px; background: var(--grey-50); border: 1px solid var(--grey-200); }
.contact-box .addr { font-weight: 800; font-size: 1.1rem; color: var(--navy-900); overflow-wrap: anywhere; }
.contact-box .lbl { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }

/* Details / FAQ */
.faqs { display: grid; gap: 12px; max-width: 860px; }
.faq { background: var(--white); border: 1px solid var(--grey-200); border-radius: 14px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 22px; font-weight: 800; color: var(--navy-900); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--green-tint); color: var(--green-600); display: grid; place-items: center; font-size: 1.3rem; }
.faq[open] summary::after { content: "\2212"; }
.faq p { padding: 0 22px 20px; color: var(--ink-2); }

/* Closing CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--navy-900); color: var(--white); padding: 110px 0; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 50%, rgba(143,240,228,.12), transparent 70%); }
.cta-band .ribbon-bg { position: absolute; left: 50%; top: 50%; width: min(1100px, 120%); translate: -50% -50%; opacity: .35; mix-blend-mode: screen; pointer-events: none; animation: drift 20s ease-in-out infinite; }
.cta-band .container { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; }
.cta-band .logo-word { font-size: 2.6rem; }
.cta-band .logo-mark { width: 84px; height: 42px; }
.cta-band h2 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; max-width: 16em; }
.cta-band p { color: var(--on-dark); font-size: 1.15rem; max-width: 36em; }
.cta-band .hero-actions { justify-content: center; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--on-dark); position: relative; overflow: hidden; border-top: 1px solid var(--navy-700); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding: 44px 0 32px; border-bottom: 1px solid var(--navy-700); }
.footer-top .divider { width: 1px; height: 38px; background: rgba(255,255,255,.35); }
.footer-top .powered { margin: 0; font-size: 1.15rem; }
.footer-top .powered::before { display: none; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 40px 0; }
.footer-grid h2 { color: var(--white); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid a { color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }
.footer-grid a:hover { color: var(--green); }
.footer-legal { border-top: 1px solid var(--navy-700); padding: 28px 0 40px; font-size: .9rem; display: grid; gap: 10px; color: var(--on-dark-2); }
.footer-legal p { max-width: 72em; }
.footer-houses { position: absolute; right: 2%; top: 22px; width: 300px; opacity: .55; pointer-events: none; }

/* ---------- Legal pages ---------- */
.draft-banner { display: inline-block; background: #FFF4D6; border: 2px solid #B7791F; color: #5C3D00; border-radius: 12px; padding: 10px 18px; font-weight: 800; }
.review-flag { background: #FFF4D6; border-left: 4px solid #B7791F; color: #5C3D00; border-radius: 8px; padding: 12px 16px; font-size: .95rem; }
.prose { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin-top: 44px; margin-bottom: 12px; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.table-wrap { overflow-x: auto; margin-bottom: 16px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--grey-200); vertical-align: top; }
.prose th { background: var(--grey-50); color: var(--navy-900); }

/* ---------- Scroll reveal (content visible by default; JS adds motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* ---------- Funnel home + demo form ---------- */
.eyebrow-gap { margin-top: 22px; }
.hero-trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--on-dark); font-size: .95rem; }
.hero-trust svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.pains .card .ic { background: #FDECEC; }
.pains .card .ic svg { color: #B42318; }
.pain-turn { margin: 34px auto 0; max-width: 760px; text-align: center; font-size: 1.2rem; font-weight: 800; color: var(--navy-900); }
.pain-turn a { display: inline-flex; align-items: center; gap: 6px; color: var(--green-600); white-space: nowrap; }
.pain-turn a svg { width: 18px; height: 18px; }
.stages.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phones-wrap { display: flex; flex-direction: column; align-items: center; }
.band-grey .faqs { margin: 0 auto; }
.band-grey .faqs > h2 { text-align: center; }
.demo-section .split { align-items: start; }
.form-card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); }
.form-card.light { border: 1px solid var(--grey-200); box-shadow: var(--shadow-card); }
.form-card h2 { font-size: 1.5rem; margin-bottom: 18px; }
.demo-form .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.demo-form .field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.demo-form .span-2 { grid-column: 1 / -1; }
.demo-form label, .demo-form legend { font-weight: 700; font-size: .92rem; color: var(--navy-900); padding: 0; }
.demo-form legend { margin-bottom: 8px; }
.demo-form .opt { font-weight: 500; color: var(--ink-2); }
.demo-form input[type=text], .demo-form input[type=email], .demo-form input[type=tel], .demo-form select, .demo-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1.5px solid var(--grey-200); border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.demo-form textarea { resize: vertical; min-height: 90px; }
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(15,118,110,.18); }
.demo-form .has-error input, .demo-form .has-error select, .demo-form .has-error textarea { border-color: #B42318; }
.demo-form .field-err { color: #B42318; font-size: .88rem; font-weight: 600; margin: 0; }
.form-alert { background: #FEF3F2; border: 1px solid #FECDCA; color: #7A271A; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.form-alert p { margin: 4px 0 0; color: inherit; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--grey-200); border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--ink); background: var(--white); transition: background .15s, border-color .15s; }
.pill input:checked + span { background: var(--green-tint); border-color: var(--green-600); color: var(--green-600); }
.pill input:focus-visible + span { outline: 3px solid rgba(15,118,110,.35); outline-offset: 2px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; color: var(--ink-2) !important; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--green-600); }
.btn-block { width: 100%; justify-content: center; margin-top: 22px; }
.form-note { text-align: center; color: var(--ink-2) !important; font-size: .9rem; margin: 12px 0 0; }
.sticky-cta { display: none; }
@media (max-width: 1024px) { .stages.three { grid-template-columns: minmax(0, 1fr); } .stages.three li::after { display: none; } }
@media (max-width: 720px) {
  .demo-form .form-grid { grid-template-columns: minmax(0, 1fr); }
  .phones-wrap .phones { grid-template-columns: repeat(2, minmax(0, 170px)); gap: 16px; }
  .phones-wrap .phones > div:nth-child(2) { transform: translateY(-20px); }
  .form-card { padding: 22px 18px; }
  .sticky-cta { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; justify-content: center; align-items: center; gap: 8px; min-height: 52px; border-radius: 999px; background: var(--green); color: var(--navy-900); font-weight: 800; box-shadow: 0 12px 30px -10px rgba(2,10,22,.6); transition: transform .25s, opacity .25s; }
  .sticky-cta svg { width: 18px; height: 18px; }
  .sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
}

/* ---------- Lean business: hero question, price tags, case study ---------- */
.quick-q { margin-top: 26px; max-width: 500px; }
.quick-q-title { font-weight: 800; color: var(--white); font-size: 1.05rem; margin: 0 0 12px; }
.quick-q-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.quick-q-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1.5px solid rgba(143,240,228,.35); color: var(--white); font-weight: 700; font-size: .93rem; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.quick-q-list a:hover, .quick-q-list a:focus-visible { background: var(--green); border-color: var(--green); color: var(--navy-900); }
.price-tag { display: inline-block; justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--green-tint); color: var(--green-600); font-weight: 800; font-size: .82rem; }
.case-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.case-stat { background: var(--navy-800); border: 1px solid var(--navy-700); border-radius: var(--radius); padding: 24px; display: grid; gap: 6px; }
.case-stat b { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--green); line-height: 1.05; }
.case-stat span { color: var(--white); font-weight: 700; }
.case-stat small { color: var(--on-dark-2); font-size: .85rem; }
.case-stat.big { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(143,240,228,.14), rgba(143,240,228,.03)); border-color: rgba(143,240,228,.4); }
.case-note { grid-column: 1 / -1; color: var(--on-dark-2) !important; font-size: .88rem; margin: 0; }
@media (max-width: 720px) { .case-stats { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 1180px) {
  .caps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .primary-nav { gap: 12px; }
  .nav-link { padding: 0 10px; }
}
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-900); border-bottom: 1px solid var(--navy-700); padding: 12px var(--gutter) 24px; flex-direction: column; align-items: stretch; gap: 12px; max-height: calc(100vh - 80px); overflow-y: auto; box-shadow: var(--shadow-lg); }
  .primary-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; justify-content: space-between; padding: 0 8px; min-height: 48px; }
  .dropdown { position: static; box-shadow: none; margin: 4px 0 8px; min-width: 0; }
  .header-actions { flex-direction: column; align-items: stretch; }
  .header-actions .btn { width: 100%; }
  .site-header .header-row { position: relative; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-bottom: 20px; min-height: 0; gap: 12px; }
  .hero-photo { width: 150%; right: -38%; opacity: .55; }
  .hero-devices { margin-top: 0; padding-bottom: 110px; }
  .hero-ribbon { width: 115%; right: -30%; top: 34%; opacity: .9; }
  .showcase { aspect-ratio: 1.35 / 1; }
  .split, .roles { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .cards, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages li::after { display: none; }
  .pathway { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 32px; }
  .pathway::before { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-houses { display: none; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cap { padding: 26px 12px 22px; }
  .cards, .cards.four, .stages, .journey-key { grid-template-columns: minmax(0, 1fr); }
  .checks.two-col { grid-template-columns: minmax(0, 1fr); }
  .phones { grid-template-columns: minmax(0, 220px); gap: 28px; }
  .phones > div:nth-child(2) { transform: none; }
  .pathway { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-top: 36px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .powered { font-size: 1.1rem; }
  /* Recompose the device scene for phones: draw at desktop size, then scale down */
  .hero-devices .showcase { width: 100%; max-width: none; zoom: .56; aspect-ratio: 1.3 / 1; margin: 0; }
  .hero-photo { position: relative; display: block; width: 150%; right: auto; margin: -36px 0 -70px -42%; opacity: 1; }
  .hero-ribbon { top: 50%; width: 140%; right: -45%; }
  .role, .price-card { padding: 26px; }
  .page-hero { padding: 56px 0 110px; }
  .window .app { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .window .app-side { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .footer-top .divider { display: none; }
  .j-label { font-size: 22px; }
}
@media (max-width: 400px) {
  .caps { grid-template-columns: minmax(0, 1fr); }
  .logo-word { font-size: 1.5rem; }
  .logo-mark { width: 44px; height: 22px; }
}

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

@media print {
  .site-header, .nav-toggle, .cta-band .ribbon-bg { display: none; }
}

/* ---------- Self-drawing ribbons ---------- */
.hero-photo picture, .hero-photo img { display: block; width: 100%; height: auto; }
.hero-photo .rd { position: absolute; inset: 0; width: 100%; height: 100%; }
.rd { overflow: visible; }
.rd-comet { opacity: 0; mix-blend-mode: screen; pointer-events: none; }
.js .rd[data-draw] .rd-path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.js .rd[data-draw] .rd-full { opacity: 0; transition: opacity .9s ease; }
.js .rd.rd-done .rd-full { opacity: 1; }
.rd-loop.rd-done .rd-img, .ribbon-bg.rd-done .rd-img { animation: rd-pulse 1.8s ease-out 1; }
@keyframes rd-pulse { 0% { filter: none; } 30% { filter: brightness(1.35) saturate(1.15); } 100% { filter: none; } }
.journey-art .rd { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }
.cta-band svg.ribbon-bg { height: auto; aspect-ratio: 1600 / 867; opacity: .45; }
/* Dashboard figures */
.kpi b.ticked { animation: kpi-tick .9s ease-out 1; }
@keyframes kpi-tick { 0% { color: var(--green-600); transform: translateY(-2px); } 100% { color: inherit; transform: none; } }
.js .chart-line { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.js .chart.pending .chart-line { stroke-dashoffset: 1; }
.js .chart.pending .chart-area, .js .chart.pending .chart-dot { opacity: 0; }
.chart-line { transition: stroke-dashoffset 1.8s cubic-bezier(.45,0,.2,1); }
.chart-area, .chart-dot { transition: opacity 1s ease .9s; }
@media (prefers-reduced-motion: reduce) {
  .js .rd[data-draw] .rd-path { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .rd[data-draw] .rd-full { opacity: 1; }
  .rd-img { animation: none !important; }
}

/* ---------- Benefits + sectors (14 Nov) ---------- */
.one-partner { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; font-weight: 700; color: var(--ink); }
.one-partner svg { width: 22px; height: 22px; color: var(--green-600); flex: none; }
.sectors { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 980px; }
.sectors li { padding: 12px 20px; border-radius: 999px; background: var(--white); border: 1px solid var(--grey-200); font-weight: 600; font-size: .98rem; color: var(--ink); }

/* ---------- Heart of your business ---------- */
.heart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.heart-item { background: var(--grey-50); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 22px; display: grid; gap: 6px; align-content: start; }
.heart-item svg { width: 26px; height: 26px; color: var(--green-600); }
.heart-item h3 { font-size: 1.05rem; }
.heart-item p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.heart-core { background: radial-gradient(circle at 50% 40%, var(--navy-700), var(--navy-900) 70%); border-radius: var(--radius); display: grid; place-items: center; align-content: center; gap: 6px; padding: 26px; text-align: center; box-shadow: 0 0 0 4px rgba(143,240,228,.25), 0 24px 50px -20px rgba(10,11,14,.7); }
.heart-core svg { width: 40px; height: 40px; color: var(--green); animation: heartbeat 2.4s ease-in-out infinite; }
.heart-core .logo-word { font-size: 2rem; color: var(--white); }
.heart-core .eight { color: var(--green); }
.heart-core small { color: var(--on-dark); font-weight: 700; letter-spacing: .04em; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.14); } 24% { transform: scale(1); } 36% { transform: scale(1.1); } 48% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .heart-core svg { animation: none; } }
@media (max-width: 1024px) { .heart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .heart-core { grid-column: 1 / -1; order: -1; } }
@media (max-width: 560px) { .heart-grid { grid-template-columns: minmax(0, 1fr); } }
.cards.one-col { grid-template-columns: minmax(0, 1fr); align-content: center; }
.band-navy .cards .card { background: var(--navy-800); border-color: var(--navy-700); }
/* ---------- Currency ---------- */
.fx-note { color: var(--ink-2); font-size: .9rem; margin-top: 18px; }
html:not([data-cur="USD"]) .fx-note { display: none; }
.cur-switch { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cur-switch button { font: inherit; font-size: .85rem; color: var(--on-dark-2); background: transparent; border: 1px solid var(--navy-700); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.cur-switch button:hover { color: var(--white); }
html[data-cur="GBP"] .cur-switch [data-cur="GBP"], html[data-cur="USD"] .cur-switch [data-cur="USD"] { color: var(--navy-900); background: var(--green); border-color: var(--green); }
/* ---------- End to end ---------- */
.stages.e2e { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stages.e2e li:nth-child(3n)::after { display: none; }
.stages.e2e .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-tint); color: var(--green-600); }
.stages.e2e .ic svg { width: 24px; height: 24px; }
@media (max-width: 1024px) { .stages.e2e { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stages.e2e li::after { display: none; } }
@media (max-width: 560px) { .stages.e2e { grid-template-columns: minmax(0, 1fr); } }
/* ---------- Languages ---------- */
:root:lang(el) { --font: "Manrope", system-ui, -apple-system, "Segoe UI", "Noto Sans", Roboto, Arial, sans-serif; }
:root:lang(ar) { --font: "Noto Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", system-ui, sans-serif; }
:root:lang(zh-Hans) { --font: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
:root:lang(ar) body, :root:lang(zh-Hans) body { letter-spacing: 0; }
:root:lang(ar) .eyebrow, :root:lang(zh-Hans) .eyebrow { letter-spacing: 0; }
.nav-lang .nav-link svg:first-child { width: 18px; height: 18px; }
.nav-lang .dropdown { min-width: 180px; right: 0; left: auto; }
.nav-lang .dropdown a[aria-current="true"] { color: var(--green); }
.lang-bar { background: var(--navy-800); color: var(--on-dark); border-bottom: 1px solid var(--navy-700); font-size: .95rem; }
.lang-bar .container { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.lang-bar p { margin: 0; flex: 1 1 auto; }
.lang-bar a { color: var(--navy-900); background: var(--green); border-radius: 999px; padding: 6px 14px; font-weight: 700; text-decoration: none; }
.lang-bar button { background: transparent; border: 0; color: var(--on-dark-2); font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
/* Right-to-left (Arabic) */
[dir="rtl"] .btn svg, [dir="rtl"] .pain-turn a svg, [dir="rtl"] .one-partner svg { transform: scaleX(-1); }
[dir="rtl"] .stages li:not(:last-child)::after { right: auto; left: -13px; transform: translateY(-50%) rotate(-135deg); }
[dir="rtl"] .dropdown { left: auto; right: 0; }
[dir="rtl"] .nav-lang .dropdown { right: auto; left: 0; }
[dir="rtl"] .hero { background: radial-gradient(120% 90% at 15% 10%, #1A1D23 0%, var(--navy-900) 55%); }
[dir="rtl"] .hero-photo { right: auto; left: 0; transform: scaleX(-1); }
@media (max-width: 1024px) { [dir="rtl"] .hero-photo { left: -38%; } }
[dir="rtl"] .money { direction: ltr; unicode-bidi: isolate; }

/* Long button labels in other languages: wrap rather than overflow on phones */
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; max-width: 100%; }
  .pain-turn a { white-space: normal; display: inline; }
}

/* Your Surv8 loop (home): the logo's 8 with a beating heart; wide view on larger screens, upright on phones */
.loop8-fig { margin: 8px auto 0; max-width: 1040px; }
.loop8-svg { display: block; width: 100%; height: auto; }
.loop8-phone { display: none; max-width: 420px; margin: 0 auto; }
.loop8-svg text { font-family: var(--font); }
.loop8-flow { stroke-dasharray: 2 18; animation: loop8-dash 3s linear infinite; }
@keyframes loop8-dash { to { stroke-dashoffset: -180; } }
.loop8-beat { transform-box: fill-box; transform-origin: 50% 50%; animation: loop8-beat 1.6s ease-in-out infinite; }
@keyframes loop8-beat { 0%, 40%, 100% { transform: scale(1); } 10% { transform: scale(1.09); } 20% { transform: scale(1); } 30% { transform: scale(1.06); } }
.loop8-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 48px; }
.loop8-list { min-width: 0; }
.loop8-list h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 18px; }
.loop8-list.win h3 { color: var(--green); }
.loop8-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.loop8-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; }
.loop8-list p { margin: 0; color: var(--on-dark-2); }
.loop8-list strong { display: block; color: var(--white); font-weight: 600; margin-bottom: 2px; }
.loop8-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 600; border: 2px solid var(--white); color: var(--white); font-variant-numeric: tabular-nums; }
.loop8-list.win .loop8-n { border-color: var(--green); color: var(--green); }
@media (max-width: 700px) {
  .loop8-wide { display: none; }
  .loop8-phone { display: block; }
  .loop8-lists { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .loop8-flow, .loop8-beat { animation: none; }
  .loop8-dot { display: none; }
}

/* Keep diagram label anchors the same in right-to-left languages */
.loop8-svg { direction: ltr; unicode-bidi: isolate; }
.loop8-svg text { unicode-bidi: plaintext; }

/* Packages: size switch (radio buttons, CSS only) and three pack cards */
.pk { display: grid; gap: 28px; }
.pk-r { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pk-switch { border: 0; margin: 0 auto; padding: 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: #F2F5F8; border: 1px solid var(--grey-200); border-radius: 18px; width: 100%; max-width: 720px; }
.pk-switch label { cursor: pointer; border-radius: 13px; padding: 12px 10px; text-align: center; display: grid; gap: 2px; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s; }
.pk-switch label strong { color: var(--navy-900); font-size: 1rem; }
.pk-switch label span { font-size: .85rem; }
#pk-ind:checked ~ .pk-switch label[for="pk-ind"], #pk-sm:checked ~ .pk-switch label[for="pk-sm"], #pk-md:checked ~ .pk-switch label[for="pk-md"] { background: var(--navy-900); color: #C9D2DC; box-shadow: 0 6px 18px rgba(10, 11, 14, .18); }
#pk-ind:checked ~ .pk-switch label[for="pk-ind"] strong, #pk-sm:checked ~ .pk-switch label[for="pk-sm"] strong, #pk-md:checked ~ .pk-switch label[for="pk-md"] strong { color: #fff; }
#pk-ind:focus-visible ~ .pk-switch label[for="pk-ind"], #pk-sm:focus-visible ~ .pk-switch label[for="pk-sm"], #pk-md:focus-visible ~ .pk-switch label[for="pk-md"] { outline: 3px solid var(--green-600); outline-offset: 2px; }
.pk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.pk-card { background: var(--white); border: 1px solid var(--grey-200); border-radius: 24px; padding: 32px 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 10px; }
.pk-card h3 { font-size: 1.5rem; }
.pk-tag { color: var(--ink-2); margin: 0; }
.pk-pro { border: 2px solid var(--green-600); }
.pk-ultra { background: var(--navy-900); border-color: var(--navy-700); }
.pk-ultra h3, .pk-ultra .pk-big, .pk-ultra .checks li, .pk-ultra .pk-setup strong { color: #fff; }
.pk-ultra .pk-tag, .pk-ultra .pk-per, .pk-ultra .pk-setup, .pk-ultra .pk-plus { color: #9AA3AE; }
.pk-price { margin: 10px 0 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pk-big { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; color: var(--navy-900); }
.pk-per { color: var(--ink-2); }
.pk-m { display: none; }
#pk-ind:checked ~ .pk-grid .m-ind, #pk-sm:checked ~ .pk-grid .m-sm, #pk-md:checked ~ .pk-grid .m-md { display: inline; }
.pk-setup { margin: 0; color: var(--ink-2); font-size: .95rem; }
.pk-setup strong { color: var(--navy-900); }
.pk-plus { margin: 14px 0 -14px; font-weight: 700; color: var(--green-600); font-size: .95rem; }
.pk-ultra .pk-plus { color: #8FF0E4; }
.pk-card .checks { margin-top: 18px; margin-bottom: 22px; }
.pk-card .checks li { font-weight: 500; }
.pk-card .btn { margin-top: auto; justify-content: center; }
.pk-note { text-align: center; color: var(--ink-2); margin: 28px auto 0; max-width: 760px; }
@media (max-width: 960px) { .pk-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; width: 100%; } }
@media (max-width: 560px) { .pk-switch label { padding: 10px 4px; } .pk-switch label span { font-size: .75rem; } .pk-card { padding: 26px 20px; } }
@media (prefers-reduced-motion: reduce) { .pk-switch label { transition: none; } }
