/* ==========================================================================
   Mentorfy — design system
   Brand: Lime Olive #95A302, Deep Slate Blue #2F4858, Muted Burnt Orange #D97904,
   Soft Cream White #F8F6EF, Charcoal Gray #222222, Teal Gray #4C837A.
   Colour carries meaning: lime = healthy activity, orange = needs attention,
   slate = structure and trust. Orange is never decoration.
   ========================================================================== */

@font-face { font-family: "Merriweather"; src: url("../fonts/merriweather-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("../fonts/merriweather-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("../fonts/merriweather-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; 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 {
  /* Brand */
  --lime: #95A302;
  --lime-ink: #5B6500;        /* lime for text on light backgrounds (5.8:1 on cream) */
  --lime-wash: #EEF1D6;
  --slate: #2F4858;
  --slate-deep: #22374A;
  --slate-ink: #1D2F3B;
  --orange: #D97904;
  --orange-ink: #9A5200;      /* orange for text on light (4.9:1 on white) */
  --orange-wash: #FBEBD6;
  --teal: #4C837A;
  --cream: #F8F6EF;
  --white: #FFFFFF;
  --charcoal: #222222;

  /* Neutrals derived from brand */
  --ink: var(--charcoal);
  --ink-soft: #4B5560;
  --ink-faint: #6B7480;
  --line: #E3DFD2;
  --line-strong: #CFC9B8;
  --surface: var(--white);
  --page: var(--cream);

  /* Type */
  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.22rem + 0.6vw, 1.65rem);
  --step-3: clamp(1.7rem, 1.45rem + 1.1vw, 2.3rem);
  --step-4: clamp(2.1rem, 1.7rem + 1.9vw, 3.25rem);

  /* Space & shape */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --max: 1180px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-panel: 0 1px 2px rgba(47, 72, 88, .06), 0 24px 48px -24px rgba(47, 72, 88, .28);
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--slate);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--slate); text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--slate-ink); text-decoration-color: var(--slate); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
::selection { background: var(--lime-wash); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--slate); font-weight: 700; margin: 0; }
h1 { font-size: var(--step-4); line-height: 1.14; letter-spacing: -0.012em; }
h2 { font-size: var(--step-3); line-height: 1.2; letter-spacing: -0.008em; }
h3 { font-size: var(--step-1); line-height: 1.35; }
h4 { font-size: var(--step-0); line-height: 1.4; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol.lifecycle, ol.steps-list { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--white { background: var(--white); }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section-head { max-width: 700px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--slate); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; letter-spacing: .005em;
  border-radius: 10px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--lime); color: var(--charcoal); }
.btn--primary:hover { background: #A6B514; color: var(--charcoal); }
.btn--secondary { background: transparent; color: var(--slate); border-color: var(--slate); }
.btn--secondary:hover { background: var(--slate); color: var(--white); }
.btn--light { background: var(--white); color: var(--slate); }
.btn--light:hover { background: var(--lime-wash); color: var(--slate-ink); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; color: var(--slate); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 246, 239, .94); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--slate); flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.site-footer .brand img { height: 32px; }
.footer-tagline { font-family: var(--serif); font-style: italic; color: var(--white); margin-top: 14px; }
.footer-tagline + p { margin-top: 8px; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.01em; color: var(--slate); }
.wordmark-mark { width: 26px; height: 26px; }
.primary-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: var(--r-sm);
  font: 500 0.98rem/1 var(--sans); color: var(--charcoal); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-trigger:hover, .nav-link[aria-current="page"] { color: var(--slate); background: rgba(47,72,88,.06); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--lime); border-radius: var(--r-sm) var(--r-sm) 0 0; background: none; }
.nav-trigger svg { width: 12px; height: 12px; transition: transform .2s ease; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: -8px; min-width: 300px; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-panel);
  list-style: none; display: none;
}
.dropdown.is-open { display: block; }
.dropdown a { display: block; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--charcoal); }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--cream); }
.dropdown strong { display: block; font-weight: 600; color: var(--slate); font-size: .97rem; }
.dropdown span { display: block; font-size: .86rem; color: var(--ink-faint); margin-top: 2px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .nav-link { font-weight: 500; }
.header-actions .btn { min-height: 42px; padding: 9px 16px; }
.nav-link, .nav-trigger, .header-actions .btn { white-space: nowrap; }
/* Between the mobile menu and wide screens, tighten spacing so longer French labels fit. */
@media (min-width: 1041px) and (max-width: 1240px) {
  .header-inner { gap: 12px; }
  .nav-link, .nav-trigger { padding-inline: 8px; }
  .header-actions { gap: 2px; }
  .header-actions .btn { padding-inline: 12px; }
  html[lang^="fr"] .nav-link, html[lang^="fr"] .nav-trigger, html[lang^="fr"] .header-actions .btn { font-size: .9rem; }
}
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; color: var(--slate); cursor: pointer; border-radius: var(--r-sm); }
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1040px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav, .header-actions { display: none; }
  .site-header.menu-open .primary-nav,
  .site-header.menu-open .header-actions { display: block; }
  .site-header.menu-open .header-inner { flex-wrap: wrap; padding-bottom: 16px; }
  .site-header.menu-open .primary-nav { order: 3; width: 100%; margin: 0; border-top: 1px solid var(--line); padding-top: 8px; }
  .site-header.menu-open .header-actions { order: 4; width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .site-header.menu-open .header-actions .btn { width: 100%; min-height: 48px; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link, .nav-trigger { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 1.05rem; }
  .nav-link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--lime); border-radius: 0; }
  .dropdown { position: static; box-shadow: none; border: 0; padding: 0 0 8px 8px; min-width: 0; background: transparent; }
  body.menu-locked { overflow: hidden; }
  .site-header.menu-open { max-height: 100dvh; overflow-y: auto; }
}

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.7rem); line-height: 1.1; max-width: 15ch; }
.hero .lead { margin-top: 22px; }
.hero .btn-row { margin-top: 32px; }
.assurances { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--ink-soft); font-size: var(--step--1); font-weight: 500; }
.assurances li { display: inline-flex; align-items: center; gap: 8px; }
.assurances svg { width: 16px; height: 16px; color: var(--lime-ink); flex-shrink: 0; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { max-width: 18ch; } }

