/* ===========================================================================
   Roundtrip — site styles
   Translated from the Claude Design canvas (Roundtrip Site.dc.html).
   Type scale, palette, spacing and section anatomy follow the 1440 comps;
   the 390 comps define everything below the 768px breakpoint.
   ========================================================================= */

/* --- fonts: self-hosted variable subsets, no third-party requests -------- */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-var-latin.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: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-var-latin-ext.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-var-latin.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-var-latin-ext.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 -------------------------------------------------------------- */
:root {
  /* ink + neutrals */
  --ink: #010C13;
  --ink-2: #3C3F46;
  --muted: #5B5E66;
  --muted-2: #6B6E76;
  --dim: #A5A9AC;
  --paper: #FFFFFF;
  --light: #F4F3F2;
  --line: #E3E4E8;
  --line-2: #EBEBEB;
  --line-dark: rgba(255, 255, 255, .1);
  --footer-bg: #020D13;

  /* accents */
  --green: #4FCF62;
  --yellow: #FFBF1F;
  --blue: #1E96FC;
  --blue-ink: #1E4FD8;
  --red: #FF1F1F;
  /* Guarantee band: white body copy needs 4.5:1, which #FF1F1F misses at
     3.84. This is the closest red that clears it (4.98). */
  --red-band: #DE1414;

  /* status (all ≥ 4.5:1 on white) */
  --ok: #12782C;
  --note: #BE1414;
  --reported: #8A5A00;
  --mapped: #1E4FD8;

  /* type scale */
  --fs-display: 38px;
  --fs-h2: 30px;
  --fs-h3: 24px;
  --fs-box: 20px;
  --fs-title: 17px;
  --fs-body: 16px;
  --fs-meta: 13px;
  --fs-mono: 11px;

  /* layout */
  --shell: 1440px;
  --gutter: 112px;
  --pad: 20px;
  --sec-pad: 32px;
  --radius: 8px;

  --focus: 3px solid var(--blue);
  /* One distance from a mono eyebrow to the headline under it, everywhere. */
  --eyebrow-gap: 16px;
  /* And one between a button and the plain link beside it. */
  --action-gap: 28px;
}

@media (min-width: 768px) {
  :root {
    --fs-display: 48px;
    --fs-h2: 40px;
    --fs-h3: 28px;
    --pad: 40px;
    --sec-pad: 48px;
  }
}

@media (min-width: 1100px) {
  :root {
    --fs-display: 64px;
    --fs-h2: 52px;
    --fs-h3: 36px;
    --fs-box: 24px;
    --fs-title: 20px;
    --pad: 56px;
    --sec-pad: 64px;
  }
}

/* --- reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* The browser's own [hidden] rule loses to any author rule that sets display
   — a .btn stays visible with the attribute on it. This makes the attribute
   mean what it says everywhere, so JS can hide a control by setting it. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.5;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "calt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- a11y helpers -------------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--light);
  padding: 14px 20px;
  font-weight: 600;
}
.skip:focus { left: 0; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --- typography ---------------------------------------------------------- */
.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-mono);
  letter-spacing: .12em;
  color: var(--muted-2);
  display: block;
}

.display {
  font-size: var(--fs-display);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -.5px;
  text-wrap: balance;
}

.h2 {
  font-size: var(--fs-h2);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.3px;
  text-wrap: balance;
}

.h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
  font-weight: 600;
}

.h4 {
  font-size: var(--fs-box);
  line-height: 1.25;
  font-weight: 600;
}

.lead {
  font-size: var(--fs-body);
  line-height: 1.5;
  text-wrap: pretty;
}

.body { line-height: 1.5; text-wrap: pretty; }
.meta { font-size: var(--fs-meta); line-height: 1.5; }
.muted { color: var(--muted); }

@media (min-width: 1100px) {
  .lead { font-size: 20px; }
}

