/* ═══════════════════════════════════════════════════════════════
   INTELICHAT — design system.
   No framework, no build step. Loaded once, drives every page.

   Two themes. Light is the default because the brand manual's
   "Aplicações por Formato" table asks a landing page for a dark
   hero over light sections, not an all-dark canvas. Dark is a
   real second theme, and the system preference decides which one
   a first-time visitor gets.

   Every colour is a luminosity variation inside the #00BFA5
   family the manual defines. There is no second hue anywhere.
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Red Hat Display';
  src: url('/assets/redhatdisplay.woff2') format('woff2-variations');
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

/* ─── Brand constants. These never flip with the theme. ─── */
:root {
  --teal:    #00BFA5;   /* primária */
  --teal-d:  #007A6B;   /* variação escura permitida */
  /* End stop for teal fills that carry text. --teal-d is too dark to read
     #0A1F1C against: it measures 3.26:1, below AA. This keeps every point of
     every teal fill at or above 5.6:1 while still reading as a gradient. */
  --teal-f:  #00A891;
  --teal-l:  #33CDB9;   /* variação clara permitida */
  --deep:    #0A1F1C;   /* apoio escuro */
  --light:   #E5FFFA;   /* apoio claro */
  --ink:     #1A2E2B;   /* texto sobre fundo claro */
  --neutral: #6B7B78;   /* neutro corporativo */

  --ease:    cubic-bezier(.22,1,.36,1);
  --ease-io: cubic-bezier(.65,.05,.36,1);

  --pad:  clamp(1.25rem, 5vw, 4.5rem);
  --wrap: 1220px;
  --rail: 0px;          /* left gutter reserved for the thread; set at ≥1200px */

  --r:    14px;
  --r-lg: 22px;
}

/* ─── LIGHT, the default ───
   Measured on --bg: body 13.9:1, --fg-dim 6.7:1, --accent-sm 6.1:1. */
:root,
:root[data-theme='light'] {
  --bg:        #F4FFFD;
  --bg-alt:    #E9FBF7;
  --surface:   #FFFFFF;
  --surface-2: #F0FBF8;

  --fg:        #1A2E2B;
  --fg-dim:    #4A5F5B;
  /* The manual's #6B7B78 measures 4.44:1 on white, a hair under AA, so small
     text uses a slightly darker luminosity variation of it. Measured: 4.97:1. */
  --fg-mute:   #64736F;

  /* Small teal text needs the darker variation to clear AA on white.
     --teal itself stays for fills, borders and display type. */
  --accent:    #007A6B;
  --accent-sm: #00655A;

  --line:       rgba(0,122,107,.22);
  --line-soft:  rgba(26,46,43,.11);
  --on-teal:    #0A1F1C;

  --shadow:   0 1px 2px rgba(10,31,28,.06), 0 14px 34px -10px rgba(10,31,28,.14);
  --shadow-s: 0 1px 2px rgba(10,31,28,.05), 0 6px 16px -8px rgba(10,31,28,.12);
  --glow:     0 0 0 1px rgba(0,191,165,.3), 0 16px 44px -18px rgba(0,122,107,.4);

  --aurora-1: rgba(0,191,165,.13);
  --aurora-2: rgba(0,191,165,.07);
  --dot:      rgba(0,122,107,.14);
  --grain:    .16;
  color-scheme: light;
}

/* ─── DARK ───
   The base is the manual's own #0A1F1C rather than something darker, so the
   page reads as deep teal-black instead of pure black.
   Measured on --bg: body 15.1:1, --fg-dim 8.2:1, --fg-mute 4.9:1. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg:        #0A1F1C;
    --bg-alt:    #0E2724;
    --surface:   #143330;
    --surface-2: #102B27;

    --fg:        #F5FBFA;
    --fg-dim:    #A9BDB9;
    --fg-mute:   #8C9F99;

    --accent:    #33CDB9;
    --accent-sm: #5FD9C7;

    --line:       rgba(0,191,165,.24);
    --line-soft:  rgba(245,251,250,.11);
    --on-teal:    #0A1F1C;

    --shadow:   0 1px 2px rgba(0,0,0,.4), 0 14px 34px -10px rgba(0,0,0,.55);
    --shadow-s: 0 1px 2px rgba(0,0,0,.35), 0 6px 16px -8px rgba(0,0,0,.45);
    --glow:     0 0 0 1px rgba(0,191,165,.26), 0 18px 52px -20px rgba(0,191,165,.45);

    --aurora-1: rgba(0,191,165,.16);
    --aurora-2: rgba(0,122,107,.3);
    --dot:      rgba(245,251,250,.11);
    --grain:    .28;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg:        #0A1F1C;
  --bg-alt:    #0E2724;
  --surface:   #143330;
  --surface-2: #102B27;

  --fg:        #F5FBFA;
  --fg-dim:    #A9BDB9;
  /* Lifted from #82958F, which measured 4.3:1 against --surface where the
     bylines sit. Measured on --surface: 4.87:1. */
  --fg-mute:   #8C9F99;

  --accent:    #33CDB9;
  --accent-sm: #5FD9C7;

  --line:       rgba(0,191,165,.24);
  --line-soft:  rgba(245,251,250,.11);
  --on-teal:    #0A1F1C;

  --shadow:   0 1px 2px rgba(0,0,0,.4), 0 14px 34px -10px rgba(0,0,0,.55);
  --shadow-s: 0 1px 2px rgba(0,0,0,.35), 0 6px 16px -8px rgba(0,0,0,.45);
  --glow:     0 0 0 1px rgba(0,191,165,.26), 0 18px 52px -20px rgba(0,191,165,.45);

  --aurora-1: rgba(0,191,165,.16);
  --aurora-2: rgba(0,122,107,.3);
  --dot:      rgba(245,251,250,.11);
  --grain:    .28;
  color-scheme: dark;
}

/* ─── A locally dark region, in either theme ───
   The hero and the footer re-declare the dark token set for their own subtree,
   which is how "dark hero over light sections" works without a second copy of
   every component rule. */