/* ---------- Cohort pulse panel ---------- */
.pulse-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-panel); padding: clamp(18px, 2.5vw, 28px); }
.pulse-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pulse-head strong { font-family: var(--serif); color: var(--slate); font-size: 1.05rem; }
.pulse-head span { font-size: .86rem; color: var(--ink-faint); }
.pulse-grid { margin: 18px 0 14px; }
.pulse-grid svg { width: 100%; height: auto; overflow: visible; }
.pair line { stroke: var(--lime); stroke-width: 2.5; stroke-linecap: round; }
.pair circle { fill: var(--lime); }
.pair.is-slowing line { stroke: var(--teal); stroke-dasharray: 3 4; }
.pair.is-slowing circle { fill: var(--white); stroke: var(--teal); stroke-width: 2.2; }
.pair.is-quiet line { stroke: var(--orange); stroke-dasharray: 2 6; }
.pair.is-quiet circle { fill: var(--orange); }
.pair .ring { fill: none; stroke: var(--orange); stroke-width: 1.5; opacity: 0; }
.pulse-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; color: var(--ink-soft); }
.pulse-legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 18px; height: 6px; border-radius: 3px; display: inline-block; }
.swatch--active { background: var(--lime); }
.swatch--slowing { background: repeating-linear-gradient(90deg, var(--teal) 0 4px, transparent 4px 7px); }
.swatch--quiet { background: var(--orange); }
.checkins { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.checkins h3 { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--ink-faint); letter-spacing: .02em; margin-bottom: 8px; }
.checkins ul { list-style: none; display: grid; gap: 8px; }
.checkins li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--orange-wash); font-size: .9rem; }
.checkins li span:first-child { font-weight: 600; color: var(--charcoal); }
.checkins li span:last-child { color: var(--orange-ink); font-weight: 500; }
.panel-caption { margin-top: 12px; font-size: .82rem; color: var(--ink-faint); }

/* Load sequence: pairs draw in, then a few drift. Final state is the default for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .pair { animation: pair-in .5s ease both; animation-delay: calc(var(--i) * 45ms); }
  .js .pair.is-slowing line, .js .pair.is-slowing circle { animation: to-slowing .6s ease both; animation-delay: calc(1.7s + var(--d) * 220ms); }
  .js .pair.is-quiet line, .js .pair.is-quiet circle { animation: to-quiet .6s ease both; animation-delay: calc(2.3s + var(--d) * 260ms); }
  .js .pair.is-quiet .ring { animation: ring 2.4s ease-out 3.2s infinite; transform-origin: center; transform-box: fill-box; }
  .js .checkins li { animation: rise .5s ease both; animation-delay: calc(3s + var(--d) * 160ms); }
}
@keyframes pair-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes to-slowing { from { stroke: var(--lime); fill: var(--lime); stroke-dasharray: 0; } }
@keyframes to-quiet { from { stroke: var(--lime); fill: var(--lime); stroke-dasharray: 0; } }
@keyframes ring { 0% { opacity: .9; transform: scale(.6); } 70%, 100% { opacity: 0; transform: scale(2.4); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Quiet failure comparison ---------- */
.quiet-grid { display: grid; grid-template-columns: 190px repeat(4, minmax(0, 1fr)); }
.quiet-row { display: contents; }
.quiet-grid [role="columnheader"] { padding: 0 24px 16px 0; font-family: var(--serif); font-weight: 700; color: var(--slate); }
.quiet-grid [role="rowheader"] { padding: 22px 16px 26px 0; display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: .95rem; }
.quiet-cell { position: relative; padding: 22px 24px 26px 0; font-size: .97rem; line-height: 1.55; }
.quiet-cell::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; }
.quiet-cell::after { content: ""; position: absolute; left: 0; top: -4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white); }
.row-without .quiet-cell { color: var(--ink-soft); }
.row-without .quiet-cell::before { background: var(--line-strong); }
.row-without .quiet-cell::after { background: var(--line-strong); }
.row-without .quiet-cell:nth-child(n+3)::before { background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px); }
.row-without .quiet-cell:last-child { color: var(--charcoal); }
.row-without .quiet-cell:last-child::after { background: var(--white); border-color: var(--line-strong); }
.row-with .quiet-cell { color: var(--charcoal); }
.row-with .quiet-cell::before, .row-with .quiet-cell::after { background: var(--lime); }
.row-with .quiet-cell.is-flag::after { background: var(--orange); }
.row-with .quiet-cell.is-flag::before { background: linear-gradient(90deg, var(--orange) 0 40%, var(--lime) 100%); }
.row-without [role="rowheader"], .row-without .quiet-cell { padding-bottom: 34px; }
.quiet-label .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.row-without .dot { background: var(--line-strong); }
.row-with .dot { background: var(--lime); }
.quiet-note { margin-top: 20px; font-size: var(--step--1); color: var(--ink-faint); }
.quiet-mobile { display: none; }
@media (max-width: 880px) {
  .quiet-desktop { display: none; }
  .quiet-mobile { display: grid; gap: 12px; }
  .quiet-week { background: var(--cream); border-radius: var(--r-md); padding: 18px; }
  .quiet-week h3 { font-size: 1rem; margin-bottom: 10px; }
  .quiet-week dl { margin: 0; display: grid; gap: 12px; }
  .quiet-week dt { font-size: .8rem; font-weight: 600; color: var(--ink-faint); }
  .quiet-week dd { margin: 4px 0 0; padding-left: 12px; border-left: 3px solid var(--line-strong); color: var(--ink-soft); }
  .quiet-week dd.with { border-left-color: var(--lime); color: var(--charcoal); }
  .quiet-week dd.with.is-flag { border-left-color: var(--orange); }
}