/* --- buttons ------------------------------------------------------------- */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: var(--fs-body);
  line-height: 1.2;
  padding: 16px 24px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--light);
  text-align: center;
  min-height: 44px;
  transition: opacity .15s ease;
}
.btn:hover { opacity: .88; text-decoration: none; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost-light {
  background: transparent;
  color: var(--light);
  border: 1px solid #F3F3F3;
}
.btn--green { background: var(--green); color: var(--ink); }
.btn--blue { background: var(--blue); color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--sm { padding: 13px 22px; border-radius: 7px; }
.btn--block { width: 100%; }

.link-strong {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- page shell ---------------------------------------------------------- */
.shell {
  max-width: var(--shell);
  margin-inline: auto;
  width: 100%;
}

/* Section = full-bleed background + centred 1440 grid of gutter + content.
   Below 1100px the numbered gutter collapses into an eyebrow (390 comps). */
.sec { border-top: 1px solid var(--line); }
.sec:first-of-type { border-top: 0; }

/* Full-bleed row: the numbered gutter and its rule sit on the viewport edge,
   while the content column stays centred on the 1440 measure. */
.sec__inner { width: 100%; }

.sec__num { display: none; }

.sec__body {
  padding: var(--sec-pad) var(--pad);
}

.sec__head { display: flex; flex-direction: column; gap: var(--eyebrow-gap); }

@media (min-width: 1100px) {
  .sec__inner {
    display: grid;
    grid-template-columns: var(--gutter) minmax(0, 1fr);
  }
  .sec__num {
    display: block;
    border-right: 1px solid var(--line);
    padding: var(--sec-pad) 0 0 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-mono);
    letter-spacing: .12em;
    color: var(--muted-2);
  }
  .sec__body {
    padding: var(--sec-pad) var(--pad);
    width: 100%;
    max-width: calc(var(--shell) - var(--gutter));
    margin-inline: auto;
  }
}

/* Dark and coloured section variants keep the same anatomy. */
.sec--dark { background: var(--ink); color: var(--light); border-top-color: var(--line-dark); }
.sec--dark .sec__num { color: var(--dim); border-right-color: var(--line-dark); }
.sec--dark .mono { color: var(--dim); }

.sec--green { background: var(--green); border-top-color: rgba(255, 255, 255, .3); }
.sec--yellow { background: var(--yellow); border-top-color: rgba(255, 255, 255, .3); }
.sec--blue { background: var(--blue); border-top-color: rgba(255, 255, 255, .3); }
.sec--red {
  background: var(--red-band);
  color: #FFFFFF;
  border-top-color: rgba(255, 255, 255, .3);
}

.sec--green .sec__num,
.sec--yellow .sec__num,
.sec--blue .sec__num,
.sec--red .sec__num { color: var(--ink); border-right-color: rgba(255, 255, 255, .3); }

.sec--green .mono,
.sec--yellow .mono,
.sec--blue .mono { color: var(--ink); }

/* The red band is the one coloured section that runs light on dark. */
.sec--red .mono,
.sec--red .sec__num,
.sec--red .guarantee__points li,
.sec--red .guarantee__points .i { color: #FFFFFF; }
.sec--red .sec__num { border-right-color: rgba(255, 255, 255, .3); }
.sec--red .guarantee__points { border-top-color: rgba(255, 255, 255, .45); }

/* --- header -------------------------------------------------------------- */
/* The rule separates the bar from the content below it. The landing page
   drops it: its hero image already draws that edge. */
.header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  z-index: 20;
}

/* Bar spans the window: wordmark aligned with the section numbers on the left,
   menu and CTA flush right. */
.header__inner {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 56px;
  padding-left: 20px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}
.header__brand:hover { text-decoration: none; }
.header__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-mono);
  letter-spacing: .12em;
  color: var(--muted-2);
}

.is-home .header { border-bottom: 0; }

.nav { display: none; }

.header__burger {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-self: center;
  margin-right: calc(var(--pad) - 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

@media (min-width: 1100px) {
  .header__inner { min-height: 72px; padding-right: 0; }
  .header__brand { font-size: 16px; }
  .header__burger { display: none; }
  .nav {
    display: flex;
    align-items: stretch;
    gap: 30px;
  }
  .nav__link {
    display: flex;
    align-items: center;
    font-size: var(--fs-body);
    font-weight: 500;
    color: var(--ink);
  }
  .nav__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
  .nav__cta {
    display: flex;
    align-items: center;
    padding: 0 32px;
    border-radius: 0;
    min-height: 100%;
  }
}

/* --- mobile nav overlay -------------------------------------------------- */
.navdrawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--light);
  display: flex;
  flex-direction: column;
}
.navdrawer[hidden] { display: none; }

.navdrawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 56px;
  border-bottom: 1px solid var(--line-dark);
}
.navdrawer__brand { font-size: 15px; font-weight: 600; color: var(--light); }
.navdrawer__close {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  width: 44px; height: 44px; margin-right: -8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--light);
}
.navdrawer__list {
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}
.navdrawer__link {
  font-size: 28px;
  font-weight: 600;
  color: var(--light);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
}
.navdrawer__secondary { display: flex; flex-direction: column; margin-top: 20px; }
.navdrawer__secondary a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  font-size: var(--fs-body);
  color: var(--dim);
}
.navdrawer__foot { padding: 20px; border-top: 1px solid var(--line-dark); }

/* --- hero (home) --------------------------------------------------------- */
.hero { border-bottom: 1px solid var(--line); }
.hero__inner {
  width: 100%;
  padding: var(--sec-pad) var(--pad);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero__media {
  margin: 0;
  order: 2;
  display: block;
}
.hero__media img { width: 100%; border-radius: var(--radius); }
.hero__copy { display: flex; flex-direction: column; gap: 16px; }
.hero__title { font-size: var(--fs-display); line-height: 1.04; font-weight: 600; letter-spacing: -.6px; }
.hero__sub { font-size: var(--fs-body); line-height: 1.5; text-wrap: pretty; }
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 4px;
}
/* Stacked on small screens the button still fills the row; the plain link
   next to it stays the width of its text. */
.hero__actions .btn { align-self: stretch; }
.hero__note { font-size: var(--fs-meta); color: var(--ink); }