.band--dark {
  --bg:        #0A1F1C;
  --bg-alt:    #0E2724;
  --surface:   #143330;
  --surface-2: #102B27;
  --fg:        #F5FBFA;
  --fg-dim:    #A9BDB9;
  /* Lifted from #82958F, which measured 4.3:1 against --surface where the
     bylines sit. Measured on --surface: 4.87:1. */
  --fg-mute:   #8C9F99;
  --accent:    #33CDB9;
  --accent-sm: #5FD9C7;
  --line:       rgba(0,191,165,.24);
  --line-soft:  rgba(245,251,250,.11);
  --shadow:   0 1px 2px rgba(0,0,0,.4), 0 14px 34px -10px rgba(0,0,0,.55);
  --shadow-s: 0 1px 2px rgba(0,0,0,.35), 0 6px 16px -8px rgba(0,0,0,.45);
  --dot:      rgba(245,251,250,.11);
  color: var(--fg);
  background: var(--bg);
}

/* ═══════════════ RESET ═══════════════ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

body {
  font-family: 'Red Hat Display', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}

/* ═══════════════ ATMOSPHERE ═══════════════
   Teal auroras, a hairline dot grid and film grain, all fixed, so they read as
   the room the page sits in rather than decoration that scrolls past. Every
   value is a token, so the layer restates itself when the theme flips. */
.atmos { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.atmos::before {
  content: ''; position: absolute; inset: -20%;
  background:
    radial-gradient(42% 38% at 78% 6%,  var(--aurora-1), transparent 70%),
    radial-gradient(55% 45% at 10% 20%, var(--aurora-2), transparent 72%),
    radial-gradient(60% 50% at 88% 94%, var(--aurora-1), transparent 75%);
  filter: blur(10px);
}
/* The dot grid is a canvas so the dots can shy away from the pointer; app.js
   draws it in --dot, read from the canvas itself, so it follows the band. */
.field {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  pointer-events: none;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
}
.grain {
  position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: grain 7s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
}

/* ═══════════════ LAYOUT ═══════════════ */
.wrap {
  width: min(var(--wrap), 100% - var(--pad) * 2);
  margin-inline: auto;
  padding-left: var(--rail);
}
.wrap--narrow { width: min(760px, 100% - var(--pad) * 2); }
main { position: relative; z-index: 1; }
section { position: relative; }
.sec { padding-block: clamp(4rem, 9vw, 8rem); }
.sec--tight { padding-block: clamp(3rem, 7vw, 5.5rem); }
/* Alternating band, so the light sections do not read as one flat sheet. */
.sec--alt { background: var(--bg-alt); }
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  transform: translateY(-160%);
  background: var(--teal); color: var(--on-teal); font-weight: 700;
  padding: .7rem 1.1rem; border-radius: 10px;
  transition: transform .25s var(--ease);
}
.skip:focus { transform: none; }

/* ═══════════════ THE THREAD ═══════════════
   The page's spine: one conversation drawn down the left gutter. The line draws
   itself with scroll progress and each node snaps open as the reader reaches
   it. Scrubbed by scroll, never by a timer, so it tracks the reader exactly.

   ≥1200px   the page reserves a gutter and the thread lives in it
   860–1199  no gutter to spare, so it rides the page edge at reduced opacity
   <860px    hidden; every pixel belongs to the text */
.thread {
  position: fixed; top: 0; left: 0; bottom: 0; width: 132px;
  /* Above main (z 1), whose section backgrounds would otherwise cover it. */
  z-index: 2; pointer-events: none; display: none;
}
.thread svg { width: 100%; height: 100%; }
.thread__line {
  fill: none; stroke: url(#threadGrad); stroke-width: 2; stroke-linecap: round;
  /* pathLength="1" on the element makes this a plain 0→1 progress dial. */
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.thread__glow {
  fill: none; stroke: rgba(0,191,165,.3); stroke-width: 7; filter: blur(6px);
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.thread__node { opacity: 0; transform-box: fill-box; transform-origin: center; }
.thread__node circle { fill: var(--bg); stroke: var(--teal); stroke-width: 1.8; }
.thread__node path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
@media (min-width: 1200px) {
  :root { --rail: 132px; }
  .thread { display: block; }
}
@media (min-width: 860px) and (max-width: 1199.98px) {
  .thread { display: block; width: 76px; opacity: .4; }
}

/* ═══════════════ CHROME ═══════════════ */
.scroll-rail {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  background: var(--line-soft);
}
.scroll-rail i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--teal-d), var(--teal));
  box-shadow: 0 0 12px rgba(0,191,165,.6);
}

/* ═══════════════ NAV ═══════════════
   The nav sits over the dark hero on the home page and over the light page
   background everywhere else, so it takes its colours from whichever band it
   is inside rather than assuming one. */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: clamp(.75rem, 2.4vw, 2rem);
  padding: 1rem var(--pad);
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease),
              border-color .35s var(--ease), padding .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft); padding-block: .7rem;
}
.nav__brand { display: flex; align-items: center; flex: none; }
.nav__lockup { height: 30px; width: auto; }

/* One lockup per background. The mark's wordmark is light grey, which
   disappears on a white page, so the dark-art version is shown there and the
   light-art version wherever the band behind it is dark. */
.nav__lockup--light, .foot__lockup--light { display: none; }
.band--dark .nav__lockup--light { display: block; }
.band--dark .nav__lockup--dark { display: none; }
:root[data-theme='dark'] .nav__lockup--light { display: block; }
:root[data-theme='dark'] .nav__lockup--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .nav__lockup--light { display: block; }
  :root:not([data-theme='light']) .nav__lockup--dark { display: none; }
}

.nav__links {
  display: flex; align-items: center; gap: clamp(.8rem, 1.8vw, 1.6rem);
  margin-left: auto; font-size: .925rem;
}
.nav__links > a {
  color: var(--fg-dim); position: relative; padding-block: .35rem;
  transition: color .25s var(--ease);
}
.nav__links > a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--teal); transition: right .3s var(--ease);
}
.nav__links > a:hover { color: var(--fg); }
.nav__links > a:hover::after, .nav__links > a[aria-current]::after { right: 0; }
.nav__links > a[aria-current] { color: var(--fg); }
.nav__ext { display: inline-flex; align-items: center; gap: .3rem; }
.nav__ext::after { content: '↗'; font-size: .8em; opacity: .6; }
/* A tab like the rest, in the dark teal. --accent is #007A6B on the light page
   and lifts to #33CDB9 on dark, where #007A6B would measure 3.2:1. Sits after
   the hover and current rules so it keeps its colour in both. */
.nav__links > a.nav__demo { color: var(--accent); font-weight: 600; }
.nav__links > a.nav__demo::after { background: var(--accent); }
/* Doubled class: `.btn` comes later and sets display, so a single class here
   lost and the mobile button showed on desktop next to the real one. */
