/* ==========================================================================
   Aplomb Care design system
   Layout idea: a left-aligned, generously spaced page on warm cream, threaded
   by one recurring motif, the winding pathway from the logo.
   Edit the tokens in :root to restyle the whole site.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Brand palette */
  --navy: #152B50;
  --blue: #2764A5;
  --turquoise: #20B7B0;
  --green: #85C76A;
  --cream: #F7F5EF;
  --sand: #E8DDC8;

  /* Supporting neutrals and accessible text shades */
  --white: #FFFFFF;
  --sand-soft: #F1EBDD;
  --grey: #E8EDF0;
  --text: #243447;
  --muted: #4E5C73;
  --teal-ink: #0A6763;
  --green-ink: #2E6B1A;
  --line: rgba(21, 43, 80, 0.13);
  --line-strong: rgba(21, 43, 80, 0.28);

  /* Tints for icon tiles and quiet fills */
  --tint-teal: #DBF2F0;
  --tint-blue: #E0EAF5;
  --tint-green: #E6F3DE;

  /* Semantic colours (status, errors) */
  --ok: #2E6B1A;
  --warn: #8A5A00;
  --warn-bg: #FBF0D6;
  --alert: #A8391F;
  --alert-bg: #FBE9E4;

  /* Type */
  --font-display: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Shape and depth, assigned by role */
  --r-input: 12px;
  --r-card: 22px;
  --r-panel: 32px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(21, 43, 80, 0.05), 0 14px 34px -18px rgba(21, 43, 80, 0.28);
  --shadow-pop: 0 2px 6px rgba(21, 43, 80, 0.08), 0 28px 60px -24px rgba(21, 43, 80, 0.38);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 44px);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