/* ---------- Lifecycle rail ---------- */
.lifecycle { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: stage; position: relative; }
.lifecycle::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: var(--line-strong); }
.stage { position: relative; padding-right: 22px; counter-increment: stage; }
.stage-num { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--page); border: 2px solid var(--slate); font-family: var(--serif); font-weight: 700; color: var(--slate); }
.section--white .stage-num { background: var(--white); }
.stage:last-child .stage-num { background: var(--lime); border-color: var(--lime); color: var(--charcoal); }
.stage h3 { margin-top: 18px; }
.stage p { margin-top: 8px; color: var(--ink-soft); font-size: .97rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags li { font-size: .78rem; font-weight: 500; color: var(--slate); background: rgba(47,72,88,.07); padding: 4px 9px; border-radius: 999px; }
@media (max-width: 980px) {
  .lifecycle { grid-template-columns: 1fr; gap: 28px; }
  .lifecycle::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .stage { display: grid; grid-template-columns: 46px 1fr; column-gap: 20px; padding-right: 0; }
  .stage-num { grid-row: span 3; }
  .stage h3 { margin-top: 10px; }
}

/* ---------- Language ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.lang-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-panel); padding: clamp(20px, 3vw, 32px); }
.lang-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.lang-tab { font: 500 .88rem/1 var(--sans); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); color: var(--charcoal); cursor: pointer; }
.lang-tab[aria-selected="true"] { background: var(--slate); border-color: var(--slate); color: var(--white); }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r-md); background: var(--cream); }
.notice-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--lime); display: grid; place-items: center; flex-shrink: 0; }
.notice-icon svg { width: 20px; height: 20px; color: var(--charcoal); }
.notice-title { font-size: .8rem; font-weight: 600; color: var(--ink-faint); }
.notice-text { font-family: var(--serif); font-size: 1.12rem; color: var(--slate); line-height: 1.45; margin-top: 4px; }
.lang-foot { margin-top: 14px; font-size: .84rem; color: var(--ink-faint); }
.lang-list { list-style: none; display: grid; gap: 10px; }
.js .lang-list[data-enhanced] { display: none; }

/* ---------- Dark band (Canada) ---------- */
.band-dark { background: var(--slate); color: #E8EEF2; }
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark .section-head p { color: #C9D5DD; }
.band-dark a { color: var(--white); }
.canada-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.canada-grid > div { padding: 24px 24px 0 0; }
.canada-grid > div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.canada-grid h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.canada-grid h3 svg { width: 20px; height: 20px; color: var(--lime); flex-shrink: 0; }
.canada-grid p { margin-top: 10px; color: #C9D5DD; font-size: .96rem; }
@media (max-width: 920px) {
  .canada-grid { grid-template-columns: 1fr 1fr; }
  .canada-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .canada-grid > div { padding-bottom: 24px; }
}
@media (max-width: 560px) {
  .canada-grid { grid-template-columns: 1fr; }
  .canada-grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
}

/* ---------- Audiences ---------- */
.aud-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: stretch; }
.aud-featured { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(28px, 4vw, 44px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--charcoal); overflow: hidden; }
.aud-featured::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--lime); }
.aud-featured h3 { font-size: var(--step-3); line-height: 1.2; max-width: 16ch; }
.aud-featured p { margin-top: 16px; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55; max-width: 46ch; }
.aud-featured .more { font-weight: 600; color: var(--slate); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.aud-featured:hover { border-color: var(--line-strong); }
.aud-featured:hover .more { text-decoration-color: var(--slate); }
.aud-label { font-size: .82rem; font-weight: 600; color: var(--lime-ink); margin-bottom: 14px; }
.aud-list { list-style: none; display: flex; flex-direction: column; }
.aud-list li + li { border-top: 1px solid var(--line-strong); }
.aud-list a { display: block; padding: 24px 4px; text-decoration: none; color: var(--charcoal); }
.aud-list a:hover h3 { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.aud-list p { margin-top: 6px; color: var(--ink-soft); }
@media (max-width: 880px) { .aud-grid { grid-template-columns: 1fr; } }

/* ---------- Proof & founder ---------- */
.proof { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding-block: clamp(32px, 5vw, 48px); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.proof-figure { font-family: var(--serif); font-weight: 700; color: var(--slate); font-size: clamp(3.2rem, 2rem + 5vw, 5.6rem); line-height: .95; letter-spacing: -0.03em; }
.proof-figure small { display: block; font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--lime-ink); margin-top: 8px; }
.proof p { font-size: var(--step-2); line-height: 1.4; font-family: var(--serif); color: var(--charcoal); max-width: 34ch; }
@media (max-width: 640px) { .proof { grid-template-columns: 1fr; } }
.founder-split { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.founder-photo img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-panel); background: var(--line); }
.founder-split .btn-row { align-items: center; gap: 20px; }
@media (max-width: 760px) { .founder-split { grid-template-columns: 1fr; } .founder-photo { max-width: 320px; } }
.founder { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.founder blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: var(--step-3); line-height: 1.4; color: var(--slate); }
.founder figcaption { margin-top: 22px; display: grid; gap: 4px; }
.monogram { width: 44px; height: 44px; border-radius: 50%; background: var(--slate); color: var(--white); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: .95rem; }
.founder cite { font-style: normal; font-weight: 600; display: block; }
.founder .role { color: var(--ink-faint); font-size: .92rem; }

/* ---------- Pricing teaser ---------- */
.price-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.price-rows { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 24px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; }
.price-row + .price-row { border-top: 1px solid var(--line); }
.price-row strong { font-family: var(--serif); color: var(--slate); font-size: 1.1rem; }
.price-row span { color: var(--ink-faint); font-size: .88rem; display: block; }
.price-row b { font-family: var(--serif); font-size: 1.3rem; color: var(--charcoal); white-space: nowrap; }
.price-rows .per { text-align: right; font-size: .84rem; color: var(--ink-faint); padding: 0 0 14px; }
@media (max-width: 880px) { .price-teaser { grid-template-columns: 1fr; } }

/* ---------- Closing CTA ---------- */
.closing { text-align: left; }
.closing-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 32px; align-items: end; padding-top: 40px; border-top: 4px solid var(--lime); }
.closing h2 { font-size: var(--step-4); max-width: 14ch; }
.closing p { margin-top: 16px; color: var(--ink-soft); font-size: var(--step-1); max-width: 52ch; }
@media (max-width: 880px) { .closing-inner { grid-template-columns: 1fr; } }

/* ---------- Interior page hero ---------- */
.page-hero { padding-block: clamp(32px, 5vw, 64px) clamp(48px, 6vw, 80px); }
.breadcrumb { list-style: none; padding: 0; margin-top: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--ink-faint); margin-bottom: 22px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--slate); text-decoration: underline; }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { margin-top: 20px; }
.page-hero .btn-row { margin-top: 30px; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 920px) { .hero-split { grid-template-columns: 1fr; } }