.nav__cta-m.nav__cta-m { display: none; }
/* The mobile menu's CTA is a button inside the link list, and `.nav__links > a`
   is the more specific selector, so it was repainting the button's label in the
   muted link colour: grey on teal, 2.3:1. Restore the button's own treatment. */
.nav__links > a.btn { color: var(--fg); }
.nav__links > a.btn--primary { color: var(--on-teal); }
.nav__links > a.btn::after { display: none; }

/* Theme toggle. Shows the theme you would switch TO, which is the convention
   people already read correctly without a label. */
.nav__theme {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: var(--fg-dim);
  border: 1px solid var(--line-soft);
  transition: color .25s var(--ease), border-color .25s var(--ease),
              background .25s var(--ease), transform .4s var(--ease);
}
.nav__theme:hover {
  color: var(--teal); border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 10%, transparent);
  transform: rotate(18deg);
}
.nav__theme .i-sun { display: none; }
.nav__theme .i-moon { display: block; }
:root[data-theme='dark'] .nav__theme .i-sun { display: block; }
:root[data-theme='dark'] .nav__theme .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .nav__theme .i-sun { display: block; }
  :root:not([data-theme='light']) .nav__theme .i-moon { display: none; }
}

.nav__burger {
  display: none; width: 44px; height: 44px; flex: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav__burger i {
  width: 22px; height: 2px; background: var(--fg); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav.is-open .nav__burger i:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__burger i:last-child  { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav__burger { display: flex; }
  .nav > .btn { display: none; }
  .nav__links {
    position: fixed; inset: 0 0 auto; padding: 5.5rem var(--pad) 2.5rem;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--bg); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-101%); transition: transform .45s var(--ease);
    font-size: 1.1rem; max-height: 100dvh; overflow-y: auto;
  }
  .nav.is-open .nav__links { transform: none; }
  .nav__links > a { padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav__links > a::after { display: none; }
  .nav__cta-m.nav__cta-m { display: inline-flex; margin-top: 1.25rem; justify-content: center; }
}

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: -.01em; line-height: 1.2;
  border: 1px solid var(--line); color: var(--fg); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease),
              color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  will-change: transform;
}
.btn > span { position: relative; z-index: 1; }
.btn:hover { border-color: var(--teal); box-shadow: var(--glow); }
.btn:active { transform: scale(.975); }
.btn--primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-f));
  border-color: transparent; color: var(--on-teal);
}
.btn--primary:hover { color: var(--on-teal); filter: brightness(1.07); }
.btn--ghost { background: color-mix(in srgb, var(--fg) 5%, transparent); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.02rem; }
.btn--sm { padding: .6rem 1.1rem; font-size: .875rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
/* Sheen sweep, primary only — the one place the page uses a moving highlight. */
.btn--primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.38) 50%, transparent 62%);
  transform: translateX(-120%); transition: transform .75s var(--ease);
}
.btn--primary:hover::before { transform: translateX(120%); }

/* ═══════════════ TYPE PRIMITIVES ═══════════════ */
h1, h2, h3, h4, .display {
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 700; line-height: 1.05; letter-spacing: -.035em;
  text-wrap: balance;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-sm); margin-bottom: 1.1rem;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none;
  box-shadow: 0 0 0 4px rgba(0,191,165,.16);
  animation: pulse 2.6s var(--ease-io) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0,191,165,.16); }
  50%      { box-shadow: 0 0 0 9px rgba(0,191,165,0); }
}
.sec-title { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); }
.sec-lede {
  font-size: clamp(1.05rem, 1rem + .45vw, 1.3rem); color: var(--fg-dim);
  max-width: 62ch; margin-top: 1.25rem; text-wrap: pretty;
}
em, .accent { font-style: normal; color: var(--accent); }
.muted { color: var(--fg-mute); font-size: .87rem; }
.muted a, .sec-lede a { color: var(--accent-sm); }

/* Reveal primitive — the page's only entrance. Gated on .js so a blocked
   script leaves a plain, fully visible document. */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
/* Split-text primitive. The wrapper clips so each word slides up out of
   nowhere; the padding widens the box so descenders and the accent's overhang
   are not shaved off by that clip. */
[data-split] { overflow: hidden; }
[data-split] .w {
  display: inline-block; overflow: hidden;
  padding: .12em .06em .2em; margin: -.12em -.06em -.2em;
}
[data-split] .w > i {
  display: inline-block; font-style: inherit; transform: translateY(105%);
  transition: transform .95s var(--ease); transition-delay: var(--d, 0ms);
}
.js [data-split].is-in .w > i, html:not(.js) [data-split] .w > i { transform: none; }

/* ═══════════════ HERO ═══════════════
   A dark band in both themes, per the manual's landing-page row. The nav sits
   inside it, and the rounded foot is what stops it reading as a plain
   rectangle of colour dropped on the page. */
.hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(5rem, 11vw, 9rem);
  border-bottom-left-radius: clamp(28px, 6vw, 72px);
  border-bottom-right-radius: clamp(28px, 6vw, 72px);
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 55% at 82% 12%, rgba(0,191,165,.2), transparent 70%),
    radial-gradient(45% 50% at 6% 88%, rgba(0,122,107,.28), transparent 72%);
}
.hero > * { position: relative; z-index: 1; }
.hero > .field { position: absolute; z-index: 0; }
.hero__grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 1.1rem + 5.4vw, 4.8rem); letter-spacing: -.045em; }
.hero__tag {
  margin-top: 1.5rem; font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); font-weight: 500;
  color: var(--accent); letter-spacing: -.02em;
}
.hero__lede { margin-top: 1.4rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }
.hero__trust {
  display: flex; align-items: center; gap: .75rem; margin-top: 2.5rem;
  font-size: .85rem; color: var(--fg-mute);
}
.hero__trust img {
  height: 30px; width: auto; border-radius: 6px; background: #fff; padding: 4px 7px;
}
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { order: -1; }
}

/* ─── Hero chat panel ───
   The product shown rather than described. The log has a FIXED height, not a
   minimum: it is replayed on a loop, and a box that grows with each message
   would resize the hero and shove the whole page down on every tick. */
