/* aialgodance — marketing site
   Concept: a duet. The machine speaks in a precise grotesque on deep petrol,
   lit in teal. The human speaks in a warm italic serif, lit in amber.
   The page moves from the product to its purpose, and ends on people. */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url("../fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url("../fonts/bricolage-grotesque-latin-ext-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700; font-stretch: 75% 100%;
  src: url("../fonts/instrument-sans-latin-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700; font-stretch: 75% 100%;
  src: url("../fonts/instrument-sans-latin-ext-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-display: swap; font-weight: 400;
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("../fonts/instrument-serif-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-display: swap; font-weight: 400;
  src: url("../fonts/instrument-serif-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- Tokens (dark first) ---------- */
:root {
  --ink: #061619;        /* page ground: petrol night */
  --deep: #0B2328;       /* alternate band */
  --panel: #102E35;      /* raised surfaces */
  --line: #1D434C;       /* hairlines */
  --mist: #E6EEEA;       /* primary text */
  --sage: #93AEAA;       /* secondary text */
  --teal: #38CBC6;       /* the machine: brand signal */
  --cyan-lite: #7FE6E2;
  --teal-ink: #03201F;
  --ember: #38CBC6;      /* the human: warmth */
  --sun: #D7F4F1;        /* commitment ground (same in both themes) */
  --sun-ink: #13272A;
  --sun-soft: #1E6461;
  --gain: #3DD68C;
  --loss: #F06B6B;
  --glass: rgba(255, 255, 255, .06);
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
  --grain-opacity: .07;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body: "Instrument Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.9rem, 1.2rem + 2.4vw, 2.85rem);
  --step-4: clamp(2.7rem, 1.2rem + 5.6vw, 6rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --radius: 16px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ink: #F2F5F1; --deep: #E5EDE9; --panel: #FFFFFF; --line: #C8D7D2;
    --mist: #0D282D; --sage: #4B6764; --teal: #087F7E; --cyan-lite: #159E9B; --teal-ink: #FFFFFF;
    --ember: #087F7E; --glass: rgba(13, 40, 45, .05);
    --shadow: 0 40px 80px -44px rgba(9, 45, 50, .5); --grain-opacity: .05;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --ink: #F2F5F1; --deep: #E5EDE9; --panel: #FFFFFF; --line: #C8D7D2;
  --mist: #0D282D; --sage: #4B6764; --teal: #087F7E; --cyan-lite: #159E9B; --teal-ink: #FFFFFF;
  --ember: #087F7E; --glass: rgba(13, 40, 45, .05);
  --shadow: 0 40px 80px -44px rgba(9, 45, 50, .5); --grain-opacity: .05;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--ink); color: var(--mist);
  font: 400 var(--step-0)/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* Film grain: a warm, analogue texture over the whole page */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video, canvas { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 650; line-height: 1.06; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.012em; line-height: 1.25; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
a { color: var(--teal); text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums lining-nums; }
sup { font-size: .65em; line-height: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--teal); color: var(--teal-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 var(--step-0)/1 var(--body); padding: .9em 1.35em; border-radius: 999px;
  border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s, box-shadow .25s;
}
.btn--sm { font-size: var(--step--1); padding: .7em 1.1em; }
.btn--lg { padding: 1.05em 1.6em; }
.btn--primary { background: var(--teal); color: var(--teal-ink); box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--teal) 80%, transparent); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px color-mix(in srgb, var(--teal) 90%, transparent); }
.btn--ghost { background: transparent; color: var(--mist); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); }
.btn--warm { background: var(--teal); color: var(--teal-ink); box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--teal) 80%, transparent); }
.btn--warm:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px color-mix(in srgb, var(--teal) 90%, transparent); }
.btn--ink { background: var(--sun-ink); color: #E7F6F4; }
.btn--ink:hover { transform: translateY(-1px); background: #0B1A1C; }
.btn--glass { background: var(--glass); color: var(--mist); border-color: color-mix(in srgb, var(--mist) 18%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { border-color: var(--teal); }
.play { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: var(--teal-ink); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--mist); cursor: pointer; }
.icon-btn:hover { border-color: var(--teal); }
.link-btn { background: none; border: 0; padding: 0; color: var(--teal); font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}
.top__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { font: 700 1.4rem/1 var(--display); letter-spacing: -.02em; text-decoration: none; color: var(--mist); }
.brand__ai { color: var(--teal); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--sage); text-decoration: none; font-size: var(--step--1); font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--mist); }
.nav .nav__warm { color: var(--cyan-lite); }
.top__actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }
.lang { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--mist); text-decoration: none; font: 600 .8125rem/1 var(--display); letter-spacing: .06em; }
.lang:hover { border-color: var(--teal); color: var(--teal); }
@media (max-width: 1360px) {
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav a { padding: 12px 0; font-size: var(--step-0); border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
  .nav:not(.is-open) { display: none; }
  .top__actions { margin-left: auto; }
  .nav-toggle { display: inline-grid; }
}
@media (max-width: 720px) { .top__actions .btn--ghost, #theme-toggle { display: none; } }
@media (max-width: 480px) { .top__actions .btn--primary { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { /* aurora: teal machine glow + amber human glow */
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 38%, color-mix(in srgb, var(--teal) 22%, transparent), transparent 70%),
    radial-gradient(30% 40% at 92% 18%, color-mix(in srgb, var(--teal) 18%, transparent), transparent 70%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 88%, transparent) 38%, transparent 70%),
              linear-gradient(0deg, var(--ink) 0%, transparent 22%); }
.hero__inner { display: none; padding-block: clamp(56px, 10vw, 140px) clamp(48px, 7vw, 96px); max-width: var(--max); }
.hero__kicker { color: var(--teal); font-weight: 600; font-size: var(--step--1); margin-bottom: 22px; display: inline-flex; align-items: center; gap: 10px; }
.hero__kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero__title { display: grid; gap: .1em; max-width: 14ch; font-size: var(--step-4); }
.hero__machine { font-weight: 700; font-stretch: 90%; letter-spacing: -.04em; line-height: .96; }
.hero__human { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--cyan-lite); letter-spacing: -.01em; line-height: 1; font-size: .92em; }
.hero__lead { margin-top: 28px; max-width: 36em; color: var(--sage); font-size: var(--step-1); line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__legend { margin-top: 40px; color: var(--sage); font-size: var(--step--1); max-width: 40em; }
.legend { display: inline-block; width: 22px; height: 2px; border-radius: 2px; vertical-align: middle; margin: 0 8px 0 0; }
.legend--fan { background: var(--teal); opacity: .6; }
.legend--keep { background: var(--teal); margin-left: 10px; }
@media (max-width: 760px) {
  .hero__veil { background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 70%, transparent) 0%, color-mix(in srgb, var(--ink) 92%, transparent) 55%, var(--ink) 100%); }
  /* Native copy: the 1440px hero visual scales type down to ~27% on a phone. */
  .hero__inner { display: block; padding-block: 28px 20px; }
  .hero__kicker { font-size: var(--step-0); margin-bottom: 14px; }
  .hero__title { max-width: 18ch; }
  .hero__lead { margin-top: 18px; }
  .hero__cta { flex-direction: column; align-items: stretch; margin-top: 24px; }
  .hero__cta .btn { width: 100%; }
}