/* Status panel (audience heroes) */
.status-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-panel); padding: 22px 24px; }
.status-panel h2 { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--slate); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.status-panel dl { margin: 0; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.status-row:last-child { border-bottom: 0; }
.status-row dt { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: .95rem; }
.status-row dd { margin: 0; font-family: var(--serif); font-weight: 700; color: var(--charcoal); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); flex-shrink: 0; }
.status-row.is-warn .status-dot { background: var(--orange); }
.status-row.is-warn dd { color: var(--orange-ink); }

/* Platform hero: the separate tools a program juggles, folding into one workspace */
.stack { margin: 0; max-width: 560px; }
.stack-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-panel); padding: 22px 24px; }
.stack-label { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; }
.stack-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stack-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 9px 11px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: var(--cream); color: var(--ink-soft); font-size: .84rem; line-height: 1.3; transform: rotate(var(--tilt, 0deg)) translateY(var(--drop, 0)); }
.stack-tile svg { width: 20px; height: 20px; color: var(--ink-faint); flex-shrink: 0; }
.stack-tile:nth-child(4n+1) { --tilt: -2deg; }
.stack-tile:nth-child(4n+2) { --tilt: 1.5deg; --drop: 3px; }
.stack-tile:nth-child(4n+3) { --tilt: -1deg; --drop: -1px; }
.stack-tile:nth-child(4n) { --tilt: 2deg; --drop: 2px; }
.stack-arrow { display: flex; justify-content: center; margin: 12px 0; color: var(--lime-ink); }
.stack-arrow svg { width: 22px; height: 22px; }
.stack-result { display: flex; align-items: center; gap: 14px; background: var(--slate-deep); color: var(--white); border-radius: var(--r-md); padding: 16px 18px; }
.stack-check { width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--slate-ink); display: grid; place-items: center; flex-shrink: 0; }
.stack-check svg { width: 18px; height: 18px; }
.stack-result strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.stack-result span:not(.stack-check) { display: block; margin-top: 2px; font-size: .88rem; color: rgba(255, 255, 255, .8); }
@media (max-width: 480px) {
  .stack-panel { padding: 18px 16px; }
  .stack-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stack-tile { flex-direction: row; align-items: center; gap: 8px; padding: 9px 10px; font-size: .8rem; }
  .stack-tile:last-child:nth-child(odd) { grid-column: span 2; }
  .stack-tile svg { width: 18px; height: 18px; }
}