.chatp {
  position: relative; border-radius: var(--r-lg); padding: 1.15rem;
  background: linear-gradient(170deg, #143330, #0C2522);
  border: 1px solid rgba(245,251,250,.1);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(245,251,250,.06);
}
.chatp::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(150deg, rgba(0,191,165,.5), transparent 42%, rgba(0,191,165,.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.chatp__bar {
  display: flex; align-items: center; gap: .7rem; padding: 0 .35rem .95rem;
  border-bottom: 1px solid rgba(245,251,250,.1); margin-bottom: 1rem;
}
.chatp__av {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--teal-f));
  font-weight: 700; font-size: .9rem; color: #0A1F1C;
}
.chatp__who { font-weight: 600; font-size: .92rem; line-height: 1.25; color: #F5FBFA; }
.chatp__st { font-size: .76rem; color: #33CDB9; display: flex; align-items: center; gap: .35rem; }
.chatp__st::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  animation: pulse 2.6s var(--ease-io) infinite;
}
.chatp__log {
  display: flex; flex-direction: column; gap: .55rem;
  height: 326px; justify-content: flex-end; overflow: hidden;
}
.bub {
  max-width: 84%; padding: .62rem .9rem; border-radius: 16px; font-size: .89rem;
  line-height: 1.5; width: fit-content;
  animation: bub .4s var(--ease) both;
}
@keyframes bub { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.bub--them {
  background: rgba(245,251,250,.08); color: #F5FBFA;
  border: 1px solid rgba(245,251,250,.1); border-bottom-left-radius: 5px;
}
.bub--us {
  align-self: flex-end; background: linear-gradient(135deg, var(--teal), var(--teal-f));
  color: #0A1F1C; border-bottom-right-radius: 5px; font-weight: 500;
}
.bub__tag {
  display: block; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; opacity: .9; margin-bottom: .15rem;
}
.bub--typing { display: flex; gap: 4px; padding: .8rem .9rem; align-items: center; }
.bub--typing i {
  width: 6px; height: 6px; border-radius: 50%; background: #82958F;
  animation: dot 1.3s var(--ease-io) infinite;
}
.bub--typing i:nth-child(2) { animation-delay: .17s; }
.bub--typing i:nth-child(3) { animation-delay: .34s; }
@keyframes dot {
  0%, 60%, 100% { opacity: .25; transform: none; }
  30% { opacity: 1; transform: translateY(-4px); }
}
.chatp__in {
  display: flex; align-items: center; gap: .6rem; margin-top: 1rem;
  padding: .55rem .6rem .55rem 1rem;
  border: 1px solid rgba(245,251,250,.1); border-radius: 999px;
  background: rgba(10,31,28,.6); font-size: .87rem; color: #82958F;
}
/* Only the placeholder text flexes. This needs its own class: a bare
   `.chatp__in span` also matches the send button and, being the more specific
   selector, overrode its `flex: none` and stretched it into an ellipse. */
.chatp__ph { flex: 1; min-width: 0; }
.chatp__send {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal); color: #0A1F1C; font-size: .9rem;
}

/* ─── WhatsApp Flow panel ───
   The hero's chat frame with a flow screen docked under the thread. The
   screen is light in both themes, like the sheet WhatsApp opens. */
.flowp { width: min(100%, 420px); justify-self: center; }
.flowp .chatp__log { height: auto; }
.flowf {
  margin-top: .9rem; padding: 1rem 1.1rem 1.1rem; border-radius: 16px;
  background: #F5FBFA; color: #1A2E2B;
}
.flowf__top {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .95rem; font-weight: 700;
}
.flowf__top span + span { font-size: .75rem; font-weight: 600; color: #4A5F5B; }
.flowf__f { margin-top: .7rem; font-size: .78rem; font-weight: 600; color: #4A5F5B; }
.flowf__in {
  display: block; margin-top: .25rem; padding: .45rem .7rem; border-radius: 10px;
  background: #fff; border: 1px solid rgba(26,46,43,.18);
  font-size: .88rem; font-weight: 500; color: #1A2E2B;
}
.flowf__opts { display: flex; gap: 1.25rem; margin-top: .35rem; font-size: .88rem; font-weight: 500; }
.flowf__opts span { display: flex; align-items: center; gap: .4rem; }
.flowf__opts i {
  width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #6B7B78;
}
.flowf__opts i.is-on { border-color: var(--teal-d); box-shadow: inset 0 0 0 3px #F5FBFA; background: var(--teal-d); }
.flowf__btn {
  display: block; margin-top: 1rem; padding: .6rem; border-radius: 999px; text-align: center;
  background: var(--teal); color: #0A1F1C; font-size: .9rem; font-weight: 700;
}

/* ═══════════════ CARDS ═══════════════ */
.pillars__grid {
  display: grid; gap: 1.1rem; margin-top: clamp(2.5rem, 5vw, 3.75rem);
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.pillar, .reason {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-s);
  transition: transform .5s var(--ease), border-color .4s var(--ease),
              box-shadow .4s var(--ease);
}
.pillar { padding: 1.9rem 1.7rem 1.75rem; }
.reason { padding: 1.8rem 1.6rem; }
/* Spotlight follows the pointer via --mx/--my, set by tilt() in app.js. */
.pillar::after, .reason::after, .post::after {
  content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
              rgba(0,191,165,.12), transparent 62%);
  transition: opacity .4s var(--ease);
}
.pillar:hover, .reason:hover { border-color: var(--line); box-shadow: var(--shadow); }
.pillar:hover::after, .reason:hover::after { opacity: 1; }
.pillar__ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  border: 1px solid var(--line); margin-bottom: 1.15rem; color: var(--accent);
}
.pillar h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.pillar p, .reason p { color: var(--fg-dim); font-size: .95rem; }
.reason h3 { font-size: 1.1rem; margin-bottom: .55rem; }
.reason__k {
  font-weight: 900; font-size: 1.85rem; color: var(--accent);
  letter-spacing: -.04em; display: block; margin-bottom: .7rem; line-height: 1;
}
.reasons {
  display: grid; gap: 1.1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
}
.closer {
  margin-top: 2rem; padding: 1.5rem 1.75rem; border-radius: var(--r-lg);
  border: 1px dashed var(--line);
  background: color-mix(in srgb, var(--teal) 6%, transparent);
  font-size: 1.05rem; text-wrap: pretty;
}
.closer a { color: var(--accent-sm); font-weight: 600; }

/* ═══════════════ STORY ═══════════════ */
.story__grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
@media (max-width: 900px) { .story__grid { grid-template-columns: 1fr; } }
.beats { display: grid; gap: 1.5rem; counter-reset: b; }
.beat { position: relative; padding-left: 3.1rem; }
.beat::before {
  content: counter(b); counter-increment: b;
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: .85rem; color: var(--accent-sm);
  background: color-mix(in srgb, var(--teal) 11%, transparent);
  border: 1px solid var(--line);
}
/* Connector between the markers, so the column reads as one sequence. */
.beat:not(:last-child)::after {
  content: ''; position: absolute; left: 17px; top: 40px; bottom: -1.5rem; width: 1px;
  background: linear-gradient(var(--line), transparent);
}
.beat h3 { font-size: 1.12rem; margin-bottom: .35rem; letter-spacing: -.02em; }
.beat p { color: var(--fg-dim); font-size: .96rem; }
.gains { display: grid; gap: .6rem; }
.gain {
  display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.15rem;
  border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
.gain:hover {
  border-color: var(--line); transform: translateX(4px);
  background: color-mix(in srgb, var(--teal) 5%, var(--surface));
}
.gain__ck {
  flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: .2rem;
  display: grid; place-items: center; background: var(--teal); color: var(--on-teal);
  font-size: .7rem; font-weight: 900;
}
.gain b { display: block; font-weight: 600; font-size: .98rem; letter-spacing: -.01em; }
.gain span { color: var(--fg-dim); font-size: .89rem; }

/* ═══════════════ STATS ═══════════════
   A teal field. The one place the primary is used as a full background, which
   is what keeps it reading as the brand colour rather than an accent. */
.stats__band {
  display: grid; gap: 1px; margin-top: clamp(2.5rem, 5vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  background: rgba(10,31,28,.14);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.stat {
  padding: 2.1rem 1.6rem;
  background: linear-gradient(170deg, var(--teal), var(--teal-f));
  color: #06201C;
  transition: filter .4s var(--ease);
}
.stat:hover { filter: brightness(1.06); }
.stat b {
  display: block; font-weight: 900;
  font-size: clamp(2.3rem, 1.5rem + 2.8vw, 3.4rem); line-height: .95; letter-spacing: -.05em;
}
.stat i {
  display: block; font-style: normal; font-weight: 700; font-size: 1rem;
  margin-top: .7rem; letter-spacing: -.01em;
}
.stat span { display: block; font-size: .86rem; margin-top: .3rem; opacity: .9; }

/* ═══════════════ VIDEO ═══════════════
   A click-to-load facade, not a live iframe. An embedded player pulls roughly a
   megabyte of third-party script into every page view and sets cookies before
   anyone has asked to watch anything, which on a page that also shows a consent
   notice is the wrong order. The poster stays a plain image until the visitor
   presses play; only then is a player inserted, from youtube-nocookie.com. */
.video {
  position: relative; display: block; width: 100%;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-soft); background: var(--surface-2);
  box-shadow: var(--shadow); cursor: pointer;
  aspect-ratio: 800 / 416; padding: 0;
  transition: transform .5s var(--ease), box-shadow .4s var(--ease),
              border-color .4s var(--ease);
}
.video:hover { border-color: var(--line); transform: translateY(-3px); }
.video img, .video iframe {
  width: 100%; height: 100%; display: block; border: 0; object-fit: cover;
}
.video img { transition: transform .7s var(--ease); }
.video:hover img { transform: scale(1.03); }
.video::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10,31,28,.6), transparent 55%);
}
.video.is-live { cursor: default; aspect-ratio: 16 / 9; }
.video.is-live::after,
.video.is-live .video__play,
.video.is-live .video__label { display: none; }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(62px, 8vw, 86px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; color: #0A1F1C;
  background: linear-gradient(135deg, var(--teal), var(--teal-f));
  box-shadow: 0 10px 40px -8px rgba(0,122,107,.7);
  transition: transform .4s var(--ease), filter .3s var(--ease);
}
.video:hover .video__play { transform: translate(-50%, -50%) scale(1.08); filter: brightness(1.07); }
.video__play svg { margin-left: 4px; }
/* The ring keeps pulsing so the poster reads as a player, not a photograph. */
.video__play::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--teal); opacity: .5;
  animation: ripple 2.6s var(--ease-io) infinite;
}
@keyframes ripple {
  0%   { transform: scale(.35); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}
.video__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  color: #F5FBFA; font-weight: 600; letter-spacing: -.01em; text-align: left;
  font-size: clamp(1rem, .95rem + .4vw, 1.15rem);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .55rem;
}
.video__label span { opacity: .82; font-weight: 400; font-size: .86em; }