svg { display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.1rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: -0.028em; font-weight: 700; }
h3 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -0.012em; font-weight: 700; }
h4 { font-size: 1rem; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
strong { font-weight: 650; color: var(--navy); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 200; background: var(--navy); color: var(--white);
  padding: 12px 18px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 64ch; }
.lead { font-size: clamp(1.12rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; line-height: 1.55; }
.stack { display: flex; flex-direction: column; gap: 1.1em; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 28px; height: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--blue); color: var(--white); }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--navy); background: rgba(21, 43, 80, 0.05); color: var(--navy); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--tint-teal); color: var(--navy); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); color: var(--white); }
.btn--small { min-height: 42px; padding: 8px 18px; font-size: 0.94rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 1.5px solid var(--turquoise); padding-bottom: 2px; }
.text-link:hover { color: var(--blue); border-color: var(--blue); }
.text-link .icon { transition: transform .18s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Crisis bar ---------- */
.crisis-bar { background: var(--navy); color: #DCE5F1; font-size: 0.86rem; line-height: 1.45; }
.crisis-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 22px; row-gap: 2px; padding-block: 9px; text-align: center; }
.crisis-bar strong { color: var(--white); font-weight: 650; }
.crisis-bar__short { display: none; }
@media (max-width: 699px) {
  .crisis-bar__long { display: none; }
  .crisis-bar__short { display: inline; }
  .crisis-bar__inner { column-gap: 14px; font-size: 0.82rem; }
}
.crisis-bar a { color: #8FE3DE; font-weight: 600; }
.crisis-bar a:hover { color: var(--white); }
.crisis-bar :focus-visible, .section--navy :focus-visible, .site-footer :focus-visible { outline-color: #8FE3DE; }

/* ---------- Header and navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247, 245, 239, 0.94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { backdrop-filter: saturate(1.2) blur(10px); } }
.site-header__inner { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); max-width: 1520px; padding-inline: clamp(16px, 2.4vw, 32px); }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; border-radius: 8px; }
.brand svg { height: 42px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__item { position: relative; }
.nav__link, .nav__trigger {
  display: inline-flex; align-items: center; gap: 5px; padding: 10px 12px; border-radius: var(--r-pill); border: 0; background: none;
  font-family: var(--font-display); font-weight: 650; font-size: 0.95rem; color: var(--navy); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.nav__link:hover, .nav__trigger:hover, .nav__trigger[aria-expanded="true"] { background: rgba(21, 43, 80, 0.07); color: var(--navy); }
.nav__link[aria-current="page"], .nav__trigger.is-current { box-shadow: inset 0 -2px 0 var(--turquoise); border-radius: 10px 10px 0 0; }
.nav__trigger .icon { width: 15px; height: 15px; stroke-width: 2.2; transition: transform .18s ease; }
.nav__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__panel {
  display: none; position: absolute; top: calc(100% + 10px); left: -8px; z-index: 110; width: max-content; min-width: 300px; max-width: 380px;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-pop); padding: 10px; list-style: none;
}
.nav__item--end .nav__panel { left: auto; right: -8px; }
.nav__trigger[aria-expanded="true"] + .nav__panel,
.no-js .nav__item:hover > .nav__panel,
.no-js .nav__item:focus-within > .nav__panel { display: block; }
.nav__sublink { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--navy); }
.nav__sublink:hover, .nav__sublink[aria-current="page"] { background: var(--cream); color: var(--navy); }
.nav__sublabel { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 0.97rem; }
.nav__subdesc { display: block; font-size: 0.85rem; line-height: 1.4; color: var(--muted); margin-top: 1px; }
.nav__tag { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; color: var(--teal-ink); background: var(--tint-teal); padding: 2px 8px; border-radius: var(--r-pill); }
.nav__cta { margin-left: 10px; }
.nav__cta .btn { white-space: nowrap; }
@media (min-width: 1260px) and (max-width: 1599px) {
  .nav__link, .nav__trigger { padding: 9px 8px; font-size: 0.875rem; gap: 3px; }
  .brand svg { height: 36px; }
  .site-header__inner { gap: 10px; }
  .nav__cta { margin-left: 4px; }
}
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: none; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--navy); cursor: pointer; }
.nav-toggle .icon--close, .nav-toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 1259px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 99; margin: 0; background: var(--cream);
    height: calc(100vh - var(--nav-top, 110px)); height: calc(100dvh - var(--nav-top, 110px));
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 40px; overflow-y: auto; overscroll-behavior: contain;
  }
  .site-nav.is-open, .no-js .site-nav { display: flex; }
  .no-js .site-nav { position: static; height: auto; padding: 0 0 16px; }
  .no-js .site-header__inner { flex-wrap: wrap; }
  .no-js .nav-toggle { display: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link, .nav__trigger { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.08rem; border-radius: 8px; white-space: normal; text-align: left; }
  .nav__link:hover, .nav__trigger:hover, .nav__trigger[aria-expanded="true"] { background: none; }
  .nav__link[aria-current="page"], .nav__trigger.is-current { box-shadow: inset 3px 0 0 var(--turquoise); padding-left: 14px; border-radius: 0; }
  .nav__trigger .icon { width: 20px; height: 20px; }
  .nav__panel, .nav__item--end .nav__panel { position: static; width: auto; min-width: 0; max-width: none; border: 0; box-shadow: none; background: none; padding: 0 0 14px; }
  .no-js .nav__panel { display: block; }
  .nav__sublink { padding: 9px 14px; }
  .nav__cta { margin: 22px 0 0; }
  .nav__cta .btn { width: 100%; min-height: 52px; font-size: 1.02rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 124px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--flush-top { padding-top: 0; }
.section--white { background: var(--white); }
.section--sand { background: var(--sand-soft); }
.section--navy { background: var(--navy); color: #D5DEEB; }
.section--navy h2, .section--navy h3, .section--navy strong { color: var(--white); }
.section--navy a:not(.btn) { color: #8FE3DE; }
.section--navy .lead { color: #E3EAF4; }
.section__head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head--row { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.section__head--spaced { margin-top: clamp(32px, 4vw, 48px); margin-bottom: 28px; }
.section__head--row > div { max-width: 720px; display: flex; flex-direction: column; gap: 18px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--center { align-items: center; }
.split__sticky { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 899px) {
  .split, .split--even, .split--wide-left { grid-template-columns: minmax(0, 1fr); }
  .split__sticky { position: static; }
}

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(48px, 6vw, 84px); overflow: hidden; }
.hero h1 { font-size: clamp(2.3rem, 4.5vw, 3.55rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 26px; }
.hero__copy h1 span { display: block; }
.hero__note { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--muted); }
.hero__note .icon { color: var(--teal-ink); }
@media (max-width: 899px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

/* Pathway illustration */
.trail { position: relative; aspect-ratio: 600 / 560; width: 100%; max-width: 620px; margin-inline: auto; }
.trail__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trail__chip {
  position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--shadow-card);
  padding: 8px 14px 8px 10px; font-family: var(--font-display); font-weight: 700; font-size: clamp(0.72rem, 1.25vw, 0.9rem); color: var(--navy);
}
.trail__chip .icon { width: 18px; height: 18px; color: var(--teal-ink); }
.trail__chip--stop { background: var(--navy); color: var(--white); border-color: var(--navy); }
.trail__chip--stop .icon { color: #8FE3DE; }
.trail__chip--a { left: 25%; top: 9.5%; }
.trail__chip--b { left: 73%; top: 23%; }
.trail__chip--c { left: 31%; top: 48.5%; }
.trail__chip--d { left: 60%; top: 66.5%; }
.trail__chip--e { left: 74%; top: 91.5%; }
.trail__walker { offset-path: path("M96 112 C236 56 430 70 446 176 C460 268 196 236 170 334 C146 428 384 402 504 462"); offset-distance: 44%; offset-rotate: 0deg; }
@media (prefers-reduced-motion: no-preference) {
  .trail__walker { animation: walk 3.2s cubic-bezier(.45, .05, .25, 1) .3s both; }
  @keyframes walk { from { offset-distance: 2%; } to { offset-distance: 44%; } }
}
@media (max-width: 420px) { .trail__chip { padding: 6px 10px 6px 8px; gap: 6px; } .trail__chip .icon { width: 15px; height: 15px; } }

/* ---------- Gap rows (home intro) ---------- */
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.row h3 { margin-bottom: 6px; }
.tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--tint-teal); color: var(--teal-ink); flex: none; }
.tile--blue { background: var(--tint-blue); color: var(--blue); }
.tile--green { background: var(--tint-green); color: var(--green-ink); }
.tile--navy { background: var(--navy); color: #8FE3DE; }
.tile--sand { background: var(--sand); color: var(--navy); }
.tile--onnavy { background: rgba(255, 255, 255, 0.1); color: #8FE3DE; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pillar { display: flex; flex-direction: column; gap: 14px; padding: 34px 28px 8px 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
@media (max-width: 1023px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar { padding: 30px 24px 30px 0; border-bottom: 1px solid var(--line); }
  .pillar:nth-child(odd) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(even) { padding-left: 24px; padding-right: 0; }
}
@media (max-width: 599px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar, .pillar:nth-child(even) { padding: 26px 0; border-left: 0; }
}

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

.card { display: flex; flex-direction: column; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; }
.card--raised { box-shadow: var(--shadow-card); }
.card--sand { background: var(--sand-soft); border-color: transparent; }
.card--cream { background: var(--cream); border-color: transparent; }
.card--outline { background: transparent; }
.card p { color: var(--text); }

/* Product card */
.product-card { position: relative; display: flex; flex-direction: column; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px 28px 26px; box-shadow: var(--shadow-card); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.product-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product-card__cat { font-size: 0.86rem; font-weight: 600; color: var(--teal-ink); }
.product-card__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.product-card__name h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.product-card__name a { color: inherit; text-decoration: none; }
.product-card__name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.product-card__meta { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.product-card__meta dt { color: var(--muted); font-size: 0.82rem; }
.product-card__meta dd { margin: 0; color: var(--navy); font-weight: 600; }
.product-card__more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.product-card:hover .product-card__more { color: var(--blue); }
.product-card:hover .product-card__more .icon { transform: translateX(3px); }
.product-card__more .icon { transition: transform .18s ease; }
.working-name { font-family: var(--font-body); font-size: 0.76rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 2px 9px; white-space: nowrap; }

/* Stage indicator: five steps from concept to available */
.stage { display: inline-flex; align-items: center; gap: 10px; font-size: 0.86rem; font-weight: 650; color: var(--navy); white-space: nowrap; }
.stage__pips { display: inline-flex; gap: 4px; }
.stage__pip { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; }
.stage__pip.is-on { background: var(--turquoise); border-color: var(--teal-ink); }
.stage--boxed { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 16px 8px 14px; }
.section--navy .stage { color: var(--white); }
.stage-legend { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; list-style: none; counter-reset: stage; border-top: 1px solid var(--line); }
.stage-legend li { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 6px 0; font-size: 0.92rem; line-height: 1.5; }
.stage-legend li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.stage-legend strong { font-family: var(--font-display); }
@media (max-width: 899px) {
  .stage-legend { grid-template-columns: minmax(0, 1fr); }
  .stage-legend li, .stage-legend li + li { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Lists ---------- */
.checks { display: grid; gap: 14px; list-style: none; }
.checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 36px; }
@media (max-width: 699px) { .checks--2 { grid-template-columns: minmax(0, 1fr); } }
.checks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.checks .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--teal-ink); stroke-width: 2.2; }
.section--navy .checks .icon { color: #8FE3DE; }
.plain-list { display: grid; gap: 10px; padding-left: 1.15em; }
.plain-list li::marker { color: var(--turquoise); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip { font-size: 0.9rem; font-weight: 550; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 14px; }
.section--white .chip, .card .chip { background: var(--cream); }

.link-rows { display: flex; flex-direction: column; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.link-rows a { display: grid; grid-template-columns: 52px minmax(0, 1fr) 24px; gap: 18px; align-items: center; padding: 22px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); text-decoration: none; color: var(--white); transition: padding .2s ease; }
.link-rows a:hover { padding-left: 12px; }
.link-rows span.title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--white); }
.link-rows span.desc { display: block; font-size: 0.94rem; color: #C3CFE0; }
.link-rows a > .icon { color: #8FE3DE; }

/* ---------- Audience doors ---------- */
.door { position: relative; display: flex; flex-direction: column; gap: 16px; min-height: 260px; padding: 30px; border-radius: var(--r-panel); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .2s ease, box-shadow .2s ease; }
.door:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); color: var(--text); }
.door--sand { background: var(--sand); border-color: transparent; }
.door--navy { background: var(--navy); border-color: transparent; color: #D5DEEB; }
.door--navy:hover { color: #D5DEEB; }
.door--navy h3 { color: var(--white); }
.door h3 { font-size: 1.45rem; letter-spacing: -0.02em; }
.door__go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.door--navy .door__go { color: #8FE3DE; }
.door:hover .door__go .icon { transform: translateX(3px); }
.door__go .icon { transition: transform .18s ease; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; padding-block: clamp(36px, 5vw, 64px) clamp(44px, 6vw, 80px); overflow: hidden; }
.page-hero__inner { position: relative; display: flex; flex-direction: column; gap: 22px; max-width: 820px; }
.page-hero__trail { position: absolute; right: -40px; top: 50%; width: min(38vw, 460px); transform: translateY(-50%); opacity: .9; pointer-events: none; }
@media (max-width: 1023px) { .page-hero__trail { display: none; } }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.page-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

/* ---------- Notices ---------- */
.notice { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--tint-blue); color: var(--navy); font-size: 0.97rem; line-height: 1.55; }
.notice .icon { color: var(--blue); margin-top: 1px; }
.notice--draft { background: var(--warn-bg); }
.notice--draft .icon { color: var(--warn); }
.notice--alert { background: var(--alert-bg); }
.notice--alert .icon { color: var(--alert); }
.notice--ok { background: var(--tint-green); }
.notice--ok .icon { color: var(--ok); }
.notice--plain { background: var(--white); border: 1px solid var(--line); }
.notice strong { display: block; font-family: var(--font-display); }
.notice p + p { margin-top: 6px; }

.caption { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 0.86rem; color: var(--muted); }
.caption .icon { width: 16px; height: 16px; }

/* ---------- Product illustrations (concept mock-ups, not screenshots) ---------- */
.mock { position: relative; border-radius: var(--r-panel); background: var(--sand-soft); padding: clamp(22px, 4vw, 44px); }
.section--sand .mock { background: var(--sand); }
.mock--plain { background: none; padding: 0; }
.phone { position: relative; width: min(100%, 300px); margin-inline: auto; background: var(--white); border-radius: 38px; border: 8px solid var(--navy); box-shadow: var(--shadow-pop); padding: 22px 18px 20px; display: flex; flex-direction: column; gap: 16px; font-size: 0.88rem; line-height: 1.45; }
.phone__bar { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.phone__bar span:last-child { font-family: var(--font-body); font-weight: 500; font-size: 0.78rem; color: var(--muted); }
.phone__q { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.25; color: var(--navy); letter-spacing: -0.01em; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; background: var(--cream); border: 1.5px solid var(--line); font-weight: 650; color: var(--muted); }
.scale span.is-picked { background: var(--navy); border-color: var(--navy); color: var(--white); }
.scale-labels { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--muted); }
.phone__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.phone__chips span { font-size: 0.78rem; font-weight: 600; padding: 5px 10px; border-radius: var(--r-pill); background: var(--cream); border: 1px solid var(--line); color: var(--navy); }
.phone__chips span.is-picked { background: var(--tint-teal); border-color: transparent; color: var(--teal-ink); }
.phone__btn { display: grid; place-items: center; min-height: 42px; border-radius: var(--r-pill); background: var(--navy); color: var(--white); font-family: var(--font-display); font-weight: 700; }
.phone__local { display: flex; align-items: center; gap: 7px; justify-content: center; font-size: 0.76rem; color: var(--teal-ink); font-weight: 600; }
.phone__local .icon { width: 14px; height: 14px; }
.week { position: absolute; right: clamp(0px, 3vw, 28px); bottom: clamp(14px, 4vw, 44px); width: 190px; background: var(--white); border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-pop); padding: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 0.8rem; }
.week strong { font-size: 0.88rem; }
.week__bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 64px; }
.week__bars i { display: block; border-radius: 5px 5px 2px 2px; background: var(--turquoise); }
.week__bars i:nth-child(1) { height: 45%; } .week__bars i:nth-child(2) { height: 62%; } .week__bars i:nth-child(3) { height: 38%; background: #9ADAD6; }
.week__bars i:nth-child(4) { height: 70%; } .week__bars i:nth-child(5) { height: 58%; } .week__bars i:nth-child(6) { height: 82%; background: var(--green); } .week__bars i:nth-child(7) { height: 76%; background: var(--green); }
.week__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: 0.68rem; color: var(--muted); }
@media (max-width: 479px) {
  .week { position: static; width: auto; margin-top: 18px; }
}

.board { background: var(--white); border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-pop); padding: 20px; display: flex; flex-direction: column; gap: 16px; font-size: 0.84rem; line-height: 1.4; }
.board__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.board__head strong { font-family: var(--font-display); font-size: 1rem; }
.board__head span { color: var(--muted); font-size: 0.78rem; }
.board__scroll { overflow-x: auto; }
.board table { width: 100%; min-width: 420px; border-collapse: separate; border-spacing: 0 6px; font-variant-numeric: tabular-nums; }
.board th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.76rem; padding: 0 6px 2px; }
.board th[scope="row"] { color: var(--navy); font-size: 0.84rem; white-space: nowrap; padding-right: 12px; }
.board td { padding: 0 3px; }
.cell { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; border-radius: 9px; font-weight: 650; font-size: 0.76rem; }
.cell--open { background: var(--tint-green); color: var(--ok); }
.cell--limited { background: var(--warn-bg); color: var(--warn); }
.cell--gap { background: var(--alert-bg); color: var(--alert); box-shadow: inset 0 0 0 1.5px var(--alert); }
.board__transfers { display: grid; gap: 8px; list-style: none; border-top: 1px solid var(--line); padding-top: 14px; }
.board__transfers li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.board__transfers span.who { color: var(--muted); font-size: 0.76rem; display: block; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 650; padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.tag--ok { background: var(--tint-green); color: var(--ok); }
.tag--wait { background: var(--warn-bg); color: var(--warn); }
.tag--info { background: var(--tint-blue); color: var(--blue); }
.tag--muted { background: var(--grey); color: var(--muted); }

.concept-art { display: grid; place-items: center; min-height: 300px; }
.concept-art svg { width: min(100%, 360px); height: auto; }

/* ---------- Product page ---------- */
.product-hero { padding-block: clamp(36px, 5vw, 64px) clamp(48px, 7vw, 96px); }
.product-hero__copy { display: flex; flex-direction: column; gap: 22px; }
.product-hero__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.facts > div { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 22px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: 0.84rem; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1.35; }
.facts dd small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; color: var(--text); margin-top: 6px; line-height: 1.5; }
@media (max-width: 799px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div, .facts > div + div { padding: 18px 0; border-left: 0; }
  .facts > div + div { border-top: 1px solid var(--line); }
}
.feature { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start; }
.feature h3 { margin-bottom: 6px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; }
@media (max-width: 799px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }

/* Modes (anonymous / supported / organizational) */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: mode; }
@media (max-width: 899px) { .modes { grid-template-columns: minmax(0, 1fr); } }
.mode { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--r-card); background: var(--white); border: 1px solid var(--line); }
.mode--future { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.mode__label { display: inline-flex; align-self: flex-start; }

/* Steps (true sequences only) */
.steps { display: grid; gap: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding-bottom: 30px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--turquoise); font-family: var(--font-display); font-weight: 700; color: var(--navy); position: relative; z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: repeating-linear-gradient(to bottom, var(--turquoise) 0 6px, transparent 6px 12px); }
.steps li:last-child { padding-bottom: 0; }
.steps h3 { margin: 8px 0 6px; }
.steps .tag { margin-left: 8px; vertical-align: middle; }