/* ---------- Content blocks ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 64px); }
.pain { padding: 22px 0; border-top: 1px solid var(--line-strong); }
.pain h3 { font-family: var(--sans); font-weight: 600; font-size: 1.06rem; color: var(--charcoal); }
.pain p { margin-top: 6px; color: var(--ink-soft); }
@media (max-width: 720px) { .pain-grid { grid-template-columns: 1fr; } }

.fit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fit { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.section--white .fit { background: var(--cream); border-color: transparent; }
.fit h3 { font-size: 1.08rem; display: flex; gap: 10px; align-items: flex-start; }
.fit h3 svg { width: 20px; height: 20px; color: var(--lime-ink); margin-top: 3px; flex-shrink: 0; }
.fit p { margin-top: 8px; color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 960px) { .fit-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .fit-grid { grid-template-columns: 1fr; } }

.program-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 48px); }
.program-list h3 { font-size: 1.05rem; }
.program-list p { margin-top: 6px; color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 960px) { .program-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .program-list { grid-template-columns: 1fr; } }

.callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 36px); border-radius: var(--r-lg); background: var(--lime-wash); }
.callout h2 { font-size: var(--step-2); }
.callout p { margin-top: 8px; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 720px) { .callout { grid-template-columns: 1fr; } }

/* Capability rows (platform) */
.cap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding-block: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line-strong); }
.cap:first-child { border-top: 0; padding-top: 0; }
.cap h2 { font-size: var(--step-2); max-width: 22ch; }
.cap .body { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.6; }
.check-list { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 18px; height: 18px; margin-top: 4px; color: var(--lime-ink); flex-shrink: 0; }
@media (max-width: 820px) { .cap { grid-template-columns: 1fr; } }

.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.trust-grid > div { padding: 24px 24px 0 0; }
.trust-grid > div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.trust-grid h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; }
.trust-grid p { margin-top: 8px; color: #C9D5DD; font-size: .96rem; }
@media (max-width: 820px) { .trust-grid { grid-template-columns: 1fr; } .trust-grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); } .trust-grid > div { padding-bottom: 24px; } }

.addons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.addon { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.addon-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.addon h3 { font-size: 1.1rem; }
.addon p { margin-top: 10px; color: var(--ink-soft); }
.badge { font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--lime-wash); color: var(--lime-ink); white-space: nowrap; }
.badge--soon { background: rgba(47,72,88,.08); color: var(--slate); }
@media (max-width: 720px) { .addons { grid-template-columns: 1fr; } }

.statement { font-family: var(--serif); font-size: var(--step-2); line-height: 1.45; color: var(--slate); max-width: 40ch; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-family: var(--serif); font-weight: 700; color: var(--slate); font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--slate); position: relative; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--slate); transform: translate(-50%, -50%); transition: transform .2s ease; }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { padding: 0 48px 24px 0; color: var(--ink-soft); max-width: 70ch; }

