/* ==========================================================================
   Civic AI Interviewer — v3.3
   Source of truth: design/FNL_AI Interviewer Exploration.pen
   Frames: v3.3 (New Palette_Typography A) · v3.3 — Tablet (834) · v3.3 — Mobile (375)
   Breakpoints: Desktop ≥ 1025 · Tablet 641–1024 · Mobile ≤ 640 (see responsive-spec.md)
   Borders: pen.dev strokes sit inside the box and take no space, so they're
   drawn as inset box-shadows (or an ::after overlay when children paint over
   the edge) — never as CSS borders — to keep every size identical to the canvas.
   ========================================================================== */

:root {
  /* Final Palette (fp-*) */
  --white: #FFFFFF;
  --warm-canvas: #FBFAF5;
  --border: #DED4C3;
  --ocre-pale: #FFFAEB;
  --ocre-mid: #FFF3D6;
  --ocre: #FDCC62;
  --pale-peach: #FEE5E6;
  --peach: #FFCFD0;
  --peach-mid: #FE8A85;
  --coral: #FE413A;
  --pale-lavender: #E5E6FE;
  --lavender: #7B80F6;
  --muted: #8888A6;
  --secondary-ink: #4B4B6B;
  --deep-ink: #14143C;
  --off-black: #222222;
  --lede: #9F75A2;

  --font-sora: 'Sora', sans-serif;
  --font-chivo: 'Chivo', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-inter: 'Inter', sans-serif;

  /* Extra side space on screens wider than the 1440 design frame */
  --extra: max(0px, calc((100% - 1440px) / 2));
  --nav-h: 104px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--ocre-pale);
  color: var(--deep-ink);
  font-family: var(--font-chivo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Stationary dotted texture: a fixed layer everything scrolls over. It shows
   wherever a section has no background of its own (hero, product margins). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../assets/images/dots.svg") repeat;
  pointer-events: none;
}
h1, h2, h3, p, ol, ul, figure, fieldset, legend { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"], .chat-log, .menu__dropdown, .goals__list { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.icon { display: block; flex: none; width: 1em; height: 1em; }

:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 16px; background: var(--deep-ink); color: var(--white);
  font-weight: 600; font-size: 14px; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 16px; }
section[id], div[id="what-it-allows"], div[id="ethics"], div[id="case-studies"] { scroll-margin-top: var(--nav-h); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--font-chivo); font-weight: 600; line-height: normal;
  transition: background-color 150ms ease-out, filter 150ms ease-out, transform 100ms ease-out, opacity 300ms ease-out, visibility 300ms;
}
.btn--coral { background: var(--coral); color: var(--white); }
/* Every coral button (nav CTA, hero CTA, Start the Interview, Submit application) hovers to Lavender and shrinks slightly when pressed */
.btn--coral:hover { background: var(--lavender); }
.btn:active { transform: scale(0.98); }

/* ---------- Shared type ---------- */
.heading { font-family: var(--font-sora); font-weight: 600; font-size: 36px; line-height: 1.2; }
.heading--coral { color: var(--coral); }
.heading--white { color: var(--white); }
.heading--lavender { color: var(--lavender); }
.body-text { font-family: var(--font-chivo); font-size: 18px; line-height: 1.55; color: var(--secondary-ink); }

/* Two-column section header (heading column + body) */
.split-header { display: flex; gap: 24px; }
.split-header__heading { flex: 0 1 446px; }
.split-header__body { flex: 1 1 0; }

/* ==========================================================================
   Nav
   ========================================================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 40px calc(64px + var(--extra)) 24px;
}
.nav__wordmark {
  font-family: var(--font-sora); font-weight: 600; font-size: 32px; line-height: 1.25;
  letter-spacing: 0.5px; color: var(--deep-ink); text-decoration: none;
  transition: opacity 300ms ease-out, visibility 300ms;
}
/* Wordmark fades out as soon as the page leaves the top */
.site-header[data-top="false"] .nav__wordmark { opacity: 0; visibility: hidden; }
.nav__actions { display: flex; align-items: center; gap: 24px; }
.nav__cta { padding: 10px 20px; border-radius: 999px; font-size: 14px; }
.site-header[data-cta="hidden"] .nav__cta { opacity: 0; visibility: hidden; }

.menu { position: relative; }
.menu__button {
  display: flex; align-items: center; justify-content: center;
  width: 37px; height: 37px; padding: 0; border: 0; border-radius: 50%;
  background: var(--secondary-ink); color: var(--white); cursor: pointer;
  font-size: 17px;
  transition: background-color 150ms ease-out;
}
.menu__button:hover { background: var(--lavender); }
.menu__icon--close, .menu[data-open="true"] .menu__icon--open { display: none; }
.menu[data-open="true"] .menu__icon--close { display: block; }
.menu__dropdown {
  position: absolute; top: 51px; right: -5px; width: 236px;
  margin: 0; padding: 0; overflow: hidden;
  background: var(--warm-canvas); border-radius: 12px;
  box-shadow: 0 8px 24px #00000018;
}
.menu__dropdown::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--peach-mid);
}
.site-header[data-scrolled="true"] .menu__dropdown { top: 49px; }
.menu__item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 12px 16px;
  box-shadow: inset 0 -1px 0 var(--border);
  font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.8px;
  line-height: normal; text-transform: uppercase; color: var(--secondary-ink); text-decoration: none;
  transition: background-color 150ms ease-out;
}
.menu__item .icon { font-size: 12px; color: var(--coral); }
.menu__item:hover { background: var(--pale-lavender); }
.menu__item:focus-visible { outline-offset: -2px; }
/* COMMUNITY PILOT row: hidden while the nav CTA is showing; becomes the CTA otherwise */
.site-header[data-cta="visible"] .menu__item--pilot { display: none; }
.menu__item--pilot { background: var(--coral); color: var(--white); box-shadow: none; }
.menu__item--pilot .icon { color: var(--white); }
.menu__item--pilot:hover { background: var(--lavender); }

/* ==========================================================================
   Hero — chat demo + intro
   ========================================================================== */
.hero { padding-top: var(--nav-h); }
.chat-stage {
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 0 56px;
  min-height: calc(100svh - var(--nav-h));
}
.chat-card {
  position: relative; width: 720px; max-width: 100%;
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 3px #00000052, 0 12px 16px #FC88F726;
}
.chat-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--peach-mid);
}
.chat-card__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: var(--white);
}
.chat-card__dots { display: flex; align-items: center; gap: 6px; }
.chat-card__dots i { display: block; width: 12px; height: 12px; border-radius: 50%; }
.chat-card__dots i:nth-child(1) { background: var(--lavender); }
.chat-card__dots i:nth-child(2) { background: var(--ocre); }
.chat-card__dots i:nth-child(3) { background: var(--coral); }
.chat-card__title { font-family: var(--font-mono); font-size: 11px; line-height: normal; color: var(--coral); }