/* Market tape */
.tape { position: relative; display: flex; align-items: center; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--deep) 85%, transparent); overflow: hidden; }
.tape__label { flex: none; padding: 16px 18px 16px var(--gutter); color: var(--sage); font-size: var(--step--1); background: var(--deep); position: relative; z-index: 1; box-shadow: 18px 0 24px -8px var(--deep); }
.tape__track { display: flex; width: max-content; }
.tape__list { display: flex; gap: 34px; list-style: none; margin: 0; padding: 16px 34px 16px 0; font: 600 var(--step--1)/1 var(--display); letter-spacing: .05em; white-space: nowrap; }
.tape__more { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: var(--step-0); color: var(--cyan-lite); }
@media (prefers-reduced-motion: no-preference) {
  .tape__track { animation: tape 48s linear infinite; }
  .tape:hover .tape__track { animation-play-state: paused; }
}
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tape__track { width: auto; } .tape__list { flex-wrap: wrap; white-space: normal; row-gap: 12px; } .tape__list[aria-hidden] { display: none; }
}

/* ---------- Problem ---------- */
.problem { padding-block: clamp(80px, 11vw, 140px) 0; }
.problem__title { margin-top: 16px; font-size: var(--step-3); max-width: 24ch; }
.problem__title em { color: var(--cyan-lite); font-size: 1.08em; }
.problem__grid { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pains article { padding: 22px 22px 22px 0; display: grid; gap: 8px; align-content: start; border-bottom: 1px solid var(--line); }
.pains article:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
.pains h3 { font-size: var(--step-1); }
.pains p { color: var(--sage); }
.stat { padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.stat__n { font: 700 clamp(3rem, 2rem + 3vw, 4.5rem)/1 var(--display); letter-spacing: -.04em; color: var(--loss); }
.stat__label { font-size: var(--step-1); }
.stat__src { color: var(--sage); font-size: .8125rem; }
.stat__then { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--body); font-size: var(--step-0); line-height: 1.6; }
@media (max-width: 900px) { .problem__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .pains { grid-template-columns: minmax(0, 1fr); } .pains article:nth-child(even) { padding-left: 0; border-left: 0; } }

/* ---------- Solution pillars ---------- */
.solution { padding-block: clamp(72px, 10vw, 128px) 0; }
.solution__head { display: grid; gap: 14px; max-width: 44em; margin-bottom: clamp(32px, 4vw, 56px); }
.solution__head p { color: var(--sage); font-size: var(--step-1); line-height: 1.5; }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pillar {
  position: relative; display: grid; gap: 12px; align-content: start; padding: 26px 24px 24px;
  border-radius: 20px; border: 1px solid var(--line); text-decoration: none; color: var(--mist); overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--teal) 7%, var(--panel)), var(--panel));
  transition: border-color .3s, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.pillar::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--teal) 22%, transparent), transparent 70%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.pillar:hover { border-color: color-mix(in srgb, var(--teal) 60%, var(--line)); transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar:hover::after { opacity: 1; }
.pillar__icon { width: 44px; height: 44px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: var(--step-2); }
.pillar p { color: var(--sage); }
.pillar__more { margin-top: 6px; color: var(--teal); font-size: var(--step--1); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
@media (max-width: 1040px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

/* Genetic agents */
.genetic { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(24px, 3.5vw, 44px); border-radius: 24px; border: 1px solid color-mix(in srgb, var(--teal) 45%, var(--line)); background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--teal) 10%, transparent), transparent 60%), var(--panel); }
.genetic__text { display: grid; gap: 14px; }
.genetic__title { font-size: var(--step-3); line-height: 1.08; }
.genetic__title em { display: block; color: var(--cyan-lite); font-size: 1.06em; }
.genetic__text p { color: var(--sage); }
.genetic__forces { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.genetic__forces li { padding: 10px 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); color: var(--sage); font-size: var(--step--1); }
.genetic__forces b { color: var(--mist); font-weight: 600; }
.lineage { margin: 0; display: grid; gap: 10px; min-width: 0; }
.lineage svg { width: 100%; height: auto; overflow: visible; }
.lineage__links path { fill: none; stroke: color-mix(in srgb, var(--teal) 35%, transparent); stroke-width: 2; }
.lineage__best path { fill: none; stroke: var(--teal); stroke-width: 3.5; stroke-linecap: round; }
.lineage__nodes circle { fill: var(--teal); stroke: var(--panel); stroke-width: 3; }
.lineage__nodes circle.dim { fill: color-mix(in srgb, var(--teal) 40%, var(--panel)); }
.lineage__nodes circle.top { fill: var(--teal); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--teal) 70%, transparent)); }
.lineage__labels text { fill: var(--sage); font: 500 13px var(--body); text-anchor: middle; }
.lineage figcaption { color: var(--sage); font-size: var(--step--1); }
@media (max-width: 860px) { .genetic { grid-template-columns: minmax(0, 1fr); } }

