/* ==========================================================================
   Fonts — Inter variable (wght 400–700, opsz 14–32), self-hosted.
   opsz 14 = Inter (body), opsz 32 = Inter Display (headlines).
   ========================================================================== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-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: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Klipo — design tokens
   Values come from the Figma file (Klipo, node 401:5731).
   ========================================================================== */
:root {
  /* Colour */
  --color-bg: #fafafa;
  --color-ink: #1c1c1e;
  --color-ink-72: rgba(28, 28, 30, 0.72);  /* nav links */
  --color-ink-64: rgba(28, 28, 30, 0.64);  /* answers, footer */
  --color-ink-08: rgba(28, 28, 30, 0.08);  /* dividers */
  --color-ink-05: rgba(28, 28, 30, 0.05);  /* hover fill */
  --color-gray: #8e8e93;                    /* grays/gray: hero subtitle */
  --color-on-dark: #ffffff;
  --color-glass: rgba(250, 250, 250, 0.8);

  /* Type: Inter (body) + Inter Display (headlines), one variable font */
  --font-sans: "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --opsz-text: "opsz" 14;
  --opsz-display: "opsz" 32;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* Radius & effects */
  --radius-pill: 999px;
  --blur-glass: 12px;
  --shadow-float: 0 0 3px rgba(0, 0, 0, 0.02), 0 2px 24px rgba(0, 0, 0, 0.08);

  /* Layout */
  --nav-top: 32px;
  --nav-height: 48px;
  --content: 720px;
  --gutter: 16px;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out-sine: cubic-bezier(0.37, 0, 0.63, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);  /* iOS sheet curve */
  --duration-press: 160ms;
  --duration-hover: 150ms;
}

/* Mobile: 24px page padding, horizontal and vertical */
@media (max-width: 599px) {
  :root { --gutter: 24px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-top) + var(--nav-height) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-optical-sizing: none;
  font-variation-settings: var(--opsz-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }

/* Headlines: Inter Display */
.hero__title,
.faq__title { font-variation-settings: var(--opsz-display); }

:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-on-dark);
  font-size: 14px;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

/* ==========================================================================
   Button
   ========================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-on-dark);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  user-select: none;
  transition: transform var(--duration-press) var(--ease-out);
}
.button:active { transform: scale(0.97); }
.button__icon { flex: none; width: 20px; height: 20px; }

.button--sm {
  padding: 8px 16px 8px 12px;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;   /* -0.28px */
}

.button--lg {
  padding: 12px 24px 12px 20px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.01em;   /* -0.16px */
}

@media (hover: hover) and (pointer: fine) {
  .button { transition: transform var(--duration-press) var(--ease-out), background-color var(--duration-hover) ease; }
  .button:hover { background: #000; }
}

/* ==========================================================================
   Floating navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: var(--nav-top) 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-inline: 16px; /* nav inset, independent of --gutter */
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--nav-height);
  padding: 5px 6px 5px 16px;
  border: 1px solid #fff;
  border-radius: var(--radius-pill);
  background: var(--color-glass);
  -webkit-backdrop-filter: blur(var(--blur-glass));
  backdrop-filter: blur(var(--blur-glass));
  box-shadow: var(--shadow-float);
}

.nav__logo { flex: none; border-radius: 6px; }
.nav__logo img { width: auto; height: 28px; }

.nav__links { display: flex; align-items: center; gap: 2px; }

.nav__link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--color-ink-72);
  font-size: 14px;
  font-weight: var(--weight-medium);
  line-height: 20px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .nav__link { transition: background-color var(--duration-hover) ease, color var(--duration-hover) ease; }
  .nav__link:hover { background: var(--color-ink-05); color: var(--color-ink); }
}

.nav__cta { flex: none; }

@media (max-width: 479px) {
  .site-header { --nav-top: 16px; }
  .nav { width: 100%; max-width: 420px; justify-content: space-between; }
  .nav__links { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 128px var(--gutter) 0;
  text-align: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--content);
  padding-block: 2px;
}

.hero__title {
  font-size: clamp(44px, 9vw, 64px);
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: -0.04em;   /* -2.56px at 64px */
  text-wrap: balance;
}

.hero__subtitle {
  max-width: 600px;
  color: var(--color-gray);
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.02em;   /* -0.36px */
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  justify-content: center;
  padding-block: 12px;
}

/* Full-bleed image: the arms run off both edges, so it always spans the viewport */
.hero-visual {
  margin-top: 40px;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: auto;
}