.chat-log { display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 24px 24px 48px; }
.msg { margin: 0; }
.msg--ai { display: flex; align-items: flex-start; gap: 10px; }
.msg__avatar {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%; background: var(--ocre);
  font-family: var(--font-mono); font-weight: 600; font-size: 13px; line-height: normal; color: var(--coral);
}
.msg__bubble { font-family: var(--font-inter); font-size: 14px; line-height: 20px; } /* 1.45, rounded to whole px as the canvas renders it */
.msg--ai .msg__bubble {
  padding: 14px 20px; border-radius: 3px 14px 14px 14px;
  background: var(--lavender); color: var(--white);
}
.msg__bubble--line { white-space: nowrap; }
.msg__bubble--434 { width: 474px; }
.msg--user { display: flex; justify-content: flex-end; }
.msg--user .msg__bubble {
  width: 460px; padding: 14px 20px; border-radius: 14px 14px 3px 14px;
  background: var(--warm-canvas); color: var(--deep-ink);
  box-shadow: inset 0 0 0 1px var(--border);
  transition: color 300ms ease-out, box-shadow 300ms ease-out;
}
/* Follow-up flagged (Chat/User Message — Active) */
.msg--user.is-active .msg__bubble { color: var(--coral); box-shadow: inset 0 0 0 1px var(--peach-mid); }
.followup-tag {
  display: flex; align-items: center; gap: 5px; padding: 8px 0 0 38px;
  font-family: var(--font-mono); font-weight: 500; font-size: 10px; letter-spacing: 1px;
  line-height: normal; text-transform: uppercase; color: var(--coral);
}
.followup-tag .icon { font-size: 11px; }

