/* ============================================================
   Integrated Identity Platform — page styles
   Recreated from the Claude Design handoff prototype.
   ============================================================ */

html, body { background: var(--white); overflow-x: hidden; scroll-behavior: smooth; }
::selection { background: var(--bright-orange); color: #fff; }
.material-symbols-rounded { font-variation-settings: 'wght' 400; vertical-align: middle; }
/* (Large tab-pane icon weight now lives in the shared cap-pane template in
   capability.css — wght 100, matching the IIP caps template.) */

/* ---- Layout helpers ---- */
/* Figma: Container/container-large = 1280, Page Padding/padding-global = 64 */
/* Content max 1280 + 64 fluid gutters = 1408 total (matches design system
   tokens --container-max / --container-pad and the Figma handoff). border-box
   so the box never exceeds 1408. --wrap-pad collapses the gutter smoothly on
   smaller screens instead of jumping at fixed breakpoints. */
.wrap { max-width: 1408px; margin-inline: auto; padding-inline: var(--wrap-pad); box-sizing: border-box; }
@media (max-width: 980px)  { .faq { padding-left: 28px; padding-right: 28px; } }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Shared bits ---- */
/* Figma "CAPS Heading": Google Sans Flex SemiBold 20px, line-height 1.5, tracking 1px, uppercase */
/* Caps label / eyebrow — deliberately diminutive to the section heading.
   Own fluid anchor (decoupled from heading-scale); nudge the 14px max up/down
   to resize every eyebrow at once. */
.eyebrow { text-transform: uppercase; letter-spacing: 1px; font-size: clamp(12px, 1.05vw, 14px); font-weight: 600; line-height: 1.5; margin: 0; }
.eyebrow--center { text-align: center; }
/* Explicit eyebrow colour utilities. !important so they win over section-level
   `.section .eyebrow` defaults — these replace inline style="color:…" attrs,
   which used to win by inline specificity; the classes must match that. */
.eyebrow--muted { color: rgba(86, 95, 150, 0.75) !important; }
.eyebrow--muted-solid { color: #8087b0 !important; }
.eyebrow--muted-2 { color: rgba(75, 86, 145, 0.75) !important; }
.eyebrow--white { color: #fff !important; }
.eyebrow--periwinkle { color: var(--periwinkle) !important; }
.eyebrow--token-muted { color: var(--text-muted) !important; }
/* one-off eyebrow tints on specific dark IIP sections */
.eyebrow--gold { color: #fed081 !important; }
.eyebrow--pale { color: #b5bbdf !important; }
.eyebrow--pale-2 { color: #999fbe !important; }
/* inline text link inside a paragraph (inherits colour, underlined) */
.inline-link { color: inherit; text-decoration: underline; }

/* ============================================================
   Buttons (Contactable DS — Button.jsx)
   ============================================================ */
.cx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 28px; border-radius: var(--radius-pill);
  font-family: var(--font-brand); font-weight: 600; font-size: 16px; line-height: 1;
  cursor: pointer; border: 1.5px solid transparent; white-space: nowrap; text-decoration: none;
  box-sizing: border-box;
  /* never let a flex/grid parent's stretch behaviour widen the button */
  width: fit-content;
  transition: filter var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard), transform var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard);
}
.cx-btn--sm { height: 40px; padding: 0 20px; font-size: 15px; }
.cx-btn--primary { background: var(--gradient-secondary) border-box; color: var(--white); box-shadow: 0 2px 12px rgba(245,76,44,0.28); }
.cx-btn--primary:hover { filter: brightness(0.92); transform: translateY(-1px); }
.cx-btn--primary:active { filter: brightness(0.86); transform: translateY(0); }
.cx-btn--secondary { background: transparent; color: var(--deep-blue); border-color: var(--deep-blue); }
.cx-btn--secondary:hover { background: var(--deep-blue); color: var(--white); }
.cx-btn--secondary.cx-btn--dark { color: var(--white); border-color: rgba(255,255,255,0.55); }
.cx-btn--secondary.cx-btn--dark:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.cx-btn--link { background: transparent; color: var(--deep-blue); height: 48px; padding: 0; border-radius: 0; }
.cx-btn--link:hover { color: var(--deep-orange); }
.cx-btn--link .material-symbols-rounded { font-size: 20px; transition: transform var(--duration-base) var(--ease-out); }
.cx-btn--link:hover .material-symbols-rounded { transform: translateX(3px); }
.cx-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Custom contextual pills (used on coloured surfaces) */
.pill-btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 9999px; color: #fff;
  font-family: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: none; appearance: none; transition: background .18s, transform .18s;
  /* never let a flex/grid parent's stretch behaviour widen the button */
  width: fit-content; }
.pill-btn:hover { transform: translateY(-1px); }
.pill-btn .material-symbols-rounded { font-size: 20px; }
.pill-btn--orange-grad { padding: 0 30px; height: 52px; background: linear-gradient(90deg, #F0531F 0%, #F5841A 100%);
  box-shadow: 0 8px 22px rgba(240,90,30,0.38); }
.pill-btn--periwinkle { padding: 0 28px; height: 52px; background: rgb(105, 98, 240); box-shadow: 0 10px 26px rgba(105,98,240,0.4); }
.pill-btn--periwinkle:hover { background: #5b51e6; }
.pill-btn--deepblue { padding: 0 26px; height: 50px; background: var(--deep-blue); font-weight: 600;
  box-shadow: 0 10px 24px rgba(15,30,109,0.30); }
.pill-btn--deepblue:hover { background: #0a1550; }

/* ---- Icon badges (IconBadge.jsx) ---- */
.icon-badge-circular { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px;
  border-radius: 50%; color: var(--white); flex: none; }
.icon-badge-circular.tone-deep-orange { background: var(--deep-orange); }
.icon-badge-circular .material-symbols-rounded { font-size: 40px; line-height: 1; font-weight: 200; font-variation-settings: 'opsz' 24, 'wght' 200, 'FILL' 0, 'GRAD' 0; }
.icon-badge-line { display: inline-flex; align-items: center; justify-content: center; color: var(--deep-blue); }
.icon-badge-line .material-symbols-rounded { font-size: 40px; line-height: 1; font-weight: 220; font-variation-settings: 'opsz' 24, 'wght' 220, 'FILL' 0, 'GRAD' 0; }

/* ============================================================
   Navbar + announcement banner
   ============================================================ */
.banner { background: var(--deep-blue); color: #fff; position: relative; box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.banner__inner { display: flex; align-items: center; justify-content: center; gap: 32px; padding: 12px 64px; flex-wrap: wrap; }
.banner__msg { display: flex; align-items: center; gap: 16px; min-width: 0; }
.banner__msg .material-symbols-rounded { color: #fff; font-size: 28px; }
.banner__title { font-weight: 700; font-size: 13px; line-height: 1.4; }
.banner__sub { color: rgba(255,255,255,0.72); font-size: 12px; line-height: 1.4; }
.banner__form { display: flex; align-items: center; gap: 12px; }
.banner__close { position: absolute; right: 22px; top: 10px; background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.55); display: grid; place-content: center; }
.banner[hidden] { display: none; }

/* Newsletter subscribe (Brevo) — honeypot + status message, shared by the
   announcement banner and the blog .bl-news forms */
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nl-msg { font-size: 14px; line-height: 1.5; font-weight: 600; color: #fff; margin: 0; }
.nl-msg--error { color: var(--bright-orange); }
/* Inline form error for the demo forms (light backgrounds) */
.form-error { margin: 0; font-size: 15px; font-weight: 600; color: var(--deep-orange); }
.form-error[hidden] { display: none; }

/* #site-nav is the pre-injection placeholder that includes.js REPLACES with the
   banner + nav partial. Reserving the injected content's measured height here
   stops the whole page jumping down when the partial arrives (the CLS ~0.11
   Lighthouse flagged sitewide). Values = banner + 73px nav, measured per band;
   the div is replaced outright, so a slight undershoot only softens the fix —
   never leaves a gap. Responsive values live in the consolidated block below. */
#site-nav { min-height: 137px; }

.nav { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-bottom: 1px solid var(--border-subtle); box-shadow: 0 6px 24px rgba(15,30,109,0.06); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; max-width: none;
  /* match the capability hero gutter so the logo lines up with the hero copy
     (and the actions mirror it on the right) */
  padding-inline: clamp(24px, 6vw, 88px); }
.nav__left { display: flex; align-items: center; flex: 1; }
.nav__actions { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.nav__logo img { height: 40px; }
.nav__logo-icon { display: none; }   /* wordmark by default; icon swaps in on mobile */
.nav__links { display: flex; gap: 2px; align-items: center; }
.nav__home { font-family: var(--font-brand); font-weight: 600; font-size: 15px; padding: 10px 13px; border-radius: 8px;
  color: var(--deep-blue); transition: color .15s; }
.nav__home:hover { color: var(--deep-orange); }
.nav-link { position: relative; }
.nav-link > button { display: flex; align-items: center; gap: 2px; background: none; border: none; cursor: pointer;
  font-family: var(--font-brand); font-weight: 600; font-size: 15px; padding: 10px 13px; border-radius: 8px;
  color: var(--deep-blue); transition: color .15s; }
/* hug the chevron to its label so dropdown items aren't visually wider-spaced
   than the plain links — keeps the gaps between top-level items even */
.nav-link > button .material-symbols-rounded { font-size: 16px; margin-right: -4px; transition: transform .2s; }
.nav-link:hover > button { color: var(--deep-orange); }
.nav-link:hover > button .material-symbols-rounded { transform: rotate(180deg); }
.nav-panel { position: absolute; top: calc(100% - 2px); left: 0; min-width: 256px; background: #fff;
  border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-subtle); padding: 8px;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out); }
.nav-link:hover .nav-panel, .nav-panel:hover { opacity: 1; transform: none; pointer-events: auto; }
.nav-link.nav-open > button { color: var(--deep-orange); }
.nav-link.nav-open > button .material-symbols-rounded { transform: rotate(180deg); }
.nav-link.nav-open .nav-panel { opacity: 1; transform: none; pointer-events: auto; }
.nav-item { padding: 11px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--text-secondary); }
.nav-item:hover { background: var(--soft-grey); color: var(--deep-blue) !important; }
/* Mega menu */
.nav-panel--mega { flex-direction: row; gap: 0; padding: 16px; min-width: 0; }
.nav-panel--right { left: auto; right: 0; }
.nav-col { display: flex; flex-direction: column; min-width: 168px; }
.nav-group-label { font-family: var(--font-brand); font-weight: 700; font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(19,30,106,0.4);
  padding: 12px 14px 4px; }
.nav-col > .nav-group-label:first-child { padding-top: 4px; }
@media (max-width: 900px) { .nav__links { display: none; } }
/* Full nav (≥901): true 3-column layout so the menu is centred between logo and CTA */
@media (min-width: 901px) {
  .nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav__left { justify-self: start; }
  .nav__links { justify-self: center; }
  .nav__actions { justify-self: end; }
}
/* Tablet (901–1100): narrower nav gutters + tighter item spacing — logo sits further left, CTA further right */
@media (min-width: 901px) and (max-width: 1100px) {
  .nav__inner { padding-inline: 36px; }
  .nav__links { gap: 0; }
  .nav__home, .nav-link > button { padding-left: 9px; padding-right: 9px; }
}

/* ---- Inputs ---- */
.pill-input { height: 48px; padding: 0 20px; border-radius: 9999px; border: 1.5px solid transparent;
  background: rgba(255,255,255,0.12); color: #fff; font-family: var(--font-brand); font-size: 15px; outline: none;
  transition: border-color .2s, background .2s; box-sizing: border-box; }
.pill-input::placeholder { color: rgba(255,255,255,0.6); }
.pill-input:focus { border-color: var(--periwinkle); background: rgba(255,255,255,0.2); }

/* ============================================================
   Hero
   ============================================================ */
/* Figma: linear-gradient(269deg, #6E43E8, #6762EC); section padding 112 top / 94 bottom */
.hero { position: relative; overflow: hidden; background: linear-gradient(269deg, #6E43E8 0.6%, #6762EC 99%); }
.hero__inner { position: relative; padding-top: 112px; padding-bottom: 94px; }
.hero__head { text-align: center; max-width: 100%; margin: 0 auto; }
.hero__head .eyebrow { font-size: clamp(15px, 1.56vw, 20px); } /* hero-eyebrow size, matches cap-hero__eyebrow */
/* Figma "Heading/Header": Archivo Black 75px, line-height 1.1, letter-spacing 0 */
.hero__title { font-family: var(--font-impact); text-transform: uppercase;
  /* weight 400 is REQUIRED: Archivo Black is single-weight; the h1 reset's 700
     triggered synthetic bold (smeared strokes vs the homepage hero).
     Slope matches the homepage hero (6.6vw) per designer sign-off 2026-08; the
     old fit-tuned 5.2vw + hard <br>s were dropped — the title wraps naturally. */
  font-weight: 400;
  font-size: clamp(40px, 6.6vw, 75px); line-height: 1.1; color: #fff; margin: 16px auto 0; max-width: 100%; letter-spacing: 0;
  text-wrap: wrap; /* beat the balance reset — balance leaves a short orphan "PLATFORM" line at 75px */ }
/* Card = full-bleed fingerprint image (orange baked in), aspect 1280/738 */
.hero__card { position: relative; margin-top: 49px; border-radius: 30px; overflow: hidden;
  aspect-ratio: 1280 / 738; width: 100%; background-color: #e8902f;
  box-shadow: 0 40px 90px rgba(46,20,90,0.34); }
.hero__card-bg { position: absolute; inset: 0; overflow: hidden; }
.hero__card-bg img { position: absolute; width: 250%; max-width: none; height: auto; top: 60%; left: -40%; transform: translateY(-50%) scaleX(-1); }
/* Text overlay: Figma left 75/1280 ≈ 5.9%, top 90/738 ≈ 12% */
.hero__card-body { position: absolute; left: 5.9%; top: 12%; width: 38%; display: flex; flex-direction: column; align-items: flex-start; }
.hero__card-text { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; margin: 0; font-weight: 600; color: #fff; }
.hero__card-body .pill-btn { margin-top: 36px; }
/* tablet hero card (desktop overlay still active above 760): smaller overlay
   text, fingerprint shifted further right. */
@media (min-width: 761px) and (max-width: 900px) {
  .hero__card-text { font-size: clamp(15px, 2.2vw, 18px); }
  .hero__card-body { width: 55%; }
  .hero__card-bg img { left: -25%; }
}
@media (max-width: 760px) {
  .hero__card { aspect-ratio: auto; min-height: 420px; }
  /* Figma mobile: fingerprint anchored bottom-right, full opacity, text over
     plain orange up top. scaleX(-1) mirrors it (dots to the left, like desktop).
     knobs: background-size %=zoom; with the flip, HIGHER X = further right,
     lower Y = further down. */
  .hero__card-bg { opacity: 1; background: url('../assets/hero-fingerprint-card.webp') no-repeat; background-size: auto 185%; background-position: 70% 0%; transform: scaleX(-1); }
  .hero__card-bg img { display: none; }
  /* text left-aligned (user 2026-07); button stays left via the body's flex-start */
  .hero__card-text { font-size: clamp(14px, 4vw, 16px); width: 100%; text-align: left; }
  .hero__card-body { position: relative; left: 0; top: 0; width: 100%; padding: 36px 28px; align-items: flex-start; }
}

/* ============================================================
   Problem
   ============================================================ */
.problem { background: var(--white); padding: 112px 0; }
/* Homepage Layout/195 arrangement (user, 2026-07): image left spanning both
   right-column rows (intro + stats), everything vertically centred, 1:1 cols. */
.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 80px; align-items: center; }
/* Breakout composition (Figma 10422-65773): the box keeps the frame's 600/640
   aspect, but the artwork (box + cutout man/laptop, transparent bg, no shadow)
   OVERFLOWS it — head 6.9% above the top, laptop 11.8% past the right edge.
   Radius/clip/shadow removed: the rounded box is baked into the asset. */
.problem__img { grid-column: 1; grid-row: 1 / 3; position: relative; aspect-ratio: 600 / 640; }
.problem__intro { grid-column: 2; grid-row: 1; align-self: end; }
.problem__img img {
  position: absolute;
  left: 0;
  top: -6.86%;        /* head rises above the box */
  width: 111.76%;     /* laptop juts past the box's right edge (into the 80px gap) */
  max-width: none;
  height: auto;
}
.problem h2 { font-size: calc(clamp(34px, 3.8vw, 50px) * var(--heading-scale)); line-height: 1.08; color: var(--deep-orange); margin: 16px 0 24px; max-width: 14ch; font-weight: 700; }
.problem__lead { font-size: 18px; line-height: 1.6; color: var(--text-secondary); max-width: 52ch; margin-bottom: 14px; }
.problem__lead--strong { color: var(--text-primary); font-weight: 600; margin-bottom: 0; }  /* row-gap owns the spacing now */
.problem__stats { grid-column: 2; grid-row: 2; align-self: start; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 8px 0; }
.problem__stats h3 { font-size: 24px; line-height: 1.25; color: var(--deep-blue); margin: 20px 0 10px; font-weight: 700; max-width: 16ch; }   /* 24px = shared cap-challenge__item-title (Figma H6) */
.problem__stats p { font-size: 16px; line-height: 1.5; color: var(--text-secondary); margin: 0; max-width: 32ch; }
@media (max-width: 900px) {
  .problem__grid { grid-template-columns: 1fr; gap: 32px; align-items: stretch; }
  .problem__img, .problem__intro, .problem__stats { grid-column: 1; grid-row: auto; align-self: auto; }
  .problem__stats { grid-template-columns: 1fr; }
  .problem__lead--strong { margin-bottom: 0; }
  /* Centred-stack layout rule for image + intro + stat-cards content blocks.
     Stacked: drop the desktop crop — full photo at natural aspect (user rule, 2026-07). */
  .problem__img { margin-inline: auto; aspect-ratio: auto; }
  .problem__img img { position: static; width: 100%; height: auto; }
  .problem__intro, .problem__stats, .problem__stats > div { text-align: center; }
  .problem__intro h2, .problem__intro .problem__lead,
  .problem__stats h3, .problem__stats p { margin-left: auto; margin-right: auto; }
}

/* ============================================================
   Orchestration band
   ============================================================ */
.orch { position: relative; overflow: hidden; height: 687px;
  background: linear-gradient(90deg, #FDA104 0%, #F54C2C 100%);
  display: flex; flex-direction: column; align-items: center; padding: 89px 64px 96px; box-sizing: border-box; }
.orch__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background: url('../assets/brand/illustration-orchestration.webp') no-repeat;
  /* knobs: background-size %=zoom (smaller=more of the illustration shows),
     background-position X% Y%=placement. Frames the full clusters→node→target. */
  background-size: 135% auto; background-position: 50% 25%; }
.orch__inner { position: relative; width: 1048px; flex-shrink: 0; }
.orch__content { position: relative; }
.orch__col { position: absolute; left: 545px; top: 0; width: 615px; display: flex; flex-direction: column; gap: 25px; align-items: flex-start; }
.orch__col .eyebrow { margin: 0; }
.orch__col h2 { font-size: calc(clamp(34px, 5.2vw, 48px) * var(--heading-scale)); line-height: 1.1; color: #fff; margin: 0; font-weight: 700; }
.orch__body { display: flex; flex-direction: column; gap: 0; }
.orch__body p { font-size: 16px; line-height: 1.5; color: #fff; margin: 0; }
.orch__col > .pill-btn { margin-top: 16px; }
.orch-br { display: none; }
/* Orchestration responsive lives in the consolidated block lower in this file
   (search "Orchestration section") so it isn't overridden. */

/* ============================================================
   "Few do all three" + AI diagram + tiles
   ============================================================ */
.three { background: var(--white); padding: 112px 0; }
.three__head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 50px; }
.three__head-left { display: flex; flex-direction: column; gap: 36px; }
.three__head h2 { font-size: calc(clamp(32px, 3.6vw, 48px) * var(--heading-scale)); line-height: 1.1; color: var(--deep-orange); margin: 0; font-weight: 700; }
.three__head-right { display: flex; flex-direction: column; gap: 16px; justify-content: flex-end; }
.three__head-right p { font-size: 16px; line-height: 1.5; color: var(--deep-blue); margin: 0; }
.three__diagram { position: relative; aspect-ratio: 1280 / 753; overflow: hidden; border-radius: 30px; margin-bottom: 50px; }
.three__diagram img { position: absolute; width: 144.38%; max-width: none; height: 138.05%; left: -21.1%; top: -18.95%; }
.three__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.feature-tile { background: var(--white); border: 1px solid #8087b0; border-radius: 15px; padding: 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 24px; }
.feature-tile__icon { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.feature-tile .icon-badge-line { color: var(--deep-orange); }
.feature-tile .icon-badge-line .material-symbols-rounded { font-size: 48px; }
.feature-tile h4 { font-size: clamp(19px, 2vw, 26px); line-height: 1.3; color: var(--periwinkle); margin: 0; font-weight: 600; }
.feature-tile p { font-size: 16px; line-height: 1.5; color: var(--deep-blue); margin: 0; }
.three__actions { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 50px; }
.three__explore-link { display: flex; align-items: center; gap: 4px; font-size: 16px; color: var(--deep-blue); text-decoration: none; }
.three__explore-link .material-symbols-rounded { font-size: 20px; }
@media (max-width: 900px) { .three__head { grid-template-columns: 1fr; gap: 24px; } .three__tiles { gap: 16px; } }
@media (max-width: 640px) {
  .three__tiles { grid-template-columns: 1fr; gap: 24px; }
  /* Figma mobile diagram (node 11614-1989): portrait image, rounded 30px */
  .three__diagram { aspect-ratio: 342 / 534; }
  .three__diagram img { width: 114.51%; height: 101.21%; left: -5.83%; top: 0.09%; }
  /* Figma mobile tile (node 11614-2023): deep-blue border, 18px radius, 25px pad, 24px gap */
  .feature-tile { border-color: var(--deep-blue); border-radius: 18px; padding: 25px; gap: 24px; align-self: stretch; }
  .feature-tile h4 { font-size: 28px; }
}

/* ============================================================
   Lifecycle
   ============================================================ */
.lifecycle { background: var(--soft-grey); padding: 66px 0; }
.lifecycle__head { text-align: center; max-width: 1108px; margin: 0 auto 80px; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.lifecycle__head h2 { font-size: calc(clamp(32px, 3.75vw, 48px) * var(--heading-scale)); line-height: 1.1; color: var(--deep-orange); margin: 0; font-weight: 700; max-width: 994px; }
.lifecycle__head p { font-size: 20px; line-height: 1.5; color: var(--deep-blue); font-weight: 500; margin: 0; }
.lifecycle__head .eyebrow { font-size: clamp(11px, 0.85vw, 12px); }
.lifecycle-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 17px; }
.lifecycle-card { background: #fff; border-radius: 15px; padding: 15px; box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  display: flex; flex-direction: column; gap: 24px; min-height: 387px; }
.lifecycle-card__top { height: 136px; display: flex; flex-direction: column; justify-content: space-between; }
.lifecycle-card .num { font-size: 48px; color: var(--periwinkle); line-height: 1.1; font-weight: 700; }
.lifecycle-card__icon { font-size: 68px; color: var(--deep-orange); font-weight: 300; font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48; align-self: center; }
.lifecycle-card__bottom { display: flex; flex-direction: column; gap: 14px; }
.lifecycle-card h3 { font-size: 24px; line-height: 1.3; color: var(--deep-blue); margin: 0; font-weight: 700; }
.lifecycle-card p { font-size: 16px; line-height: 1.5; color: var(--deep-blue); margin: 0; font-weight: 400; }
@media (max-width: 1100px) {
  /* 3 per row, with the orphan second row centred */
  .lifecycle-grid { display: flex; flex-wrap: wrap; justify-content: center; }
  .lifecycle-card { flex: 0 1 calc((100% - 2 * 17px) / 3); min-height: 348px; }
}
@media (max-width: 640px) { .lifecycle-card { flex-basis: calc((100% - 17px) / 2); text-align: center; } }
@media (max-width: 460px) { .lifecycle-card { flex-basis: 100%; min-height: 310px; padding: 28px; } }

/* ============================================================
   Reusable identity
   ============================================================ */
.reusable { background: var(--white); padding: 112px clamp(24px, 5vw, 80px); }
/* card inset with white margin all round; own internal padding (overrides .wrap) */
.reusable__card { position: relative; max-width: var(--container-max); margin-inline: auto; padding: clamp(20px, 2vw, 28px); border-radius: 30px; overflow: hidden;
  background: linear-gradient(to left, #6a61f0 1.25%, #7c3fed 59.805%); }
.reusable__glow { display: none; }
/* Figma proportion 550:698 as fr so the image scales with the (gutter-narrowed) card */
.reusable__grid { position: relative; display: grid; grid-template-columns: 0.79fr 1fr; gap: 32px; align-items: center; min-height: 604px; }
/* bottom-anchored, bleeding to the card's bottom edge (negates card padding) */
/* image fills the full card height (bleeds past top/bottom padding), woman shifted right */
.reusable__media { position: relative; align-self: stretch; min-height: 604px; margin-block: calc(-1 * clamp(20px, 2vw, 28px)); overflow: hidden; border-radius: 30px; }
.reusable__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 25% top; }
/* swap to the frameless image only in the tablet two-col range (frame would crop here) */
.reusable__img--noframe { display: none; }
@media (min-width: 901px) and (max-width: 1100px) {
  .reusable__img--framed { display: none; }
  .reusable__img--noframe { display: block; }
}
.reusable__body { padding: 0; display: flex; flex-direction: column; gap: 16px; }
.reusable__body h2 { font-size: calc(clamp(32px, 3.75vw, 48px) * var(--heading-scale)); line-height: 1.1; color: #fff; margin: 0; font-weight: 700; text-wrap: pretty; }
.reusable__body p { font-size: 16px; line-height: 1.5; color: #fff; margin: 0; }
.reusable__body .reusable__section-title { display: flex; flex-direction: column; gap: 16px; }
.reusable__body .reusable__text-block { display: flex; flex-direction: column; gap: 24px; }
.reusable__benefits-label { font-size: 16px; font-weight: 700; color: #fff; margin: 0; }
.reusable__feats { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 16px; margin: 0; }
.reusable__feats li { font-size: 16px; line-height: 1.5; color: #fff; }
.reusable__feats li strong { font-weight: 700; }
.reusable__actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.reusable-link { color: #fff; font-weight: 400; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.reusable-link .reusable-arrow { transition: transform .2s var(--ease-out); font-size: 20px; }
.reusable-link:hover .reusable-arrow { transform: translateX(5px); }
@media (max-width: 900px) {
  /* stack: text on top, image centred at the bottom (sitting on the purple edge) */
  .reusable { padding-inline: clamp(24px, 6vw, 48px); }   /* white margin around the card */
  .reusable__card { padding: clamp(32px, 7vw, 48px); }    /* padding inside the purple */
  .reusable__grid { grid-template-columns: 1fr; min-height: 0; gap: 24px; }
  .reusable__body { order: 1; padding: 0; }
  .reusable__body h2 br { display: none; }   /* let heading wrap naturally on mobile */
  .reusable .eyebrow { font-size: 11px; }    /* smaller eyebrow */
  .reusable__media { order: 2; align-self: center; width: 100%; max-width: 690px; min-width: 0; min-height: 0; margin: 0 auto calc(-1 * clamp(32px, 7vw, 48px)); }
}

/* ============================================================
   Athena
   ============================================================ */
.athena { background: var(--white); padding: 73px 0; }
.athena__grid { display: grid; grid-template-columns: 395px 1fr; gap: 80px; align-items: start; }
.athena__title { display: flex; flex-direction: column; gap: 16px; }
.athena h2 { font-size: calc(clamp(30px, 3.1vw, 40px) * var(--heading-scale)); line-height: 1.1; color: var(--deep-orange); margin: 0; font-weight: 700; }
.athena__body { display: flex; flex-direction: column; gap: 0; }
.athena__body p { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.5; color: var(--deep-blue); margin-bottom: 28px; font-weight: 500; }
.athena__actions { margin-top: 16px; }
@media (max-width: 900px) { .athena__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   Economics
   ============================================================ */
/* gap shrinks the logo→content space on small screens; stays ~85px at desktop */
.economics { background: var(--soft-grey); padding: 85px var(--wrap-pad) 112px; display: flex; flex-direction: column; align-items: center; gap: clamp(32px, 6.6vw, 85px); }
.economics__logo { height: 58px; width: 124px; display: block; object-fit: contain; flex-shrink: 0; }
.economics__inner { width: 100%; max-width: 1280px; display: flex; flex-direction: column; gap: 54px; overflow: hidden; }
.economics__head { display: flex; flex-direction: column; gap: 12px; }
.economics__head .eyebrow { color: var(--deep-blue); }
/* fr ratios reproduce Figma's 695/505 widths at 1280, fluid everywhere else */
.economics__head-row { display: grid; grid-template-columns: 1.38fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: end; }
/* top-align the heading so it hugs the eyebrow; intro stays bottom-aligned */
.economics__head h2 { font-size: calc(clamp(32px, 3.75vw, 48px) * var(--heading-scale)); line-height: 1.1; color: var(--periwinkle); margin: 0; font-weight: 700; min-width: 0; align-self: start; }
.economics__intro-col { min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; min-height: 159px; }
.economics__intro { font-size: 20px; line-height: 1.5; color: var(--deep-blue); font-weight: 500; margin: 0; padding-left: 23px; }
.economics__grid { display: grid; grid-template-columns: 2.19fr 1fr; gap: 0; align-items: center; }
.economics__hero { position: relative; overflow: hidden; border-radius: 20px; background: var(--deep-blue);
  color: #fff; padding: 48px; display: flex; flex-direction: column; height: 588px; }
.economics__hero .kicker { text-transform: uppercase; letter-spacing: 1px; font-size: 20px; font-weight: 600; color: #fff; margin: 0; }
.economics__big { font-family: "Archivo Black", "Google Sans Flex", sans-serif; font-size: clamp(72px, 15.6vw, 200px); line-height: 1.1; margin: 8px 0 0; text-transform: uppercase;
  background: linear-gradient(to left, #f54c2c 29.273%, #7747ee 70.676%, #6962f0 95.53%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.economics__hero .roi { font-size: clamp(28px, 3.1vw, 40px); font-weight: 700; line-height: 1.1; color: #fff; opacity: 0.65; margin: 8px 0 0; max-width: 556px; display: flex; align-items: flex-start; gap: 16px; }
.roi__bar { display: inline-block; width: 4px; min-width: 4px; height: 83px; background: #fff; opacity: 1; border-radius: 2px; margin-top: 4px; }
.economics__hero .src { font-size: 18px; font-weight: 600; color: #fff; margin: auto 0 0; }
.economics__rows { display: flex; flex-direction: column; justify-content: center; gap: 49px; padding: 48px; }
.economics__row .num { font-family: "Archivo Black", "Google Sans Flex", sans-serif; font-size: clamp(48px, 5.85vw, 75px); line-height: 1.1; color: var(--deep-orange); display: block; text-transform: uppercase; }
.economics__row p { font-size: 18px; line-height: 1.45; color: var(--deep-blue); margin: 8px 0 0; font-weight: 600; max-width: 32ch; }
@media (max-width: 1100px) { .economics__head-row { grid-template-columns: 1fr; }
  /* tablet: group the hero stack in the vertical middle, source pulled closer */
  .economics__hero { justify-content: center; }
  .economics__hero .src { margin: 24px 0 0; }
  /* tablet: centre the section header text */
  .economics__head, .economics__head-row, .economics__intro-col { text-align: center; }
  .economics__intro { margin-inline: auto; max-width: 58ch; } }
/* keep stat numbers beside the blue box down to tablet; stack only on mobile */
@media (max-width: 768px) { .economics__grid { grid-template-columns: 1fr; gap: 24px; } .economics__hero { height: auto; min-height: 400px; }
  /* mobile: centre the whole section, eyebrow down to the stat numbers */
  .economics__head, .economics__head-row, .economics__intro-col, .economics__hero, .economics__rows, .economics__row { text-align: center; }
  .economics__hero, .economics__rows { align-items: center; }
  .economics__intro { max-width: 44ch; margin-inline: auto; }
  .economics__hero .roi { justify-content: center; }
  .economics__hero .roi__bar { display: none; }
  .economics__row p { margin-left: auto; margin-right: auto; } }

/* ============================================================
   Capabilities tabs
   ============================================================ */
.caps { background: var(--white); padding: 75px 0 73px; }
.caps__head { text-align: center; max-width: 768px; margin: 0 auto 48px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.caps__head h2 { font-size: calc(clamp(32px, 3.75vw, 48px) * var(--heading-scale)); line-height: 1.1; color: var(--deep-orange); margin: 0; font-weight: 700; }
.caps__head p { font-size: 20px; line-height: 1.5; color: var(--deep-blue); font-weight: 500; margin: 8px 0 0; }
/* White bordered card holding tabs + active pane */
.caps__card { background: var(--white); border: 2px solid #959abb; border-radius: 26px; overflow: hidden; }
.caps__tabs { display: flex; gap: 22px 16px; justify-content: center; align-items: center; flex-wrap: wrap; min-height: 134px; padding: 24px; }
.cap-tab { display: inline-flex; align-items: center; justify-content: center; text-align: center; width: auto; white-space: nowrap; height: 56px; padding: 12px 24px; border-radius: 43px; cursor: pointer;
  border: 1.5px solid #8087b0; background: transparent; color: #8087b0;
  font-family: var(--font-brand); font-weight: 600; font-size: 18px; line-height: 1.1; transition: all .2s var(--ease-out); }
.cap-tab:hover[data-active="false"] { border-color: var(--periwinkle); color: var(--periwinkle); }
.cap-tab[data-active="true"] { border-color: #6861e7; background: #6861e7; color: #fff; }
.caps__pane { display: flex; gap: 68px; align-items: center; padding: 12px 48px 48px; } /* 12px top = breathing room under the tab pills */
.caps__pane-img { flex: none; width: 260px; height: 260px; border-radius: 15px;
  background: linear-gradient(127deg, var(--bright-orange) 4%, var(--deep-orange) 97%);
  display: flex; align-items: center; justify-content: center; }
/* font-rendered pane icon (e.g. passkey): FILL 0 = outlined/thin, sized to match the 188px SVG icons */
.caps__pane-icon { font-size: 188px; color: #fff;
  /* 188px + wght100 = same scale/weight as the wght100-outlined 188px SVG data-URI icons
     (fingerprint artwork measures 139x154px at 188px, vs face_scan artwork 152px) */
  font-weight: 100;   /* font-weight drives the weight (variable font); fvs 'wght' alone renders 400 */
  font-variation-settings: 'FILL' 0, 'wght' 100, 'GRAD' 0, 'opsz' 48; }
.caps__pane-icon[src] { width: 188px; height: 188px; aspect-ratio: 1/1; max-width: none; font-size: unset; }
.caps__pane-text { flex: 1; min-width: 0; }
.caps__pane-text h3 { font-size: clamp(28px, 3.1vw, 40px); line-height: 1.2; color: var(--deep-orange); margin: 16px 0 24px; font-weight: 600; }
.caps__body { font-size: 16px; line-height: 1.5; color: var(--deep-blue); margin: 0 0 32px; }
.caps__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cap-fade { animation: capfade .42s var(--ease-out) both; }
@keyframes capfade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 768px) {
  /* stack: small orange block on top, content underneath, centred */
  .caps__pane { flex-direction: column; gap: 28px; align-items: center; text-align: center; padding: 48px 24px 32px; }
  .caps__pane-img { width: 130px; height: 130px; }      /* 50% smaller block */
  .caps__pane-icon { font-size: 94px; }                  /* 50% of 188px, matches the 94px SVG icons */
  .caps__pane-icon[src] { width: 94px; height: 94px; }   /* 50% smaller svg icon */
  .caps__actions { justify-content: center; width: 100%; }
}

/* ============================================================
   Testimonial
   ============================================================ */
.testimonial { background: var(--soft-grey); padding: 112px 0; }
.testimonial__inner { max-width: 1076px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.testimonial__inner img { height: 53px; width: auto; object-fit: contain; margin: 15px 0; } /* 15px = transparent padding of the Figma logo frame (82px frame, 53px artwork) */
.testimonial__quote { font-size: clamp(22px, 2.5vw, 32px); line-height: 1.3; font-weight: 600; color: var(--periwinkle); margin: 0; max-width: 768px; text-wrap: wrap; }
.testimonial__name { font-weight: 600; font-size: 16px; color: var(--deep-blue); display: block; line-height: 1.5; }
.testimonial__role { font-size: 16px; font-weight: 400; color: var(--deep-blue); line-height: 1.5; }
.testimonial__role strong { font-weight: 700; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--white); padding: 40px 64px 112px; }
.faq__inner { max-width: 1060px; margin: 0 auto; }
.faq__head { text-align: center; margin-bottom: 44px; }
.faq__head h2 { font-size: calc(clamp(34px, 3.8vw, 48px) * var(--heading-scale)); color: var(--deep-orange); margin: 0 0 16px; font-weight: 700; }
.faq__head p { font-size: 18.5px; line-height: 1.55; color: var(--deep-blue); font-weight: 500; max-width: 52ch; margin: 0 auto; }
.faq__list { display: flex; flex-direction: column; gap: 20px; }
.faq-item { border: 1.5px solid var(--deep-blue); border-radius: 28px; overflow: hidden; background: var(--white);
  transition: background .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.faq-item[data-open="true"] { box-shadow: var(--shadow-md); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; cursor: pointer; list-style: none; width: 100%; background: none; border: none; text-align: left; font-family: inherit; /* <button> doesn't inherit the page font by default */ }
.faq-qtext { font-weight: 700; font-size: 24px; line-height: 1.3; color: var(--deep-blue); }
.faq-toggle { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--deep-orange); display: grid; place-content: center; color: #fff; transition: transform .3s var(--ease-out), background .25s; }
.faq-toggle .material-symbols-rounded { font-size: 26px; }
.faq-item[data-open="true"] .faq-toggle { transform: rotate(45deg); background: var(--deep-blue); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .34s var(--ease-out); }
.faq-a-inner { min-height: 0; opacity: 0; transform: translateY(-6px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.faq-item[data-open="true"] .faq-a-inner { opacity: 1; transform: none; }
.faq-a-inner p { padding: 0 30px 28px; font-size: 17px; line-height: 1.6; color: var(--text-secondary); max-width: 80ch; margin: 0; }
.faq__cta { margin-top: 48px; border-radius: 30px;
  background: linear-gradient(to right, #6962f0, #7e3aed); color: #fff;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; padding: 46px 38px; }
.faq__cta h3 { font-size: calc(clamp(30px, 3.5vw, 45px) * var(--heading-scale)); line-height: 1.2; font-weight: 700; color: #fff; margin: 0; }
.faq__cta-right { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.faq__cta-right p { font-size: clamp(20px, 2.3vw, 30px); font-weight: 600; line-height: 1.5; margin: 0; }

/* ============================================================
   Final CTA
   ============================================================ */
.final { position: relative; overflow: hidden; background: var(--deep-blue); color: #fff;
  display: flex; flex-direction: column; align-items: center; padding: 129px 64px; gap: 80px; }
.final__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; max-width: none; }
.final__scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.2); pointer-events: none; }
.final__inner { position: relative; width: 100%; max-width: 1280px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.final__eyebrow { color: #fff; margin-bottom: 24px; }
.final h2 { font-family: "Archivo Black", "Google Sans Flex", sans-serif; text-transform: uppercase; font-size: calc(clamp(30px, 3.5vw, 45px) * var(--heading-scale)); line-height: 1.1; color: #fff; margin: 0; }
.final__right { display: flex; flex-direction: column; gap: 32px; }
.final__right p { font-size: 18px; line-height: 1.5; color: #fff; margin: 0; }
.final__actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
@media (max-width: 900px) { .final__inner { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--deep-blue); color: #fff; }
.footer { padding-inline: clamp(24px, 5vw, 64px); }   /* Figma: 64px page padding (was the larger global gutter) */
.footer__inner { max-width: 1280px; margin-inline: auto; padding: 80px 0 47px; display: flex; flex-direction: column; gap: 24px; }
.footer__top { display: grid; grid-template-columns: 260px repeat(3, minmax(160px, 1fr)) 296px; gap: 28px; align-items: start; }
.footer__top > div { min-width: 0; }   /* let columns shrink so long labels wrap instead of overflowing */
.footer__brand { display: flex; flex-direction: column; gap: 34px; }
.footer__logo { position: relative; width: 250px; height: 52px; overflow: hidden; }
.footer__logo img { position: absolute; left: -9.63%; top: -88.29%; width: 102.32%; height: auto; max-width: none; }
.footer__brand p { font-size: 16px; line-height: 1.43; color: rgba(242,242,242,0.68); margin: 0; }
.footer__col-title { font-weight: 700; font-size: 14px; color: #fda104; margin-bottom: 10px; line-height: 1.5; }
.footer__links { display: flex; flex-direction: column; }
.footlink { font-size: 14px; font-weight: 400; color: #fff; line-height: 1.5; text-decoration: none; overflow-wrap: break-word; }
.footlink:hover { text-decoration: underline; }
.footer__news { display: flex; flex-direction: column; gap: 24px; }
.footer__news-head { display: flex; flex-direction: column; gap: 16px; }
.footer__news-title { font-weight: 700; font-size: 16px; color: #fda104; line-height: 1.5; }
.footer__news-head p { font-size: 15px; line-height: 1.5; color: #fff; margin: 0; }
.footer__news-actions { display: flex; flex-direction: column; gap: 12px; }
.footer__news-form { display: flex; gap: 16px; align-items: center; }
.footer__news-input { flex: 1; min-width: 0; background: transparent; border: 1px solid var(--bright-orange); border-radius: 41px; padding: 8px 12px; font-size: 16px; font-weight: 300; color: #d9d9d9; outline: none; font-family: var(--font-brand); }   /* 16px matches .footer__news-btn (designer 2026-07; Figma's 12px placeholder overridden) */
.footer__news-input::placeholder { color: #d9d9d9; }
.footer__news-btn { flex-shrink: 0; background: linear-gradient(to left, var(--deep-orange), var(--bright-orange)); border: none; border-radius: 55px; padding: 8px 24px; font-size: 16px; font-weight: 600; color: #fff; cursor: pointer; font-family: var(--font-brand); white-space: nowrap; }
.footer__fine { font-size: 10px; font-weight: 300; line-height: 1.5; color: #fff; margin: 0; }
.footer__fine a { color: inherit; }
.footer__divider { height: 1px; background: rgba(255,255,255,0.18); width: 100%; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.footer__legal { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer__legal-link { font-size: 12px; font-weight: 400; color: #fff; text-decoration: underline; line-height: 1.5; }
.footer__legal-link:hover { opacity: 0.8; }
.footer__legal-link--plain { text-decoration: none; }   /* copyright line — not a link, no underline (user 2026-07) */
.footer__social { display: flex; align-items: center; gap: 20px; }
.footer__social-divider { width: 1px; height: 46px; background: rgba(255,255,255,0.35); }
.footer__social a { display: inline-flex; }
@media (max-width: 1100px) {
  /* brand sits in the top row beside Solutions/Products/Company; newsletter drops below, centred */
  .footer__top { grid-template-columns: repeat(4, auto); justify-content: space-between; column-gap: 24px; row-gap: 56px; }
  .footer__news { grid-column: 1 / -1; text-align: center; align-items: center; margin-bottom: 24px; }
  .footer__news-head, .footer__news-actions { align-items: center; width: 100%; }
  .footer__news-head p { max-width: 60ch; margin-inline: auto; }
  .footer__news-form { justify-content: center; width: 100%; max-width: 480px; }
  .footer__fine { text-align: center; max-width: 60ch; margin-inline: auto; }
}
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

/* ============================================================
   RESPONSIVE — comprehensive mobile overrides
   Breakpoints: 1100px tablet-wide · 768px tablet · 480px mobile
   ============================================================ */

/* ---- Nav burger + mobile drawer ---- */
.nav__burger { display: none; }
.nav__mobile { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 59;
  background: #fff; border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 12px 32px rgba(15,30,109,0.12);
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease-out); }
.nav__mobile.open { max-height: 90vh; overflow-y: auto; }
.nav__mobile-inner { padding: 4px 0 24px; display: flex; flex-direction: column; }
/* top-level rows: direct links (Home/Platform) + accordion toggles */
.nav__m-link, .nav__m-acc { border-top: 1px solid rgba(0,0,0,0.06); }
.nav__mobile-inner > .nav__m-link:first-child { border-top: none; }
.nav__m-link, .nav__m-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 16px 24px; text-align: left;
  font-family: var(--font-brand); font-weight: 700; font-size: 19px; line-height: 1.2;
  color: var(--deep-blue); text-decoration: none;
  background: none; border: none; cursor: pointer; }
.nav__m-link:hover, .nav__m-toggle:hover { color: var(--deep-orange); }
.nav__m-toggle .material-symbols-rounded { font-size: 26px; color: var(--text-muted);
  transition: transform .25s var(--ease-out); }
.nav__m-acc.open .nav__m-toggle .material-symbols-rounded { transform: rotate(180deg); }
/* collapsible group panel */
.nav__m-panel { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease-out); }
.nav__m-acc.open .nav__m-panel { max-height: 1400px; }
.nav__m-group { padding: 14px 24px 4px; font-family: var(--font-brand); font-weight: 700;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.nav__m-sub { display: block; padding: 9px 24px 9px 24px; font-family: var(--font-brand);
  font-size: 16px; font-weight: 500; color: var(--text-secondary); text-decoration: none; }
.nav__m-sub:hover { color: var(--deep-orange); background: var(--soft-grey); }
.nav__m-panel > .nav__m-sub:last-child { padding-bottom: 16px; }
.nav__mobile-cta { padding: 20px 24px 4px; display: flex; justify-content: center; }

@media (max-width: 900px) {
  /* logo left · Book a Demo + hamburger right. Burger sits in normal flow at
     the end so its right gutter matches the logo's left gutter (symmetric). */
  .nav__inner { justify-content: space-between; position: relative; }
  .nav__actions { flex: 0 0 auto; gap: 16px; align-items: center; }
  .nav__burger { position: static; transform: none; align-self: center; }
  .nav__cta-desktop { display: inline-flex; }
  .nav__burger {
    display: flex; flex-direction: column; justify-content: space-between;
    width: 26px; height: 18px; background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0;
  }
  .nav__burger span { display: block; height: 2px; background: var(--deep-blue); border-radius: 2px;
    transition: transform .25s var(--ease-out), opacity .2s; }
  .nav.menu-open .nav__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav__burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav__mobile { display: block; }
}

/* ---- Hero title ---- */
@media (max-width: 640px) {
  .hero__title { font-size: clamp(24px, 8vw, 40px); }
  .hero__inner { padding-top: 72px; padding-bottom: 64px; }
}

/* ---- Banner ---- */
/* tablet: tighten the gap between the message and the form when it wraps */
@media (min-width: 641px) and (max-width: 768px) {
  .banner__inner { gap: 10px; }
}
@media (max-width: 640px) {
  .banner__inner { flex-direction: column; gap: 14px; padding: 14px 48px 16px 16px; align-items: flex-start; }
  .banner__form { width: 100%; }
  .banner__form .pill-input { flex: 1; width: auto !important; min-width: 0; }
  .banner__close { top: 10px; }
}
/* mobile: bell on its own row; text centred with balanced (equal-length) lines */
@media (max-width: 480px) {
  .banner__inner { align-items: center; padding: 14px 24px 16px; }
  .banner__msg { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
  .banner__msg > div { display: flex; flex-direction: column; align-items: center; }
  .banner__title, .banner__sub { text-wrap: balance; max-width: 30ch; }
  .banner__form { justify-content: center; }
}

/* ---- Orchestration section ---- */
@media (max-width: 1100px) {
  .orch { height: auto; min-height: 500px; padding: 44px var(--wrap-pad) 48px; padding-right: clamp(24px, 4vw, 48px); }
  .orch__inner { width: 100%; }
  /* narrow column hugs the right edge so the whole block sits right,
     matching the Figma iPad frame. */
  .orch__col { position: relative; left: auto; top: auto; width: 100%; max-width: 390px; margin-left: auto; }
  .orch-br { display: inline; }
  /* body fills the narrow column; every line follows the "...compliance —"
     length. */
  .orch__body { max-width: 100%; }
  /* same framing as desktop; the shorter tablet section crops the bottom so
     the big dot is half-cut. knob — LOWER Y% pushes the big dot DOWN. */
  .orch__bg { background-size: 135% auto; background-position: 50% 12%; opacity: 1; }
}
/* Phone only: text spans full width left-aligned (tablet keeps the
   right-pinned column from the ≤1100 rule, per the iPad brief). */
@media (max-width: 640px) {
  .orch { padding: 52px var(--wrap-pad); min-height: 0; }
  .orch__col { max-width: 100%; align-items: flex-start; text-align: left; }
  .orch-br { display: none; }
  .orch__bg { background-size: 150% auto; background-position: 60% 18%; opacity: 0.3; }
}

/* ---- Lifecycle head ---- */
@media (max-width: 768px) {
  .lifecycle__head h2 { font-size: clamp(26px, 7vw, 48px); }
  .lifecycle__head p { font-size: 17px; }
  .lifecycle { padding: 56px 0; }
  .lifecycle__head { margin-bottom: 48px; }
}

/* ---- Economics: fix flex widths + existing grid bug ---- */
@media (max-width: 1100px) {
  .economics { padding: 64px 28px 80px; }
  .economics__head-row { flex-direction: column; gap: 20px; align-items: flex-start; }
  .economics__head h2 { width: auto; font-size: clamp(30px, 4.5vw, 48px); }
  .economics__intro-col { width: auto; min-height: auto; padding-left: 0; }
  .economics__intro { padding-left: 0; font-size: 17px; }
  .economics__inner { padding: 0; }
}
@media (max-width: 768px) {
  .economics__rows { padding: 32px 20px; gap: 32px; }
  .economics__row .num { font-size: clamp(48px, 12vw, 75px); }
  .economics__hero { padding: 36px; }
}

/* ---- Caps tabs ---- */
@media (max-width: 768px) {
  .caps__head h2 { font-size: clamp(26px, 7vw, 48px); }
  .caps__head p { font-size: 17px; }
  .caps__tabs { gap: 10px; padding: 16px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .cap-tab { flex-shrink: 0; font-size: 15px; padding: 10px 16px; height: 46px; width: auto; }
}

/* ---- Testimonial ---- */
@media (max-width: 768px) {
  .testimonial { padding: 72px 0; }
  .testimonial__quote { font-size: clamp(18px, 5vw, 32px); }
}

/* ---- FAQ ---- */
@media (max-width: 768px) {
  .faq__cta { grid-template-columns: 1fr; padding: 36px 28px; gap: 20px; text-align: center; }
  .faq__cta h3 { font-size: clamp(26px, 6vw, 45px); }
  .faq__cta h3 br { display: none; }                 /* heading on one line */
  .faq__cta-right { align-items: center; gap: 24px; } /* subheading + button centred */
  .faq__cta-right p { font-size: clamp(17px, 4vw, 30px); }
  .faq-qtext { font-size: 18px; }
}
/* FAQ CTA on tablet: shrink the heading (the 6vw clamp above pins it to 45px
   from ~750–768px) AND drop the subheading so there's clear hierarchy between
   them. Mobile (≤640) keeps its sizes. */
@media (min-width: 641px) and (max-width: 768px) {
  .faq__cta h3 { font-size: clamp(30px, 5vw, 36px); }
  .faq__cta-right p { font-size: 20px; }
}

/* ---- Final CTA ---- */
@media (max-width: 768px) {
  .final { padding: 80px 28px; gap: 32px; text-align: center; }
  .final__inner { text-align: center; }
  .final h2 { font-size: clamp(26px, 6vw, 45px); }
  .final__right { align-items: center; gap: 24px; }
  .final__right p { font-size: 16px; }
  .final__actions { justify-content: center; }
}

/* ---- Footer ---- */
@media (max-width: 768px) {
  .footer__bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer__social-divider { display: none; }
  .footer__social { gap: 16px; }
}
@media (max-width: 480px) {
  .footer__news-form { flex-direction: column; align-items: stretch; padding-inline: 12px; }
  .footer__news-btn { text-align: center; padding: 10px 24px; }
}
/* mobile: centre the entire footer */
@media (max-width: 560px) {
  .footer__top { justify-items: center; text-align: center; row-gap: 28px; }   /* tighter gaps between stacked columns */
  .footer__brand { align-items: center; text-align: center; }
  .footer__links { align-items: center; }
  .footer__bottom { flex-direction: column; align-items: center; gap: 16px; text-align: center; }
  .footer__legal { justify-content: center; gap: 8px 20px; }   /* tighter wrap between legal lines */
  .footer__social { justify-content: center; margin-top: 10px; }   /* a little space before the social icons */
}

/* ---- Reusable: fix image on mobile ---- */
@media (max-width: 900px) {
  .reusable__media img { position: relative; left: 0; top: 0; width: 120%; height: auto; max-width: none; }
}
@media (max-width: 480px) {
  .reusable__media img { width: 156%; left: -15%; }   /* ~30% bigger model on phones, nudged right to centre */
}

/* ---- Orch body paragraph gap ---- */
@media (max-width: 1100px) {
  .orch__body { gap: 14px; }
}

/* ---- Athena: tighten top gap on tablet ---- */
@media (max-width: 1100px) and (min-width: 769px) {
  .athena { padding-top: 40px; }
}

/* ---- Final CTA: larger heading on tablet ---- */
@media (max-width: 1100px) and (min-width: 769px) {
  .final h2 { font-size: 36px; }
}

/* ---- Three section ---- */
@media (max-width: 768px) {
  .three__head-left .eyebrow { font-size: 11px; letter-spacing: 0.04em; }
}

/* ---- Problem section padding ---- */
@media (max-width: 768px) {
  .problem { padding: 72px 0; }
  .problem__img { max-width: 50%; }   /* half-size image when stacked (tablet) */
  .three { padding: 72px 0; }
  .reusable { padding: 72px clamp(24px, 6vw, 48px); }
  .athena { padding: 56px 0; }
  .athena__title, .athena__body { text-align: center; align-items: center; }
  .athena__actions { display: flex; justify-content: center; }
  .faq { padding: 64px 28px 72px; }   /* breathing space above "Buyer questions, answered." */
}
@media (max-width: 480px) {
  .problem__img { max-width: 80%; }   /* bigger image on phones */
  /* mobile: swap wordmark for the icon (15% bigger) to free space for the CTA */
  .nav__logo-full { display: none; }
  .nav__logo img.nav__logo-icon { display: block; height: 46px; }
  /* mobile layout: icon left · Book a Demo centred · hamburger right.
     Logo + burger sit in normal flow (vertically centred via align-items);
     only the CTA is absolutely centred. */
  .nav__inner { padding-inline: 16px; }                /* logo slightly further left */
  .nav__cta-desktop { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
}

/* ===== Logo bar (Logo / 3) — shared ===== */
.hp-logos {
  background: #fff;
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.hp-logos__heading {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.3;
  color: #0f1e6d;
  text-align: center;
  max-width: 936px;
  margin: 0;
}
.hp-logos__row {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.hp-logos__logo { object-fit: contain; width: auto; }
.hp-logos__logo--metrofibre { height: 40px; }
.hp-logos__logo--gotyme { height: 36px; }
.hp-logos__logo--avbob { height: 58px; }
.hp-logos__logo--lightstone { height: 44px; }

/* ===== Testimonial (Testimonial / 1) — shared ===== */
.hp-quote {
  background: #fff;
  padding: 112px 64px;
  display: flex;
  justify-content: center;
}
.hp-quote__inner {
  max-width: 1076px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.hp-quote__logo { height: 41px; width: auto; }
.hp-quote__text {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.3;
  color: #6861e7;
  margin: 0;
}
.hp-quote__person {
  display: flex;
  flex-direction: column;
  color: var(--deep-blue);
  font-size: 16px;
  line-height: 1.5;
}
.hp-quote__name { font-weight: 600; margin: 0; }
.hp-quote__role { font-weight: 400; margin: 0; }

/* ===== Shared logos + testimonial — responsive ===== */
@media (max-width: 900px) {
  .hp-logos { padding: 72px 28px; gap: 40px; }
  .hp-logos__heading { font-size: 26px; }
  .hp-quote { padding: 72px 28px; }
  .hp-quote__text { font-size: 26px; }
}
@media (max-width: 640px) {
  .hp-logos__row { gap: 32px; }
  .hp-quote__text { font-size: 22px; }
}

/* ===== Demo / Book a Demo modal ===== */
.demo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,30,109,0.75);
  backdrop-filter: blur(4px);
  z-index: 900;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease-out);
}
.demo-overlay.is-open { opacity: 1; pointer-events: auto; }
.demo-modal {
  background: #0f1e6d;
  border-radius: 30px;
  width: 100%;
  max-width: 896px;
  padding: 72px 64px;
  position: relative;
  margin: auto;
  transform: translateY(24px);
  transition: transform .25s var(--ease-out);
}
.demo-overlay.is-open .demo-modal { transform: none; }
.demo-modal__close {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.demo-modal__close:hover { background: rgba(255,255,255,0.2); }
.demo-modal__close .material-symbols-rounded { font-size: 22px; }
.demo-modal__inner { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.demo-modal__head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.demo-modal__eyebrow {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8087b0;
  margin: 0;
}
.demo-modal__title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  color: #fda104;
  margin: 0;
}
.demo-modal__text {
  font-size: 18px;
  line-height: 1.5;
  color: #fff;
  margin: 0;
  max-width: 600px;
}
.demo-modal__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.demo-row { display: flex; gap: 24px; }
.demo-row .demo-field { flex: 1; min-width: 0; }
.demo-field { display: flex; flex-direction: column; gap: 8px; }
.demo-label {
  font-family: var(--font-brand);
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
}
.demo-input {
  height: 48px;
  border: 2px solid #fda104;
  border-radius: 175px;
  padding: 0 16px;
  background: transparent;
  color: #fff;
  font-family: var(--font-brand);
  font-size: 16px;
  outline: none;
  transition: border-color .15s;
  width: 100%;
  box-sizing: border-box;
}
.demo-input:focus { border-color: #fff; }
.demo-input::placeholder { color: rgba(255,255,255,0.35); }
.demo-select-wrap { position: relative; }
.demo-select {
  width: 100%;
  height: 48px;
  border: 2px solid #fda104;
  border-radius: 175px;
  padding: 0 44px 0 16px;
  background: transparent;
  color: #fff;
  font-family: var(--font-brand);
  font-size: 16px;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .15s;
  box-sizing: border-box;
}
.demo-select:focus { border-color: #fff; }
.demo-select option { background: #0f1e6d; color: #fff; }
.demo-select-icon {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 22px;
  pointer-events: none;
}
.demo-textarea {
  border: 2px solid #fda104;
  border-radius: 25px;
  padding: 12px 16px;
  background: transparent;
  color: #fff;
  font-family: var(--font-brand);
  font-size: 16px;
  outline: none;
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
  transition: border-color .15s;
  width: 100%;
  box-sizing: border-box;
}
.demo-textarea:focus { border-color: #fff; }
.demo-textarea::placeholder { color: rgba(255,255,255,0.35); }
.demo-checks { display: flex; flex-direction: column; gap: 0; }
.demo-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  font-family: var(--font-brand);
}
.demo-check-input {
  appearance: none;
  flex-shrink: 0;
  width: 18px; height: 18px;
  border: 1px solid #fff;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: background .15s, border-color .15s;
}
.demo-check-input:checked { background: #fda104; border-color: #fda104; }
.demo-check-input:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 2px;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}
.demo-submit { display: flex; justify-content: center; padding-top: 8px; }
.demo-submit .cx-btn { min-width: 161px; }

/* ---- Demo modal thank-you state (Figma Dev Ready 13384:658) ---- */
/* the display:flex on these blocks beats the UA [hidden] rule */
.demo-modal__inner[hidden], .demo-thanks[hidden] { display: none; }
.cx-btn--secondary.cx-btn--orange { color: var(--white); border-color: #F78E20; }
.cx-btn--secondary.cx-btn--orange:hover { background: rgba(247,142,32,0.15); color: var(--white); }
.demo-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  color: #fff;
}
.demo-thanks__eyebrow {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: clamp(16px, 1.56vw, 20px);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8087b0;
  margin: 0;
}
.demo-thanks__title {
  font-family: var(--font-brand);
  font-weight: 700;
  line-height: 1.1;
  font-size: clamp(30px, 3.75vw, 48px);
  color: var(--bright-orange);
  margin: 0;
}
.demo-thanks__body { font-size: 18px; line-height: 1.5; margin: 0; }
.demo-thanks__cta { margin-top: 16px; }
.demo-thanks .pill-btn,
.demo-thanks .cx-btn { font-size: 18px; font-weight: 800; }
.demo-thanks__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .demo-modal { padding: 56px 24px 48px; }
  .demo-row { flex-direction: column; gap: 24px; }
  .demo-modal__title { font-size: clamp(28px, 8vw, 48px); }
  .demo-thanks .pill-btn,
  .demo-thanks .cx-btn { font-size: 16px; }
  .demo-thanks__actions { gap: 12px; }
}

/* ============================================================
   Cookie consent banner (Figma Dev Ready 13293:589 desktop / 13293:644 mobile)
   ============================================================ */
.cookie-consent {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  max-width: 1408px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 32px 32px 48px;
  background: var(--soft-grey);
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  transform: translateY(calc(100% + 40px));
  opacity: 0;
  transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out);
}
.cookie-consent.is-visible { transform: translateY(0); opacity: 1; }

.cookie-consent__text { flex: 1 1 0; min-width: 0; font-size: 16px; line-height: 1.5; color: var(--deep-blue); margin: 0; }
.cookie-consent__link { color: var(--deep-blue); text-decoration: underline; }
.cookie-consent__link:hover { color: var(--deep-orange); }

.cookie-consent__prefs {
  flex: 0 0 auto;
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  font-family: var(--font-brand); font-weight: 400; font-size: 16px; line-height: 1.5;
  color: var(--deep-blue); white-space: nowrap;
}
.cookie-consent__prefs:hover { color: var(--deep-orange); }

.cookie-consent__buttons { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.cookie-consent__btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: var(--radius-pill);
  font-family: var(--font-brand); font-weight: 800; font-size: 16px; line-height: 1.5;
  white-space: nowrap; cursor: pointer; width: fit-content; box-sizing: border-box;
  transition: filter var(--duration-base) var(--ease-standard), transform var(--duration-fast) var(--ease-standard),
    background var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard);
}
.cookie-consent__btn--decline { background: transparent; border: 1px solid var(--deep-blue); color: var(--deep-blue); }
.cookie-consent__btn--decline:hover { background: var(--deep-blue); color: var(--white); }
/* exact Figma 13293:595 gradient, not tokenized (--gradient-secondary runs the opposite way) */
.cookie-consent__btn--accept { background: linear-gradient(90deg, #F8951E 0%, #F04E2C 100%); border: none; color: var(--white); }
.cookie-consent__btn--accept:hover { filter: brightness(0.94); }

.cookie-consent__close {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: none; border: none; padding: 0; cursor: pointer; color: var(--deep-blue);
}
.cookie-consent__close svg { display: block; width: 32px; height: 32px; }
.cookie-consent__close:hover { color: var(--deep-orange); }

@media (max-width: 900px) {
  .cookie-consent {
    bottom: 16px;
    flex-flow: row wrap; align-items: center;
    gap: 24px 32px;
    padding: 32px 48px 32px 24px;
    border-radius: 30px;
  }
  /* text takes the full first row; extra right padding keeps it clear of the close X */
  .cookie-consent__text { flex: 1 0 100%; padding-right: 32px; }
  .cookie-consent__close { position: absolute; right: 24px; top: 24px; }
}
@media (max-width: 640px) {
  /* Figma mobile frame: 335 card on a 375 viewport = 20px margins */
  .cookie-consent { left: 20px; right: 20px; bottom: 20px; }
}

/* ============================================================
   Cookie preferences modal (Figma Dev Ready 13293:598 desktop / 13293:653 mobile)
   ============================================================ */
.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;
}

.cookie-prefs-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25); /* exact Figma scrim — lighter than the demo modal's */
  z-index: 950;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 112px 32px 32px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease-out);
}
.cookie-prefs-overlay.is-open { opacity: 1; pointer-events: auto; }

.cookie-prefs {
  position: relative;
  width: 100%;
  max-width: 768px;
  background: var(--soft-grey);
  border-radius: 15px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  box-shadow: var(--shadow-lg);
}
.cookie-prefs__close {
  position: absolute; right: 16px; top: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: none; border: none; padding: 0; cursor: pointer; color: var(--deep-blue);
}
.cookie-prefs__close svg { display: block; width: 32px; height: 32px; }
.cookie-prefs__close:hover { color: var(--deep-orange); }

.cookie-prefs__top { display: flex; flex-direction: column; gap: 16px; }
.cookie-prefs__top .cookie-prefs__actions { margin-top: 16px; } /* Figma: 16 title↔body, 32 body↔buttons */

.cookie-prefs__heading {
  font-family: var(--font-brand); font-weight: 600; font-size: 32px; line-height: 1.3;
  color: var(--deep-blue); margin: 0; text-wrap: wrap;
}
.cookie-prefs__body { font-size: 16px; line-height: 1.5; color: var(--deep-blue); margin: 0; }

.cookie-prefs__actions { display: flex; gap: 16px; align-items: center; }
.cookie-prefs__actions--footer { align-self: flex-end; }

.cookie-prefs__divider { border: none; border-top: 1px solid #D0D0D0; margin: 0; width: 100%; }

.cookie-prefs__bottom { display: flex; flex-direction: column; gap: 24px; }
.cookie-prefs__list { display: flex; flex-direction: column; gap: 24px; }
.cookie-pref-item { display: flex; flex-direction: column; gap: 8px; }
.cookie-pref-item__top { display: flex; gap: 16px; align-items: center; }
.cookie-pref-item__title {
  flex: 1 1 0; min-width: 0; margin: 0;
  font-family: var(--font-brand); font-weight: 700; font-size: 24px; line-height: 1.3; color: var(--deep-blue);
}
.cookie-pref-item__always { font-weight: 600; font-size: 16px; line-height: 1.5; color: var(--deep-blue); white-space: nowrap; }

/* Toggle switch: 40px track, 4px padding, 16px knob (Figma Switch component) */
.cookie-toggle { position: relative; display: inline-flex; flex: 0 0 auto; cursor: pointer; }
.cookie-toggle__input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie-toggle__track {
  display: block; width: 40px; height: 24px; padding: 4px; box-sizing: border-box;
  background: #CCCCCC; border-radius: var(--radius-pill);
  transition: background var(--duration-base) var(--ease-standard);
}
.cookie-toggle__track::before {
  content: ""; display: block; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white);
  transition: transform var(--duration-base) var(--ease-out);
}
.cookie-toggle__input:checked + .cookie-toggle__track { background: var(--deep-blue); }
.cookie-toggle__input:checked + .cookie-toggle__track::before { transform: translateX(16px); }
.cookie-toggle__input:focus-visible + .cookie-toggle__track { box-shadow: var(--focus-ring); }

/* Floating re-open button — icon-only round (label lives in aria-label/title;
   44px preserves the a11y touch-target minimum) */
.cookie-manager {
  position: fixed; left: 32px; bottom: 32px; z-index: 890;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: var(--white); border: none; border-radius: 50%;
  color: var(--deep-blue); cursor: pointer; box-shadow: var(--shadow-md);
}
.cookie-manager svg { display: block; flex: 0 0 auto; }

/* Floating back-to-top — round, mirrors .cookie-manager on the right edge.
   Injected by iip.js; .show appears after ~600px of scroll. */
.back-top {
  position: fixed; right: 32px; bottom: 32px; z-index: 890;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  background: var(--periwinkle); border: none; border-radius: 50%;
  color: #fff; cursor: pointer; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease-standard), transform .25s var(--ease-standard), visibility .25s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: #5a52d5; }
.back-top:focus-visible { box-shadow: var(--focus-ring); }
.back-top svg { display: block; flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) { .back-top { transition: none; } }

@media (max-width: 640px) {
  .cookie-prefs-overlay { padding: 64px 20px 32px; }
  .cookie-prefs { padding: 64px 24px 24px; gap: 32px; } /* extra top padding clears the absolute close X */
  .cookie-prefs__top { gap: 12px; }
  .cookie-prefs__actions { flex-direction: column; align-items: flex-start; }
  .cookie-prefs__actions--footer { align-self: stretch; }
  .cookie-manager { left: 20px; bottom: 20px; }
  .back-top { right: 20px; bottom: 20px; width: 44px; height: 44px; }
}

/* ---- #site-nav placeholder heights (banner wraps taller as width shrinks;
        measured values — see the base rule's comment near .nav) ---- */
@media (max-width: 900px) { #site-nav { min-height: 204px; } }
@media (max-width: 768px) { #site-nav { min-height: 182px; } }
@media (max-width: 640px) { #site-nav { min-height: 192px; } }
@media (max-width: 480px) { #site-nav { min-height: 261px; } }