/* ═══════════════ CLIENTS + QUOTE ═══════════════
   Every logo sits on its own white chip. Client logos are arbitrary artwork:
   Constat, for one, is white text on a solid blue field, so the usual
   `brightness(0) invert(1)` recolouring flattened it into a white rectangle.
   A chip works for every logo in both themes and destroys none of them. */
.logos {
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center;
  gap: clamp(.75rem, 2vw, 1.25rem); margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.logos li {
  display: grid; place-items: center;
  background: #fff; border-radius: var(--r);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-s);
  padding: 1rem 1.4rem; min-width: 150px; min-height: 86px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.logos li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.logos img {
  height: auto; width: auto; max-height: clamp(30px, 3.6vw, 40px); max-width: 150px;
  object-fit: contain;
  filter: grayscale(1); opacity: .7;
  transition: opacity .35s var(--ease), filter .35s var(--ease);
}
.logos li:hover img { filter: none; opacity: 1; }

.quote {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: clamp(2rem, 4vw, 3.25rem);
  border-radius: var(--r-lg); position: relative;
  background: var(--surface); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}
.quote::before {
  content: '\201C'; position: absolute; top: -.06em; left: .2em;
  font-size: 8rem; line-height: 1; font-weight: 900;
  color: var(--teal); opacity: .14; pointer-events: none;
}
.quote blockquote {
  font-size: clamp(1.08rem, 1rem + .55vw, 1.38rem); line-height: 1.55;
  letter-spacing: -.02em; position: relative; text-wrap: pretty;
}
.quote blockquote p + p { margin-top: 1rem; }
.quote figcaption {
  display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line-soft);
}
.quote img {
  width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid var(--line);
}
.quote b { display: block; font-weight: 600; letter-spacing: -.01em; }
.quote figcaption span { color: var(--fg-mute); font-size: .89rem; }

/* ═══════════════ CTA ═══════════════ */
.cta { text-align: center; }
.cta__box {
  padding: clamp(2.75rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem); border-radius: 28px;
  background:
    radial-gradient(70% 120% at 50% -10%, rgba(0,191,165,.22), transparent 62%),
    linear-gradient(165deg, #143330, #0A1F1C);
  border: 1px solid rgba(0,191,165,.24);
  box-shadow: 0 40px 100px -40px rgba(0,122,107,.5);
}
.cta .sec-lede { margin-inline: auto; }
.cta__btns { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; margin-top: 2.25rem; }

/* ═══════════════ PAGE HEAD ═══════════════ */
.phead { padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.phead h1 { font-size: clamp(2.2rem, 1.2rem + 4vw, 4rem); }

/* ═══════════════ PRICING ═══════════════ */
.unit {
  display: grid; gap: 1rem; margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.unit__card {
  padding: 1.5rem 1.5rem 1.4rem; border-radius: var(--r-lg);
  border: 1px solid var(--line-soft); background: var(--surface);
  box-shadow: var(--shadow-s);
}
.unit__card b {
  display: block; font-size: 1.35rem; font-weight: 700; color: var(--accent);
  letter-spacing: -.03em; margin-bottom: .4rem;
}
.unit__card p { color: var(--fg-dim); font-size: .94rem; }
.formula {
  margin-top: 1.75rem; padding: 1.35rem 1.6rem; border-radius: var(--r);
  background: color-mix(in srgb, var(--teal) 9%, transparent);
  border: 1px solid var(--line); font-weight: 600;
  font-size: clamp(.98rem, .9rem + .4vw, 1.18rem); letter-spacing: -.02em;
  text-align: center; text-wrap: balance;
}

/* ─── Simulator ─── */
.sim {
  display: grid; gap: clamp(1.5rem, 4vw, 2.75rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.6rem, 4vw, 2.75rem);
  border-radius: var(--r-lg); align-items: start;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
@media (max-width: 780px) { .sim { grid-template-columns: 1fr; } }
.sim__field { margin-bottom: 1.4rem; }
.sim__field > label {
  display: block; font-weight: 600; font-size: .95rem; margin-bottom: .6rem;
  letter-spacing: -.01em;
}
.sim__row { display: flex; align-items: center; gap: .9rem; }
.sim__row input[type='range'] {
  flex: 1; min-width: 0; -webkit-appearance: none; appearance: none;
  height: 5px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--teal) var(--p, 0%),
              color-mix(in srgb, var(--fg) 14%, transparent) var(--p, 0%));
}
.sim__row input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal); border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--teal), 0 2px 10px rgba(0,122,107,.4); cursor: grab;
}
.sim__row input[type='range']::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--teal);
  border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--teal); cursor: grab;
}
.sim__row input[type='number'] {
  width: 8.5rem; flex: none; padding: .6rem .75rem; text-align: right;
  border-radius: 10px; border: 1px solid var(--line-soft); background: var(--bg);
  font-variant-numeric: tabular-nums; font-weight: 600;
  -moz-appearance: textfield;
}
.sim__row input[type='number']::-webkit-outer-spin-button,
.sim__row input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sim__row input:focus-visible { border-color: var(--teal); }
.sim__out {
  padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line-soft);
}
.sim__line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px solid var(--line-soft);
}
.sim__line span { color: var(--fg-dim); font-size: .92rem; }
.sim__line b { font-weight: 600; font-variant-numeric: tabular-nums; }
.sim__total { padding-top: 1.25rem; border-bottom: 0; }
.sim__total span { font-size: 1rem; color: var(--fg); font-weight: 600; }
.sim__total b {
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); font-weight: 900;
  letter-spacing: -.045em; line-height: 1; color: var(--accent);
}
.sim__plan {
  display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem;
  border-radius: 999px; background: color-mix(in srgb, var(--teal) 14%, transparent);
  border: 1px solid var(--line); color: var(--accent-sm); font-weight: 700; font-size: .88rem;
}
.sim__note { margin-top: 1.25rem; color: var(--fg-mute); font-size: .83rem; text-wrap: pretty; }