/* Typing indicator (Chat/Typing Indicator) */
.msg--typing .msg__bubble { display: flex; align-items: center; gap: 5px; padding: 21px 20px; }
.msg--typing .msg__bubble i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--white); animation: typing-dot 900ms ease-in-out infinite; }
.msg--typing .msg__bubble i:nth-child(2) { animation-delay: 150ms; }
.msg--typing .msg__bubble i:nth-child(3) { animation-delay: 300ms; }
@keyframes typing-dot { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
/* Interviewee typing indicator (Chat/User Typing Indicator): beige bubble, ink dots */
.msg--user.msg--typing .msg__bubble { width: auto; }
.msg--user.msg--typing .msg__bubble i { background: var(--secondary-ink); }

/* Chat sequence states (driven by js/main.js) */
.chat-card.is-pending { opacity: 0; transform: translateY(16px); }
.chat-card.is-entering { transition: opacity 600ms ease-out, transform 600ms ease-out; }
.chat-log > .is-hidden { display: none; }
.chat-log > .is-appearing { animation: msg-in 400ms ease-out both; }
.followup-tag.is-appearing { animation: tag-in 200ms ease-out both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tag-in { from { opacity: 0; } to { opacity: 1; } }
/* Tag and flagged bubble pulse together while the AI types: 2 × 1200ms.
   The pulse runs on the tag's contents so it can overlap the tag's own fade-in. */
.followup-tag.is-pulsing > * { animation: tag-pulse 1200ms ease-in-out 2; }
.msg--user.is-pulsing .msg__bubble { animation: bubble-pulse 1200ms ease-in-out 2; }
@keyframes tag-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes bubble-pulse {
  0%, 100% { box-shadow: inset 0 0 0 1px var(--peach-mid), 0 0 0 0 #FE413A00; }
  50% { box-shadow: inset 0 0 0 1px var(--peach-mid), 0 0 14px 0 #FE413A59; }
}

/* Intro */
.intro {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 96px calc(150px + var(--extra)) 144px;
}
.intro__headline-wrap { width: 100%; max-width: 915.45px; }
.intro__headline {
  font-family: var(--font-sora); font-weight: 600; font-size: 40px; line-height: 1.15;
  text-align: center; color: var(--deep-ink);
  transform: rotate(0.18deg); transform-origin: top left;
}
.intro__lede {
  width: 100%; max-width: 930px;
  font-family: var(--font-chivo); font-size: 22px; line-height: 1.5; letter-spacing: 0.1px;
  text-align: center; color: var(--lede);
}
/* Hero CTA (leads to the "Try an interview" page) */
.intro__cta { margin-top: 16px; padding: 12px 32px; border-radius: 999px; font-size: 18px; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 800ms ease-out, transform 800ms ease-out; }
.js .reveal--late { transition-delay: 150ms; }
.js .reveal.is-revealed { opacity: 1; transform: none; }

/* ==========================================================================
   Product panel
   ========================================================================== */
.product { padding: 0 calc(64px + var(--extra)) 128px; }
.product__panel { position: relative; border-radius: 56px; overflow: hidden; }
.product__panel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--peach-mid);
}

/* What it allows */
.allows { display: flex; flex-direction: column; gap: 56px; padding: 110px 87px 126px; background: var(--white); }
.use-cases { display: flex; gap: 28px; }
.use-case {
  flex: 1 1 0; display: flex; flex-direction: column; gap: 16px; padding: 26px;
  background: var(--white); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--peach-mid);
}
.use-case:first-child { align-self: flex-start; }
.use-case__top { display: flex; align-items: center; gap: 16px; }
.icon-tile {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 52px; height: 52px; border-radius: 50%; background: var(--pale-peach); color: var(--coral);
  font-size: 28px;
}
.icon-tile--48 { width: 48px; height: 48px; }
.use-case__title { flex: 1 1 0; font-family: var(--font-sora); font-weight: 600; font-size: 16px; line-height: 1.25; color: var(--deep-ink); }
.use-case__body { font-size: 14px; line-height: 1.55; color: var(--secondary-ink); }

/* Ethics */
.ethics { padding: 0 87px; background: var(--white); }
.ethics__panel { display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 80px 112px 96px; background: var(--lavender); border-radius: 24px; overflow: hidden; }
.ethics__header { display: flex; flex-direction: column; gap: 16px; }
.ethics__header .heading { line-height: 1.18; }
.ethics__body { font-size: 18px; line-height: 1.6; letter-spacing: 0.15px; color: var(--white); }
.principles { display: flex; flex-direction: column; gap: 24px; }
.principle { display: flex; gap: 24px; }
.principle--center { align-items: center; }
.principle__tile {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 74px; height: 74px; border-radius: 50%; background: var(--secondary-ink); color: var(--peach-mid);
  font-size: 42px;
}
.principle__text { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; }
.principle__title { font-family: var(--font-chivo); font-weight: 600; font-size: 18px; line-height: normal; color: var(--white); }
.principle__body { font-size: 16px; line-height: 1.5; color: var(--white); }

/* Case studies */
.cases { display: flex; flex-direction: column; gap: 52px; padding: 126px 87px 120px; background: var(--white); }
.case-cards { display: flex; gap: 28px; }
.case-cards > li { flex: 1 1 0; display: flex; }
.case-card {
  position: relative; display: flex; flex-direction: column; width: 100%;
  background: var(--white); border-radius: 12px; overflow: hidden; text-decoration: none;
  box-shadow: 0 4px 8px #14143C1A;
  transition: background-color 200ms ease-out, box-shadow 200ms ease-out, transform 100ms ease-out;
}
.case-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--peach-mid); transition: box-shadow 200ms ease-out;
}
.case-card__plate { display: flex; align-items: center; justify-content: center; flex: none; height: 139px; padding: 24px; background: var(--ocre-mid); }
.case-card--fogo .case-card__plate { height: 135px; }
.case-card__logo { object-fit: contain; mix-blend-mode: multiply; transition: transform 200ms ease-out; }
.case-card--fogo .case-card__logo { width: 288px; height: 41px; max-width: none; }
.case-card--bj .case-card__logo { width: 271px; height: 69px; max-width: none; }
.case-card--kcl .case-card__logo { width: 120px; height: 91px; }
.case-card__body {
  flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; gap: 0;
  padding: 24px 24px 32px; transform: rotate(0.2deg); transform-origin: top left;
}
.case-card__text { display: flex; flex-direction: column; gap: 12px; }
.case-card__label { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 1px; line-height: normal; text-transform: uppercase; white-space: nowrap; color: var(--lavender); }
.case-card__title { font-family: var(--font-sora); font-weight: 600; font-size: 18px; line-height: 1.25; color: var(--secondary-ink); }
.case-card--fogo .case-card__title { line-height: 1.35; }
.case-card__desc { font-size: 14px; line-height: 1.5; color: var(--muted); }
.case-card--fogo .case-card__desc { letter-spacing: 0.15px; }
.case-card__link { display: flex; align-items: center; gap: 6px; padding-top: 6px; font-weight: 600; font-size: 13px; line-height: normal; color: var(--coral); }
.case-card__link .icon { font-size: 13px; }
/* Hover / pressed (CaseCard — Hover / — Pressed) */
.case-card:hover { background: var(--ocre-pale); box-shadow: 0 14px 28px #14143C26; }
.case-card:hover::after { box-shadow: inset 0 0 0 1px var(--coral); }
.case-card:hover .case-card__logo { transform: scale(1.04); }
.case-card:hover .case-card__link { text-decoration: underline; }
.case-card:active { transform: scale(0.98); box-shadow: 0 2px 6px #14143C1A; }

/* ==========================================================================
   Why we built it
   ========================================================================== */
/* Side padding is 151 at 1440 (on the 12-col grid) and eases to 40 at 1025 (the Tablet value), so the card keeps room for its content */
.why { position: relative; overflow: hidden; padding: 144px calc(clamp(40px, 26.75vw - 234.2px, 151px) + var(--extra)); }
.why__photo {
  position: absolute; width: 2498px; height: 1874px; max-width: none; object-fit: cover;
  left: calc(50% + 38px - 1249px); top: calc(50% - 87px - 937px);
  transform: translateY(var(--parallax-shift, 0px)); will-change: transform;
}
.why__card {
  position: relative; display: flex; flex-direction: column; gap: 56px; padding: 96px 112px;
  background: var(--white); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--peach);
}
.why__content { display: flex; flex-direction: column; gap: 32px; }
.why__heading { line-height: 1.15; transform: rotate(0.18deg); transform-origin: top left; }
.why__copy { display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.why__copy .body-text { line-height: 29px; } /* 1.6, rounded to whole px as the canvas renders it */
.goals { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.goals__intro { font-weight: 600; font-size: 18px; line-height: 29px; color: var(--secondary-ink); }
.goal { display: flex; gap: 24px; padding: 20px 0; box-shadow: inset 0 1px 0 var(--peach); }
.goal--first { box-shadow: none; }
.goal--last { padding-bottom: 12px; }
.goal__num { flex: none; width: 64px; font-family: var(--font-sora); font-size: 44px; line-height: 1; color: var(--coral); }
.goal__label { flex: 1 1 0; font-size: 18px; line-height: 29px; color: var(--secondary-ink); }
/* --advisor-gap is 79 at 1440 and eases to 24 at 1025. The three advisors always stay on one line;
   if the row gets tight, the label moves above them instead. */
.advisors { --advisor-gap: clamp(24px, 13.25vw - 111.8px, 79px); padding-top: 16px; box-shadow: inset 0 1px 0 var(--coral); }
.advisors__row { display: flex; flex-wrap: wrap; gap: 24px var(--advisor-gap); }
.advisors__label { flex: none; font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 1.6px; line-height: normal; text-transform: uppercase; color: var(--coral); }
.advisors__list { flex: 3 1 0; min-width: max-content; display: flex; flex-wrap: wrap; gap: 16px var(--advisor-gap); }
/* Names never wrap: an advisor keeps its content width and the row wraps instead */
.advisor { flex: 1 1 0; min-width: max-content; display: flex; align-items: center; gap: 10px; }
/* Names link to LinkedIn (Advisor / — Hover / — Pressed on the board) */
.advisor__name {
  display: inline-flex; align-items: center; gap: 3px;
  font-weight: 600; font-size: 16px; line-height: normal; color: var(--deep-ink);
  text-decoration: underline 1px transparent; text-underline-offset: 5px;
  transition: color 150ms ease-out, text-decoration-color 150ms ease-out;
}
.advisor__name:hover { color: var(--lavender); text-decoration-color: currentColor; }
.advisor__name:active { color: var(--coral); text-decoration-color: currentColor; }
/* ↗ marks the name as an external link: Coral at rest, then follows the name's colour */
.advisor__arrow { font-size: 13px; color: var(--coral); transition: color 150ms ease-out; }
.advisor__name:hover .advisor__arrow, .advisor__name:active .advisor__arrow { color: currentColor; }

/* ==========================================================================
   Pilot access
   ========================================================================== */
.pilot {
  display: flex; flex-direction: column; gap: 56px;
  padding: 134px calc(151px + var(--extra)) 110px;
  background: var(--white); box-shadow: inset 0 1px 0 var(--border);
}
.pilot__info { display: flex; flex-direction: column; gap: 56px; }
.pilot__header { display: flex; gap: 111px; }
.pilot__heading { flex: 0 1 446px; }
.pilot__body { flex: 1 1 0; line-height: 1.6; }
.pilot__details { display: flex; flex-direction: column; gap: 32px; }

.eligibility { padding: 24px; background: var(--ocre-mid); border-radius: 10px; }
.eligibility__row { display: flex; gap: 36px; }
.eligibility__title { flex: 0 0 166px; display: flex; gap: 8px; font-family: var(--font-chivo); font-weight: 600; font-size: 15px; line-height: normal; color: var(--deep-ink); }
.eligibility__title .icon { font-size: 18px; color: var(--coral); }
.criteria { flex: 1 1 0; display: flex; gap: 28px; }
.criterion { flex: 1 1 0; display: flex; gap: 8px; font-size: 14px; line-height: 1.4; color: var(--secondary-ink); }
.criterion .icon { font-size: 14px; color: var(--coral); }
.criterion--first .icon { font-size: 16px; }

.prices { display: flex; gap: 24px; }
.price { flex: 1 1 0; display: flex; flex-direction: column; background: var(--white); border-radius: 12px; overflow: hidden; position: relative; }
.price::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--border); }
.price__spine { display: block; height: 6px; flex: none; }
.price--grassroots .price__spine { background: var(--coral); }
.price--medium .price__spine { background: var(--lavender); }
.price--large .price__spine { background: var(--ocre); }
.price__body { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 28px 28px; background: var(--warm-canvas); }
.price__name { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.price__name h3 { font-family: var(--font-sora); font-weight: 600; font-size: 24px; line-height: normal; color: var(--deep-ink); }
.price__name p { font-size: 14px; line-height: normal; color: var(--muted); }
.price__rule { width: 100%; height: 1px; margin: 0; border: 0; background: var(--border); }
.price__amount { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.price__value { font-family: var(--font-sora); font-weight: 600; font-size: 38px; line-height: normal; }
.price--grassroots .price__value { color: var(--coral); }
.price--medium .price__value { color: var(--lavender); }
.price--large .price__value { color: var(--ocre); }
.price__amount p:last-child { font-size: 12px; line-height: normal; color: var(--muted); }

.process-faq { display: flex; flex-direction: column; gap: 8px; }
.process { display: flex; flex-direction: column; gap: 24px; padding: 24px; background: var(--ocre-mid); border-radius: 10px; }
.process__header { display: flex; gap: 6px; }
.process__title { flex: 1 1 0; display: flex; align-items: center; gap: 8px; font-family: var(--font-chivo); font-weight: 600; font-size: 15px; line-height: normal; color: var(--deep-ink); }
.process__title .icon { font-size: 18px; color: var(--coral); }
.process__desc { font-size: 14px; line-height: 1.4; color: var(--secondary-ink); white-space: nowrap; }
.steps { display: flex; gap: 16px; }
.step { flex: 1 1 0; display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--white); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--peach-mid); }
.step__tile { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--pale-peach); color: var(--coral); font-size: 20px; }
.step__text { flex: 1 1 0; font-family: var(--font-sora); font-weight: 600; font-size: 14px; line-height: 1.25; color: var(--deep-ink); }