@media (min-width: 1100px) {
  .hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(360px, 54%) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    min-height: 520px;
    /* Image runs to both edges; the copy lands on the same measure as every
       numbered section, including the gutter offset — the hero has no rail
       of its own, but its text still lines up with the sections below. */
    padding-left: calc(var(--gutter) + max(var(--pad), (100% - var(--shell)) / 2 + var(--pad)));
    padding-right: max(var(--pad), calc((100% - var(--shell)) / 2 + var(--pad)));
  }
  /* Desktop: the same <img> becomes the full-bleed backdrop, so the key
     visual keeps its alt text instead of turning into a CSS background. */
  .hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    border-radius: 0;
  }
  .hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
  }
  .hero__copy { max-width: 640px; gap: 24px; position: relative; z-index: 1; }
  .hero__title { max-width: 15ch; line-height: 1; letter-spacing: 0; text-wrap: balance; }
  .hero__sub { font-size: 20px; max-width: 520px; }
  .hero__actions {
    flex-direction: row;
    align-items: center;
    gap: var(--action-gap);
    flex-wrap: wrap;
    margin-top: 6px;
  }
  .hero__actions .btn { width: auto; }
}

/* --- problem cards ------------------------------------------------------- */
.problem__cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.problem__card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--paper);
}
.problem__icon {
  flex: none;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.problem__icon .i { width: 40px; height: 40px; }
.problem__text { display: flex; flex-direction: column; gap: 6px; }
.problem__text p:first-child { font-size: var(--fs-box); font-weight: 600; line-height: 1.25; }
.problem__text p:last-child { color: var(--muted); }

@media (min-width: 1100px) {
  .problem__cards { margin-top: 36px; }
  .problem__card { padding: 16px 28px; gap: 20px; align-items: center; }
  .problem__icon { width: 52px; height: 52px; }
  .problem__icon .i { width: 48px; height: 48px; }
}

/* --- the shift (dark) + benefits accordion ------------------------------- */
.shift__grid { display: flex; flex-direction: column; gap: 24px; }
.shift__intro { display: flex; flex-direction: column; gap: var(--eyebrow-gap); }
.shift__intro .h2 { color: var(--light); }
.shift__intro p { color: var(--dim); max-width: 46ch; }
.accent-green { color: var(--green); }
.accent-red { color: var(--note); }

/* Section 02: the accent clause gets its own line once there is room for
   the first line to hold on its own. */
@media (min-width: 1100px) {
  .problem .h2 .accent-red { display: block; }
}

.acc { display: flex; flex-direction: column; gap: 8px; }
.acc__item { border-radius: 7px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.acc__btn {
  appearance: none;
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  color: var(--light);
  min-height: 44px;
}
.acc__label { display: flex; align-items: center; gap: 16px; }
.acc__label .i { width: 26px; height: 26px; flex: none; color: var(--light); }
.acc__title { font-size: var(--fs-title); font-weight: 600; line-height: 1.25; }
.acc__sign { font-family: 'JetBrains Mono', monospace; font-size: var(--fs-meta); color: var(--dim); }
.acc__panel { padding: 0 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.acc__panel[hidden] { display: none; }
.acc__line { display: grid; grid-template-columns: 24px 1fr; align-items: baseline; }
.acc__line span:first-child { font-family: 'JetBrains Mono', monospace; font-size: var(--fs-meta); color: var(--green); }
.acc__line span:last-child { color: var(--dim); text-wrap: pretty; }

@media (min-width: 1100px) {
  .shift__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0; }
  .shift__intro { padding-right: var(--pad); }
  .shift__acc { padding-left: var(--pad); }
  .acc__btn { padding: 20px 28px; }
  .acc__panel { padding: 0 28px 24px; }
  .acc__title { font-size: 20px; }
}

/* conversion-report panel inside the "Explicit reporting" item */
.report {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 4px;
  overflow-x: auto;
}
.report__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-mono);
  letter-spacing: .06em;
  color: var(--muted-2);
}
.report__table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-meta);
  text-align: left;
}
.report__table td { padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.report__table tr:last-child td { border-bottom: 0; }
.report__table td:first-child { width: 92px; }
.report__table td:last-child { color: var(--muted-2); }
/* Same four-step scale as the OUTCOME column on the direction pages:
   green = untouched, blue = mapped, amber = worth a look, red = did not
   convert. Scoped to beat `.report__table td`, which sets a colour too. */
.report__table .lvl-preserved { color: var(--ok); }
.report__table .lvl-mapped { color: var(--mapped); }
.report__table .lvl-notice { color: var(--reported); }
.report__table .lvl-failure { color: var(--note); }

/* --- how it works -------------------------------------------------------- */
.hiw__tabs {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.hiw__tab {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -.3px;
  color: var(--muted-2);
  text-align: left;
}
.hiw__tab[aria-pressed="true"] { color: var(--ink); }
.hiw__slash { font-size: var(--fs-h3); font-weight: 600; color: var(--muted-2); }

.hiw__grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.steps { display: flex; flex-direction: column; }
.steps__item {
  border-top: 1px solid var(--line);
  border-left: 3px solid transparent;
  transition: border-color .4s ease, opacity .4s ease;
  opacity: .85;
}
.steps__item.is-active { border-left-color: var(--blue); opacity: 1; }
.steps__btn {
  appearance: none;
  border: 0;
  background: none;
  text-align: left;
  width: 100%;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 16px 0 16px 12px;
  cursor: pointer;
}
.steps__n { font-family: 'JetBrains Mono', monospace; font-size: var(--fs-meta); color: var(--blue-ink); }
.steps__title { font-size: var(--fs-title); font-weight: 600; }
.steps__body { margin-top: 8px; color: var(--muted); text-wrap: pretty; }

/* The 390 comp drops the player and keeps the step list — the plugin window
   is a fixed 458px and would be clipped. It returns with the wider layout. */
.hiw__demo { display: none; overflow: hidden; }
@media (min-width: 900px) {
  .hiw__demo { display: block; }
}
.hiw__demo iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
  background: transparent;
}

@media (min-width: 1100px) {
  .hiw__tab { font-size: var(--fs-h2); white-space: nowrap; }
  .hiw__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 600px;
    gap: 48px;
    align-items: center;
    margin-top: 0;
  }
  .steps__btn { grid-template-columns: 64px 1fr; gap: 24px; padding: 22px 0 22px 18px; }
  .steps__item { margin-left: -18px; }
}