/* ─── Tier table ─── */
.tiers {
  margin-top: clamp(2rem, 4vw, 3rem); overflow-x: auto;
  border-radius: var(--r-lg); border: 1px solid var(--line-soft);
  background: var(--surface); box-shadow: var(--shadow-s);
}
.tiers table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .94rem; }
.tiers th, .tiers td { padding: .95rem 1.1rem; text-align: right; white-space: nowrap; }
.tiers th:first-child, .tiers td:first-child { text-align: left; }
.tiers thead th {
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  color: var(--fg); font-weight: 700;
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); white-space: normal;
}
.tiers tbody tr { border-bottom: 1px solid var(--line-soft); transition: background .3s var(--ease); }
.tiers tbody tr:last-child { border-bottom: 0; }
.tiers tbody tr:hover { background: color-mix(in srgb, var(--teal) 5%, transparent); }
.tiers tbody tr.is-on { background: color-mix(in srgb, var(--teal) 13%, transparent); }
.tiers tbody td { font-variant-numeric: tabular-nums; color: var(--fg-dim); }
.tiers tbody th { color: var(--fg); font-weight: 700; }
.tiers caption {
  caption-side: bottom; padding: 1rem 1.1rem; color: var(--fg-mute);
  font-size: .84rem; text-align: left; text-wrap: pretty;
}

/* ═══════════════ FORMS ═══════════════ */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; font-size: .92rem; letter-spacing: -.01em; }
.field input, .field textarea {
  padding: .8rem 1rem; border-radius: var(--r);
  border: 1px solid var(--line-soft); background: var(--bg);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { border-color: var(--teal); }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-mute); }