/* FAQ accordion */
.faq { padding-bottom: 32px; } /* FAQ sits above The Process */
.faq-item { display: flex; flex-direction: column; padding: 22px 0; box-shadow: inset 0 1px 0 var(--border), inset 0 -1px 0 var(--border); }
.faq-item__heading { font: inherit; }
.faq-item__toggle {
  display: flex; justify-content: space-between; align-items: center; gap: 0;
  width: calc(100% + 16px); margin: -6px -8px; padding: 6px 8px;
  background: transparent; border: 0; border-radius: 6px; cursor: pointer; text-align: left;
  transition: background-color 150ms ease-out;
}
.faq-item__question { flex: 1 1 0; font-family: var(--font-sora); font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--deep-ink); }
.faq-item__icon { display: flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--peach); color: var(--coral); font-size: 16px; transition: background-color 150ms ease-out, color 150ms ease-out; }
.faq-item__minus, .faq-item[data-open="false"] .faq-item__plus { display: block; }
.faq-item__plus, .faq-item[data-open="false"] .faq-item__minus { display: none; }
.faq-item__toggle:hover { background: var(--pale-peach); }
.faq-item__toggle:hover .faq-item__icon { background: var(--coral); color: var(--white); }
.faq-item__toggle:focus-visible { outline: 2px solid var(--coral); outline-offset: 0; }
.faq-item__answer { display: grid; grid-template-rows: 1fr; max-width: 820px; transition: grid-template-rows 200ms ease-out, opacity 200ms ease-out, visibility 200ms; }
/* Closed by default (FAQItem — Collapsed); hidden content also leaves the tab order */
.faq-item[data-open="false"] .faq-item__answer { grid-template-rows: 0fr; opacity: 0; visibility: hidden; }
.faq-item__answer-inner { overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.faq-item__answer-inner > :first-child { margin-top: 10px; } /* inside the clipped box, so it collapses with the answer */
.faq-item__body { font-size: 16px; line-height: 1.6; color: var(--secondary-ink); }
.faq-item__contact { display: flex; align-items: center; flex-wrap: wrap; column-gap: 5px; font-size: 16px; line-height: normal; color: var(--secondary-ink); }
.faq-item__contact a { font-weight: 600; color: var(--coral); text-decoration: none; }
.faq-item__contact a:hover, .footer__email:hover, .footer__col a:hover { text-decoration: underline; }
.footer__col a:hover { text-decoration-color: var(--coral); } /* footer link underline in Coral */
/* "Future Narratives Lab" links in the copy (option C): semibold in the accent colour,
   Coral on light backgrounds, Ocre on the Lavender ethics panel and the Off Black footer.
   Hover / pressed add a 1px underline in the same colour. */
.fnl-link {
  color: var(--coral); font-weight: 600;
  text-decoration: underline 1px transparent; text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease-out;
}
.ethics .fnl-link, .site-footer .fnl-link { color: var(--ocre); }
.fnl-link:hover, .fnl-link:active { text-decoration-color: currentColor; }

/* Application form */
.form-wrap { position: relative; background: var(--warm-canvas); border-radius: 14px; overflow: hidden; }
.form-wrap::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--border); }
.form-wrap__head { display: flex; flex-direction: column; gap: 8px; padding: 36px 40px 24px; box-shadow: inset 0 -1px 0 var(--border); }
.form-wrap__title { font-family: var(--font-sora); font-weight: 600; font-size: 20px; line-height: normal; color: var(--deep-ink); }
.form-wrap__intro { max-width: 730px; font-size: 14px; line-height: 1.5; color: var(--secondary-ink); }
.form { display: flex; flex-direction: column; gap: 22px; padding: 32px 40px 40px; }
.form__fields { display: flex; flex-direction: column; gap: 48px; max-width: 958px; }
.form__group, .field { border: 0; min-width: 0; }
.form__group { display: flex; flex-direction: column; gap: 16px; }
.form__group--tier { gap: 22px; }
.form__group-label { float: left; width: 100%; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 1.4px; line-height: normal; text-transform: uppercase; color: var(--coral); }
.form__row { display: flex; gap: 20px; }
.form__row > .field { flex: 1 1 0; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--loose { gap: 12px; }
.field__label { float: left; width: 100%; font-weight: 600; font-size: 12.5px; line-height: normal; color: var(--deep-ink); }
.field__req { margin-left: 3px; color: var(--lavender); }
.field__input {
  width: 100%; margin: 0; padding: 12px 14px; border: 0; border-radius: 6px;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--border);
  font-family: var(--font-chivo); font-size: 14px; line-height: normal; color: var(--deep-ink);
  -webkit-appearance: none; appearance: none;
}
.field__input::placeholder { color: var(--muted); opacity: 1; }
.field__input:focus-visible { outline: 2px solid var(--coral); outline-offset: 1px; }
/* Multi-line placeholders wrap like the canvas (Chrome/Edge grow to fit; others keep 1 row + scroll) */
.field__input--grow { display: block; resize: none; overflow: hidden; field-sizing: content; min-height: 0; }
@supports not (field-sizing: content) { .field__input--grow { overflow-y: auto; } }
/* Select: a wrapping text layer shows the value; the native select sits on top, invisible but fully interactive */
.field__select { position: relative; }
.field__select-value { display: block; padding-right: 43px; color: var(--muted); }
.field__select.has-value .field__select-value { color: var(--deep-ink); }
.field__select-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; }
.field__select:has(.field__select-native:focus-visible) .field__select-value { outline: 2px solid var(--coral); outline-offset: 1px; }
.field__select .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--muted); pointer-events: none; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

