@font-face {
  font-family: "Tiffany Laurence";
  src: url("/fonts/TiffanyLaurence-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Azeret Mono";
  src: url("/fonts/AzeretMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Tokens mirror apps/web/src/app.css in the product. */
:root {
  color-scheme: light;
  --bg: #f1f3f6;
  --surface: #ffffff;
  --sunken: #e4e7ec;
  --subtle: #f8fafc;
  --text: #090c15;
  --muted: #475467;
  --faint: #667085;
  --border: #d0d5dd;
  --border-subtle: #e2e5e9;
  --primary: #027a48;
  --primary-dark: #05603a;
  --primary-soft: #d1fadf;
  --button-bg: #090c15;
  --button-fg: #ffffff;
  --button-hover: #272b35;
  --warning: #b54708;
  --warning-soft: #fef0c7;
  --ink: #090c15;
  --paper: #f8fafc;
  --ink-muted: #a7adb8;
  --ink-line: rgb(255 255 255 / 12%);
  --ink-green: #34d399;
  --font-display: "Tiffany Laurence", Georgia, serif;
  --font-mono: "Azeret Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: 1.25rem;
  --band: 6rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a0b0e;
    --surface: #0e1015;
    --sunken: #14171f;
    --subtle: #12141b;
    --text: #f8fafc;
    --muted: #a7adb8;
    --faint: #828996;
    --border: #2a2e38;
    --border-subtle: rgb(255 255 255 / 7.5%);
    --primary: #34d399;
    --primary-dark: #6ee7b7;
    --primary-soft: #064e3b;
    --button-bg: #f8fafc;
    --button-fg: #090c15;
    --button-hover: #d0d5dd;
    --warning: #fbbf24;
    --warning-soft: #422006;
    --ink: #f1f3f6;
    --paper: #090c15;
    --ink-muted: #475467;
    --ink-line: rgb(9 12 21 / 14%);
    --ink-green: #027a48;
  }
}
@media (min-width: 720px) {
  :root { --gutter: 2rem; --band: 8rem; }
}
@media (min-width: 1100px) {
  :root { --gutter: 3.5rem; --band: 11rem; }
}

* { box-sizing: border-box; }
html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: .2rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .wordmark, .panel-title, .keep {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: -.015em;
}
h1, h2 { word-spacing: -.04em; text-wrap: balance; }
em { font-style: normal; color: var(--primary); }
dl, dd { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; }
.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1, "zero" 1;
  font-variant-numeric: tabular-nums slashed-zero;
}
.dim { color: var(--faint); }
.soft { color: var(--faint); }

.skip {
  position: absolute;
  z-index: 10;
  left: 1rem;
  top: -3rem;
  padding: .5rem .75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .3rem;
}
.skip:focus { top: 1rem; }
.wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Buttons match the product's .button, .primary, .ghost and .small. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: .4rem .9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .3rem;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.button:hover { color: var(--text); background: var(--subtle); }
.button.primary { color: var(--button-fg); background: var(--button-bg); border-color: var(--button-bg); }
.button.primary:hover { color: var(--button-fg); background: var(--button-hover); border-color: var(--button-hover); }
.button.ghost { color: var(--muted); background: transparent; border-color: transparent; }
.button.ghost:hover { color: var(--text); background: var(--sunken); }
.button.large { min-height: 3rem; padding: .6rem 1.3rem; font-size: .95rem; }
.button.small { min-height: 2rem; padding: .25rem .8rem; font-size: .78rem; }
.button:disabled { cursor: default; opacity: .5; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Header */
.site-header { position: relative; z-index: 2; }
.header-row { display: flex; align-items: center; gap: 2.5rem; min-height: 5rem; }
.wordmark { color: var(--text); font-size: 1.85rem; line-height: 1; }
.wordmark:hover { color: var(--text); }
.wordmark > span { color: var(--primary); }
.header-nav { display: none; gap: 2rem; font-size: .9rem; font-weight: 500; }
.header-nav a { color: var(--muted); }
.header-nav a:hover { color: var(--text); }
.header-actions { display: flex; gap: .4rem; margin-left: auto; }
@media (max-width: 479px) { .header-actions .ghost { display: none; } }
@media (min-width: 860px) { .header-nav { display: flex; } }

.terrain { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.site-header, main, .site-footer { position: relative; z-index: 1; }
.site-header { z-index: 5; }

/* Layout */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
::selection { color: var(--text); background: var(--primary-soft); }
:root { --stage: #0b2a1f; --stage-rule: rgb(52 211 153 / 9%); --shadow: 0 1px 2px rgb(9 12 21 / 6%), 0 24px 48px -12px rgb(9 12 21 / 22%); }
@media (prefers-color-scheme: dark) {
  :root { --stage: #0c1f18; --stage-rule: rgb(52 211 153 / 7%); --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 24px 48px -12px rgb(0 0 0 / 60%); }
}
.grid { display: grid; gap: 2rem; }
@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; }
  .split > :first-child { grid-column: 1 / 6; }
  .split > :last-child { grid-column: 7 / -1; }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  transition: border-color .3s ease;
}
.site-header.scrolled, .site-header:not([data-header]) { border-bottom-color: var(--border-subtle); }
.section { padding: clamp(5rem, 11vw, 10rem) 0; }
.section-title {
  max-width: 20ch;
  margin: 0 0 1.5rem;
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  line-height: 1;
}
.prose p, .prose-lede {
  max-width: 34rem;
  margin-top: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.15vw, 1.12rem);
  line-height: 1.65;
}
.prose p:last-child { margin-bottom: 0; }
@media (min-width: 1000px) {
  .split .section-title { margin-bottom: 0; }
  .split .prose, .split .prose-lede { padding-top: .6rem; }
}
.lede {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.6;
}
.display { margin: 0; font-size: clamp(3rem, 6.5vw, 6.5rem); line-height: .92; }
.hero-foot { display: grid; gap: 2rem; margin-top: clamp(2rem, 4vw, 3.5rem); align-items: end; }
@media (min-width: 960px) { .hero-foot { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; } }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(4rem, 8vw, 7rem); }
.hero-head { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 1100px) {
  .hero-head { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 4rem; }
}
.hero-title {
  margin: 0;
  font-size: clamp(3rem, 6.6vw, 6.6rem);
  line-height: .92;
  letter-spacing: -.02em;
}
.hero-title .line { display: block; white-space: nowrap; }
@media (max-width: 599px) { .hero-title .line { white-space: normal; } }
.hero-side .actions { margin-top: 1.75rem; }

.rotator {
  position: relative;
  display: inline-block;
  vertical-align: bottom;
  color: var(--primary);
  white-space: nowrap;
  clip-path: inset(-.25em -.2em -.32em -.05em);
  transition: width .75s var(--ease);
}
.rotator-word { display: inline-block; }
.js .rotator-word { transition: transform .75s var(--ease), opacity .55s ease, filter .55s ease; }
.rotator-word.enter, .rotator-word.leave { position: absolute; left: 0; top: 0; }
.rotator-word.enter { transform: translateY(70%); opacity: 0; filter: blur(8px); }
.rotator-word.leave { transform: translateY(-70%); opacity: 0; filter: blur(8px); }

/* The stage: the product on ledger paper */
.stage {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding: clamp(1.25rem, 4.5vw, 4.5rem) clamp(1.25rem, 4.5vw, 4.5rem) 0;
  overflow: hidden;
  background-color: var(--stage);
  background-image:
    linear-gradient(90deg, transparent calc(4rem - 1px), rgb(52 211 153 / 18%) calc(4rem - 1px), rgb(52 211 153 / 18%) 4rem, transparent 4rem),
    repeating-linear-gradient(180deg, transparent 0 calc(2rem - 1px), var(--stage-rule) calc(2rem - 1px) 2rem);
  border-radius: .75rem;
}
.stage-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .5rem .5rem 0 0;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 8%), 0 30px 80px -20px rgb(0 0 0 / 55%);
}
.agent {
  margin: 1.25rem 0 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: .6rem;
  box-shadow: var(--shadow);
  font-size: .9rem;
  overflow: hidden;
}
@media (min-width: 900px) {
  .agent {
    position: absolute;
    left: clamp(1.25rem, 3vw, 3rem);
    bottom: clamp(1.25rem, 3vw, 3rem);
    width: min(24rem, 38%);
    margin: 0;
  }
}
.agent-bar {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border-subtle);
  font-size: .78rem;
}
.agent-bar [data-agent] { color: var(--text); font-weight: 600; }
.agent-dot { width: .45rem; height: .45rem; background: var(--primary); border-radius: 50%; box-shadow: 0 0 0 3px var(--primary-soft); }
.thread { display: grid; gap: .8rem; min-height: 19.5rem; align-content: start; padding: 1rem; }
.msg { margin: 0; line-height: 1.5; }
.msg.you {
  justify-self: end;
  max-width: 85%;
  padding: .55rem .8rem;
  background: var(--sunken);
  border-radius: .6rem .6rem .15rem .6rem;
}
.msg.bot > p { margin: 0 0 .5rem; }
.msg .mono { font-size: .88em; }
.owed { border-top: 1px solid var(--border-subtle); font-size: .82rem; }
.owed li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .38rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.owed li > span:first-child { color: var(--muted); }
.owed .late { color: var(--warning); font-weight: 600; }
.ask {
  padding: .75rem .85rem;
  background: var(--subtle);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--warning);
  border-radius: .4rem;
}
.ask-title { margin: 0 0 .65rem; font-size: .85rem; font-weight: 500; }
.ask-actions { display: flex; gap: .4rem; }
.ask-done { display: none; margin: 0; color: var(--muted); font-size: .85rem; }
.ask[data-state] .ask-actions { display: none; }
.ask[data-state="sent"] { border-left-color: var(--primary); }
.ask[data-state="sent"] [data-done="sent"], .ask[data-state="held"] [data-done="held"] { display: block; }
.ask[data-state="sent"] [data-done="sent"] { color: var(--primary); font-weight: 600; }
.replay {
  margin-left: .4rem;
  padding: 0;
  color: var(--faint);
  background: none;
  border: 0;
  font: inherit;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.replay:hover { color: var(--text); }
html:not(.js) .ask-actions { display: none; }
.js .agent [data-step]:not(.shown) { display: none; }
.typing { display: inline-flex; gap: .25rem; padding: .3rem 0; }
.typing i { width: .32rem; height: .32rem; background: var(--faint); border-radius: 50%; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.works {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem 2.25rem;
  padding: 1.75rem 0 0;
  color: var(--faint);
}
.works ul { display: flex; flex-wrap: wrap; gap: .5rem 2.25rem; }
.works li {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  letter-spacing: -.015em;
  line-height: 1;
}
.works-label, .works-note { font-size: .85rem; }

/* Entrance and reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line { animation: rise 1.1s var(--ease) both; }
  .js .hero-title .line:nth-child(2) { animation-delay: .08s; }
  .js .hero-side { animation: rise 1.1s var(--ease) .2s both; }
  .js .stage { animation: stage-in 1.4s var(--ease) .3s both; }
  .js .stage-shot { animation: rise 1.4s var(--ease) .45s both; }
  .js .agent { animation: rise 1s var(--ease) 1s both; }
  .js .agent [data-step].shown { animation: rise .55s var(--ease) both; }
  .js .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: none; }
}
@keyframes stage-in {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: none; }
}

/* Transcript */
.transcript { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--border); }
.transcript li {
  display: grid;
  gap: .6rem;
  padding: clamp(1.4rem, 2.4vw, 2rem) 0;
  border-bottom: 1px solid var(--border-subtle);
}
@media (min-width: 1000px) {
  .transcript li { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; align-items: baseline; }
  .transcript q { grid-column: 1 / 6; }
  .transcript p { grid-column: 7 / -1; }
}
.transcript q {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.1vw, 1.95rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  quotes: "\201C" "\201D";
}
.transcript p { max-width: 32rem; margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
.transcript .mono, .prose .mono { color: var(--text); font-size: .92em; }

/* Invoice papers */
.paper-fan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 2vw, 2rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(1.5rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem);
  background: var(--sunken);
  border-radius: .75rem;
}
.paper { margin: 0; }
.paper img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: .2rem;
  box-shadow: var(--shadow);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.paper:nth-child(1) img { transform: rotate(-1.5deg) translateY(.6rem); }
.paper:nth-child(3) img { transform: rotate(1.5deg) translateY(.6rem); }
.paper:hover img { transform: translateY(-.5rem); }
.paper figcaption { margin-top: 1.1rem; color: var(--muted); font-size: .88rem; text-align: center; }
.paper-more { margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; color: var(--muted); text-align: center; }
@media (max-width: 699px) {
  .paper-fan { grid-template-columns: minmax(0, 1fr); max-width: 24rem; margin-left: auto; margin-right: auto; }
  .paper:nth-child(n) img { transform: none; }
}

/* Payments */
@media (min-width: 1000px) {
  .payments-copy { grid-column: 1 / 6; align-self: center; }
  .payments .window { grid-column: 7 / -1; }
  .report-copy { grid-column: 1 / 6; }
  .statement { grid-column: 7 / -1; }
}
.stat { display: flex; align-items: baseline; gap: 1rem; margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.stat-figure { color: var(--primary); font-family: var(--font-display); font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: .8; letter-spacing: -.03em; }
.stat-label { color: var(--muted); font-size: .95rem; }
.window {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: .6rem;
  box-shadow: var(--shadow);
}
.window img { display: block; width: 100%; height: auto; }

/* Statement */
.statement { margin: 0; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--surface); border: 1px solid var(--border-subtle); border-radius: .6rem; }
.statement-title { margin: 0 0 1.25rem; font-family: var(--font-display); font-size: clamp(1.5rem, 2vw, 1.9rem); letter-spacing: -.015em; }
.statement-rows { border-top: 1px solid var(--text); }
.statement-rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--border-subtle); }
.statement-rows dt { color: var(--muted); }
.statement-rows .net { margin-top: .3rem; padding: 1rem 0; border-top: 1px solid var(--text); border-bottom: 3px double var(--text); }
.statement-rows .net dt { color: var(--text); font-weight: 600; }
.statement-rows .net dd { color: var(--primary); font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 600; }