/* ---------- Pricing page ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.tier.is-featured { border: 2px solid var(--slate); box-shadow: var(--shadow-panel); }
.tier-flag { position: absolute; top: -13px; left: 26px; background: var(--slate); color: var(--white); font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.tier h3 { font-size: 1.5rem; }
.tier-range { color: var(--ink-faint); font-size: .92rem; margin-top: 4px; }
.tier-price { margin-top: 22px; font-family: var(--serif); font-weight: 700; color: var(--charcoal); font-size: 2.3rem; line-height: 1; letter-spacing: -0.02em; }
.tier-unit { margin-top: 8px; color: var(--ink-faint); font-size: .88rem; }
.tier-summary { margin-top: 16px; color: var(--ink-soft); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.tier-lead { margin-top: 20px; font-weight: 600; font-size: .92rem; }
.tier .check-list { margin-top: 12px; gap: 9px; font-size: .95rem; flex-grow: 1; }
.tier .btn { margin-top: 26px; }
@media (max-width: 980px) { .tier-grid { grid-template-columns: 1fr; max-width: 560px; } }

.every-tier { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); }
.every-tier .check-list { grid-template-columns: 1fr 1fr; column-gap: 32px; margin-top: 0; }
@media (max-width: 820px) { .every-tier { grid-template-columns: 1fr; } .every-tier .check-list { grid-template-columns: 1fr; } }

.estimator { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-panel); }
.estimator-input { padding: clamp(24px, 4vw, 40px); border-right: 1px solid var(--line); }
.estimator-input label { display: block; font-weight: 600; color: var(--slate); font-size: 1.05rem; }
.estimator-input .hint { margin-top: 6px; color: var(--ink-faint); font-size: .9rem; }
.member-field { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.member-field input { width: 100%; max-width: 220px; font: 700 2.6rem/1 var(--serif); color: var(--charcoal); border: 0; border-bottom: 2px solid var(--line-strong); background: transparent; padding: 4px 0 8px; border-radius: 0; -moz-appearance: textfield; }
.member-field input::-webkit-outer-spin-button, .member-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.member-field input:focus { outline: none; border-bottom-color: var(--lime); box-shadow: none; }
.member-field span { color: var(--ink-faint); }
.range { width: 100%; margin-top: 22px; accent-color: var(--lime); height: 28px; }
.range-labels { display: flex; justify-content: space-between; font-size: .82rem; color: var(--ink-faint); }
.zones { list-style: none; margin-top: 26px; display: grid; gap: 6px; font-size: .88rem; color: var(--ink-soft); }
.zones li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: var(--r-sm); }
.zones li.is-current { background: var(--lime-wash); color: var(--charcoal); font-weight: 600; }
.estimator-output { padding: clamp(24px, 4vw, 40px); background: var(--cream); display: flex; flex-direction: column; gap: 14px; }
.est-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; }
.est-card.is-recommended { border-color: var(--slate); }
.est-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.est-top h3 { font-size: 1.2rem; }
.est-tag { font-size: .76rem; font-weight: 600; color: var(--white); background: var(--slate); padding: 3px 10px; border-radius: 999px; }
.est-total { margin-top: 12px; font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); color: var(--charcoal); letter-spacing: -0.01em; }
.est-total small { font-family: var(--sans); font-weight: 500; font-size: .9rem; color: var(--ink-faint); letter-spacing: 0; }
.est-math { margin-top: 6px; font-size: .88rem; color: var(--ink-soft); }
.est-note { font-size: .88rem; color: var(--ink-soft); background: var(--white); border-left: 3px solid var(--slate); padding: 10px 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.est-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.est-fine { font-size: .82rem; color: var(--ink-faint); }
@media (max-width: 880px) { .estimator { grid-template-columns: 1fr; } .estimator-input { border-right: 0; border-bottom: 1px solid var(--line); } }

.compare { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r-md); overflow: hidden; font-size: .97rem; }
.compare th, .compare td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--slate); color: var(--white); font-weight: 600; }
.compare thead th:last-child { background: var(--slate-deep); }
.compare tbody th { font-weight: 600; color: var(--charcoal); width: 26%; }
.compare td:last-child { color: var(--charcoal); font-weight: 500; }
.compare td:nth-child(2) { color: var(--ink-soft); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
@media (max-width: 640px) { .compare { font-size: .9rem; } .compare th, .compare td { padding: 12px; } }

/* ---------- Calculators ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.calc-form { display: grid; gap: 18px; }
.calc-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 28px); margin: 0; }
.calc-group legend { font-family: var(--serif); font-weight: 700; color: var(--slate); font-size: 1.1rem; padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.calc-group .legend-note { clear: both; color: var(--ink-faint); font-size: .9rem; margin-bottom: 14px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 6px 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.field:first-of-type { border-top: 0; }
.field label { font-weight: 600; font-size: .97rem; }
.field .help { grid-column: 1 / -1; font-size: .86rem; color: var(--ink-faint); line-height: 1.5; }
.field .help .badge { margin-right: 6px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input { width: 100%; font: 600 1.02rem/1.2 var(--sans); padding: 11px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white); color: var(--charcoal); text-align: right; }
.input-wrap input:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(47,72,88,.15); }
.input-wrap .prefix, .input-wrap .suffix { position: absolute; color: var(--ink-faint); font-size: .95rem; pointer-events: none; }
.input-wrap .prefix { left: 12px; }
.input-wrap .suffix { right: 12px; }
.input-wrap.has-prefix input { padding-left: 26px; }
.input-wrap.has-suffix input { padding-right: 30px; }
@media (max-width: 520px) { .field { grid-template-columns: 1fr; } }
.calc-results { position: sticky; top: 92px; background: var(--slate); color: #E8EEF2; border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); }
.calc-results h2 { color: var(--white); font-size: 1.15rem; font-family: var(--sans); font-weight: 600; }
.result-main { margin-top: 18px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.16); }
.result-main .label { color: #C9D5DD; font-size: .92rem; }
.result-main .value { font-family: var(--serif); font-weight: 700; color: var(--white); font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); line-height: 1.1; margin-top: 6px; letter-spacing: -0.02em; }
.result-main .sub { margin-top: 6px; color: var(--lime); font-weight: 600; font-size: .95rem; }
.result-rows { margin: 0; }
.result-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .95rem; }
.result-rows dt { color: #C9D5DD; }
.result-rows dd { margin: 0; color: var(--white); font-weight: 600; text-align: right; white-space: nowrap; }
.calc-results .btn { margin-top: 22px; }
.calc-results .fine { margin-top: 14px; font-size: .82rem; color: #AFC0CB; }
@media (max-width: 920px) { .calc { grid-template-columns: 1fr; } .calc-results { position: static; } }
.method { max-width: 820px; }
.method h2 { font-size: var(--step-2); }
.method ol { margin: 18px 0 0; padding-left: 1.3em; display: grid; gap: 10px; color: var(--ink-soft); }
.method code { font-family: var(--sans); font-weight: 600; color: var(--slate); background: rgba(47,72,88,.06); padding: 1px 6px; border-radius: 4px; font-size: .92em; }

/* ---------- Prose (legal, privacy, about story) ---------- */
.prose { max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; margin-bottom: .6em; }
.prose h3 { margin-top: 1.6em; margin-bottom: .4em; }
.prose p, .prose li { color: var(--ink); line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.3em; margin: .8em 0; display: grid; gap: 6px; }
.prose p + p { margin-top: 1em; }
.prose blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 4px solid var(--lime); font-family: var(--serif); font-style: italic; color: var(--slate); font-size: var(--step-1); }
.prose .updated { color: var(--ink-faint); font-size: .92rem; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.facts { position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.facts dl { margin: 0; display: grid; gap: 16px; }
.facts dt { font-size: .8rem; font-weight: 600; color: var(--ink-faint); }
.facts dd { margin: 2px 0 0; font-weight: 500; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } .facts { position: static; } }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 64px); }
.values > div { padding: 24px 0; border-top: 1px solid var(--line-strong); }
.values h3 { font-size: 1.15rem; }
.values p { margin-top: 8px; color: var(--ink-soft); }
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }

