/*
 * The website: the front page and the pages beside it (terms, privacy, ...). Calm on purpose, like the app: near-monochrome surfaces,
 * hairline borders, one ember accent, solid ink for the main action. The words that carry meaning stay at 4.5:1 or better on every
 * surface in both colour schemes (apps/web/test/site.test.ts counts); the accent is for shapes and large type, never for a sentence.
 */

/* Registered so that the accent inside the phone can change colour smoothly when the little show asks it to turn green. */
@property --a { syntax: '<color>'; inherits: true; initial-value: #ff6a3d; }

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --soft: #f6f6f4;
  --raise: #ffffff;
  --text: #111111;
  --muted: #6b6b70;
  --line: #e9e9e6;
  --ink: #111111;
  --on-ink: #ffffff;
  --accent: #ff6a3d;
  --grad-a: #f76234;
  --grad-b: #e8431a;
  --glow: rgba(255, 106, 61, 0.3);
  --ok: #2fa36b;
  --bezel: #121214;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 18px 48px -18px rgba(17, 17, 17, 0.22);
  --shadow-lg: 0 2px 4px rgba(17, 17, 17, 0.06), 0 40px 90px -30px rgba(17, 17, 17, 0.45);
  --radius: 22px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI Variable Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --header: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --soft: #131316;
    --raise: #17171a;
    --text: #f3f3f1;
    --muted: #8e8e94;
    --line: #26262b;
    --ink: #f3f3f1;
    --on-ink: #0b0b0c;
    --accent: #ff7a52;
    --grad-a: #ff8a5c;
    --grad-b: #ff6a3d;
    --glow: rgba(255, 122, 82, 0.22);
    --ok: #3bb37c;
    --bezel: #2b2b30;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 48px -18px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.5), 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 50; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* The buttons that open the app are shown only on a server that serves it (it marks the page `data-app`); the other is shown otherwise. */
.needs-app { display: none !important; }
html[data-app] .needs-app { display: inline-flex !important; }
html[data-app] .no-app { display: none !important; }

/* ---- header ------------------------------------------------------------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.mark { width: 30px; height: 30px; flex: none; }
.links { display: flex; gap: 28px; }
.links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.15s; }
.links a:hover { color: var(--text); }
@media (max-width: 820px) { .links { display: none; } }

/* ---- buttons ------------------------------------------------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 16px/1 var(--font);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s;
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px var(--ink); }
.btn-line { border-color: var(--line); background: var(--raise); color: var(--text); }
.btn-line:hover { border-color: var(--muted); }
.btn[aria-disabled='true'] { color: var(--muted); background: var(--soft); border-color: var(--line); cursor: default; }
.btn svg { width: 18px; height: 18px; }

/* ---- hero --------------------------------------------------------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; padding: 56px 0 96px; }
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -6%;
  width: min(86vw, 980px);
  height: 100%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.1rem); line-height: 1.01; letter-spacing: -0.045em; font-weight: 750; text-wrap: balance; }
.grad { background: linear-gradient(110deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

@media (max-width: 900px) {
  .hero { padding: 32px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* ---- the phone ---------------------------------------------------------------------------------------------------------- */

.stagebox { position: relative; display: grid; place-items: center; min-height: 560px; }
.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19;
  padding: 9px;
  border-radius: 46px;
  background: var(--bezel);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  transform: perspective(1500px) rotateY(-9deg) rotateX(3deg) rotateZ(1deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.phone:hover { transform: perspective(1500px) rotateY(-3deg) rotateX(1deg); }
.screen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 38px; background: var(--bg); color: var(--text); font-size: 13px; line-height: 1.35; }
.island { position: absolute; z-index: 3; top: 10px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 99px; background: #000; }
.status { display: flex; justify-content: space-between; padding: 14px 24px 0; font-size: 12px; font-weight: 650; }
.status i { font-style: normal; letter-spacing: 2px; }

.app { --a: var(--accent); flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px 18px 0; transition: --a 0.6s; }
.app.green { --a: var(--ok); }
.app-head { display: flex; align-items: baseline; justify-content: space-between; }
.app-head b { font-size: 24px; letter-spacing: -0.03em; }
.app-head span { color: var(--muted); font-size: 12px; }
.streak { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--soft); }
.ring { width: 46px; height: 46px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .track { stroke: var(--line); }
.ring .fill { stroke: var(--a); stroke-linecap: round; stroke-dasharray: 113; stroke-dashoffset: 28; transition: stroke 0.6s; }
.streak b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.streak span { color: var(--muted); font-size: 12px; }
.habits { display: grid; gap: 8px; }
.habit { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--raise); font-weight: 560; }
.tick { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border: 2px solid var(--line); border-radius: 50%; transition: background 0.4s, border-color 0.4s; }
.tick svg { width: 11px; height: 11px; stroke: #fff; stroke-width: 3.4; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 0.3s; }
.habit.done .tick { background: var(--a); border-color: var(--a); }
.habit.done .tick svg { opacity: 1; }
.add { margin-top: auto; padding: 12px; border-radius: 999px; background: var(--ink); color: var(--on-ink); text-align: center; font-weight: 650; }

.chat { display: grid; gap: 7px; padding: 12px 14px 16px; border-top: 1px solid var(--line); background: var(--bg); }
.msgs { display: grid; align-content: end; gap: 6px; min-height: 126px; }
.bubble { justify-self: end; max-width: 88%; padding: 8px 12px; border-radius: 16px 16px 4px 16px; background: var(--ink); color: var(--on-ink); font-weight: 520; }
.bubble.typing::after { content: ''; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -2px; background: currentColor; animation: caret 0.9s steps(1) infinite; }
.state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 560; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: bounce 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
.state .ok { display: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ok); }
.state .ok svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; padding: 2px; }
.state .done-t { display: none; }
.state.ready .building { display: none; }
.state.ready .done-t { display: inline; }
.state.ready .dots { display: none; }
.state.ready .ok { display: block; }
.composer { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 12px; }

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raise);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.chip svg { width: 18px; height: 18px; stroke: var(--ok); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.chip small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.chip.pub { right: -6px; bottom: 15%; opacity: 0; transform: translateY(14px) scale(0.96); transition: opacity 0.5s, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.chip.pub.on { opacity: 1; transform: none; }
.chip.live { z-index: 4; left: -18px; top: 14%; }
.chip .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2s ease-out infinite; }
@media (max-width: 900px) { .chip.live { left: 4px; } .chip.pub { right: 4px; } .stagebox { min-height: 520px; } }
@media (max-width: 420px) { .chip.live { display: none; } }

/* Where the page runs its little show: the `js` class says a script will, so with none the finished picture stays. */
.js .phone.play .stage-anim { opacity: 0; transform: translateY(8px); }
.js .phone.play .stage-anim.on { opacity: 1; transform: none; }
.stage-anim { transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .phone.play .msg-anim:not(.on) { display: none; }
.js .phone.play .state:not(.on) { visibility: hidden; }

@keyframes caret { 50% { opacity: 0; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }

/* ---- sections ----------------------------------------------------------------------------------------------------------- */

.section { padding: 104px 0; }
.section.soft { background: var(--soft); }
.title { margin-top: 0; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 720; text-wrap: balance; }
@media (max-width: 700px) { .section { padding: 72px 0; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.step { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raise); }
.step .n { font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }
.step svg { width: 34px; height: 34px; margin: 26px 0 22px; stroke: var(--text); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 23px; letter-spacing: -0.03em; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; margin-top: 40px; } }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; }
.card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 200px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raise); }
.card h3 { font-size: 21px; letter-spacing: -0.03em; line-height: 1.15; }
.card.w3 { grid-column: span 3; }
.card.w2 { grid-column: span 2; }
.card.w4 { grid-column: span 4; }
@media (max-width: 960px) { .card.w2, .card.w3, .card.w4 { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; margin-top: 40px; } .card.w2, .card.w3, .card.w4 { grid-column: auto; } .card { min-height: 0; } }