/* ---------- Support lines ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { min-height: 42px; padding: 8px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: transparent; font-weight: 600; font-size: 0.93rem; color: var(--navy); cursor: pointer; }
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; list-style: none; }
@media (max-width: 799px) { .lines { grid-template-columns: minmax(0, 1fr); } }
.line { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); }
.line--priority { border-color: var(--navy); box-shadow: inset 4px 0 0 var(--turquoise); }
.line__number { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -0.02em; line-height: 1.1; color: var(--navy); text-decoration: none; font-variant-numeric: tabular-nums; align-self: flex-start; }
.line__number:hover { color: var(--blue); text-decoration: underline; }
.line__meta { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: auto; padding-top: 6px; }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 30px; border-radius: var(--r-card); border: 1.5px dashed var(--line-strong); color: var(--text); }
.empty h3 { font-size: 1.1rem; }
.empty .tile { margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 20px; align-items: center; padding: 22px 4px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; font-size: 1.13rem; line-height: 1.35; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s ease; color: var(--teal-ink); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue); }
.faq__a { display: flex; flex-direction: column; gap: 12px; padding: 0 48px 26px 4px; max-width: 70ch; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 599px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field legend, .fieldset legend { font-weight: 650; font-size: 0.96rem; color: var(--navy); padding: 0; }
.field .hint { font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.optional { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 15px; border-radius: var(--r-input); border: 1.5px solid #B9C3D1; background: var(--white);
  font: inherit; font-size: 1rem; color: var(--text); transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23152B50' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(39, 100, 165, 0.28); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--alert); }
.field__error { display: flex; align-items: flex-start; gap: 7px; font-size: 0.9rem; font-weight: 550; color: var(--alert); }
.field__error .icon { width: 17px; height: 17px; margin-top: 2px; }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 599px) { .choice-grid { grid-template-columns: minmax(0, 1fr); } }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__box { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; height: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid #B9C3D1; background: var(--white); }
.choice__box::before { content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--muted); background: var(--white); box-shadow: inset 0 0 0 4px var(--white); }
.choice input:checked + .choice__box { border-color: var(--navy); background: var(--cream); }
.choice input:checked + .choice__box::before { border-color: var(--navy); background: var(--navy); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--blue); outline-offset: 2px; }
.choice__title { display: block; font-weight: 650; color: var(--navy); line-height: 1.35; }
.choice__desc { display: block; font-size: 0.87rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--navy); cursor: pointer; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form__status { border-radius: 16px; }
.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-card); }
.result { display: grid; gap: 18px; }
.result__msg { white-space: pre-wrap; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 0.93rem; line-height: 1.55; max-height: 260px; overflow: auto; color: var(--text); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: var(--white); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* ---------- Founders ---------- */
.founder { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.founder:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 699px) { .founder { grid-template-columns: minmax(0, 1fr); } }
.avatar { display: grid; place-items: center; width: 200px; max-width: 100%; aspect-ratio: 1; border-radius: var(--r-panel); background: var(--navy); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; letter-spacing: -0.03em; overflow: hidden; position: relative; }
.avatar::after { content: ""; position: absolute; inset: auto -30% -55% -30%; height: 90%; border-radius: 50%; border: 14px solid rgba(32, 183, 176, 0.55); }
.avatar--alt { background: var(--blue); }
.avatar--alt::after { border-color: rgba(133, 199, 106, 0.6); }
.avatar img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.avatar span { position: relative; z-index: 1; }
@media (max-width: 699px) { .avatar { width: 120px; font-size: 2.2rem; border-radius: 24px; } }
.founder__body { display: flex; flex-direction: column; gap: 16px; }
.founder__role { font-family: var(--font-display); font-weight: 700; color: var(--teal-ink); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-panel); background: var(--navy); color: #D5DEEB; padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px; align-items: center; }
.cta-band h2 { color: var(--white); }
.cta-band .lead { color: #E3EAF4; }
.cta-band__copy { display: flex; flex-direction: column; gap: 16px; position: relative; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; position: relative; }
.cta-band__trail { position: absolute; right: -60px; bottom: -80px; width: 420px; opacity: .35; pointer-events: none; }
@media (max-width: 899px) { .cta-band { grid-template-columns: minmax(0, 1fr); } .cta-band__actions { align-items: flex-start; } }
.cta-band :focus-visible { outline-color: #8FE3DE; }

/* ---------- Prose (legal and long-form) ---------- */
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 70ch; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 22px; letter-spacing: -0.02em; }
.prose h3 { margin-top: 10px; }
.prose ul { display: grid; gap: 8px; padding-left: 1.2em; }
.prose li::marker { color: var(--turquoise); }
.toc { display: flex; flex-direction: column; gap: 4px; list-style: none; font-size: 0.95rem; }
.toc a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--navy); text-decoration: none; font-weight: 550; }
.toc a:hover { background: var(--white); }