/* --- directions ---------------------------------------------------------- */
.dir__grid { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.dir__card {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 0 0 28px;
  color: var(--light);
}
.dir__figure { padding: 24px 24px 6px; display: flex; justify-content: center; }
.dir-art { width: 100%; height: 130px; }
.dir__text { padding: 20px 24px 0; display: flex; flex-direction: column; }
.dir__label { font-family: 'JetBrains Mono', monospace; font-size: var(--fs-mono); letter-spacing: .12em; }
.dir__label--red { color: var(--red); }
.dir__label--blue { color: var(--blue); }
.dir__card h3 { margin-top: 14px; font-size: var(--fs-h3); font-weight: 600; color: var(--light); }
.dir__card p { margin-top: 12px; color: var(--dim); text-wrap: pretty; }
.dir__card .btn { margin-top: 22px; align-self: flex-start; }

@media (min-width: 900px) {
  .dir__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 36px; }
  .dir__card { padding-bottom: 32px; }
  .dir__figure { padding: 32px 32px 10px; }
  .dir-art { height: 160px; }
  .dir__text { padding: 30px 32px 0; }
}

/* --- FAQ ----------------------------------------------------------------- */
.faq__wrap { display: flex; flex-direction: column; gap: 24px; }
.faq__title { display: flex; flex-direction: column; gap: var(--eyebrow-gap); }
.faq__list { border-top: 1px solid var(--line); width: 100%; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  appearance: none;
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 4px;
  cursor: pointer;
  min-height: 44px;
}
.faq__q:hover { background: #F6F6F8; }
.faq__q span:first-child { font-size: var(--fs-title); font-weight: 600; }
.faq__sign { font-family: 'JetBrains Mono', monospace; font-size: var(--fs-body); color: var(--ink); }
.faq__a {
  padding: 0 4px 22px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 76ch;
  text-wrap: pretty;
}
.faq__a[hidden] { display: none; }

@media (min-width: 1100px) {
  .faq__wrap { flex-direction: row; align-items: flex-start; gap: 96px; }
  .faq__title { width: 40%; flex: none; }
  .faq__q { padding: 20px 4px; }
  .faq__q span:first-child { font-size: 20px; }
}

/* --- pricing ------------------------------------------------------------- */
.pricing__grid { display: flex; flex-direction: column; gap: 8px; }
/* Small screens use the carded treatment from comp 4a; the wide layout
   drops the card and separates the two plans with a single rule. */
.plan {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}
.plan .i--plan { width: 58px; height: 46px; color: var(--ink); }
.plan__name { font-size: var(--fs-h3); font-weight: 600; }
.plan__price { display: flex; align-items: baseline; gap: 8px; }
.plan__price b { font-family: 'JetBrains Mono', monospace; font-size: var(--fs-h3); font-weight: 400; }
.plan__features { display: flex; flex-direction: column; gap: 9px; }
.plan__features li { display: grid; grid-template-columns: 22px 1fr; align-items: baseline; }
.plan__features li span:first-child { font-family: 'JetBrains Mono', monospace; }
.plan .btn { margin-top: auto; }
.plan__note { font-size: var(--fs-meta); text-align: center; }

@media (min-width: 900px) {
  .pricing__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .plan {
    /* Cards stay edge to edge; their content sits on the same measure as
       the eyebrow and every other section. */
    padding: 36px var(--pad);
    gap: 16px;
    background: transparent;
    border: 0;
    border-radius: 0;
  }
  .pricing .sec__body {
    position: relative;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }
  /* Divider runs the whole height of the section, not just the cards. */
  .pricing .sec__body::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(255, 255, 255, .3);
  }
  .pricing__eyebrow { padding: 0 var(--pad); }
}

/* --- try it -------------------------------------------------------------- */
.try__title { text-align: left; }
.try__cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}
.try__card {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .15);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink);
}
.try__card .i { width: 30px; height: 30px; color: var(--ink); }
.try__card h3 { font-size: var(--fs-box); font-weight: 600; }
.try__actions { margin-top: 24px; display: flex; justify-content: flex-start; }