.viz { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); font-size: 14px; font-weight: 600; }
.pill.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.versions { display: flex; align-items: center; gap: 8px; }
.versions .v { padding: 7px 13px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 14px; font-weight: 650; color: var(--muted); }
.versions .v.last { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.versions .arrow { width: 22px; height: 2px; background: var(--line); }
.notice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); box-shadow: var(--shadow); max-width: 340px; }
.notice img, .notice .mark { width: 34px; height: 34px; border-radius: 9px; }
.notice b { display: block; font-size: 14px; letter-spacing: -0.01em; }
.notice span { color: var(--muted); font-size: 13px; }
.url { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); font: 600 15px/1 var(--font); }
.url svg { width: 15px; height: 15px; stroke: var(--ok); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.url .host { gap: 0; } .url .host i { font-style: normal; color: var(--muted); font-weight: 500; }
.seg { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); }
.seg span { padding: 9px 20px; border-radius: 999px; font-weight: 650; font-size: 15px; color: var(--muted); }
.seg span.on { background: var(--raise); color: var(--text); box-shadow: var(--shadow); }

/* ---- pricing ------------------------------------------------------------------------------------------------------------ */

.ladder { margin-top: 56px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raise); overflow: hidden; }
.tier { border-top: 1px solid var(--line); transition: background 0.2s; }
.tier:first-child { border-top: 0; }
.tier:hover { background: var(--soft); }
.tier-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(0, 1.6fr) minmax(130px, 0.7fr); align-items: center; gap: 28px; padding: 24px 30px; color: inherit; text-decoration: none; }
/* A plan is a link where the app is served from here: the row's end is an arrow, the one thing that says so. */
html[data-app] .tier-row.needs-app { display: grid !important; grid-template-columns: minmax(150px, 1.1fr) minmax(0, 1.6fr) minmax(130px, 0.7fr) 14px; }
.tier-row.needs-app:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; border-radius: var(--radius); }
.go { width: 9px; height: 9px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s, border-color 0.2s; }
.tier:hover .go { border-color: var(--text); transform: translateX(3px) rotate(45deg); }
.tier h3 { font-size: 22px; letter-spacing: -0.03em; }
.meter { display: grid; gap: 8px; }
.meter b { font-size: 15px; letter-spacing: -0.01em; }
.meter i { display: block; height: 8px; width: 100%; border-radius: 99px; background: var(--soft); overflow: hidden; }
.tier:hover .meter i { background: var(--bg); }
.meter i::after { content: ''; display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); }
.price { justify-self: end; text-align: right; font-size: 26px; font-weight: 720; letter-spacing: -0.04em; white-space: nowrap; }
.price small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
@media (max-width: 760px) {
  .tier-row, html[data-app] .tier-row.needs-app { grid-template-columns: 1fr auto; gap: 14px 16px; padding: 22px 22px; }
  .go { display: none; }
  .meter { grid-column: 1 / -1; grid-row: 2; }
}
.fine { margin-top: 20px; color: var(--muted); font-size: 14px; max-width: 70ch; }