@media (max-width: 599px) {
  .hero { padding-top: calc(var(--nav-top) + var(--nav-height) + 40px); }
  .hero__copy { gap: 16px; }
  .hero__title span { display: block; } /* stack the three beats */
  .hero__subtitle { font-size: 17px; }
  .hero-visual { margin-top: 24px; }
  /* Keep the phones large: crop the outer arms rather than shrinking everything */
  .hero-visual img {
    width: 100%;
    height: max(75vw, 400px);
    object-fit: cover;
    object-position: 50% 50%;
  }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 48px var(--gutter);
}

.faq__title {
  padding: 2px 0 32px;
  font-size: clamp(36px, 7vw, 48px);
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: -0.02em;   /* -0.96px at 48px */
}

.faq__item { box-shadow: inset 0 -1px 0 var(--color-ink-08); } /* divider without adding height, as in Figma */

.faq__question button {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 124px;
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font-size: 20px;
  font-weight: var(--weight-semibold);
  line-height: 28px;
  letter-spacing: -0.02em;   /* -0.4px */
}

.faq__question button:focus-visible { border-radius: 8px; outline-offset: 4px; }

.faq__icon {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 2px;               /* 28px box from Figma */
  opacity: 0.64;
  transition: transform 250ms var(--ease-out), opacity var(--duration-hover) ease;
}

.faq__item[data-open="true"] .faq__icon { transform: rotate(45deg); }  /* + becomes × */

@media (hover: hover) and (pointer: fine) {
  .faq__question button:hover .faq__icon { opacity: 1; }
}

/* Answer: grid-rows 0fr ↔ 1fr animates to the content's real height,
   both ways, and retargets cleanly if clicked mid-animation. */
.faq__answer {
  display: grid;
  grid-template-rows: 1fr;
  margin-top: -12px;         /* question's 24px bottom padding → 12px gap to answer */
  padding-bottom: 24px;
  transition:
    grid-template-rows 280ms var(--ease-out),
    margin-top 280ms var(--ease-out),
    padding-bottom 280ms var(--ease-out),
    opacity 200ms ease,
    visibility 0s linear 0s;
}

.faq__answer > div { min-height: 0; overflow: hidden; }

.faq__answer p {
  max-width: 568px;
  color: var(--color-ink-64);
  font-size: 16px;
  line-height: 24px;
}

/* Collapsed state only applies when JS is running; without JS every answer shows */
.js .faq__item[data-open="false"] .faq__answer {
  grid-template-rows: 0fr;
  margin-top: 0;
  padding-bottom: 0;
  opacity: 0;
  visibility: hidden;        /* keeps hidden answers out of tab order and screen readers */
  transition:
    grid-template-rows 280ms var(--ease-out),
    margin-top 280ms var(--ease-out),
    padding-bottom 280ms var(--ease-out),
    opacity 150ms ease,
    visibility 0s linear 280ms;
}

@media (max-width: 599px) {
  .faq { padding-block: var(--gutter); }
  .faq__title { padding-bottom: 20px; }
  .faq__question button { gap: 16px; padding: 20px 0; font-size: 18px; line-height: 26px; }
  .faq__answer { padding-bottom: 20px; }
  .faq__icon { margin: 1px 0; }
}

/* ==========================================================================
   Wordmark + footer
   ========================================================================== */
.wordmark {
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.wordmark img { width: 100%; height: auto; }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  color: var(--color-ink-64);
  font-size: 14px;
  line-height: 28px;
  letter-spacing: -0.02em;
}

.footer__credit { display: flex; align-items: center; gap: 4px; }
.footer__credit img { width: 40px; height: 16px; }