.field--2 { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .field--2 { grid-template-columns: 1fr; } }
/* Honeypot: off-screen, never focusable, never announced. A real visitor
   cannot fill it; the scripts that post to every form field will. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__msg:empty { display: none; }
.form__msg {
  padding: .9rem 1.1rem; border-radius: var(--r); font-size: .92rem;
  border: 1px solid var(--line-soft);
}
.form__msg[data-ok='1'] {
  border-color: var(--teal); background: color-mix(in srgb, var(--teal) 10%, transparent);
}
.form__msg[data-ok='0'] { border-color: #D64045; background: rgba(214,64,69,.1); }
.contact__grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: start; margin-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
.depts { display: grid; gap: .6rem; }
.dept {
  display: block; padding: .95rem 1.15rem; border-radius: var(--r);
  border: 1px solid var(--line-soft); background: var(--surface);
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.dept:hover {
  border-color: var(--line); transform: translateX(4px);
  background: color-mix(in srgb, var(--teal) 5%, var(--surface));
}
.dept b { display: block; font-weight: 600; font-size: .95rem; }
.dept span { display: block; color: var(--fg-mute); font-size: .85rem; }
.dept i { display: block; font-style: normal; color: var(--accent-sm); font-size: .88rem; margin-top: .2rem; }
.panel {
  padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-lg);
  border: 1px solid var(--line-soft); background: var(--surface);
  box-shadow: var(--shadow-s);
}
.panel h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.panel address { font-style: normal; color: var(--fg-dim); line-height: 1.8; }
.panel address a, .panel .muted a { color: var(--accent-sm); }

/* ═══════════════════════════════════════════════════════════════
   BLOG — list, article, and the chrome they add. Reuses every
   primitive above; only the grid and the prose are blog-specific.
   ═══════════════════════════════════════════════════════════ */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem 1rem; border-radius: 999px; font-size: .875rem; font-weight: 500;
  border: 1px solid var(--line-soft); color: var(--fg-dim); background: var(--surface);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.chip:hover { color: var(--fg); border-color: var(--teal); }
.chip.is-on {
  background: color-mix(in srgb, var(--teal) 14%, transparent);
  border-color: var(--teal); color: var(--accent-sm);
}
.chip i { font-style: normal; opacity: .6; font-size: .8em; font-variant-numeric: tabular-nums; }
.chip--sm { padding: .32rem .75rem; font-size: .8rem; }

.postgrid {
  display: grid; gap: 1.35rem; margin-top: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.post {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--line-soft);
  background: var(--surface); box-shadow: var(--shadow-s);
  transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.post:hover { border-color: var(--line); box-shadow: var(--shadow); }
.post:hover::after { opacity: 1; }
.post__cover { display: block; overflow: hidden; background: var(--surface-2); }
.post__cover img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform .7s var(--ease);
}
.post:hover .post__cover img { transform: scale(1.04); }
.post__in { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post__cat {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-sm); font-weight: 700; margin-bottom: .6rem;
}
.post__title { font-size: 1.22rem; letter-spacing: -.025em; line-height: 1.25; }
/* Stretched link: the whole card is the hit area, but only the title is in the
   tab order — the cover link is aria-hidden with tabindex -1, so it is not a
   duplicate stop for keyboard and screen readers. */
.post__title a::before { content: ''; position: absolute; inset: 0; z-index: 2; }
.post__lede { color: var(--fg-dim); font-size: .93rem; margin-top: .6rem; }
.post__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-top: auto; padding-top: 1.2rem; color: var(--fg-mute); font-size: .82rem;
}
.post__meta > :is(time, span):not(:last-child)::after { content: ' ·'; }
.post__avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.blog__none { margin-top: 3rem; color: var(--fg-dim); font-size: 1.05rem; }
.blog__none a { color: var(--accent-sm); text-decoration: underline; text-underline-offset: 3px; }
.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
}
.pager__at { color: var(--fg-mute); font-size: .87rem; font-variant-numeric: tabular-nums; }

/* ═══════════════ ARTICLE ═══════════════ */
.article__head { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.crumbs {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  color: var(--fg-mute); font-size: .84rem; margin-bottom: 1.5rem;
}
.crumbs a { transition: color .25s var(--ease); }
.crumbs a:hover { color: var(--accent-sm); }
.article__title { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem); }
.article__sub {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--fg-dim);
  margin-top: 1.1rem; text-wrap: pretty;
}
.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft);
}
.byline__face { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.byline__who { font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.byline__role { color: var(--fg-mute); font-size: .84rem; }
.byline__when {
  margin-left: auto; color: var(--fg-mute); font-size: .84rem;
  display: flex; gap: .45rem; align-items: center;
}
.article__cover { margin-top: clamp(2rem, 4vw, 3rem); }
.article__cover img {
  width: 100%; height: auto; border-radius: var(--r-lg);
  border: 1px solid var(--line-soft); object-fit: cover;
}

/* ─── Prose. Styles arbitrary sanitised HTML from the API, so every tag an
   editor can produce needs a rule here — there is no component to catch it. */
.prose { margin-top: clamp(2.5rem, 5vw, 3.5rem); font-size: 1.07rem; line-height: 1.78; }
.prose > * + * { margin-top: 1.4rem; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-top: 3rem; }
/* Clear the sticky nav when an in-page link (the policy's index) jumps here. */
.prose h2[id] { scroll-margin-top: 5.5rem; }
.prose h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.55rem); margin-top: 2.25rem; }
.prose h4 { font-size: 1.15rem; margin-top: 2rem; }
.prose p { color: var(--fg-dim); text-wrap: pretty; }
.prose a { color: var(--accent-sm); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--teal); }
.prose strong { font-weight: 700; color: var(--fg); }
.prose ul, .prose ol { display: grid; gap: .7rem; padding-left: 1.5rem; color: var(--fg-dim); }
.prose ul { list-style: none; }
.prose ul > li { position: relative; }
.prose ul > li::before {
  content: ''; position: absolute; left: -1.25rem; top: .72em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--teal); font-weight: 700; }