/* ---- questions ---------------------------------------------------------------------------------------------------------- */

.faq { margin-top: 48px; max-width: 800px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: 20px; font-weight: 640; letter-spacing: -0.025em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { padding: 0 48px 26px 0; color: var(--muted); max-width: 62ch; }

/* ---- the last call ------------------------------------------------------------------------------------------------------ */

.finale { position: relative; overflow: hidden; margin: 0 auto; padding: 88px 24px; text-align: center; border-radius: 34px; background: var(--ink); color: var(--on-ink); }
.finale::before { content: ''; position: absolute; inset: auto -10% -60% -10%; height: 90%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%); filter: blur(10px); pointer-events: none; }
.finale > * { position: relative; }
.finale h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.045em; line-height: 1.02; font-weight: 740; }
.finale .cta { justify-content: center; margin-top: 34px; }
.finale .btn-ink { background: var(--on-ink); color: var(--ink); }
.finale .btn-line { background: transparent; color: var(--on-ink); border-color: color-mix(in srgb, var(--on-ink) 30%, transparent); }
.finale .btn[aria-disabled='true'] { background: color-mix(in srgb, var(--on-ink) 12%, transparent); color: color-mix(in srgb, var(--on-ink) 80%, transparent); border-color: transparent; }

/* ---- footer ------------------------------------------------------------------------------------------------------------- */

.foot { margin-top: 104px; padding: 56px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.foot-brand { max-width: 260px; }
.foot-brand .brand { color: var(--text); }
.foot-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.foot-cols h3 { margin-bottom: 14px; color: var(--text); font-size: 14px; font-weight: 650; }
.foot-cols a { display: block; padding: 5px 0; text-decoration: none; }
.foot-cols a:hover { color: var(--text); text-decoration: underline; }
.copy { margin-top: 48px; font-size: 14px; }

/* ---- pages with words: terms, privacy, ... ------------------------------------------------------------------------------ */

.doc { display: grid; grid-template-columns: 220px minmax(0, 720px); justify-content: center; gap: 64px; padding: 72px 0 24px; }
.doc header { grid-column: 1 / -1; max-width: 720px; margin-bottom: 8px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 740; }
.doc .meta { margin-top: 12px; color: var(--muted); font-size: 15px; }
.doc .intro { margin-top: 20px; font-size: 19px; line-height: 1.5; color: var(--text); }
.toc { position: sticky; top: calc(var(--header) + 24px); align-self: start; display: grid; gap: 2px; font-size: 14px; }
.toc b { margin-bottom: 8px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc a { padding: 5px 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
.prose h2 { margin: 48px 0 12px; font-size: 24px; letter-spacing: -0.03em; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; font-size: 18px; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--text); }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0; padding-left: 22px; list-style: disc; display: grid; gap: 10px; }
.prose li::marker { color: var(--muted); }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose table { display: block; overflow-x: auto; width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; }
  .toc { position: static; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
}

/* ---- reveal as it scrolls into view -------------------------------------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

.reveal-all .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .phone, .phone:hover { transform: none; }
}