/* Two-column comparison */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 799px) { .compare { grid-template-columns: minmax(0, 1fr); } }
.compare__col { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--r-card); background: var(--white); border: 1px solid var(--line); }
.compare__col--b { background: var(--navy); border-color: var(--navy); color: #D5DEEB; }
.compare__col h2 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; }
.compare__col--b h2, .compare__col--b h3, .compare__col--b strong { color: var(--white); }
.compare__col--b a { color: #8FE3DE; }
.compare__col--b a:hover { color: var(--white); }
.compare__col--b :focus-visible { outline-color: #8FE3DE; }
.compare__col--b .checks .icon { color: #8FE3DE; }
.compare__col--b .tile { background: rgba(255, 255, 255, 0.1); color: #8FE3DE; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C3CFE0; padding-block: clamp(48px, 7vw, 84px) 28px; font-size: 0.95rem; }
.site-footer a { color: #E3EAF4; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 80px); padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.footer__brand { display: flex; flex-direction: column; gap: 18px; max-width: 360px; }
.footer__brand > svg { height: 46px; width: auto; align-self: flex-start; }
.footer__tagline { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.3; color: var(--white); letter-spacing: -0.015em; }
.footer__contact { display: flex; flex-direction: column; gap: 8px; }
.footer__contact a { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer__cols h2 { font-size: 0.95rem; letter-spacing: 0; color: var(--white); margin-bottom: 14px; }
.footer__cols ul { display: grid; gap: 9px; list-style: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; font-size: 0.86rem; color: #AEBCD1; }
.footer__bottom p { max-width: 70ch; }
@media (max-width: 899px) { .footer__top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) { .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Login portal ---------- */
.portal { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100vh; min-height: 100dvh; background: var(--white); }
.portal__aside { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 28px; padding: clamp(28px, 4vw, 56px); background: var(--cream); border-right: 1px solid var(--line); }
.portal__aside .brand svg { height: 46px; }
.portal__welcome { display: flex; flex-direction: column; gap: 16px; margin-top: clamp(24px, 8vh, 96px); max-width: 420px; position: relative; z-index: 1; }
.portal__welcome h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.portal__trail { position: absolute; left: -8%; right: -20%; bottom: -6%; pointer-events: none; }
.portal__reminder { margin-top: auto; position: relative; z-index: 1; max-width: 420px; }
.portal__main { display: flex; flex-direction: column; padding: clamp(24px, 4vw, 56px); }
.portal__back { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; color: var(--navy); text-decoration: none; }
.portal__back:hover { text-decoration: underline; }
.portal__form { width: 100%; max-width: 480px; margin: auto; padding-block: 32px; display: flex; flex-direction: column; gap: 26px; }
.portal__form h2 { font-size: 1.7rem; }
.pw { position: relative; }
.pw .input { padding-right: 96px; }
.pw__toggle { position: absolute; right: 6px; top: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--cream); font-weight: 600; font-size: 0.88rem; color: var(--navy); cursor: pointer; }
.pw__toggle:hover { background: var(--grey); }
.portal__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; font-size: 0.94rem; }
.link-btn { border: 0; background: none; padding: 0; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.link-btn:hover { color: var(--navy); }
.shared-panel { display: grid; gap: 10px; padding: 16px 18px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); font-size: 0.92rem; }
@media (max-width: 899px) {
  .portal { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .portal__aside { border-right: 0; border-bottom: 1px solid var(--line); gap: 18px; }
  .portal__welcome { margin-top: 8px; }
  .portal__trail { display: none; }
  .portal__back { align-self: flex-start; }
  .portal__form { margin: 0 auto; }
}

/* ---------- Preview mode (single-file build used for the shareable preview) ---------- */
body[data-layout="portal"] > .crisis-bar,
body[data-layout="portal"] > .site-header,
body[data-layout="portal"] > .site-footer { display: none; }

/* ---------- 404 ---------- */
.lost { display: grid; place-items: center; text-align: center; padding-block: clamp(64px, 12vw, 160px); }
.lost__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 560px; }
.lost svg { width: 220px; }

/* ---------- Print ---------- */
@media print {
  .site-header, .crisis-bar, .site-footer, .nav-toggle, .cta-band, .filters { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section { padding-block: 18pt; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Mobile-only "Home" entry in the menu */
.nav__item--mobile { display: none; }
@media (max-width: 1259px) { .nav__item--mobile { display: block; } }

/* Heading sized as an h3 (used where the outline needs an h2) */
.h3 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -0.012em; }
.lost .btn-row { justify-content: center; }
.portal__form legend h2 { margin-bottom: 14px; }

/* Planning-board illustration on small phones */
@media (max-width: 479px) {
  .board { padding: 16px 12px; }
  .board table { min-width: 0; table-layout: fixed; }
  .board th { padding-inline: 2px; font-size: 0.68rem; }
  .board th[scope="row"] { white-space: normal; width: 31%; font-size: 0.76rem; padding-right: 6px; }
  .board td { padding: 0 2px; }
  .cell { font-size: 0.66rem; min-height: 30px; border-radius: 7px; }
}

/* ---------- Additions: language switch, acknowledgement, founder contact, new product illustrations ---------- */
.lang-toggle { position: relative; order: 3; display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; margin-left: 6px; padding: 6px 13px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: none; font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; line-height: 1; color: var(--navy); text-decoration: none; white-space: nowrap; cursor: pointer; }
.lang-toggle:hover { background: rgba(21, 43, 80, 0.07); color: var(--navy); }
.lang-toggle .icon { width: 16px; height: 16px; }
.lang-toggle__short { display: none; }
@media (min-width: 1260px) and (max-width: 1599px) {
  .lang-toggle { margin-left: 2px; padding: 6px 10px; }
  .lang-toggle__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang-toggle__short { display: inline; }
}
@media (max-width: 1259px) {
  .lang-toggle { order: 0; margin-left: auto; min-height: 44px; }
  .nav-toggle { margin-left: 0; }
  .no-js .lang-toggle { margin-left: auto; }
}
@media (max-width: 419px) {
  .lang-toggle { padding: 6px 11px; }
  .lang-toggle__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang-toggle__short { display: inline; }
}
.portal__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portal__top .lang-toggle { order: 0; margin-left: 0; }
.footer__ack { max-width: 88ch; padding-top: 28px; font-size: 0.92rem; line-height: 1.65; color: #C3CFE0; }
.founder__email { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.stack-xl { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.stops { list-style: none; display: grid; gap: 0; counter-reset: stop; }
.stops li { position: relative; display: grid; gap: 1px; padding: 0 0 14px 30px; counter-increment: stop; }
.stops li:last-child { padding-bottom: 0; }
.stops li::before { content: counter(stop); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 0.68rem; font-weight: 700; }
.stops li::after { content: ""; position: absolute; left: 9px; top: 22px; bottom: 2px; border-left: 2px dotted var(--turquoise); }
.stops li:last-child::after { display: none; }
.stops strong { font-size: 0.9rem; color: var(--navy); }
.stops span { font-size: 0.78rem; color: var(--muted); }
.week--note { width: 210px; }
.week--note span:not(.tag) { color: var(--muted); line-height: 1.4; }
.week--note .tag { align-self: flex-start; white-space: normal; }
.board__transfers--plain { border-top: 0; padding-top: 0; gap: 12px; }
@media (max-width: 479px) {
  .site-header__inner { gap: 10px; }
  .brand svg { height: 36px; }
  .lang-toggle { padding: 6px 11px; }
  .lang-toggle .icon { display: none; }
}
/* Mid-sized screens: keep the top menu on one line, in both languages. French labels are longer, so French tightens further. */
@media (min-width: 1260px) {
  .lang-toggle { margin-left: 0; padding: 6px 9px; }
  .lang-toggle__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang-toggle__short { display: inline; }
}
@media (min-width: 1260px) and (max-width: 1359px) {
  .site-header__inner { gap: 10px; }
  .nav__link, .nav__trigger { font-size: 0.84rem; padding: 9px 6px; gap: 3px; }
  .brand svg { height: 34px; }
  .lang-toggle .icon { display: none; }
}
@media (min-width: 1260px) {
  html[lang^="fr"] .site-header__inner { gap: 10px; }
  html[lang^="fr"] .nav__link, html[lang^="fr"] .nav__trigger { font-size: 0.8rem; padding: 9px 5px; gap: 3px; }
  html[lang^="fr"] .nav__cta .btn { padding-inline: 13px; font-size: 0.82rem; }
  html[lang^="fr"] .brand svg { height: 34px; }
  html[lang^="fr"] .lang-toggle { margin-left: 0; padding: 6px 9px; }
  html[lang^="fr"] .lang-toggle__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html[lang^="fr"] .lang-toggle__short { display: inline; }
}
@media (min-width: 1260px) and (max-width: 1339px) {
  html[lang^="fr"] .nav__link, html[lang^="fr"] .nav__trigger { font-size: 0.76rem; padding: 9px 4px; }
  html[lang^="fr"] .brand svg { height: 30px; }
}
@media (max-width: 359px) {
  .site-header__inner { gap: 6px; padding-inline: 12px; }
  .brand svg { height: 31px; }
  .nav-toggle { padding-inline: 10px; }
}