/* How it works */
.steps { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.steps li { display: grid; gap: 8px; align-content: start; padding: 0 20px 0 0; position: relative; }
.steps li::after { content: ""; position: absolute; top: 19px; left: 48px; right: 8px; height: 2px; background: linear-gradient(90deg, var(--teal), color-mix(in srgb, var(--teal) 20%, transparent)); }
.steps li:last-child::after { background: linear-gradient(90deg, var(--teal), transparent); }
.steps__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--teal); color: var(--teal); font: 700 1rem/1 var(--display); background: var(--ink); position: relative; z-index: 1; }
.steps li:last-child .steps__n { border-color: var(--cyan-lite); color: var(--cyan-lite); }
.steps h3 { font-size: var(--step-2); margin-top: 6px; }
.steps p { color: var(--sage); max-width: 22em; }
.notjust { margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--step-1); line-height: 1.45; color: var(--sage); max-width: 52em; }
.notjust em { color: var(--mist); font-size: 1.12em; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } .steps li:nth-child(2)::after { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: minmax(0, 1fr); } .steps li::after { display: none; } }

/* ---------- Product reveal ---------- */
.reveal { padding-block: clamp(48px, 7vw, 96px) 0; perspective: 1400px; }
.reveal__frame { margin: 0; transform-origin: 50% 0; will-change: transform; }
.window { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #0B1F24; box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--teal) 10%, transparent), 0 0 120px -30px color-mix(in srgb, var(--teal) 45%, transparent); }
.window__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #0E2A30; border-bottom: 1px solid #1D434C; }
.window__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A535C; }
.window__bar i:first-child { background: #E46A5E; } .window__bar i:nth-child(2) { background: #E9B44C; } .window__bar i:nth-child(3) { background: #49C08B; }
.window__bar span { margin-left: 10px; color: #8FAAA6; font-size: .75rem; }
.window img { width: 100%; height: auto; }
.reveal figcaption { margin-top: 14px; color: var(--sage); font-size: var(--step--1); text-align: center; }

/* ---------- Manifesto ---------- */
.manifesto { padding-block: clamp(88px, 12vw, 170px); }
.manifesto__eyebrow { color: var(--cyan-lite); font-family: var(--serif); font-style: italic; font-size: var(--step-2); margin-bottom: 18px; }
.manifesto__text { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.2rem + 3.3vw, 4rem); line-height: 1.12; letter-spacing: -.012em; max-width: 22ch; text-wrap: pretty; }
.manifesto__text .w { transition: none; }
.tribes { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tribe { padding: 26px 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); display: grid; gap: 12px; align-content: start; }
.tribe h3 { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); letter-spacing: 0; }
.tribe p { color: var(--sage); }
.tribe b { color: var(--mist); font-weight: 600; }
.tribe__get { padding-top: 12px; border-top: 1px solid var(--line); }
.tribe__get b { color: var(--cyan-lite); }
@media (max-width: 860px) { .tribes { grid-template-columns: minmax(0, 1fr); } }
.principles { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.principle { padding: 28px 24px 8px 0; display: grid; gap: 12px; align-content: start; }
.principle + .principle { padding-left: 24px; border-left: 1px solid var(--line); }
.principle__icon { width: 40px; height: 40px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.principle h3 { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); letter-spacing: 0; }
.principle p { color: var(--sage); }
.principle--warm .principle__icon { stroke: var(--teal); }
.principle--warm h3 { color: var(--cyan-lite); }
.principle--warm a { color: var(--cyan-lite); }
.community__cta { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.community__cta p { font-family: var(--serif); font-style: italic; font-size: var(--step-1); color: var(--sage); }
@media (max-width: 960px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle:nth-child(3) { border-left: 0; padding-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 8px; }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principle + .principle { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Platform showcase ---------- */
.platform { padding-block: clamp(64px, 9vw, 120px); background: linear-gradient(180deg, var(--ink), var(--deep) 40%, var(--ink)); }
.platform__head { display: grid; gap: 16px; max-width: 46em; }
.strike { font: 650 var(--step-1)/1.2 var(--display); color: var(--sage); text-decoration: line-through; text-decoration-color: var(--teal); text-decoration-thickness: 2px; }
.platform__sub { color: var(--sage); font-size: var(--step-1); line-height: 1.5; }
.chapters { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chapters a { display: inline-flex; gap: 8px; align-items: baseline; padding: .55em 1em; border: 1px solid var(--line); border-radius: 999px; color: var(--mist); text-decoration: none; font-size: var(--step--1); font-weight: 500; transition: border-color .2s, background-color .2s; }
.chapters a span { color: var(--teal); font: 600 .78rem/1 var(--display); }
.chapters a:hover, .chapters a.is-on { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); }

.show { margin-top: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.chapter { padding-bottom: 24px; }
.chapter__title { display: flex; gap: 14px; align-items: baseline; font-size: var(--step-3); padding-top: 20px; border-top: 1px solid var(--line); }
.chapter__title span { color: var(--teal); font-size: .5em; font-variant-numeric: tabular-nums; }
.beat { min-height: 62vh; display: grid; align-content: center; gap: 14px; padding-block: 28px; opacity: .45; transition: opacity .45s; }
.beat.is-on { opacity: 1; }
.beat h4 { font-size: var(--step-2); }
.beat p { color: var(--sage); max-width: 34em; }
.beat .beat__note { font-size: var(--step--1); padding-left: 14px; border-left: 2px solid var(--teal); }
.beat__img { display: none; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.show__stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); }
.stage { border-radius: 18px; border: 1px solid var(--line); background: #0B1F24; overflow: hidden; box-shadow: var(--shadow), 0 0 140px -40px color-mix(in srgb, var(--teal) 40%, transparent); }
.stage__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #1D434C; background: #0E2A30; color: #E6EEEA; font-size: var(--step--1); }
.stage__n { font: 700 .8rem/1 var(--display); color: #38CBC6; }
.stage__name { font-weight: 600; }
.stage__dots { margin-left: auto; display: flex; gap: 6px; }
.stage__dots i { width: 6px; height: 6px; border-radius: 50%; background: #2A535C; transition: background-color .3s, transform .3s; }
.stage__dots i.is-on { background: #38CBC6; transform: scale(1.3); }
.stage__screens { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(80% 80% at 50% 0%, #10333A, #08191D); }
.stage__screens img { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; object-fit: contain; padding: 8px; opacity: 0; transform: scale(.985); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.stage__screens img.is-on { opacity: 1; transform: none; }
.tour-link { margin-top: 32px; }
@media (max-width: 900px) {
  .show { grid-template-columns: minmax(0, 1fr); }
  .show__stage { display: none; }
  .beat { min-height: 0; opacity: 1; }
  .beat__img { display: block; }
}
html:not(.js) .beat { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .beat { opacity: 1; } }

/* ---------- Generic sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--deep { background: var(--deep); }
.section__head { max-width: 44em; margin-bottom: clamp(32px, 4vw, 56px); display: grid; gap: 14px; }
.section__head p { color: var(--sage); font-size: var(--step-1); line-height: 1.5; }

/* ---------- Engines ---------- */
.engines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.engine { padding: 24px; display: grid; gap: 8px; align-content: start; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, transform .3s; }
.engine:hover { border-color: color-mix(in srgb, var(--teal) 60%, var(--line)); transform: translateY(-3px); }
.engine__role { color: var(--teal); font-size: var(--step--1); font-weight: 600; }
.engine h3 { font-size: var(--step-2); }
.engine__lib { color: var(--sage); font-size: var(--step--1); margin-top: -4px; }
.engine p:last-child { color: var(--sage); margin-top: 6px; }
@media (max-width: 960px) { .engines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .engines { grid-template-columns: minmax(0, 1fr); } }
.guard { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 22px 26px; border: 1px solid color-mix(in srgb, var(--teal) 55%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, var(--teal) 8%, transparent); }
.guard__title { font: 650 var(--step-1)/1.3 var(--display); }
.guard__sub { color: var(--sage); margin-top: 6px; max-width: 40em; }
.guard__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.guard__list li { font-size: var(--step--1); font-weight: 600; padding: .45em .9em; border-radius: 999px; background: var(--teal); color: var(--teal-ink); }
.guard__list .guard__plain { background: transparent; color: var(--sage); font-weight: 500; padding-inline: 4px 0; }

.funnel { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.funnel__intro { display: grid; gap: 10px; }
.funnel__intro p { color: var(--sage); }
.funnel__track { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-width: 0; }
.funnel__end { display: grid; gap: 2px; color: var(--sage); font-size: var(--step--1); line-height: 1.25; max-width: 8em; }
.funnel__end .num { font: 700 var(--step-3)/1 var(--display); color: var(--mist); }
.funnel__end--out .num { color: var(--cyan-lite); }
.funnel__stages { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; align-items: center; }
.funnel__stages li { counter-increment: st; display: grid; place-items: center; text-align: center; font-size: .75rem; line-height: 1.15; padding: 8px 2px; background: color-mix(in srgb, var(--teal) 22%, var(--panel)); border-radius: 6px; }
.funnel__stages li::before { content: counter(st); display: block; font: 600 .7rem/1 var(--display); color: var(--teal); margin-bottom: 4px; }
.funnel__stages li:nth-child(1) { min-height: 112px; } .funnel__stages li:nth-child(2) { min-height: 96px; }
.funnel__stages li:nth-child(3) { min-height: 82px; } .funnel__stages li:nth-child(4) { min-height: 70px; }
.funnel__stages li:nth-child(5) { min-height: 60px; }
.funnel__stages li:nth-child(6) { min-height: 52px; background: color-mix(in srgb, var(--teal) 28%, var(--panel)); }
@media (max-width: 860px) { .funnel { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .funnel__track { grid-template-columns: minmax(0, 1fr); }
  .funnel__end { max-width: none; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 8px; }
  .funnel__stages { grid-template-columns: minmax(0, 1fr); }
  .funnel__stages li { min-height: 0 !important; grid-auto-flow: column; justify-content: start; gap: 10px; padding: 10px 12px; }
  .funnel__stages li::before { margin: 0; }
  .funnel__stages li:nth-child(2) { width: 92%; } .funnel__stages li:nth-child(3) { width: 84%; }
  .funnel__stages li:nth-child(4) { width: 76%; } .funnel__stages li:nth-child(5) { width: 68%; } .funnel__stages li:nth-child(6) { width: 60%; }
}

/* ---------- Learning loop ---------- */
.loop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.loop__text { display: grid; gap: 16px; max-width: 34em; }
.loop__text p { color: var(--sage); font-size: var(--step-1); line-height: 1.5; }
.loop__text .loop__human { font-family: var(--serif); font-style: italic; color: var(--cyan-lite); font-size: var(--step-2); line-height: 1.3; }
.figures { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.figures div { display: grid; gap: 4px; padding: 22px 0; border-top: 1px solid var(--line); }
.figures div:nth-child(odd) { padding-right: 18px; }
.figures dt { order: 2; color: var(--sage); font-size: var(--step--1); }
.figures dd { order: 1; margin: 0; font: 700 clamp(2.2rem, 1.4rem + 2.6vw, 3.5rem)/1 var(--display); letter-spacing: -.035em; }

.status { margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--teal); background: color-mix(in srgb, var(--teal) 8%, transparent); border-radius: 0 10px 10px 0; color: var(--sage); font-size: var(--step--1); }
.status b { color: var(--mist); }
@media (max-width: 860px) { .loop { grid-template-columns: minmax(0, 1fr); } }

/* ---------- BYOB / markets ---------- */
.byob { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.byob__text { display: grid; gap: 16px; max-width: 34em; }
.byob__text p { color: var(--sage); font-size: var(--step-1); line-height: 1.5; }
.byob__text .byob__lead { color: var(--mist); }
.byob__text .byob__regions { font-size: var(--step-0); }
.markets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
.markets__title { grid-column: 1 / -1; font: 650 var(--step-1)/1.3 var(--display); }
.markets__title em { color: var(--cyan-lite); font-size: 1.12em; }
.markets__group h3 { font: 600 var(--step--1)/1.2 var(--body); color: var(--sage); margin-bottom: 10px; letter-spacing: 0; }
.markets__group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.markets__group li { font: 600 var(--step--1)/1 var(--display); letter-spacing: .04em; padding: .65em .85em; border-radius: 8px; border: 1px solid var(--line); background: var(--ink); }
.markets__next { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; padding: 16px 18px; border: 1.5px dashed color-mix(in srgb, var(--teal) 70%, var(--line)); border-radius: 12px; }
.markets__plus { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: var(--teal-ink); font: 700 1.4rem/1 var(--display); }
.markets__next p { color: var(--sage); font-size: var(--step--1); }
.markets__next b { color: var(--mist); font-weight: 600; }
.markets__note { grid-column: 1 / -1; color: var(--sage); font-size: var(--step--1); }
@media (max-width: 860px) { .byob { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Commitment (single warm look, both themes) ---------- */
.commit { background: var(--sun); color: var(--sun-ink); padding-block: clamp(80px, 11vw, 150px); position: relative; overflow: hidden; }
.commit::before { content: ""; position: absolute; width: 70vw; height: 70vw; right: -25vw; top: -30vw; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 60%); pointer-events: none; }
.commit .wrap { position: relative; }
.commit__eyebrow { font-weight: 600; font-size: var(--step--1); display: inline-flex; align-items: center; gap: 10px; }
.commit__eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.commit__title { margin-top: 18px; font-size: clamp(3rem, 1.4rem + 6.6vw, 7rem); font-weight: 700; letter-spacing: -.045em; line-height: .92; }
.commit__title em { display: block; font-size: 1.04em; letter-spacing: -.02em; }
.commit__intro { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; max-width: 64em; font-size: var(--step-1); line-height: 1.5; }
.commit__intro p + p { color: var(--sun-soft); }
.dials { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dial { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 20px; align-items: center; padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .28); border: 1px solid rgba(19, 39, 42, .12); }
.dial svg { grid-row: span 2; width: 104px; height: 104px; transform: rotate(-90deg); }
.dial__track { fill: none; stroke: rgba(19, 39, 42, .14); stroke-width: 10; }
.dial__arc { fill: none; stroke: var(--sun-ink); stroke-width: 10; stroke-linecap: round; stroke-dasharray: var(--v) 100; }
.dial--heart .dial__arc { stroke: #B4321F; }
.dial__value { font: 700 var(--step-3)/1 var(--display); letter-spacing: -.03em; }
.dial--heart .dial__value { color: #8E2616; }
.dial figcaption { font-size: var(--step--1); line-height: 1.45; color: var(--sun-soft); }
.dial figcaption b { color: var(--sun-ink); }
.commit__fields { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 16px; }
.commit__fields h3 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: var(--step-2); }
.fields { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fields li { padding: .7em 1.1em; border-radius: 999px; background: var(--sun-ink); color: #E7F6F4; font-weight: 500; font-size: var(--step--1); }
.forward { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 28px; align-items: center; padding-top: 28px; border-top: 1px solid rgba(19, 39, 42, .25); max-width: 60em; }
.forward__n { font: 700 clamp(3rem, 2rem + 4vw, 5.5rem)/1 var(--display); letter-spacing: -.05em; }
.forward__text { font-family: var(--serif); font-size: var(--step-2); line-height: 1.3; }
.commit__cta { margin-top: clamp(36px, 4vw, 52px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.commit__cta p { font-family: var(--serif); font-style: italic; font-size: var(--step-1); color: var(--sun-soft); }
@media (max-width: 960px) { .dials { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .commit__intro { grid-template-columns: minmax(0, 1fr); } .forward { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pricing ladder ---------- */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; }
.rung { display: grid; gap: 6px; align-content: end; }
.rung__bar { height: calc(var(--h) * 28px + 20px); border-radius: 10px 10px 3px 3px; background: linear-gradient(180deg, color-mix(in srgb, var(--teal) calc(30% + var(--h) * 10%), var(--panel)), color-mix(in srgb, var(--teal) 14%, var(--panel))); transform-origin: bottom; }
.rung--mark .rung__bar { outline: 2px solid var(--teal); outline-offset: 3px; }
.rung__name { font: 650 var(--step-0)/1.2 var(--display); margin-top: 6px; }
.rung__price { color: var(--sage); font-size: var(--step--1); }
.rung__price .num { color: var(--mist); font-weight: 650; }
.pricing-notes { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; color: var(--sage); }
.pricing-notes b { color: var(--mist); font-weight: 600; }
@media (max-width: 860px) { .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; } .pricing-notes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .ladder { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rung { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; }
  .rung__bar { grid-row: span 2; height: 44px; width: calc(var(--h) * 14px + 14px); border-radius: 3px 10px 10px 3px; transform-origin: left; }
  .rung__name { margin-top: 0; }
}

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan { position: relative; padding: 24px; padding-top: calc(24px + var(--h) * 6px); border-radius: 20px; border: 1px solid var(--line); background: var(--panel); display: grid; gap: 8px; align-content: start; overflow: hidden; }
.plan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--h) * 6px); background: linear-gradient(90deg, color-mix(in srgb, var(--teal) calc(25% + var(--h) * 12%), var(--panel)), color-mix(in srgb, var(--teal) 15%, var(--panel))); }
.plan--mark { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
html[lang="fr"] .plan--mark::after { content: "L’optimisation continue commence ici"; max-width: 16rem; white-space: normal; text-align: right; }
.plan--mark::after { content: "Continuous optimisation starts here"; position: absolute; right: 14px; top: calc(var(--h) * 6px + 12px); font-size: .75rem; font-weight: 600; color: var(--teal-ink); background: var(--teal); padding: .3em .7em; border-radius: 99px; }
.plan__group { color: var(--sage); font-size: .8125rem; }
.plan h3 { font-size: var(--step-2); }
.plan__price { color: var(--sage); font-size: var(--step--1); }
.plan__price .num { color: var(--mist); font: 700 var(--step-3)/1 var(--display); letter-spacing: -.03em; margin-right: 4px; }
.plan ul { list-style: none; margin: 10px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; color: var(--sage); font-size: var(--step--1); }
.plan li { padding-left: 18px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--teal); }
.plan li b { color: var(--mist); font-weight: 600; }
.credits { margin-top: 24px; color: var(--sage); max-width: 52em; }
.credits b { color: var(--mist); }
@media (max-width: 960px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: minmax(0, 1fr); } .plan--mark::after { position: static; justify-self: start; } }

/* ---------- Desk pilot ---------- */
.pilot { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pilot li { padding: 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.pilot li:last-child { border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); }
.pilot__when { color: var(--teal); font: 600 var(--step--1)/1 var(--display); }
.pilot h3 { font-size: var(--step-1); }
.pilot li > p:last-child { color: var(--sage); font-size: var(--step--1); }
.ways { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ways article { padding: 22px 24px; border-radius: 16px; border: 1px dashed var(--line); display: grid; gap: 8px; }
.ways h3 { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); letter-spacing: 0; }
.ways p { color: var(--sage); }
@media (max-width: 960px) { .pilot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pilot, .ways { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Access form ---------- */
.access { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.access__text { display: grid; gap: 16px; }
.access__text p { color: var(--sage); font-size: var(--step-1); line-height: 1.5; }
.access__text em { color: var(--cyan-lite); font-size: 1.12em; }
.access__text .access__small { font-size: var(--step-0); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.field { display: grid; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); font-weight: 600; }
.opt { color: var(--sage); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--mist); background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: .75em .9em; }
.field input::placeholder { color: color-mix(in srgb, var(--sage) 70%, transparent); }
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field input[aria-invalid="true"] { border-color: var(--loss); }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--sage); font-size: var(--step--1); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__status { color: var(--sage); font-size: var(--step--1); }
.form__status.is-ok { color: var(--gain); }
.form__status.is-err { color: var(--loss); }
@media (max-width: 860px) { .access { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 48px 40px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; }
.foot__tag { color: var(--sage); margin-top: 10px; }
.foot__tag em { color: var(--cyan-lite); font-size: 1.1em; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: start; }
.foot__nav a { color: var(--sage); text-decoration: none; font-size: var(--step--1); }
.foot__nav a:hover { color: var(--mist); }
.foot__risk { grid-column: 1 / -1; color: var(--sage); font-size: .8125rem; line-height: 1.6; max-width: 80em; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.foot__risk b { color: var(--mist); }
.foot__copy { grid-column: 1 / -1; color: var(--sage); font-size: .8125rem; }
@media (max-width: 640px) { .foot__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Video dialog ---------- */
.player { border: 0; padding: 0; background: transparent; max-width: min(1100px, calc(100vw - 32px)); width: 100%; overflow: visible; }
.player::backdrop { background: rgba(3, 12, 14, .85); backdrop-filter: blur(6px); }
.player__box { position: relative; }
.player video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 16 / 9; }
.player__close { position: absolute; top: -52px; right: 0; background: var(--ink); }

[hidden] { display: none !important; }

@media (max-width: 640px) { .btn--lg { white-space: normal; text-align: center; justify-content: center; max-width: 100%; } }

/* Mobile type: captions and small buttons were 14px, out of step with section body copy. */
@media (max-width: 760px) {
  :root, :root[data-theme="light"], :root[data-theme="dark"] { --step--1: 1rem; }
  .btn, .btn--sm, .btn--lg {
    min-height: 48px;
    font-size: var(--step-0);
    padding: .95em 1.25em;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
  .lang { min-width: 44px; height: 44px; font-size: .9375rem; }
  .icon-btn, .nav-toggle { width: 44px; height: 44px; }
  .field input, .field select, .field textarea { font-size: 1.0625rem; min-height: 48px; }
  .plan--mark::after { font-size: .875rem; }
}

.recontact { display: grid; gap: 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.recontact__title { margin: 0; }
.recontact__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 520px) { .recontact__grid { grid-template-columns: minmax(0, 1fr); } }

.foot__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.foot__legal a { color: var(--sage); text-decoration: none; font-size: .8125rem; }
.foot__legal a:hover { color: var(--mist); }
.foot__disclaimer { grid-column: 1 / -1; color: var(--sage); font-size: .8125rem; line-height: 1.6; max-width: 80em; }

.aad-visual { position: relative; width: 100%; overflow: hidden; background: #F1F5F2; }
.aad-visual--funnel { background: #E4EAE7; border-radius: 18px; margin-top: clamp(48px, 6vw, 80px); }
.aad-visual iframe { position: absolute; left: 0; top: 0; border: 0; display: block; transform-origin: 0 0; }

#alpha-lab { scroll-margin-top: 96px; }