@media (min-width: 900px) {
  .try__title { text-align: center; }
  .try__eyebrow { text-align: center; }
  .try__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 48px; }
  .try__card { padding: 32px 28px; gap: 14px; }
  .try__actions { margin-top: 44px; justify-content: center; }
  .try .sec__body { padding-bottom: 80px; }
}

/* --- footer -------------------------------------------------------------- */
/* Layout comes from .sec__body (shared gutter grid); only the dark palette
   and the wordmark are footer-specific. */
.footer { background: var(--footer-bg); color: var(--light); }
.footer .sec__num { border-right: 0; }
.footer__wordmark {
  font-size: clamp(64px, 18.5vw, 270px);
  line-height: .9;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 24px;
  /* Optical alignment: the R carries 0.0625em of left side bearing, so the
     measured box sits on the grid while the letter looks indented. */
  margin-left: -0.0625em;
}
.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  font-size: 15px;
}
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col > span {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-mono);
  letter-spacing: .12em;
  color: var(--dim);
}
.footer__col a { color: var(--light); }
.footer__legal { margin-top: 40px; max-width: 820px; font-size: var(--fs-meta); line-height: 1.55; color: var(--dim); }
.footer__copy { margin-top: 12px; font-size: var(--fs-meta); color: var(--dim); }

@media (min-width: 900px) {
  .footer__nav { display: flex; gap: 64px; font-size: var(--fs-body); flex-wrap: wrap; }
  .footer__col { gap: 9px; }
  .footer__wordmark { margin-bottom: 40px; }
}

/* --- direction pages: hero layer trees ----------------------------------- */
.dirhero { display: flex; flex-direction: column; gap: 32px; }
.dirhero__copy { display: flex; flex-direction: column; gap: 16px; }
.dirhero__bullets { display: flex; flex-direction: column; gap: 9px; }
.dirhero__bullets li { display: flex; gap: 12px; align-items: baseline; }
.dirhero__bullets span:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-mono);
  color: var(--blue-ink);
}
.dirhero__bullets span:last-child { color: var(--muted); }
.dirhero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--action-gap);
  align-items: center;
  padding-top: 6px;
}
.dirhero__note { font-family: 'JetBrains Mono', monospace; font-size: var(--fs-mono); color: var(--muted); }

.trees { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.tree {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.tree__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid #EDEEF1;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-mono);
  letter-spacing: .08em;
  color: var(--muted-2);
}
.tree__head b { font-weight: 400; color: var(--ink); }
.tree__head .is-result { color: var(--blue-ink); }
.tree__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
}
.tree__row:last-child { border-bottom: 0; }
.tree__row--root { color: var(--ink); font-weight: 600; }
.tree__row--child { padding-left: 34px; }
.tree__meta { font-family: 'JetBrains Mono', monospace; font-size: var(--fs-mono); color: var(--muted-2); }

.tree__map {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-mono);
  letter-spacing: .08em;
  color: var(--blue-ink);
}
.tree__map::before,
.tree__map::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #C9CBD1;
}

@media (min-width: 1100px) {
  .dirhero { flex-direction: row; gap: 56px; align-items: center; }
  .dirhero__copy { width: 600px; flex: none; gap: 22px; }
  .trees {
    flex: 1;
    min-width: 0;
    grid-template-columns: 1fr 40px 1fr;
    gap: 0;
  }
  .tree__map {
    flex-direction: column;
    align-self: center;
    padding: 0 8px;
    gap: 8px;
  }
  .tree__map::before,
  .tree__map::after { width: 100%; flex: none; }
}

/* --- direction pages: demo plate ----------------------------------------- */
.demo__head { display: flex; flex-direction: column; gap: var(--eyebrow-gap); max-width: 660px; }
.demo__plate {
  position: relative;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}
.demo__placeholder { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 0 20px; }
.demo__placeholder span {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-mono);
  letter-spacing: .12em;
}
.demo__state { color: rgba(244, 243, 242, .5); }
.demo__token { color: rgba(244, 243, 242, .72); }

/* Player error state, shown while the demo render is missing. The code line
   keeps the mono treatment; the message drops it, because letter-spaced
   monospace is hard work for a full sentence. */
.demo__plate--error .demo__placeholder { max-width: 46ch; gap: 12px; }
.demo__errcode { color: var(--red); }
/* Scoped to the plate so it outranks `.demo__placeholder span`, which sets
   the mono face for the normal state. */