.choices { display: flex; gap: 10px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: var(--white); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border);
  font-weight: 600; font-size: 13px; line-height: normal; color: var(--muted); cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out, box-shadow 150ms ease-out;
}
.chip__input, .check__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.chip__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.chip:hover { box-shadow: inset 0 0 0 1px var(--lavender); }
.chip:has(.chip__input:checked) { background: var(--pale-lavender); color: var(--lavender); box-shadow: inset 0 0 0 1px var(--lavender); }
.chip:has(.chip__input:checked) .chip__dot { background: var(--lavender); }
.chip:has(.chip__input:focus-visible) { outline: 2px solid var(--coral); outline-offset: 2px; }

.check { display: flex; gap: 11px; padding-top: 4px; cursor: pointer; }
.check__box {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 17px; height: 17px; border-radius: 4px; background: var(--white);
  box-shadow: inset 0 0 0 1.4px var(--deep-ink); color: var(--deep-ink); font-size: 11px;
}
.check__box .icon { visibility: hidden; }
.check__input:checked + .check__box .icon { visibility: visible; }
.check:has(.check__input:focus-visible) .check__box { outline: 2px solid var(--coral); outline-offset: 2px; }
.check__text { font-size: 14px; line-height: 1.5; color: var(--secondary-ink); }