.footer__credit-link {
  display: block;
  border-radius: 4px;
  transition: opacity var(--duration-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer__credit-link:hover { opacity: 0.7; }
}

.footer__legal { display: flex; align-items: center; gap: 6px; }

.footer__legal a {
  border-radius: 4px;
  transition: color var(--duration-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer__legal a:hover { color: var(--color-ink); }
}

@media (max-width: 599px) {
  .footer { flex-direction: column; gap: 4px; padding-top: var(--gutter); }
  .footer__credit { order: -1; }
}

.footer__legal a[aria-current="page"] { color: var(--color-ink); }

/* ==========================================================================
   Legal pages (/terms, /privacy)
   Same column, type scale and dividers as the FAQ.
   ========================================================================== */
.page-legal { --content: 600px; } /* narrower reading column for /terms and /privacy */

.legal {
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 160px var(--gutter) 96px;
}

.legal__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
  box-shadow: inset 0 -1px 0 var(--color-ink-08);
}

.legal__title {
  font-size: 32px;
  font-weight: var(--weight-semibold);
  font-variation-settings: var(--opsz-display);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.legal__meta {
  color: var(--color-gray);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.01em;
}

.legal__summary {
  color: var(--color-ink-64);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.legal__body > section {
  padding: 40px 0;
  box-shadow: inset 0 -1px 0 var(--color-ink-08);
}
.legal__body > section:last-child { box-shadow: none; padding-bottom: 0; }
.legal h2[tabindex="-1"]:focus { outline: none; } /* jump target from the contents sheet */

.legal h2 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: var(--weight-semibold);
  line-height: 24px;
  letter-spacing: -0.01em;
}

.legal__body p,
.legal__body li,
.legal__body td,
.legal__body th,
.legal__body address {
  color: var(--color-ink-64);
  font-size: 14px;
  line-height: 22px;
  font-style: normal;
  text-wrap: pretty;
}

.legal__body p + p,
.legal__body p + ul,
.legal__body ul + p,
.legal__body p + address,
.legal__body address + p,
.legal__body table + p { margin-top: 16px; }
.legal__body p + table { margin-top: 24px; }

.legal__body strong { color: var(--color-ink); font-weight: var(--weight-medium); }

.legal__body ul { padding-left: 20px; list-style: disc; }
.legal__body li + li { margin-top: 8px; }
.legal__body li::marker { color: var(--color-ink-64); }

.legal__body a {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-ink-08);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border-radius: 2px;
  transition: text-decoration-color var(--duration-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
  .legal__body a:hover { text-decoration-color: currentColor; }
}

.legal__body table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.legal__body th,
.legal__body td {
  padding: 16px 0;
  vertical-align: top;
  box-shadow: inset 0 -1px 0 var(--color-ink-08);
}
.legal__body th:first-child,
.legal__body td:first-child { width: 32%; padding-right: 24px; }

.legal__body thead th {
  padding-top: 0;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: var(--weight-medium);
}

.legal__body tbody tr:last-child td { box-shadow: none; }

@media (max-width: 599px) {
  .legal { padding: calc(var(--nav-top) + var(--nav-height) + 48px) var(--gutter) var(--gutter); }
  .legal__header { padding-bottom: var(--gutter); }
  .legal__body > section { padding: var(--gutter) 0; }

  /* Stack the two-column table: label above its description */
  .legal__body thead { display: none; }
  .legal__body tr,
  .legal__body td { display: block; }
  .legal__body tr { padding: 16px 0; box-shadow: inset 0 -1px 0 var(--color-ink-08); }
  .legal__body tbody tr:first-child { padding-top: 0; }
  .legal__body tbody tr:last-child { box-shadow: none; }
  .legal__body td,
  .legal__body td:first-child { width: auto; padding: 0; box-shadow: none; }
  .legal__body td + td { margin-top: 4px; }
}

/* ==========================================================================
   Legal: table of contents
   Desktop: sticky sidebar; one indicator spans every section on screen.
   Mobile: "Contents" pill opens a bottom sheet (<dialog>, toc.js).
   ========================================================================== */
.toc { display: none; }

.toc__title {
  padding: 0 10px 8px;
  font-size: 14px;
  font-weight: var(--weight-medium);
  line-height: 20px;
  letter-spacing: -0.01em;
}

.toc__track { position: relative; }

.toc__indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  border-radius: 8px;
  background: var(--color-ink-05);
  opacity: 0;
  pointer-events: none;
}

/* Transitions start after the first placement, so it doesn't slide in on load.
   Transitions (not keyframes): scroll retargets it constantly. */
.toc.is-ready .toc__indicator {
  transition:
    transform 200ms var(--ease-out),
    height 200ms var(--ease-out),
    opacity 200ms ease;
}

.toc__list { position: relative; margin: 0; padding: 0; list-style: none; }

.toc__list a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--color-ink-64);
  font-size: 14px;
  font-weight: var(--weight-medium);
  line-height: 20px;
  letter-spacing: -0.01em;
  transition: color var(--duration-hover) ease;
}
.toc__list a[data-visible] { color: var(--color-ink); }

@media (hover: hover) and (pointer: fine) {
  .toc__list a:hover { color: var(--color-ink); }
}