.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.demo-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow-panel); }
.demo-card h2 { font-size: var(--step-2); }
.demo-card .btn { margin-top: 22px; }
.contact-lines { list-style: none; display: grid; gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-lines li { display: flex; gap: 12px; align-items: center; }
.contact-lines svg { width: 18px; height: 18px; color: var(--lime-ink); flex-shrink: 0; }
.steps-list { list-style: none; counter-reset: s; display: grid; gap: 0; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-strong); }
.steps-list li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--slate); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; color: var(--slate); font-size: .9rem; }
.steps-list h3 { font-size: 1.05rem; }
.steps-list p { margin-top: 4px; color: var(--ink-soft); }
@media (max-width: 880px) { .demo-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-ink); color: #C9D5DD; padding-block: clamp(48px, 7vw, 80px) 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(var(--footer-cols, 3), minmax(0, 1fr)) minmax(0, 1.1fr); gap: 32px; }
.site-footer .wordmark { color: var(--white); }
.site-footer p { margin-top: 14px; max-width: 34ch; }
.site-footer h2 { font-family: var(--sans); font-size: .86rem; font-weight: 600; color: var(--white); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #C9D5DD; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--lime); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: .86rem; color: #9FB1BD; }
.footer-bottom p { margin: 0; max-width: 70ch; }
@media (max-width: 1040px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* About hero portrait and TEDx */
.about-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 5vw, 64px); align-items: end; }
.about-hero picture { display: block; align-self: end; }
/* Portrait stands on the bottom edge of the hero band: a clean crop line, no fade. */
.about-hero img { display: block; width: 100%; max-width: 420px; height: auto; margin-left: auto; mix-blend-mode: multiply; }
@media (max-width: 880px) { .about-hero { grid-template-columns: 1fr; } .about-hero > div:first-child { padding-bottom: 8px !important; } .about-hero img { max-width: 300px; margin: 0 auto; } }
.tedx { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.tedx > div > p:not(.video-note):not(.talk-title) { margin-top: 14px; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55; }
.tedx .talk-title { font-family: var(--serif); font-style: italic; color: var(--slate); font-size: var(--step-2); line-height: 1.35; margin-top: 16px; }
.tedx .meta { margin-top: 10px; font-size: .92rem; color: var(--ink-faint); font-size: .92rem; }
.video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--slate); box-shadow: var(--shadow-panel); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; display: grid; place-items: center; text-decoration: none; color: var(--white); background: radial-gradient(circle at 70% 30%, rgba(149,163,2,.35), transparent 55%), var(--slate); border: 0; width: 100%; cursor: pointer; font: inherit; }
.video-facade .play { width: 76px; height: 76px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; transition: transform .15s ease; }
.video-facade .play svg { width: 28px; height: 28px; color: var(--charcoal); margin-left: 4px; }
.video-facade:hover .play { transform: scale(1.06); }
.video-facade .label { position: absolute; left: 22px; bottom: 18px; right: 22px; text-align: left; font-weight: 600; }
.video-facade .label small { display: block; font-weight: 400; color: #C9D5DD; margin-top: 2px; font-size: .85rem; }
.video-note { margin-top: 10px; font-size: .82rem; color: var(--ink-faint); }
@media (max-width: 880px) { .tedx { grid-template-columns: 1fr; } }

/* Flag and icon tiles */
.flag { width: 24px; height: 18px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(34,34,34,.12); flex-shrink: 0; object-fit: cover; }
.flag--lg { width: 44px; height: 33px; border-radius: 4px; box-shadow: 0 0 0 2px rgba(255,255,255,.9); margin-bottom: 20px; }
.assurances .flag { width: 20px; height: 15px; }
.proudly { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 600; font-size: .92rem; }
.proudly .flag { box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.stage h3 { display: flex; align-items: center; gap: 8px; }
.stage-icon svg { width: 20px; height: 20px; color: var(--lime-ink); }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--lime-wash); color: var(--lime-ink); display: grid; place-items: center; margin-bottom: 16px; }
.icon-tile svg { width: 22px; height: 22px; }
.cap .icon-tile { margin-bottom: 18px; }
.fit .icon-tile { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px; }
.section--white .fit .icon-tile { background: var(--white); }
.trust-grid h3 { display: flex; align-items: center; gap: 10px; }
.trust-grid h3 svg { width: 20px; height: 20px; color: var(--lime); flex-shrink: 0; }