.demo__plate--error .demo__errmsg {
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--fs-meta);
  letter-spacing: normal;
  line-height: 1.5;
  color: rgba(244, 243, 242, .72);
}
.demo__bar {
  position: absolute;
  left: 20px; right: 20px; bottom: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.demo__track { flex: 1; height: 2px; background: rgba(255, 255, 255, .22); }
.demo__track div { width: 38%; height: 2px; background: rgba(255, 255, 255, .1); }
.demo__watch {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  padding: 8px 14px;
  border-radius: 6px;
}
.demo__steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 24px;
}
.demo__step { border-radius: var(--radius); padding: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.demo__step b { font-size: var(--fs-box); font-weight: 600; color: var(--light); }
.demo__step p { color: var(--dim); }

@media (min-width: 900px) {
  .demo__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .demo__step { padding: 24px; }
}

/* --- direction pages: guarantee + compatibility table -------------------- */
.guarantee__grid { display: flex; flex-direction: column; gap: 24px; }
.guarantee__title { display: flex; flex-direction: column; gap: var(--eyebrow-gap); }
.guarantee__side { display: flex; flex-direction: column; gap: 20px; }
.guarantee__points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, .3);
  padding-top: 18px;
}
.guarantee__points li { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.guarantee__points .i { width: 20px; height: 20px; flex: none; color: var(--ink); }

.table-wrap { margin-top: 32px; overflow-x: auto; }
.table-wrap:focus-visible { outline: var(--focus); outline-offset: 2px; }
.dtable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  min-width: 640px;
}
/* Column headers only — row headers (the feature column) stay light. */
.dtable thead th {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-mono);
  letter-spacing: .12em;
  font-weight: 400;
  color: var(--paper);
  background: var(--ink);
  padding: 12px 20px;
}
.dtable td,
.dtable tbody th {
  padding: 16px 20px;
  border-top: 1px solid var(--line-2);
  color: var(--ink-2);
  vertical-align: middle;
  text-align: left;
}
.dtable tbody th { color: var(--ink); font-weight: 600; }
.dtable .outcome {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-mono);
  letter-spacing: .04em;
  white-space: nowrap;
}
.outcome--ok { color: var(--ok); }
.outcome--note { color: var(--note); }
.outcome--reported { color: var(--reported); }

@media (min-width: 1100px) {
  .guarantee__grid { flex-direction: row; gap: 64px; align-items: flex-start; }
  .guarantee__title { flex: 1; display: flex; flex-direction: column; gap: var(--eyebrow-gap); }
  .guarantee__title .h2 { max-width: 16ch; }
  .guarantee__side { width: 440px; flex: none; padding-top: 34px; }
  .table-wrap { margin-top: 64px; }
}

/* --- direction pages: security ------------------------------------------- */
.security__head { display: flex; flex-direction: column; gap: var(--eyebrow-gap); }
.security__head .h2 { max-width: 14ch; }
.security__cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
}
.security__card {
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, .15);
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ink);
}
.security__card .i { width: 40px; height: 40px; color: var(--ink); }
.security__card h3 { font-size: var(--fs-h3); line-height: 1.2; font-weight: 600; text-wrap: balance; }
.security__card p { line-height: 1.55; text-wrap: pretty; }

@media (min-width: 900px) {
  .security__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 40px; }
  .security__card { padding: 32px; gap: 16px; }
}

/* --- direction pages: closing CTA ---------------------------------------- */
.cta__wrap { display: flex; flex-direction: column; gap: var(--eyebrow-gap); align-items: flex-start; }
.cta__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--action-gap);
  align-items: center;
  padding-top: 6px;
  width: 100%;
  justify-content: space-between;
}

/* --- docs ---------------------------------------------------------------- */
.docs { display: block; }
.docs__inner { width: 100%; }
.docs__nav {
  background: var(--light);
  border-bottom: 1px solid var(--line-2);
  padding: 24px var(--pad);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.docs__navgroup { display: flex; flex-direction: column; gap: 12px; }
.docs__navgroup a { font-size: var(--fs-body); color: var(--muted-2); }
.docs__navgroup a[aria-current="page"] {
  font-weight: 600;
  color: var(--ink);
  border-left: 2px solid var(--blue);
  padding-left: 10px;
  margin-left: -12px;
}
.docs__body { display: flex; flex-direction: column; }
.docs__sec {
  padding: var(--sec-pad) var(--pad);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.docs__sec + .docs__sec { border-top: 1px solid var(--line-2); }
/* Measure is capped on the content, not the section, so the rule between
   sections still spans the full column. */
.docs__sec--prose > * { max-width: 72ch; }
.docs__list { display: flex; flex-direction: column; gap: 10px; padding-left: 20px; }
.docs__list li { list-style: disc; }
.docs__pager {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.docs__pager a { display: flex; align-items: center; gap: 10px; }

@media (min-width: 1100px) {
  /* Same rule as the section gutter: the docs rail hugs the left edge, the
     article stays on the centred measure. */
  .docs__inner { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
  .docs__nav {
    border-bottom: 0;
    border-right: 1px solid var(--line-2);
    padding: var(--sec-pad) 28px;
    gap: 40px;
  }
  .docs__body {
    width: 100%;
    max-width: calc(var(--shell) - 260px);
    margin-inline: auto;
  }
  /* Sidebar stays 260px wide, but the article drops its own indent so the
     text starts right at the rail — as close to the footer measure as this
     layout allows. */
  .docs__sec { padding-left: 0; }
  .docs__navgroup a[aria-current="page"] { margin-left: -28px; padding-left: 26px; }
}

/* --- legal / text page --------------------------------------------------- */
.legal__sec { padding: 0 var(--pad) var(--sec-pad); display: flex; justify-content: center; }
.legal__sec--intro { padding-top: var(--sec-pad); }
.legal__col { width: 100%; max-width: 960px; display: flex; flex-direction: column; gap: 22px; }
.legal__sec + .legal__sec .legal__col { border-top: 1px solid var(--line-2); padding-top: var(--sec-pad); }
.legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-mono);
  letter-spacing: .12em;
  color: var(--muted-2);
  border-top: 1px solid var(--line-2);
  padding-top: 20px;
}
.legal__list { display: flex; flex-direction: column; gap: 10px; padding-left: 20px; }
.legal__list li { list-style: disc; }

/* The consent provider renders its own tables in here, at a width we do not
   control, so the block scrolls sideways rather than pushing the page. */
.cookiedecl { overflow-x: auto; }
.cookiedecl:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* --- 404 ------------------------------------------------------------------ */
/* Same measure and rhythm as a legal page, so the error still reads as part
   of the site rather than a server default. */
.nf { padding: var(--sec-pad) var(--pad); display: flex; justify-content: center; }
.nf__col { width: 100%; max-width: 960px; display: flex; flex-direction: column; }
.nf__col > .mono { margin-bottom: var(--eyebrow-gap); }
.nf__col .body { margin-top: 16px; max-width: 52ch; }
.nf__actions { margin-top: var(--action-gap); }
.nf__links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 32px;
  margin-top: var(--sec-pad);
  border-top: 1px solid var(--line-2);
  padding-top: 20px;
}
.nf__links > .mono { color: var(--muted-2); }
@media (min-width: 1100px) {
  .nf { padding-block: calc(var(--sec-pad) * 2); }
}

/* --- native disclosure widgets ------------------------------------------- */
/* Accordions are <details>, so they open without JavaScript and expose the
   right state to assistive tech for free. Only the marker is restyled. */
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }

