/* carrell.ai. Set like the app's page: Literata, ink, and the rubric red the app prints the words
   of Christ in. Two inks on white paper, one night band for Ask. Colours come from
   apps/desktop/assets/design-tokens.json. */

@font-face {
  font-family: "Literata";
  src: url("/fonts/literata.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --paper-2: #f5f4f1;
  --ink: #1c1d21;
  --ink-2: #55565e;
  --ink-3: #8a8b93;
  --rule: #1c1d211f;
  --rubric: #b0281f;
  --rubric-deep: #8f1f18;
  --on-rubric: #fff7f2;
  --night: #141416;
  --night-2: #1d1d21;
  --night-ink: #e9e6df;
  --night-ink-2: #a9a7a1;
  --night-rule: #ffffff1c;
  --night-rubric: #f0897c;
  --verse: #a8782f;
  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --measure: 34rem;
  --page: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--serif);
  font-optical-sizing: auto;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
::selection { background: #b0281f2e; color: inherit; }
.night ::selection { background: #f0897c40; }

a { color: inherit; text-decoration-line: underline; text-decoration-color: #b0281f73; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: text-decoration-color 0.2s; }
a:hover { text-decoration-color: var(--rubric); }
:focus-visible { outline: 2px solid var(--rubric); outline-offset: 3px; border-radius: 4px; }
.night :focus-visible { outline-color: var(--night-rubric); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

/* Small capitals, the app's chapter-heading voice. */
.caps { font-variant-caps: all-small-caps; letter-spacing: 0.08em; font-variant-numeric: lining-nums; }

/* ---------- Running head ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: #ffffffe6;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.masthead.scrolled { border-bottom-color: var(--rule); }
.masthead .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; font-variation-settings: "opsz" 36; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.masthead nav { display: flex; gap: 26px; margin-left: auto; }
.masthead nav a { text-decoration: none; color: var(--ink-2); font-size: 16px; white-space: nowrap; }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { color: var(--ink); }
.masthead nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--rubric); text-underline-offset: 0.35em; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 10px; border: 0;
  background: var(--rubric); color: var(--on-rubric);
  font: 600 17px/1 var(--serif);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px #8f1f1833, 0 6px 16px -6px #8f1f1866;
  transition: background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.button:hover { background: var(--rubric-deep); transform: translateY(-1px); box-shadow: 0 2px 4px #8f1f1833, 0 10px 22px -8px #8f1f1880; }
.button:active { transform: translateY(0); }
.button svg { width: 18px; height: 18px; flex: none; }
.button.small { white-space: nowrap; min-height: 38px; padding: 0 16px; font-size: 15px; border-radius: 8px; }
.button.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.button.quiet:hover { background: var(--paper-2); box-shadow: inset 0 0 0 1px #1c1d2133; }
.button.ink { background: var(--ink); color: var(--paper); box-shadow: 0 6px 16px -8px #1c1d2199; }
.button.ink:hover { background: #000; }
.button.paper { background: var(--on-rubric); color: var(--rubric-deep); box-shadow: 0 8px 20px -10px #00000066; }
.button.paper:hover { background: #fff; }
.button[aria-disabled="true"] { background: var(--paper-2); color: var(--ink-3); box-shadow: none; cursor: default; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.9rem, 7.4vw, 6rem);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}
.hero h1 .turn { display: block; color: var(--rubric); font-style: italic; font-weight: 450; min-height: 1em; }
.turn-word { display: inline-block; }
.turn-word.writing { animation: write 0.9s var(--ease) both; }
.turn-word.erasing { animation: erase 0.35s ease-in both; }
@keyframes write { from { clip-path: inset(-0.2em 100% -0.3em -0.1em); filter: blur(3px); } to { clip-path: inset(-0.2em -0.2em -0.3em -0.1em); filter: blur(0); } }
@keyframes erase { from { opacity: 1; } to { opacity: 0; transform: translateY(-0.08em); } }
.lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; color: var(--ink-2); max-width: 36rem; margin: 28px 0 0; text-wrap: pretty; }
.lead strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.hero-actions .alt { font-size: 16px; color: var(--ink-2); }
.fine { font-size: 15px; color: var(--ink-3); margin: 18px 0 0; }

/* The jump demo: a reference typed into the field, the page it opens. */
.stage { position: relative; margin-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(40px, 6vw, 72px); }
.jump {
  position: relative; z-index: 3;
  width: min(460px, 86%); margin: 0 auto -26px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  background: #ffffffeb; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 #ffffff inset, 0 2px 6px #1c1d2114, 0 18px 40px -16px #1c1d2155;
  font-size: 19px;
}
.jump kbd { margin-left: auto; }
.jump .typed { font-variant-numeric: lining-nums; white-space: pre; }
.jump .caret { width: 2px; height: 1.1em; background: var(--rubric); margin-left: -10px; animation: blink 1.05s steps(1) infinite; }
.jump .goes { color: var(--ink-3); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jump svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
@keyframes blink { 50% { opacity: 0; } }
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.75em; height: 1.65em; padding: 0 0.45em;
  font: 500 0.78em/1 var(--serif); font-variant-numeric: lining-nums;
  color: var(--ink-2); background: var(--paper-2);
  border-radius: 6px; box-shadow: inset 0 -1px 0 #1c1d2124, inset 0 0 0 1px #1c1d2114;
}
.night kbd { color: var(--night-ink); background: #ffffff12; box-shadow: inset 0 -1px 0 #ffffff1f, inset 0 0 0 1px #ffffff14; }

.window {
  position: relative; z-index: 1;
  border-radius: 14px; overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 2px 4px #1c1d210d, 0 24px 60px -24px #1c1d2166, 0 60px 120px -60px #1c1d2133;
}
.window img { width: 100%; }
.pages { position: relative; aspect-ratio: 2000 / 1281; }
.pages img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity 0.6s var(--ease); }
.pages img.shown { opacity: 1; }
.phone {
  border-radius: 38px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 7px #17171a, 0 0 0 8px #3a3a40, 0 30px 60px -20px #1c1d2180;
}
.phone img { width: 100%; }
.stage .phone { position: absolute; z-index: 2; right: clamp(-8px, 2vw, 32px); bottom: 0; width: clamp(150px, 19vw, 250px); }
.stage .window { margin-right: clamp(0px, 9vw, 120px); }
.hero-caption { margin: 18px 0 0; font-size: 15px; color: var(--ink-3); text-align: center; font-style: italic; }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 11vw, 140px) 0; }
.rubric, .prose .rubric { display: flex; align-items: baseline; gap: 0.5em; margin: 0 0 18px; color: var(--rubric); font-size: 17px; font-weight: 600; }
.rubric::before { content: "\00B6"; font-weight: 500; font-size: 1.2em; }
.night .rubric, .night .prose .rubric { color: var(--night-rubric); }
h2 {
  margin: 0; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.04; font-weight: 500;
  letter-spacing: -0.025em; font-variation-settings: "opsz" 72; text-wrap: balance;
}
h3 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; font-variation-settings: "opsz" 30; }
.prose { max-width: var(--measure); }
.prose p { margin: 18px 0 0; color: var(--ink-2); text-wrap: pretty; }
.prose p strong { color: var(--ink); font-weight: 600; }
.night .prose p { color: var(--night-ink-2); }
.night .prose p strong { color: var(--night-ink); }

/* A versal: the large rubricated initial that opens a passage. */
.versal::first-letter {
  float: left; margin: 0.06em 0.09em 0 0; color: var(--rubric);
  font-size: 4.1em; line-height: 0.78; font-weight: 500; font-variation-settings: "opsz" 72;
}

/* The spread: text on one page, the app on the facing page, the gutter between. */
.spread { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.spread.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.spread.flip > :first-child { order: 2; }

/* Typeset specimen: real HTML, coloured with the app's three themes. */
.specimen {
  --s-paper: #ffffff; --s-ink: #1c1d21; --s-ink-2: #6e6f76; --s-verse: #a8782f; --s-rubric: #b0281f; --s-hl: #f6e3a1;
  border-radius: 16px; padding: clamp(28px, 4vw, 56px) clamp(24px, 4.5vw, 64px) clamp(28px, 4vw, 48px);
  background: var(--s-paper); color: var(--s-ink);
  box-shadow: 0 1px 3px #1c1d2112, 0 30px 70px -36px #1c1d2166;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
  font-size: clamp(18px, 1.6vw, 21px); line-height: 1.7;
}
.specimen[data-theme="sepia"] { --s-paper: #f6eedc; --s-ink: #3a2e22; --s-ink-2: #73624e; --s-verse: #8c7a62; --s-rubric: #a3362a; --s-hl: #ead494; }
.specimen[data-theme="dark"] { --s-paper: #161618; --s-ink: #e6e3dc; --s-ink-2: #9c9ca3; --s-verse: #c49a5a; --s-rubric: #f0897c; --s-hl: #5b4c1f; }
.specimen .book { text-align: center; font-size: 2.1em; line-height: 1.1; font-weight: 400; font-variation-settings: "opsz" 72; margin: 0; }
.specimen .chapter { text-align: center; color: var(--s-verse); margin: 10px 0 22px; font-size: 0.72em; letter-spacing: 0.16em; font-variant-caps: all-small-caps; font-weight: 600; }
.specimen .super { text-align: center; color: var(--s-ink-2); font-style: italic; margin: 0 0 14px; font-size: 0.92em; }
.specimen .poem p { margin: 0; padding-left: 1.6em; text-indent: -1.6em; }
.specimen .poem p.in { padding-left: 3.2em; }
.specimen sup { color: var(--s-verse); font-size: 0.58em; font-variant-numeric: lining-nums; margin-right: 0.2em; vertical-align: 0.65em; line-height: 0; }
.specimen .lord { font-variant-caps: small-caps; letter-spacing: 0.02em; }
.specimen .red { color: var(--s-rubric); }
.specimen mark { background: var(--s-hl); color: inherit; border-radius: 3px; padding: 0.04em 0.1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background 0.5s; }
.specimen .gospel { margin: 22px 0 0; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--s-ink) 12%, transparent); }
.themes { display: flex; gap: 6px; margin-top: 16px; justify-content: center; }
.themes button {
  font: 500 15px/1 var(--serif); color: var(--ink-2); background: transparent; border: 0; border-radius: 999px;
  padding: 9px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.themes button::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px #1c1d2133; }
.themes button:hover { color: var(--ink); background: var(--paper-2); }
.themes button[aria-pressed="true"] { color: var(--ink); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); }

.points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.points li { position: relative; padding-left: 1.5em; color: var(--ink-2); }
.points li::before { content: "\00B6"; position: absolute; left: 0; color: var(--rubric); }
.points li strong { color: var(--ink); font-weight: 600; }
.night .points li { color: var(--night-ink-2); }
.night .points li strong { color: var(--night-ink); }
.night .points li::before { color: var(--night-rubric); }

/* Speed: the numbers set as a sentence, not a dashboard. */
.speed { margin-top: 36px; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.speed div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.speed b { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; color: var(--rubric); font-variation-settings: "opsz" 60; }
.speed span { color: var(--ink-2); font-size: 17px; }
.keys { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--ink-2); font-size: 16px; }
.keys span { display: inline-flex; align-items: center; gap: 6px; }

/* Keep: three phones, set like a three-column page. */
.keep-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.keep-head .prose p { margin-top: 0; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: clamp(48px, 7vw, 88px); }
.trio figure { margin: 0; }
.trio figure:nth-child(2) { margin-top: clamp(0px, 6vw, 88px); }
.trio figure:nth-child(3) { margin-top: clamp(0px, 3vw, 44px); }
.trio .phone { max-width: 300px; margin: 0 auto; }
.trio figcaption { max-width: 300px; margin: 30px auto 0; }
.trio figcaption h3 { display: flex; gap: 0.45em; align-items: baseline; }
.trio figcaption h3::before { content: "\00B6"; color: var(--rubric); font-weight: 500; }
.trio figcaption p { margin: 8px 0 0; color: var(--ink-2); font-size: 17px; }

/* Ask: the night band. */
.night { background: var(--night); color: var(--night-ink); }
.ask-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.night .phone { box-shadow: 0 0 0 7px #2a2a2f, 0 0 0 8px #44444b, 0 30px 60px -20px #000; }

/* Everywhere: a table of contents for the platforms. */
.contents { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--rule); }
.contents li { display: flex; align-items: baseline; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.contents .name { font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; letter-spacing: -0.015em; font-variation-settings: "opsz" 48; white-space: nowrap; }
.contents .detail { color: var(--ink-3); font-size: 16px; }
.contents .leader { flex: 1; min-width: 24px; border-bottom: 2px dotted #1c1d2140; transform: translateY(-0.3em); }
.contents .act { white-space: nowrap; font-size: 17px; }
.contents .act a { text-decoration-color: var(--rubric); }
.contents .later { color: var(--ink-3); font-style: italic; }

/* Close: the page drenched in rubric. */
.close { background: var(--rubric); color: var(--on-rubric); text-align: center; padding: clamp(88px, 13vw, 160px) 0; }
.close h2 { font-size: clamp(2.6rem, 7vw, 5.6rem); font-style: italic; font-weight: 450; }
.close p { margin: 22px auto 0; max-width: 30rem; color: #ffe9e2; font-size: 20px; }
.close .hero-actions { justify-content: center; }
.close .alt a { color: var(--on-rubric); text-decoration-color: #ffffff80; }
.close .alt { color: #ffe0d8; }
.close :focus-visible { outline-color: var(--on-rubric); }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(56px, 9vw, 112px) 0 clamp(36px, 5vw, 56px); }
.page-head h1 { margin: 0; font-size: clamp(2.7rem, 6.4vw, 5rem); line-height: 1; font-weight: 500; letter-spacing: -0.03em; font-variation-settings: "opsz" 72; text-wrap: balance; }
.page-head h1 em { color: var(--rubric); font-weight: 450; }

/* Download */
.platforms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.platform { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px 28px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.platform > svg { width: 40px; height: 40px; color: var(--ink); }
.platform h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; }
.platform .req { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; }
.platform .tag { display: inline-block; margin-left: 10px; color: var(--rubric); font-size: 16px; font-weight: 600; vertical-align: 0.3em; font-variant-caps: all-small-caps; letter-spacing: 0.08em; }
.platform .acts { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: flex-end; }
.platform .acts .sub { font-size: 15px; color: var(--ink-2); }
.platform.here { position: relative; }
.platform.here::before { content: "Your device"; position: absolute; top: 12px; left: 84px; font-size: 13px; color: var(--rubric); font-variant-caps: all-small-caps; letter-spacing: 0.1em; font-weight: 600; }
.platform.soon h2, .platform.soon > svg { color: var(--ink-3); }

.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); padding: clamp(56px, 8vw, 96px) 0 0; }
.notes h3 { margin-bottom: 10px; }
.notes p, .notes li { color: var(--ink-2); font-size: 16px; }
.notes ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.notes code { font-size: 14px; background: var(--paper-2); padding: 2px 6px; border-radius: 5px; font-family: ui-monospace, "SF Mono", Menlo, monospace; word-break: break-word; }

/* Pricing */
.billing { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); margin-top: 28px; }
.billing button { font: 500 16px/1 var(--serif); border: 0; background: transparent; color: var(--ink-2); padding: 11px 20px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.billing button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px #1c1d211f, 0 0 0 1px var(--rule); }
.billing .save { color: var(--rubric); font-size: 14px; font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.plan { border-radius: 16px; padding: clamp(28px, 3.6vw, 44px); display: flex; flex-direction: column; }
.plan.free { background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.plan.pro { background: var(--rubric); color: var(--on-rubric); box-shadow: 0 30px 60px -30px #8f1f1899; }
.plan h2 { font-size: 34px; }
.plan .for { margin: 8px 0 0; color: var(--ink-2); font-size: 17px; }
.plan.pro .for { color: #ffe0d8; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 4px; }
.price b { font-size: clamp(52px, 6vw, 72px); line-height: 1; font-weight: 500; letter-spacing: -0.035em; font-variant-numeric: lining-nums; font-variation-settings: "opsz" 72; }
.price span { font-size: 18px; color: var(--ink-2); }
.plan.pro .price span { color: #ffe0d8; }
.price-note { margin: 0; font-size: 15px; color: var(--ink-3); min-height: 1.6em; }
.plan.pro .price-note { color: #ffd2c7; }
.plan ul { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 1.6em; font-size: 17px; line-height: 1.45; }
.plan li::before { content: "\00B6"; position: absolute; left: 0; color: var(--rubric); }
.plan.pro li::before { color: #ffd2c7; }
.plan li span { display: block; font-size: 15px; color: var(--ink-3); }
.plan.pro li span { color: #ffd2c7; }
.plan .button { margin-top: auto; align-self: flex-start; }
.plan .where { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }
.plan.pro .where { color: #ffd2c7; }
.plan.pro .where a { color: var(--on-rubric); text-decoration-color: #ffffff80; }

.ledger { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: 17px; font-variant-numeric: lining-nums tabular-nums; }
.ledger caption { text-align: left; }
.ledger th, .ledger td { padding: 15px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.ledger thead th { border-bottom: 1px solid var(--ink); font-weight: 600; font-size: 16px; }
.ledger tbody th { font-weight: 400; color: var(--ink-2); padding-left: 0; }
.ledger td { width: 26%; }
.ledger td.pro { color: var(--rubric); font-weight: 600; }
.ledger tr.group th { padding-top: 34px; color: var(--rubric); font-weight: 600; font-variant-caps: all-small-caps; letter-spacing: 0.08em; border-bottom-color: var(--ink); }

.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.faq dl { margin: 0; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--rubric); border-bottom: 1.5px solid var(--rubric); transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 38rem; }

/* Developers */
code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
:not(pre) > code { font-size: 0.82em; background: var(--paper-2); padding: 0.12em 0.4em; border-radius: 5px; color: var(--ink); overflow-wrap: anywhere; }
.night :not(pre) > code { background: #ffffff14; color: var(--night-ink); }
.dev-head { padding-bottom: clamp(56px, 8vw, 96px); }
.dev-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.dev-hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.02; }
.dev-hero .lead strong { white-space: nowrap; }
.hero-code { margin: 0; padding: 26px 28px; box-shadow: 0 30px 70px -36px #1c1d2199; }
.code-note { color: var(--night-ink-2); }
.soon-tag { margin-left: 0.4em; padding: 0.2em 0.6em 0.25em; border-radius: 999px; background: #b0281f14; font-size: 14px; font-variant-caps: all-small-caps; letter-spacing: 0.08em; }
.waitlist { margin-top: 30px; max-width: 30rem; scroll-margin-top: 96px; }
.waitlist-row { display: flex; gap: 10px; }
.waitlist input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 16px;
  font: 400 17px/1 var(--serif); color: var(--ink); background: var(--paper);
  border: 0; border-radius: 10px; box-shadow: inset 0 0 0 1px #1c1d2133;
}
.waitlist input::placeholder { color: var(--ink-3); }
.waitlist input:focus-visible { outline: 2px solid var(--rubric); outline-offset: 1px; }
.waitlist .waitlist-status { margin: 0; font-size: 17px; }
.waitlist .waitlist-status:empty { display: none; }
.waitlist .waitlist-status[data-tone="good"] { color: var(--ink); }
.waitlist .waitlist-status[data-tone="good"]::before { content: "\00B6\00A0"; color: var(--rubric); }
.waitlist .waitlist-status[data-tone="bad"] { color: var(--rubric); margin-top: 12px; }
.waitlist.done .waitlist-row { display: none; }
.waitlist .fine { margin-top: 12px; }
.dev-band { background: var(--paper-2); }
.dev-band .spread { align-items: start; }
.dev-band .points { margin-top: 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: clamp(48px, 7vw, 80px) 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: step; border-top: 1px solid var(--night-rule); padding-top: 22px; }
.steps li::before { content: counter(step, upper-roman); display: block; color: var(--night-rubric); font-size: 15px; font-weight: 600; letter-spacing: 0.08em; margin-bottom: 12px; }
.steps h3 { font-size: 20px; color: var(--night-ink); }
.steps p { margin: 10px 0 0; color: var(--night-ink-2); font-size: 16px; line-height: 1.55; }
.night-note { margin: clamp(40px, 6vw, 64px) 0 0; padding-top: 22px; border-top: 1px solid var(--night-rule); color: var(--night-ink); font-style: italic; font-size: 19px; max-width: 44rem; }

.ref-intro { margin: 18px 0 0; color: var(--ink-2); max-width: var(--measure); }
.ref { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(40px, 6vw, 72px); align-items: start; }
.ref-toc { position: sticky; top: 92px; }
.ref-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ref-toc a { display: block; padding: 9px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); text-decoration: none; font-size: 16px; }
.ref-toc a:hover { color: var(--ink); }
.ref-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(44px, 6vw, 64px); }
.ref-sec { scroll-margin-top: 92px; }
.ref-sec h3 { font-size: 26px; letter-spacing: -0.015em; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.ref-sec > p { margin: 16px 0 0; color: var(--ink-2); max-width: 42rem; }
.ref-sec .points { margin-top: 18px; }
.ref-note { font-style: italic; }
.code {
  margin: 18px 0 0; padding: 18px 20px; border-radius: 12px; overflow-x: auto;
  background: var(--night); color: var(--night-ink); font-size: 14px; line-height: 1.6; tab-size: 2;
}
.code-tabs { margin-top: 18px; }
.code-tabs .code { margin-top: 0; border-top-left-radius: 0; }
.code-tabs .code + .code { margin-top: 12px; }
.tab-list { display: flex; gap: 2px; }
.tab-list button {
  font: 500 15px/1 var(--serif); color: var(--ink-2); background: var(--paper-2); border: 0; cursor: pointer;
  padding: 11px 16px; border-radius: 10px 10px 0 0;
}
.tab-list button:hover { color: var(--ink); }
.tab-list button[aria-selected="true"] { background: var(--night); color: var(--night-ink); }
.code-tabs:not(.ready) .tab-list { display: none; }
.code-tabs:not(.ready) .code { border-top-left-radius: 12px; }
.table-scroll { overflow-x: auto; margin-top: 18px; }
.ref-table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: lining-nums tabular-nums; }
.ref-table th, .ref-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; color: var(--ink-2); }
.ref-table thead th { border-bottom: 1px solid var(--ink); color: var(--ink); font-weight: 600; font-size: 15px; }
.ref-table td:first-child { white-space: nowrap; color: var(--ink); }
.ref-table tbody tr:first-child td { border-top: 1px solid var(--ink); }
.ref-table thead + tbody tr:first-child td { border-top: 0; }

/* Legal pages */
article { max-width: 44rem; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter) 0; }
article h1 { font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1.05; margin: 0 0 10px; font-weight: 500; letter-spacing: -0.025em; font-variation-settings: "opsz" 72; }
article h2 { font-size: 26px; margin: 44px 0 10px; letter-spacing: -0.015em; }
article .updated { color: var(--ink-3); font-size: 16px; margin: 0 0 28px; }
article p, article li { color: var(--ink-2); }
article li { margin: 6px 0; }
.soon { max-width: 44rem; margin: 0 auto; padding: clamp(80px, 14vw, 176px) var(--gutter) clamp(64px, 10vw, 128px); text-align: center; }
.soon h1 { margin: 0; font-size: clamp(3rem, 8vw, 6rem); line-height: 1; font-weight: 500; letter-spacing: -0.03em; font-variation-settings: "opsz" 72; }
.soon h1 em { color: var(--rubric); font-weight: 450; }
.soon .lead { margin-left: auto; margin-right: auto; }
.soon .hero-actions { justify-content: center; }
.lost { text-align: center; padding: clamp(96px, 16vw, 200px) var(--gutter); }
.lost h1 { font-size: clamp(3rem, 8vw, 6rem); margin: 0; font-weight: 500; font-style: italic; color: var(--rubric); letter-spacing: -0.03em; font-variation-settings: "opsz" 72; }
.lost p { color: var(--ink-2); font-size: 20px; }

/* ---------- Footer ---------- */
.colophon { border-top: 1px solid var(--rule); padding: 56px 0 48px; font-size: 16px; color: var(--ink-2); }
.colophon .wrap { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.colophon .brand { font-size: 19px; color: var(--ink); }
.colophon p { margin: 14px 0 0; max-width: 22rem; font-size: 15px; color: var(--ink-3); }
.colophon h4 { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--ink); font-variant-caps: all-small-caps; letter-spacing: 0.08em; }
.colophon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.colophon a { text-decoration: none; }
.colophon a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rubric); }

/* ---------- Narrow ---------- */
@media (max-width: 900px) {
  .masthead nav a.optional { display: none; }
  .spread, .spread.flip, .ask-grid, .keep-head, .faq { grid-template-columns: minmax(0, 1fr); }
  .spread.flip > :first-child { order: 0; }
  .trio { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .trio figure:nth-child(n) { margin-top: 0; }
  .trio .phone { max-width: 270px; }
  .plans, .notes { grid-template-columns: minmax(0, 1fr); }
  .dev-hero, .ref { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-toc { position: static; }
  .ref-toc ol { columns: 2; column-gap: 24px; }
  .ref-toc li { break-inside: avoid; }
  .colophon .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .colophon .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .masthead nav { gap: 18px; }
  .masthead nav a.optional { display: none; }
  .masthead .button.small { display: none; }
  .stage .window { margin-right: 0; }
  .stage .phone { width: 34%; right: -4px; bottom: -8px; border-radius: 22px; box-shadow: 0 0 0 4px #17171a, 0 0 0 5px #3a3a40, 0 20px 40px -16px #1c1d2180; }
  .stage { padding-bottom: 56px; }
  .jump { font-size: 17px; width: 92%; }
  .jump .goes { display: none; }
  .speed div { grid-template-columns: 5.6rem 1fr; gap: 14px; }
  .speed b { font-size: 24px; }
  .contents li { flex-wrap: wrap; gap: 4px 12px; }
  .contents .leader { display: none; }
  .contents .act { width: 100%; }
  .platform { grid-template-columns: 40px minmax(0, 1fr); padding-top: 40px; }
  .platform > svg { width: 30px; height: 30px; }
  .platform .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .platform.here::before { left: 0; top: 14px; }
  .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .code { font-size: 13px; padding: 16px; }
  .waitlist-row { flex-direction: column; }
  .ledger { font-size: 15px; }
  .ledger th, .ledger td { padding: 12px 6px; }
  .ledger td { width: 28%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media (max-width: 380px) {
  .masthead .wrap { gap: 12px; }
  .masthead nav { gap: 12px; }
  .masthead nav a { font-size: 15px; }
  .masthead nav a[href="/pricing/"] { display: none; }
  .brand { font-size: 19px; }
}