/* Demo page */
.demo-steps { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: d; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.demo-steps li { counter-increment: d; padding-top: 16px; border-top: 2px solid var(--slate); }
.demo-steps li::before { content: counter(d); font-family: var(--serif); font-weight: 700; color: var(--lime-ink); font-size: .95rem; }
.demo-steps h3 { font-size: 1.02rem; margin-top: 6px; }
.demo-steps p { margin-top: 6px; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 880px) { .demo-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .demo-steps { grid-template-columns: 1fr; } }
.booking-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-panel); padding: clamp(20px, 3.5vw, 36px); }
.booking-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.booking-head h2 { font-size: var(--step-2); }
.booking-head p { margin-top: 6px; }
.contact-lines--inline { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.booking-widget { margin-top: 20px; min-height: 120px; }
.booking-widget iframe { width: 100% !important; max-width: 100%; border: 0; }
.booking-fallback { font-size: .92rem; color: var(--ink-soft); }

/* Report request */
.report-cta { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); }
.report-cta h3 { color: var(--white); font-size: 1.1rem; }
.report-cta p { margin-top: 8px; color: #C9D5DD; font-size: .93rem; }
.report-cta .btn { margin-top: 16px; }
.report-modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 0; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); background: var(--white); color: var(--charcoal); box-shadow: 0 30px 80px -20px rgba(29,47,59,.45); }
.report-modal::backdrop { background: rgba(29,47,59,.55); backdrop-filter: blur(2px); }
.report-modal h2 { font-size: var(--step-2); padding-right: 36px; }
.modal-lead { margin-top: 10px; color: var(--ink-soft); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--cream); color: var(--slate); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--line); }
.report-form { display: grid; gap: 14px; margin-top: 22px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-weight: 600; font-size: .92rem; }
.form-row input { font: 500 1rem/1.3 var(--sans); padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white); color: var(--charcoal); }
.form-row input:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(47,72,88,.15); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--slate); flex-shrink: 0; }
.form-error { background: var(--orange-wash); color: var(--orange-ink); padding: 10px 14px; border-radius: var(--r-sm); font-size: .92rem; font-weight: 500; }
.form-fine { font-size: .82rem; color: var(--ink-faint); }
.report-done .btn { margin-top: 22px; }
.report-done:focus { outline: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 50vh; display: grid; align-content: center; }

/* ---------- Languages ---------- */
.lang-switch { font-weight: 700; letter-spacing: .04em; }
.service-note { margin: 0; padding: 10px var(--gutter); text-align: center; font-size: .9rem; background: var(--lime-wash); color: var(--slate-ink); }

/* ---------- Guides ---------- */
.guide-hero { padding-bottom: clamp(28px, 4vw, 44px); }
.guide-hero h1 { max-width: 20ch; }
.guide-kicker { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime-ink); margin-bottom: 12px; }
.guide-meta { margin-top: 22px; font-size: .92rem; color: var(--ink-faint); }
.guide-body { padding-top: clamp(28px, 4vw, 48px); background: var(--white); }
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.guide-toc { position: sticky; top: 96px; font-size: .92rem; }
.toc-title { font-weight: 700; color: var(--slate); margin-bottom: 10px; }
.guide-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.guide-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; line-height: 1.35; }
.guide-toc a:hover { color: var(--slate); border-left-color: var(--lime); }
.toc-print { margin-top: 20px; font-size: .88rem; padding: 10px 16px; }
.guide-article { max-width: 70ch; }
.guide-article h2 { scroll-margin-top: 96px; }
.guide-note { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md, 14px); padding: 16px 20px; margin-bottom: 8px; }
.guide-note p { font-size: .95rem; line-height: 1.6; color: var(--ink-soft); }
.table-wrap { overflow-x: auto; margin: 1.2em 0; }
.guide-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.2em 0; }
.table-wrap .guide-table { margin: 0; }
.guide-table caption { text-align: left; font-size: .88rem; color: var(--ink-faint); padding-bottom: 8px; }
.guide-table th { text-align: left; font-size: .82rem; font-weight: 600; color: var(--ink-faint); padding: 10px 12px; border-bottom: 2px solid var(--lime); }
.guide-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.guide-table td:first-child { color: var(--slate); font-weight: 600; }
.guide-vendor td:first-child { width: 42%; }
.guide-funding td:first-child { white-space: nowrap; }
.guide-timeline { list-style: none; padding: 0 !important; margin: 1.2em 0 !important; gap: 0 !important; border-left: 2px solid var(--line); }
.guide-timeline li { position: relative; display: grid; gap: 2px; padding: 0 0 18px 22px; }
.guide-timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--lime); }
.guide-timeline .when { font-weight: 700; color: var(--slate); }
.guide-timeline .what { color: var(--ink); line-height: 1.6; }
.guide-questions { counter-reset: q; list-style: none; padding: 0 !important; gap: 10px !important; }
.guide-questions li { counter-increment: q; position: relative; padding: 14px 16px 14px 56px; background: var(--lime-wash); border-radius: var(--r-md, 14px); }
.guide-questions li::before { content: counter(q); position: absolute; left: 16px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--white); color: var(--lime-ink); font-weight: 700; font-size: .88rem; display: grid; place-items: center; }
.guide-cta { margin: 2.6em 0 0; padding: clamp(24px, 4vw, 36px); background: var(--slate); border-radius: var(--r-lg); }
.guide-cta h2 { margin-top: 0 !important; color: var(--white); }
.guide-cta p { color: #D7E0E6 !important; }
.guide-cta .btn-row { margin-top: 20px; }
.guide-cta .btn--secondary { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .5); }
.guide-sources { font-size: .92rem; }
.guide-sources a { overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; background: var(--cream); border-radius: var(--r-lg); padding: 20px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .btn, .menu-toggle { display: none !important; }
  body { background: #fff; }
  .guide-toc, .guide-cta, .breadcrumb { display: none !important; }
  .guide-layout { display: block; }
  .guide-body, .page-hero { background: #fff; padding-block: 12px; }
  .guide-table, .guide-timeline li, .guide-questions li { break-inside: avoid; }
  .guide-sources a::after { content: " (" attr(href) ")"; color: #555; }
}