.acc__item:not([open]) .acc__sign::after,
.faq__item:not([open]) .faq__sign::after { content: "+"; }
.acc__item[open] .acc__sign::after,
.faq__item[open] .faq__sign::after { content: "−"; }

/* Containers with a rhythm of their own (22px) keep it, but the eyebrow is
   pulled to the shared distance so every headline sits the same way. */
.docs__sec > .mono,
.legal__col > .mono { margin-bottom: calc(var(--eyebrow-gap) - 22px); }
@media (min-width: 1100px) {
  .dirhero__copy > .mono { margin-bottom: calc(var(--eyebrow-gap) - 22px); }
}

/* Sections where the eyebrow is a direct child with no flex gap around it. */
.hiw .sec__body > .mono,
.try__eyebrow { margin-bottom: var(--eyebrow-gap); }

/* --- section number shown inline on small screens ------------------------ */
.sec__numinline { display: inline; }
@media (min-width: 1100px) {
  .sec__numinline { display: none; }
}

/* --- misc ---------------------------------------------------------------- */
.code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-meta);
  font-weight: 400;
  color: var(--ink);
}
.dtable--docs { min-width: 480px; }
.dtable--docs th[scope="row"] { font-weight: 400; }
.shift__cta { margin-top: 12px; align-self: flex-start; }
.steps__title, .steps__body { display: block; }

/* ===========================================================================
   Interaction — hover, focus and entrance motion.
   Everything here is decoration on top of a page that already works: no
   element depends on a transition to become visible or operable.
   ========================================================================= */

:root {
  --ease: cubic-bezier(.2, .7, .3, 1);
  --lift: 0 10px 24px -14px rgba(1, 12, 19, .45);
}