.prose blockquote {
  padding: .3rem 0 .3rem 1.5rem; border-left: 3px solid var(--teal);
  color: var(--fg); font-size: 1.15rem; font-style: italic;
}
.prose img, .prose video {
  width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line-soft);
}
.prose figure { display: grid; gap: .7rem; }
.prose figcaption { color: var(--fg-mute); font-size: .86rem; text-align: center; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em;
  background: color-mix(in srgb, var(--teal) 13%, transparent);
  padding: .15em .45em; border-radius: 5px; color: var(--accent-sm);
}
.prose pre {
  background: var(--surface-2); border: 1px solid var(--line-soft);
  padding: 1.25rem; border-radius: var(--r); overflow-x: auto; font-size: .9rem;
}
.prose pre code { background: none; padding: 0; color: var(--fg); }
.prose hr { border: 0; border-top: 1px solid var(--line-soft); margin-block: 2.5rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { padding: .7rem .9rem; border-bottom: 1px solid var(--line-soft); text-align: left; }
.prose th { color: var(--accent-sm); font-weight: 700; }

/* ─── Article footer ─── */
.article__foot { margin-top: clamp(3rem, 6vw, 4.5rem); }
.authorcard {
  display: flex; gap: 1.25rem; align-items: flex-start; margin-top: 2.5rem;
  padding: 1.75rem; border-radius: var(--r-lg);
  border: 1px solid var(--line-soft); background: var(--surface);
  box-shadow: var(--shadow-s);
}
.authorcard__face { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.authorcard__who { font-weight: 700; letter-spacing: -.01em; }
.authorcard__who span { color: var(--fg-mute); font-weight: 400; }
.authorcard__bio { color: var(--fg-dim); font-size: .93rem; margin-top: .4rem; }
.authorcard__link { color: var(--accent-sm); font-size: .88rem; margin-top: .6rem; display: inline-block; }
.authorcard__who a, .byline__who a { transition: color .25s var(--ease); }
.authorcard__who a:hover, .byline__who a:hover { color: var(--accent-sm); }
/* The author page's header: the same card, as the page's h1. */
.authorcard--head { margin-top: 0; }
.authorcard--head .authorcard__face { width: 96px; height: 96px; }
.authorcard--head .authorcard__who { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.1; }
@media (max-width: 560px) { .authorcard--head { flex-direction: column; } }

/* ═══════════════ FAQ ═══════════════ */
.faq__list { margin-top: clamp(1.75rem, 4vw, 2.5rem); border-top: 1px solid var(--line-soft); }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); font-weight: 600; letter-spacing: -.01em; }
.faq__item summary::after {
  content: '+'; flex: none; font-size: 1.4rem; line-height: 1; color: var(--accent);
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover h3 { color: var(--accent-sm); }
.faq__item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.faq__item p { color: var(--fg-dim); padding: 0 2.5rem 1.35rem 0; text-wrap: pretty; }
.prose + .faq { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.article__cta {
  margin-top: 2.5rem; padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: var(--r-lg);
  text-align: center; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--teal) 7%, var(--surface));
}
.article__cta p {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); margin-bottom: 1.5rem;
  text-wrap: pretty; max-width: 48ch; margin-inline: auto;
}
.article__back { margin-top: 2.5rem; }
.article__back a { color: var(--accent-sm); }

/* ═══════════════ OFFLINE / 404 / 500 ═══════════════ */
.offline {
  min-height: 66vh; display: grid; place-items: center; text-align: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
/* Dinky, trimmed to the art and sized by height. Teal-border version: it
   reads on both themes, where the white border would vanish on the light page. */
.offline__dinky { height: 180px; width: auto; margin: 0 auto 2rem; }
.offline h1 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.8rem); }
.offline p { color: var(--fg-dim); max-width: 48ch; margin: 1.1rem auto 0; text-wrap: pretty; }
.offline__btns { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }
.offline__retry { color: var(--fg-mute); font-size: .84rem; margin-top: 1.25rem; }

/* ═══════════════ COOKIE BANNER ═══════════════ */
.cookie {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 160%);
  z-index: 150; width: min(640px, calc(100% - 2rem));
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: var(--r-lg);
  background: var(--surface); backdrop-filter: blur(16px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  /* Hidden, not removed: the footer can reopen it. Visibility waits for the
     slide-out so its buttons leave the tab order only once it is gone. */
  visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s .5s;
}
.cookie.is-up { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }
.cookie p { flex: 1; min-width: 260px; font-size: .87rem; color: var(--fg-dim); }
.cookie a { color: var(--accent-sm); text-decoration: underline; text-underline-offset: 2px; }
/* Same size side by side: refusing has to be as easy as accepting. */
.cookie__btns { display: flex; gap: .5rem; }

/* ═══════════════ FOOTER ═══════════════
   Always the dark band, in both themes, so the page closes on the brand's own
   field the way the hero opens on it. */
.foot {
  position: relative; z-index: 1;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: clamp(3rem, 6vw, 5rem);
  border-top-left-radius: clamp(28px, 6vw, 72px);
  border-top-right-radius: clamp(28px, 6vw, 72px);
}
.foot__grid {
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}
@media (max-width: 880px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }
.foot__lockup { height: 46px; width: auto; margin-bottom: 1.1rem; }
.foot__tag { color: var(--fg-dim); font-size: .93rem; max-width: 34ch; }
.foot__tag a { color: var(--accent-sm); }
.foot__social { display: flex; gap: .6rem; margin-top: 1.5rem; }
.foot__social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-soft); color: var(--fg-dim);
  transition: color .3s var(--ease), border-color .3s var(--ease),
              transform .3s var(--ease), background .3s var(--ease);
}
.foot__social a:hover {
  color: var(--teal); border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 9%, transparent); transform: translateY(-3px);
}
.foot h2 {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem; font-weight: 700;
}
.foot ul { display: grid; gap: .55rem; font-size: .92rem; }
.foot ul a, .foot address a { color: var(--fg-dim); transition: color .25s var(--ease); }
.foot ul a:hover, .foot address a:hover { color: var(--accent); }
.foot address { font-style: normal; color: var(--fg-dim); font-size: .92rem; line-height: 1.7; }
.foot__base {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  align-items: center; margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem; border-top: 1px solid var(--line-soft);
  color: var(--fg-mute); font-size: .85rem;
}
.foot__base a, .foot__base button { color: var(--fg-mute); font-size: inherit; }
.foot__base a:hover, .foot__base button:hover { color: var(--accent); }

.foot__news {
  display: flex; flex-wrap: wrap; gap: 1.25rem 3rem;
  align-items: center; justify-content: space-between;
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
}
.foot__news h2 { margin-bottom: .4rem; }
.foot__form { flex: 1 1 340px; max-width: 480px; display: grid; gap: .6rem; }
.foot__field { display: flex; gap: .5rem; }
.foot__field input {
  flex: 1; min-width: 0; padding: .6rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line-soft); background: var(--surface);
  transition: border-color .25s var(--ease);
}
.foot__field input:focus { border-color: var(--teal); }
.foot__field input::placeholder { color: var(--fg-mute); }
.foot__fine { color: var(--fg-mute); font-size: .8rem; }
.foot__fine a { color: var(--accent-sm); text-decoration: underline; text-underline-offset: 2px; }

/* ═══════════════ REDUCED MOTION ═══════════════
   Sits last so it overrides every rule above, including the blog styles. The
   page becomes a plain document: no thread, no grain, no entrances. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .thread, .grain { display: none !important; }
  .video__play::before { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  [data-split] .w > i { transform: none !important; }
  /* The replayed hero chat is motion too: the finished thread is rendered in
     full, so the box has to grow to it instead of clipping it. */
  .chatp__log { height: auto; overflow: visible; }
}