/* What it doesn't do */
.confessions { border-top: 1px solid var(--border); }
.confessions li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -.01em;
}

/* Trust: an inverted band */
.trust { color: var(--paper); background: var(--ink); }
.trust .prose p { color: var(--ink-muted); }

/* Pricing */
.plans { display: grid; gap: 2.5rem; margin-top: clamp(3rem, 5vw, 4.5rem); }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.plan { padding-top: 1.25rem; border-top: 1px solid var(--text); }
.plan h3 { margin-bottom: 1.25rem; font-size: clamp(2rem, 2.8vw, 2.6rem); line-height: 1; }
.plan ul { border-top: 1px solid var(--border-subtle); }
.plan li { padding: .75rem 0; border-bottom: 1px solid var(--border-subtle); color: var(--muted); font-size: .95rem; }
.plan li:first-child { color: var(--text); font-weight: 600; }
.fineprint { max-width: 44rem; margin: 2.5rem 0 0; color: var(--faint); font-size: .92rem; }

/* Finale */
.finale { padding-top: 0; }
.finale-card {
  padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 6vw, 6rem);
  color: #f8fafc;
  background-color: var(--stage);
  background-image: repeating-linear-gradient(180deg, transparent 0 calc(2rem - 1px), var(--stage-rule) calc(2rem - 1px) 2rem);
  border-radius: .75rem;
}
.finale-title { max-width: 14ch; margin: 0 0 1.5rem; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: .95; }
.finale-card .prose-lede { color: #a7adb8; margin-bottom: 2rem; }
.finale-card .button { color: #090c15; background: #f8fafc; border-color: #f8fafc; }
.finale-card .button:not(.primary) { color: #f8fafc; background: transparent; border-color: rgb(255 255 255 / 25%); }
.finale-card .button:not(.primary):hover { background: rgb(255 255 255 / 8%); }

/* Footer */
.site-footer { border-top: 1px solid var(--border-subtle); }
.footer-grid { display: grid; gap: 2rem 3rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
}
.footer-brand p { margin: .75rem 0 0; color: var(--muted); font-size: .9rem; }
.footer-grid nav { display: grid; gap: .55rem; align-content: start; font-size: .9rem; }
.footer-grid nav a { color: var(--muted); }
.footer-grid nav a:hover { color: var(--text); }
.footer-legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.5rem;
  color: var(--faint);
  border-top: 1px solid var(--border-subtle);
  font-size: .8rem;
}
@media (max-width: 379px) {
  .header-row .wordmark { font-size: 1.5rem; }
  .header-actions .button { padding: .35rem .6rem; font-size: .78rem; }
}

/* Legal documents */
.doc-page { padding: clamp(3rem, 7vw, 6rem) 0 var(--band); }
.doc-head { max-width: 50rem; margin-bottom: 3rem; }
.doc-head h1 { margin-bottom: 1rem; font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: .95; }
.doc-meta { color: var(--muted); font-size: .92rem; }
.doc-layout { display: grid; gap: 3rem; }
@media (min-width: 1000px) {
  .doc-layout { grid-template-columns: 15rem minmax(0, 46rem); gap: 5rem; }
  .doc-toc { position: sticky; top: 2rem; align-self: start; }
}
.doc-toc ol { display: grid; gap: .4rem; font-size: .85rem; }
.doc-toc a { color: var(--muted); }
.doc-toc a:hover { color: var(--text); }
.doc-body { font-size: 1rem; line-height: 1.7; }
.doc-body h2 {
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.05;
  scroll-margin-top: 1.5rem;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 {
  margin: 1.75rem 0 .5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}
.doc-body p, .doc-body li { color: var(--muted); }
.doc-body strong { color: var(--text); font-weight: 600; }
.doc-body ul, .doc-body ol.list { margin: 0 0 1rem; padding-left: 1.25rem; list-style: disc; }
.doc-body ol.list { list-style: decimal; }
.doc-body li + li { margin-top: .4rem; }
.doc-body .plain {
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.5rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--primary);
  border-radius: .3rem;
  font-size: .95rem;
}
.doc-body table { width: 100%; margin: 0 0 1.5rem; border-collapse: collapse; font-size: .9rem; }
.doc-body th {
  padding: 0 .75rem .5rem 0;
  color: var(--faint);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.doc-body td {
  padding: .75rem .75rem .75rem 0;
  color: var(--muted);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}
.doc-body td:first-child { color: var(--text); font-weight: 500; }
@media (max-width: 639px) {
  .doc-body table, .doc-body tbody, .doc-body tr, .doc-body td { display: block; }
  .doc-body thead { display: none; }
  .doc-body tr { padding: .75rem 0; border-bottom: 1px solid var(--border-subtle); }
  .doc-body td { padding: .1rem 0; border: 0; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