/* --- buttons and links --------------------------------------------------- */
.btn {
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), opacity .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--lift); opacity: 1; }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn--ghost:hover { background: var(--ink); color: var(--light); }
.btn--ghost-light:hover { background: var(--light); color: var(--ink); }
.btn--green:hover,
.btn--blue:hover { filter: brightness(1.06); }
.nav__cta:hover { transform: none; box-shadow: none; background: #12222B; }

/* Nav links underline out from the left rather than snapping on. */
.nav__link { position: relative; text-decoration: none; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(50% - 13px);
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav__link:hover { text-decoration: none; }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { text-decoration: none; }
/* The current page already shows its underline, so hovering it thickens the
   rule instead — otherwise that one link is the only dead spot in the nav. */
.nav__link[aria-current="page"]:hover::after { height: 3px; }

.header__brand { transition: opacity .18s var(--ease); }
.header__brand:hover { opacity: .65; }

.link-strong {
  transition: color .18s var(--ease), text-decoration-thickness .18s var(--ease);
  text-decoration-thickness: 1.5px;
}
.link-strong:hover { color: var(--blue-ink); }
/* On the coloured bands the blue only reaches 4.02:1, so those keep ink and
   signal the hover with a heavier underline instead. */
.sec--yellow .link-strong:hover,
.sec--green .link-strong:hover,
.sec--blue .link-strong:hover,
.sec--red .link-strong:hover {
  color: var(--ink);
  text-decoration-thickness: 3px;
}

.navdrawer__link,
.navdrawer__secondary a { transition: color .18s var(--ease), padding-left .18s var(--ease); }
.navdrawer__link:hover,
.navdrawer__secondary a:hover { color: var(--green); text-decoration: none; padding-left: 6px; }

.footer__col a { transition: color .18s var(--ease); }
.footer__col a:hover { color: var(--green); text-decoration: none; }

.docs__navgroup a { transition: color .18s var(--ease), border-color .18s var(--ease); }
.docs__navgroup a:hover { color: var(--ink); text-decoration: none; }
/* Current docs page is already ink; hover deepens its rail instead. */
.docs__navgroup a[aria-current="page"]:hover { border-left-color: var(--ink); }

/* Docs prev/next: the chevron leads the movement. */
.docs__pager a { transition: color .18s var(--ease); }
.docs__pager a:hover { text-decoration: none; }
.docs__pager svg { transition: transform .18s var(--ease); }
.docs__pager a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.docs__pager a:first-child:hover svg { transform: translateX(-3px); }
.docs__pager a:last-child:hover svg { transform: translateX(3px); }

.header__burger { transition: opacity .18s var(--ease); }
.header__burger:hover { opacity: .6; }

/* --- cards --------------------------------------------------------------- */
.problem__card {
  transition: transform .22s var(--ease), border-color .22s var(--ease),
              box-shadow .22s var(--ease);
}
.problem__card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: var(--lift);
}

.dir__card { transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.dir__card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(1, 12, 19, .7); }
.dir-art { transition: transform .3s var(--ease); }
.dir__card:hover .dir-art { transform: scale(1.03); }

.security__card,
.try__card { transition: background-color .22s var(--ease), transform .22s var(--ease); }
.security__card:hover,
.try__card:hover { background: rgba(255, 255, 255, .3); transform: translateY(-2px); }

.plan { transition: transform .22s var(--ease); }
@media (max-width: 899px) {
  .plan:hover { transform: translateY(-2px); }
}

/* --- disclosure widgets -------------------------------------------------- */
.acc__item { transition: background-color .2s var(--ease); }
.acc__item:hover { background: rgba(255, 255, 255, .16); }

.faq__q { transition: background-color .2s var(--ease), padding-left .2s var(--ease); }
.faq__q:hover { padding-left: 10px; }

/* Panels slide open. Only the opening direction is animated — closing stays
   instant because <details> removes the content immediately. */
@keyframes rt-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.acc__item[open] .acc__panel,
.faq__item[open] .faq__a { animation: rt-open .26s var(--ease) both; }

/* --- steps, rows, tables ------------------------------------------------- */
.steps__btn { transition: background-color .2s var(--ease); }
.steps__btn:hover { background: #F6F6F8; }
.sec--dark .steps__btn:hover { background: rgba(255, 255, 255, .06); }

.tree__row { transition: background-color .2s var(--ease); }
.tree__row:hover { background: #F6F7F9; }

.dtable tbody tr { transition: background-color .2s var(--ease); }
.dtable tbody tr:hover { background: #F6F7F9; }

.hiw__tab { transition: color .2s var(--ease); }
.hiw__tab:hover { color: var(--ink); }
/* The selected tab is already ink, so it answers a hover with a rule. */
.hiw__tab[aria-pressed="true"]:hover {
  text-decoration: underline;
  text-underline-offset: 10px;
  text-decoration-thickness: 3px;
}

/* --- entrance ------------------------------------------------------------ */
@keyframes rt-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-driven reveals move but never fade: a card sitting low in the
   first screen is mid-range until the reader scrolls, and a half-faded
   card fails contrast while it waits. */
@keyframes rt-slide {
  from { transform: translateY(14px); }
  to { transform: translateY(0); }
}

/* Hero settles once on load — the only orchestrated moment on the page. */
.hero__copy > * { animation: rt-rise .55s var(--ease) both; }
.hero__copy > *:nth-child(1) { animation-delay: .02s; }
.hero__copy > *:nth-child(2) { animation-delay: .08s; }
.hero__copy > *:nth-child(3) { animation-delay: .14s; }
.hero__copy > *:nth-child(4) { animation-delay: .2s; }
.hero__copy > *:nth-child(5) { animation-delay: .26s; }

/* Scroll-driven reveals, only where the browser supports them natively —
   no observers, and nothing is left parked at opacity 0 elsewhere. */
@supports (animation-timeline: view()) {
  @media (min-width: 900px) {
    /* Only small, repeated blocks reveal. Tall content (the compatibility
       tables) stays static: with a view() timeline a block taller than the
       range would still be fading when it is already fully on screen. */
    .problem__card,
    .dir__card,
    .security__card,
    .try__card,
    .demo__step,
    .acc__item {
      animation: rt-slide .6s var(--ease) both;
      animation-timeline: view();
      /* Settles as soon as the block appears, never mid-screen. */
      animation-range: entry 0% entry 35%;
    }
  }
}

/* Print and full-page capture never run a scroll timeline, so anything
   waiting on one is forced to its finished state. */
@media print {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- motion -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover,
  .problem__card:hover,
  .dir__card:hover,
  .security__card:hover,
  .try__card:hover,
  .plan:hover { transform: none; }
}