.form__submit-row { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; }
.form__required { font-size: 12px; line-height: normal; color: var(--muted); }
.form__submit { padding: 14px 30px; border-radius: 6px; font-size: 14.5px; }
.form__submit .icon { font-size: 15px; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 14px; line-height: 1.5; color: var(--secondary-ink); }
.form__status:empty { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { display: flex; flex-direction: column; gap: 40px; padding: 64px calc(151px + var(--extra)) 40px; background: var(--off-black); }
.footer__top { display: flex; gap: 80px; }
.footer__brand { flex: 0 0 424px; display: flex; flex-direction: column; gap: 14px; }
.footer__wordmark { font-family: var(--font-sora); font-weight: 600; font-size: 28px; line-height: normal; color: var(--white); }
.footer__tagline { font-size: 14px; line-height: 1.55; color: var(--ocre-pale); }
.footer__email { align-self: flex-start; font-family: var(--font-mono); font-size: 12.5px; line-height: normal; color: var(--lavender); text-decoration: none; }
.footer__links { flex: 1 1 0; display: flex; justify-content: flex-end; gap: 60px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col-heading { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1px; line-height: normal; color: var(--lavender); }
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a, .footer__item { display: block; font-size: 14px; line-height: normal; color: var(--white); text-decoration: none; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; box-shadow: inset 0 1px 0 var(--coral); }
.footer__copyright { font-size: 12.5px; line-height: normal; color: var(--lavender); }

/* ==========================================================================
   Tablet · 641–1024px (reference frame: v3.3 — Tablet (834))
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --nav-h: 93px; --extra: 0px; }
  .nav { padding: 32px 40px 24px; }
  .nav__wordmark { font-size: 28px; }

  .chat-stage { padding: 48px 40px 56px; }
  .intro { padding: 48px 40px 96px; }
  .intro__headline-wrap { max-width: none; }
  .intro__headline { font-size: 36px; }
  .intro__lede { max-width: none; font-size: 20px; }

  .heading { font-size: 28px; }
  .body-text { font-size: 16px; }
  .split-header { flex-direction: column; gap: 16px; }
  .split-header__heading { flex: none; }

  .product { padding: 0 24px 64px; }
  .product__panel { border-radius: 40px; }
  .allows { gap: 40px; padding: 72px 40px; }
  .use-cases { flex-direction: column; gap: 16px; }
  .use-case { gap: 8px; padding: 20px; }
  .use-case:first-child { align-self: stretch; }
  .icon-tile, .icon-tile--48 { width: 36px; height: 36px; font-size: 20px; }

  .ethics { padding: 0 40px; }
  .ethics__panel { padding: 56px 48px 64px; }
  .ethics__body { font-size: 16px; }

  .cases { padding: 72px 40px 88px; }
  .case-cards { flex-direction: column; gap: 20px; }

  .why { padding: 96px 40px; }
  .why__card { gap: 48px; padding: 56px 48px 64px; }
  .goals { max-width: none; }
  .why__copy .body-text { line-height: 26px; }
  .goals__intro { font-size: 17px; line-height: 27px; }
  .goal__num { font-size: 40px; }
  .goal__label { font-size: 16px; line-height: 26px; }
  .advisors__row { flex-direction: column; gap: 24px; }
  .advisors__list { flex: none; min-width: 0; gap: 24px; }

  .pilot { padding: 80px 40px; }
  .pilot__header { flex-direction: column; gap: 16px; }
  .pilot__heading { flex: none; }
  .eligibility__row { flex-direction: column; gap: 16px; }
  .eligibility__title { flex: none; }
  .prices { gap: 16px; }
  .process__header { flex-direction: column; }
  .process__desc { white-space: normal; }
  .faq-item__answer { max-width: none; }

  .form-wrap__head { padding: 40px 32px 24px; }
  .form-wrap__intro { max-width: none; }
  .form { padding: 32px 32px 40px; }
  .form__fields { max-width: none; }
  .choices--access { flex-direction: column; align-items: flex-start; gap: 8px; }

  .site-footer { padding: 56px 40px 32px; }
  .footer__top { flex-direction: column; gap: 40px; }
  .footer__brand { flex: none; }
  .footer__links { justify-content: flex-start; }
}

/* Tablet only: horizontal case cards (CaseCard — Horizontal), steps with icon above text */
@media (min-width: 641px) and (max-width: 1024px) {
  .case-card { flex-direction: row; }
  .case-card__plate, .case-card--fogo .case-card__plate { width: 240px; height: auto; }
  .case-card--fogo .case-card__logo { width: 192px; height: 27.3px; }
  .case-card--bj .case-card__logo { width: 192px; height: 48.89px; }
  .case-card--kcl .case-card__logo { width: 118.68px; height: 90px; }
  .case-card__body { flex: 1 1 0; gap: 12px; padding: 24px; transform: none; }
  .case-card__text { gap: 10px; }
  .case-card--fogo .case-card__title { line-height: 1.25; }
  .case-card--fogo .case-card__desc { letter-spacing: 0; }
  .case-card__link { padding-top: 4px; }
  .step { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Mobile · ≤ 640px (reference frame: v3.3 — Mobile (375))
   ========================================================================== */
@media (max-width: 640px) {
  :root { --nav-h: 73px; }
  .nav { padding: 20px 20px 16px; }
  .nav__wordmark { font-size: 24px; }
  .nav__cta { display: none; }

  .chat-stage { padding: 24px 16px 40px; }
  .chat-card { width: 100%; }
  .chat-card__header { padding: 14px 16px; }
  .chat-log { padding: 16px 16px 32px; }
  .msg__bubble { font-size: 12px; line-height: 17px; }
  .msg--ai .msg__bubble { flex: 1 1 0; padding: 10px 16px; white-space: normal; width: auto; }
  .msg--user .msg__bubble { width: 250px; padding: 10px 16px; }
  .msg--typing .msg__bubble { flex: none; padding: 15px 16px; }

  .intro { gap: 8px; padding: 56px 20px 80px; }
  .intro__headline { font-size: 24px; line-height: 1.25; }
  .intro__lede { font-size: 16px; }

  .heading { font-size: 24px; }
  .body-text { font-size: 14px; }

  .product { padding: 0 8px 64px; }
  .product__panel { border-radius: 28px; }
  .allows { padding: 48px 20px; }
  .use-case { gap: 16px; padding: 24px; }
  .icon-tile { width: 52px; height: 52px; font-size: 28px; }
  .icon-tile--48 { width: 48px; height: 48px; }
  .use-case__title { font-size: 14px; }
  .use-case__body { font-size: 12px; }

  .ethics { padding: 0 20px; }
  .ethics__panel { padding: 40px 24px 48px; border-radius: 16px; }
  .ethics__body { font-size: 14px; }
  .principles { gap: 32px; }
  .principle, .principle--renewable { flex-direction: column; gap: 16px; align-items: center; }
  .principle__tile { width: 52px; height: 52px; font-size: 28px; }
  .principle__text { flex: none; width: 100%; }
  .principle__title { font-size: 16px; }
  .principle__body { font-size: 14px; }

  .cases { padding: 64px 20px 56px; }
  .case-card__label { white-space: normal; }
  .case-card--fogo .case-card__logo { width: 274px; height: 35px; }

  .why { padding: 64px 16px; }
  .why__card { gap: 40px; padding: 40px 24px 48px; border-radius: 16px; }
  .why__content { gap: 16px; }
  .why__copy .body-text { line-height: 22px; }
  .goals__intro { font-size: 14px; line-height: 22px; }
  .goal { gap: 8px; }
  .goal__num { width: 48px; font-size: 32px; }
  .goal__label { font-size: 14px; line-height: 22px; }
  .advisors__row { gap: 16px; }
  .advisors__list { flex-direction: column; gap: 24px; }

  .pilot { padding: 56px 20px; }
  .pilot__info { gap: 40px; }
  .criteria { flex-direction: column; gap: 12px; }
  .criterion { font-size: 12px; }
  .prices { flex-direction: column; }
  .price { flex: none; }
  .process__desc { font-size: 12px; }
  .steps { flex-direction: column; gap: 12px; }
  .faq-item__question { font-size: 18px; }
  .faq-item__body { font-size: 14px; }
  .faq-item__contact { flex-direction: column; align-items: flex-start; row-gap: 4px; font-size: 14px; }

  .form-wrap__head { padding: 24px 16px 16px; }
  .form-wrap__intro { font-size: 12px; }
  .form { padding: 24px 16px 32px; }
  .form__fields { gap: 36px; }
  .form__row { flex-direction: column; gap: 16px; }
  .choices--tier { flex-direction: column; gap: 8px; }
  .choices .chip { width: 100%; }
  .form__submit-row { flex-direction: column; align-items: center; gap: 16px; }

  .site-footer { padding: 48px 20px 32px; }
  .footer__tagline { font-size: 12px; }
  .footer__links { flex-direction: column; gap: 28px; }
  .footer__col a, .footer__item { font-size: 12px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ==========================================================================
   Reduced motion: no sequence, no reveal, no parallax, no smooth scrolling
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .chat-card.is-pending { opacity: 1; transform: none; }
  .chat-log > .is-hidden { display: revert; }
  .why__photo { transform: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Sub-pages: privacy policy, try an interview, FAQs. Same template as the
   canvas frames "v3.3 — Privacy policy / Try an interview / FAQs": the main
   nav, a floating card on the 12-col grid (866 = 8 columns at 1440), the main
   footer. The nav and footer markup is repeated in each page (no build tools).
   ========================================================================== */
.subpage { padding: calc(var(--nav-h) + 24px) 24px 112px; }
.subpage__card {
  max-width: 866px; margin: 0 auto; padding: 64px 87px 72px;
  background: var(--white); border-radius: 24px;
  box-shadow: inset 0 0 0 1px var(--peach-mid); /* thin Peach Mid stroke, as on the chat card */
  color: var(--secondary-ink);
}
.subpage__title { font-family: var(--font-sora); font-weight: 600; font-size: 40px; line-height: 1.15; color: var(--deep-ink); }
.subpage__eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 1.6px; line-height: normal; text-transform: uppercase; color: var(--coral); }
.subpage__list { display: flex; flex-direction: column; gap: 6px; }
.subpage__list li { position: relative; padding-left: 22px; font-size: 16px; line-height: 26px; color: var(--secondary-ink); }
.subpage__list li::before { content: "\2022"; position: absolute; left: 0; }
/* Inline links in sub-page copy: same style as the "Future Narratives Lab" links */
.inline-link {
  color: var(--coral); font-weight: 600;
  text-decoration: underline 1px transparent; text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease-out;
}
.inline-link:hover, .inline-link:active { text-decoration-color: currentColor; }

/* ---------- Privacy policy ---------- */
.legal__card { font-size: 16px; line-height: 26px; } /* 1.6, rounded to whole px as the canvas renders it */
.legal__card > * + * { margin-top: 16px; }
.legal__eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--coral); }
.legal__title { margin-top: 8px; font-family: var(--font-sora); font-weight: 600; font-size: 40px; line-height: 1.15; color: var(--deep-ink); }
.legal__updated { font-size: 14px; color: var(--muted); }
.legal__updated strong { color: var(--secondary-ink); }
.legal__card h2 { margin-top: 48px; font-family: var(--font-sora); font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--deep-ink); }
.legal__card h3 { margin-top: 28px; font-family: var(--font-sora); font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--deep-ink); }
.legal__card ul { padding-left: 22px; }
.legal__card li + li { margin-top: 6px; }
.legal__card a { color: var(--coral); font-weight: 600; }
.legal__card strong { color: var(--deep-ink); }
.legal__address { font-style: normal; }
/* Blank to fill in before launch: an empty highlighted gap */
.placeholder { display: inline-block; min-width: 7em; height: 1.2em; vertical-align: -0.2em; background: var(--ocre-mid); border-radius: 4px; }
/* Purpose / data / legal-basis table. Column edges sit on grid lines (247 / 198 / 247 at 1440);
   rows become stacked cards on Mobile. */
.legal__table {
  width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; overflow: hidden;
  border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border);
  font-size: 14px; line-height: 1.5;
}
.legal__col--1, .legal__col--3 { width: 35.69%; }
.legal__col--2 { width: 28.62%; }
.legal__table th {
  padding: 12px 16px; background: var(--ocre-mid); text-align: left; vertical-align: top;
  font-weight: 600; color: var(--deep-ink); box-shadow: inset 0 -1px 0 var(--border);
}
.legal__table td { padding: 14px 16px; vertical-align: top; box-shadow: inset 0 -1px 0 var(--border); }
.legal__table tr:last-child td { box-shadow: none; }
.legal__table td + td, .legal__table th + th { box-shadow: inset 1px 0 0 var(--border), inset 0 -1px 0 var(--border); }
.legal__table tr:last-child td + td { box-shadow: inset 1px 0 0 var(--border); }

/* ---------- Try an interview ---------- */
.try, .try__form { display: flex; flex-direction: column; gap: 48px; }
.try__intro { display: flex; flex-direction: column; gap: 24px; }
.try__paras { display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 29px; }
.try__panel {
  display: flex; flex-direction: column; gap: 22px; padding: 32px 24px 40px;
  background: var(--warm-canvas); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--border);
}
.try__checks { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.try__submit { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.try__start { padding: 12px 32px; border-radius: 999px; font-size: 18px; }
.try__start .icon { font-size: 16px; }
.try__status { max-width: 560px; text-align: center; }
.try__terms { box-shadow: inset 0 1px 0 var(--border); } /* top rule only, no bottom stroke */
.try__points li { padding: 16px 0; font-size: 16px; line-height: 26px; color: var(--secondary-ink); box-shadow: inset 0 1px 0 var(--peach-mid); }
.try__points li:first-child { padding-top: 0; box-shadow: none; }

/* ---------- FAQs ---------- */
.faqs { display: flex; flex-direction: column; gap: 48px; }
.faqs__group { display: flex; flex-direction: column; gap: 16px; }
.faqs__list .faq-item + .faq-item { box-shadow: inset 0 -1px 0 var(--border); } /* stacked items share one rule */
.faqs__closing { display: flex; flex-direction: column; gap: 6px; }
.faqs__closing-question { font-family: var(--font-sora); font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--deep-ink); }
.faqs__closing p { font-size: 16px; line-height: 26px; }

@media (max-width: 1024px) {
  .subpage { padding: calc(var(--nav-h) + 24px) 24px 96px; }
  .subpage__card { padding: 56px 48px 64px; }
  .try, .try__form, .faqs { gap: 40px; }
  .try .subpage__title, .faqs .subpage__title { font-size: 36px; }
  .try__paras { font-size: 16px; line-height: 26px; }
  .try__panel { padding: 32px 32px 40px; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .legal__col--1 { width: 37.68%; }
  .legal__col--2 { width: 21.59%; }
  .legal__col--3 { width: 40.73%; }
}
@media (max-width: 640px) {
  .subpage { padding: calc(var(--nav-h) + 16px) 8px 64px; }
  .subpage__card { padding: 40px 20px 48px; border-radius: 16px; }
  .subpage__title, .legal__title, .try .subpage__title, .faqs .subpage__title { font-size: 28px; }
  .try, .try__form, .faqs { gap: 32px; }
  .try__intro { gap: 16px; }
  .try__paras, .try__points li, .subpage__list li, .faqs__closing p { font-size: 14px; line-height: 22px; }
  .try__panel { padding: 24px 16px 32px; }
  .try__checks { gap: 8px; }
  .try__checks .check__text { font-size: 12px; line-height: 18px; }
  .faqs__closing-question { font-size: 18px; }
  .legal__card { font-size: 14px; line-height: 22px; }
  .legal__card h2 { margin-top: 36px; font-size: 19px; }
  .legal__table, .legal__table tbody, .legal__table tr, .legal__table td { display: block; }
  .legal__table colgroup { display: none; }
  .legal__table { overflow: visible; border-radius: 0; box-shadow: none; }
  .legal__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal__table tr { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
  .legal__table tr + tr { margin-top: 12px; }
  .legal__table td, .legal__table td + td, .legal__table tr:last-child td, .legal__table tr:last-child td + td { padding: 10px 16px; box-shadow: inset 0 -1px 0 var(--border); }
  .legal__table tr td:last-child { box-shadow: none; }
  .legal__table td::before {
    content: attr(data-label); display: block; margin-bottom: 2px; line-height: 14px;
    font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; letter-spacing: 1px;
    text-transform: uppercase; color: var(--coral);
  }
}

/* ==========================================================================
   Language switcher and suggestion banner. Canvas: "Language switcher — nav C
   development" and "Language suggestion banner" boards. Behaviour in
   interactions.md ("Languages").
   ========================================================================== */
/* Menu: Language row, always the last row. Desktop: expands on hover / focus
   into small codes. Tablet and Mobile: expands on tap into big buttons. */
.menu__lang-toggle { width: 100%; border: 0; background: none; cursor: pointer; text-align: left; box-shadow: none; }
.menu__lang-label, .menu__lang-current { display: flex; align-items: center; gap: 8px; }
.menu__lang-current { gap: 6px; color: var(--deep-ink); }
.menu__lang .icon--chevron { color: var(--coral); transition: transform 150ms ease-out; }
.menu__lang[data-open="true"] .menu__lang-toggle { background: var(--pale-lavender); }
.menu__lang[data-open="true"] .icon--chevron { transform: rotate(180deg); }
.menu__lang-codes { display: none; gap: 4px; padding: 6px 16px 16px; }
.menu__lang[data-open="true"] .menu__lang-codes { display: flex; }
.lang-code {
  display: inline-flex; align-items: center; justify-content: center; padding: 5px 6px; border-radius: 4px;
  font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.5px; line-height: normal;
  color: var(--lavender); text-decoration: none; transition: color 150ms ease-out, background-color 150ms ease-out;
}
.lang-code:hover { color: var(--coral); }
.lang-code.is-current, .lang-code:active { background: var(--lavender); color: var(--white); }

/* Footer: languages listed in the bottom row (Desktop); pill picker (Tablet, Mobile) */
.footer__lang-toggle { display: none; }
.footer__lang-list { display: flex; align-items: center; gap: 16px; }
.footer__lang-link { font-size: 12.5px; line-height: normal; color: var(--pale-lavender); text-decoration: none; }
.footer__lang-link .icon { display: none; }
.footer__lang-link.is-current { color: var(--white); font-weight: 600; }
.footer__lang-link:hover { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; }

@media (max-width: 1024px) {
  .menu__lang-codes { padding: 0 16px 16px; }
  .lang-code {
    width: 48px; height: 40px; padding: 0; border-radius: 8px; font-size: 12px;
    background: var(--white); color: var(--secondary-ink); box-shadow: inset 0 0 0 1px var(--border);
  }
  .lang-code:hover { color: var(--secondary-ink); }
  .lang-code:active { background: var(--pale-lavender); color: var(--lavender); box-shadow: inset 0 0 0 1px var(--lavender); }
  .lang-code.is-current { background: var(--lavender); color: var(--white); box-shadow: none; }

  /* Tablet: copyright left, pill right (centred on the pill); the list opens below the pill, right-aligned */
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 16px; }
  .footer__bottom .footer__copyright { margin-top: 6px; }
  .footer__lang { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
  .footer__lang-toggle {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px;
    border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px var(--pale-lavender);
    color: var(--white); font-size: 12.5px; line-height: normal; cursor: pointer;
  }
  .footer__lang-toggle .icon { font-size: 14px; color: var(--pale-lavender); transition: transform 150ms ease-out; }
  .footer__lang[data-open="true"] .footer__lang-toggle { width: 168px; }
  .footer__lang[data-open="true"] .footer__lang-current { display: none; } /* open: globe left, chevron right, no name (as on the canvas) */
  .footer__lang-toggle { white-space: nowrap; min-height: 27px; } /* the closed pill's height, kept when the name is hidden */
  .footer__lang[data-open="true"] .icon--chevron { transform: rotate(180deg); }
  .footer__lang-list { display: none; flex-direction: column; align-items: stretch; gap: 8px; width: 168px; }
  .footer__lang[data-open="true"] .footer__lang-list { display: flex; }
  .footer__lang-link {
    display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; border-radius: 999px;
    color: var(--lavender); box-shadow: inset 0 0 0 1px var(--lavender);
  }
  .footer__lang-link.is-current { background: var(--lavender); color: var(--white); font-weight: normal; }
  .footer__lang-link.is-current .icon { display: block; font-size: 14px; }
  .footer__lang-link:hover { text-decoration: none; }
  .footer__lang-link:active { background: var(--lavender); color: var(--white); }
}
@media (max-width: 640px) {
  /* Mobile: copyright, then the pill underneath, both left-aligned */
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__bottom .footer__copyright { margin-top: 0; }
  .footer__lang { align-items: flex-start; }
}

/* Suggestion banner ("Ver em português?"): shown once, 1.5s after load */
.lang-banner {
  position: fixed; z-index: 60; bottom: 40px; right: max(64px, calc((100vw - 1440px) / 2 + 64px)); width: 400px;
  display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 16px 20px;
  background: var(--warm-canvas); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--peach-mid), 0 8px 24px #00000018;
  opacity: 0; transform: translateY(16px); transition: opacity 300ms ease-out, transform 300ms ease-out;
}
.lang-banner.is-visible { opacity: 1; transform: none; }
.lang-banner__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--pale-peach); color: var(--coral); font-size: 16px; }
.lang-banner__body { flex: 1 1 0; display: flex; flex-direction: column; gap: 12px; }
.lang-banner__message { font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--deep-ink); }
.lang-banner__actions { display: flex; align-items: center; gap: 12px; }
.lang-banner__switch { padding: 8px 16px; border-radius: 999px; font-size: 13px; }
.lang-banner__stay { border: 0; background: none; padding: 0; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--secondary-ink); }
.lang-banner__stay:hover { text-decoration: underline; text-underline-offset: 3px; }
.lang-banner__close { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
  .lang-banner { left: 16px; right: 16px; bottom: 16px; width: auto; }
  .lang-banner__actions { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .lang-banner { transform: none; } }