@media (min-width: 1024px) {
  .page-legal .legal,
  .page-legal .footer { max-width: calc(var(--content) + 64px + 256px + 2 * var(--gutter)); }

  .legal {
    display: grid;
    grid-template-columns: minmax(0, var(--content)) 256px;
    justify-content: space-between;
    column-gap: 64px;
    align-items: start;
  }

  .toc {
    display: block;
    position: sticky;
    top: calc(var(--nav-top) + var(--nav-height) + 24px);
    max-height: calc(100vh - var(--nav-top) - var(--nav-height) - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
}

/* Mobile trigger */
.toc-trigger { display: none; }

@media (max-width: 1023px) {
  .js .toc-trigger {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 16px 8px 12px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--color-ink-05);
    cursor: pointer;
    font-size: 14px;
    font-weight: var(--weight-medium);
    line-height: 20px;
    letter-spacing: -0.02em;
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--duration-press) var(--ease-out), background-color var(--duration-hover) ease;
  }
  .toc-trigger svg { flex: none; }
  .toc-trigger:active { transform: scale(0.97); }
}

@media (hover: hover) and (pointer: fine) {
  .toc-trigger:hover { background: var(--color-ink-08); }
}

/* Bottom sheet. The dialog is the full-screen scrim; the panel slides. */
.toc-sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0);
  color: inherit;
  transition: background-color 300ms ease;
}
.toc-sheet::backdrop { background: transparent; }
.toc-sheet[data-state="open"] { background: rgba(0, 0, 0, 0.32); }

html:has(.toc-sheet[open]) { overflow: hidden; }

.toc-sheet__panel {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  max-height: 85dvh;
  padding: 8px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: var(--color-bg);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(100%);
  /* Exit: same path out, a touch quicker than the entrance */
  transition: transform 300ms var(--ease-drawer);
}
.toc-sheet[data-state="open"] .toc-sheet__panel {
  transform: none;
  transition-duration: 450ms;
}

.toc-sheet__handle {
  flex: none;
  width: 36px;
  height: 5px;
  margin: 0 auto 8px;
  border-radius: var(--radius-pill);
  background: var(--color-ink-08);
}

.toc-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
}

.toc-sheet__title {
  font-size: 20px;
  font-weight: var(--weight-semibold);
  font-variation-settings: var(--opsz-display);
  line-height: 28px;
  letter-spacing: -0.02em;
}

.toc-sheet__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  cursor: pointer;
  color: var(--color-ink-64);
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--duration-press) var(--ease-out);
}
.toc-sheet__close svg { transform: rotate(45deg); }
.toc-sheet__close:active { transform: scale(0.94); }

.toc-sheet nav {
  min-height: 0;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.toc__list--sheet a {
  margin-inline: -10px;
  padding-block: 10px;   /* 44px rows */
  font-size: 16px;
  line-height: 24px;
}

/* ==========================================================================
   Motion
   First load: nav drops in, copy cascades, image rises (seen once per visit).
   Scroll: FAQ and wordmark rise in once. Accordion: see .faq__answer.
   CSS keyframes so the entrance stays smooth while images decode.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .nav { animation: enter-down 700ms var(--ease-out) backwards; }

  .hero__title,
  .hero__subtitle,
  .hero__actions { animation: enter-up 800ms var(--ease-out) backwards; }
  .hero__title    { animation-delay: 80ms; }
  .hero__subtitle { animation-delay: 150ms; }
  .hero__actions  { animation-delay: 220ms; }

  .hero-visual picture {
    display: block;
    animation:
      visual-rise 1200ms var(--ease-out) 300ms backwards,
      float 6s var(--ease-in-out-sine) 1.5s infinite alternate;
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 700ms var(--ease-out), transform 1000ms var(--ease-out);
  }
  .js [data-reveal].is-inview { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav,
  .hero__copy,
  .hero__actions,
  .hero-visual { animation: fade-in 400ms ease backwards; }

  .js [data-reveal] { opacity: 0; transition: opacity 400ms ease; }
  .js [data-reveal].is-inview { opacity: 1; }

  .faq__answer,
  .js .faq__item[data-open="false"] .faq__answer,
  .faq__icon { transition-duration: 0s; }

  /* TOC: indicator jumps; sheet fades instead of sliding */
  .toc.is-ready .toc__indicator { transition: opacity 150ms ease; }
  .toc-sheet__panel,
  .toc-sheet[data-state="open"] .toc-sheet__panel { transform: none; opacity: 0; transition: opacity 200ms ease; }
  .toc-sheet[data-state="open"] .toc-sheet__panel { opacity: 1; }
}

@keyframes enter-down {
  from { opacity: 0; transform: translateY(-16px) scale(0.98); }
}

@keyframes enter-up {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
}

@keyframes visual-rise {
  from { opacity: 0; transform: translateY(56px) scale(0.97); }
}

@keyframes float {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}

@keyframes fade-in {
  from { opacity: 0; }
}
