/* Subtextual landing — "Page and margin".
   Tokens are shared with the 8 Oct app design study (src/study.css) so the
   site and the writing space read as one product. */
:root {
  --paper: #fcfbf8;
  --chrome: #f6f5f1;
  --margin: #f3f2ed;
  --ink: #23262a;
  --ink-soft: #464b51;
  --muted: #62666b;
  --line: #e3e1da;
  --line-strong: #d3d0c7;
  --accent: #2f5b82;
  --accent-ink: #264d70;
  --accent-wash: #e5edf5;
  --linked-wash: #eaf0f6;
  --focus: #3d74a8;
  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
  --identity: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --masthead: 76px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--masthead) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 30; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Shared elements ---------- */
.eyebrow { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2, .faq-head h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.section-intro { color: var(--ink-soft); font-size: 18px; margin: 18px 0 0; max-width: 620px; }
.fine { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px;
  border-radius: 8px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff;
  font: 600 16px/1.2 var(--sans); text-decoration: none;
  transition: background-color 160ms ease, transform 160ms var(--ease);
}
.button:hover { background: var(--accent-ink); text-decoration: none; }
.button:active { transform: translateY(1px); }
.button-small { min-height: 38px; padding: 8px 14px; font-size: 14px; border-radius: 7px; }
.button-quiet { background: transparent; color: var(--accent-ink); border-color: var(--line-strong); }
.button-quiet:hover { background: var(--accent-wash); border-color: var(--accent); }
.quiet-link { color: var(--ink-soft); font-size: 15px; }
.shot {
  position: relative; overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(35, 38, 42, 0.04), 0 28px 56px -32px rgba(35, 38, 42, 0.32);
}
.shot img { width: 100%; }

/* ---------- Masthead: one quiet line, like the app's ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: rgba(252, 251, 248, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
@supports (backdrop-filter: blur(8px)) { .masthead { background: rgba(252, 251, 248, 0.82); backdrop-filter: blur(10px) saturate(1.1); } }
.masthead.is-scrolled { border-bottom-color: var(--line); }
.masthead-inner {
  display: flex; align-items: center; gap: 28px;
  height: var(--masthead);
  max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
}
.masthead-nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.masthead-nav a { text-decoration: none; color: var(--ink-soft); }
.masthead-nav a:hover { color: var(--ink); text-decoration: underline; }

/* Accepted lockup (logo-lockup-refined-20261007): website header = 48px mark, 30px wordmark,
   8px gap, 10px byline positioned below so it never shifts alignment. */
.lockup {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  color: #222823; text-decoration: none;
  font-family: var(--identity); font-weight: 400; letter-spacing: 0; line-height: 1;
  font-synthesis: none; font-kerning: normal;
  padding-bottom: 12px; margin-top: 12px;
}
.lockup-mark { width: 48px; height: 48px; }
.lockup-name { position: relative; font-size: 30px; }
.lockup-byline { position: absolute; left: 0; top: calc(100% + 5px); font-size: 10px; line-height: 1.2; white-space: nowrap; }
.lockup:hover { text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "lead" "actions" "shot";
  column-gap: 56px;
  padding-top: clamp(40px, 7vw, 96px);
  padding-bottom: clamp(56px, 8vw, 112px);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.3vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.022em;
}
/* Topic, then intention: the movement the product supports. */
.hero h1 span { display: block; text-wrap: balance; }
.hero-copy { display: contents; }
.hero h1 { grid-area: title; }
.hero .lead { grid-area: lead; }
.hero .actions { grid-area: actions; align-self: start; }
.hero-notes { grid-area: notes; }
.hero-shot { grid-area: shot; }
.h1-strong { color: var(--ink); }
.h1-soft { color: #6b6f74; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--ink-soft); max-width: 33em; margin: 28px 0 32px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
/* Margin notes: the page's own margin, the way Explore sits beside a draft. */
.hero-notes { align-self: start; margin-top: 30px; }
.hero-notes ul { list-style: none; margin: 0; padding: 4px 0 4px 22px; border-left: 1px solid var(--line-strong); }
.hero-notes li { position: relative; font-size: 15px; line-height: 1.5; color: var(--ink-soft); padding: 9px 0; }
.hero-notes li::before { content: ""; position: absolute; left: -26px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 1px solid var(--muted); }
.hero-notes strong { display: block; color: var(--ink); font-weight: 600; }
.hero-shot { grid-column: 1 / -1; margin: clamp(48px, 6vw, 80px) 0 0; }
.hero-frame { aspect-ratio: 1280 / 600; }
.hero-frame img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: top left; }
.hero-write { opacity: 0; pointer-events: none; }
/* One-time demonstration: the page appears first, then the margin opens. */
.js .hero-write { opacity: 1; }
.js .hero-frame.is-revealed .hero-write { opacity: 0; transition: opacity 900ms var(--ease); }
.hero-shot figcaption, .panel-shot + figcaption { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- How it works ---------- */
.how { background: var(--chrome); border-block: 1px solid var(--line); padding-block: clamp(64px, 9vw, 120px); }
.segmented {
  position: relative; display: inline-flex; gap: 2px; padding: 3px;
  background: #ecebe6; border: 1px solid var(--line); border-radius: 10px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented button {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 40px; padding: 8px 16px;
  border: 0; border-radius: 7px; background: transparent;
  font: 500 15px/1 var(--sans); color: var(--ink-soft); cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(35, 38, 42, 0.12), 0 0 0 1px rgba(35, 38, 42, 0.04); }
.segmented .n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.segmented button[aria-selected="true"] .n { color: var(--accent); }
.panels { display: grid; margin-top: 28px; }
.panel { grid-area: 1 / 1; min-width: 0; }
.js .panel { visibility: hidden; opacity: 0; transition: opacity 260ms ease, visibility 0s linear 260ms; }
.js .panel.is-active { visibility: visible; opacity: 1; transition: opacity 260ms ease; }
.panel:focus-visible { outline-offset: 6px; border-radius: 10px; }
.stage .panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.stage .panel-text { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 8px 48px; align-items: baseline; }
.stage .panel-text p { margin: 0; max-width: 40em; }
.stage .panel-text { padding-top: 4px; }
.stage .panel-text h3 { font-family: var(--serif); font-size: clamp(24px, 2.3vw, 30px); line-height: 1.2; }
.stage .panel-text p { color: var(--ink-soft); }
.panel-shot { margin: 0; aspect-ratio: 1280 / 600; }
.panel-shot img { height: 100%; object-fit: cover; object-position: top left; }
.js .stage .panel .panel-shot { transform: translateY(8px); transition: transform 420ms var(--ease); }
.js .stage .panel.is-active .panel-shot { transform: none; }
.stage-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.tabs-status { margin: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tabs-next {
  border: 0; background: transparent; color: var(--accent-ink); cursor: pointer;
  font: 500 15px/1 var(--sans); padding: 10px 4px; min-height: 44px;
}
.tabs-next:hover { text-decoration: underline; text-underline-offset: 0.22em; }
html:not(.js) .stage-foot { display: none; }
html:not(.js) .panel + .panel { margin-top: 48px; }
html:not(.js) .panels { display: block; }



/* ---------- The -text family: layers around the draft ---------- */
.family { margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line-strong);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 72px; align-items: start; }
.family-head h3 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 20px; }
.family-head > p { color: var(--ink-soft); max-width: 34em; }
.family-ai { margin: 28px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); padding-left: 16px; border-left: 2px solid var(--line-strong); }
.family-ai strong { color: var(--ink); font-weight: 600; }
.layers { margin: 0; display: flex; flex-direction: column; }
.layer { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 24px; align-items: baseline; padding: 18px 24px; border-top: 1px solid var(--line-strong); }
.layer:last-child { border-bottom: 1px solid var(--line-strong); }
.layer dt { font-family: var(--serif); font-size: 22px; line-height: 1.2; color: var(--ink-soft); }
.layer dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.layer .where { color: var(--ink); font-weight: 600; }
/* The surface: the draft itself, on paper, a little raised above the layers around it. */
.layer-text { background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px; padding: 26px 24px; margin: 8px -12px; position: relative;
  box-shadow: 0 1px 2px rgba(35, 38, 42, 0.05), 0 18px 36px -24px rgba(35, 38, 42, 0.35); }
.layer-text + .layer { border-top: 0; }
.layer-text dt { font-size: 28px; color: var(--accent-ink); }
.layer-text dd { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.layer-text .where { font-family: var(--sans); font-size: 15px; }

/* ---------- Examples (inside How it works): a page and its margin ---------- */
.examples { margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line-strong); }
.examples-head { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px 48px; margin-bottom: 28px; align-items: baseline; }
.examples-head h3 { font-family: var(--serif); font-size: clamp(24px, 2.3vw, 30px); line-height: 1.2; }
.examples-head p { margin: 0; color: var(--ink-soft); max-width: 36em; }
.sheets .panels { margin-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  min-height: 40px; padding: 8px 15px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper);
  font: 500 15px/1 var(--sans); color: var(--ink-soft); cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.chips button:hover { border-color: var(--ink-soft); color: var(--ink); }
.chips button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sheet {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--paper);
}
.sheet-label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.sheet-page { padding: clamp(24px, 4vw, 48px); font-family: var(--serif); font-size: 19px; line-height: 1.6; }
.sheet-page p:not(.sheet-label) { max-width: 34em; }
.sheet-page .sheet-label, .sheet-margin .sheet-label, .sheet-return .sheet-label { font-family: var(--sans); }
.sheet-quote { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 18px; }
.sheet-margin { background: var(--margin); border-left: 1px solid var(--line); padding: clamp(24px, 4vw, 48px) clamp(20px, 3vw, 40px); }
.sheet-margin ul { list-style: none; margin: 0; padding: 0; font-family: var(--serif); font-size: 18px; line-height: 1.45; }
.sheet-margin li { position: relative; padding: 0 0 14px 20px; }
.sheet-margin li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: #9a9ea3; }
.sheet-return { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 22px clamp(24px, 4vw, 48px) 28px; }
.sheet-return p:not(.sheet-label) {
  font-family: var(--serif); font-size: 19px; line-height: 1.55; margin: 0; max-width: 44em;
  background: var(--linked-wash); border-left: 2px solid var(--accent); padding: 10px 16px; border-radius: 0 6px 6px 0;
}
.sheets .fine { margin-top: 18px; }
.sheets .stage-foot { margin-top: 14px; }

/* ---------- What's different ---------- */
.different { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 72px; padding-block: clamp(64px, 9vw, 120px); align-items: start; }
.different-head h2 { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -0.015em; }
.differences { margin: 0; }
.differences > div { padding: 20px 0; border-top: 1px solid var(--line-strong); }
.differences > div:last-child { border-bottom: 1px solid var(--line-strong); }
.differences dt { font-family: var(--serif); font-size: 22px; line-height: 1.25; margin-bottom: 6px; }
.differences dd { margin: 0; color: var(--ink-soft); max-width: 40em; }

.library-shot { grid-column: 1 / -1; margin: 16px 0 0; }
.library-shot .shot img { width: 100%; height: auto; display: block; }
.library-shot figcaption { font-size: 13px; color: var(--muted); margin-top: 14px; }
@media (max-width: 700px) { .library-shot .shot { max-width: 420px; margin-inline: auto; } .library-shot figcaption { text-align: center; max-width: 420px; margin-inline: auto; } }

/* The thesis lives one click beneath the surface, like subtext. */
.deeper { margin-top: 28px; border-top: 1px solid var(--line-strong); }
.deeper summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding-top: 14px; font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--accent-ink); }
.deeper summary::-webkit-details-marker { display: none; }
.deeper summary::before { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 200ms var(--ease); margin-right: 2px; }
.deeper[open] summary::before { transform: rotate(45deg); }
.deeper-body { margin-top: 18px; padding-left: 20px; border-left: 1px solid var(--line-strong); }

/* ---------- Why: the story, set as a page with its margin ---------- */
.why { padding-block: clamp(64px, 9vw, 120px); }
.why-grid { display: grid; grid-template-columns: minmax(0, 7.5fr) minmax(0, 4.5fr); }
.why-grid > * { min-width: 0; }
.why-page {
  background: var(--paper); border: 1px solid var(--line-strong); border-right: 0; border-radius: 12px 0 0 12px;
  padding: clamp(28px, 5vw, 72px); font-family: var(--serif); font-size: clamp(18px, 1.45vw, 20px); line-height: 1.7; color: var(--ink);
  box-shadow: 0 28px 56px -40px rgba(35, 38, 42, 0.3);
}
.why-page .eyebrow { font-family: var(--sans); }
.why-page h2 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 30px; max-width: 16ch; }
.why-page p { max-width: 34em; margin-bottom: 1.1em; }
/* A transformation line, shown the way Subtext nests it: each line beneath the one above. */
.run { list-style: none; margin: 30px 0 34px; padding: 22px 24px 8px; background: var(--margin); border: 1px solid var(--line); border-radius: 10px; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.5; }
.run li { position: relative; margin: 0 0 14px calc(var(--d) * 22px); padding-left: 18px; color: var(--ink-soft); }
.run li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: #9a9ea3; }
.run li:not(.run-surface)::after { content: ""; position: absolute; left: -15px; top: -12px; height: calc(0.62em + 15px); width: 12px; border-left: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); border-bottom-left-radius: 6px; }
.run .run-surface { color: var(--ink); padding-left: 22px; }
.run .run-surface::before { content: "¶"; background: none; width: auto; height: auto; top: 0; left: 0; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.run .run-last { color: var(--ink); font-size: 1.12em; }
.run .run-last::before { background: var(--accent); }
.why-close { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.25; margin: 34px 0 6px !important; }
.signature { font-style: italic; color: var(--muted); margin: 0 !important; }
.why-margin { background: var(--margin); border: 1px solid var(--line-strong); border-radius: 0 12px 12px 0; padding: clamp(28px, 3.5vw, 44px); }
.why-margin-inner { position: sticky; top: calc(var(--masthead) + 32px); }
.why-margin ul { list-style: none; margin: 0 0 20px; padding: 0; font-family: var(--serif); font-size: 19px; line-height: 1.4; }
.why-margin li { position: relative; padding: 0 0 14px 20px; }
.why-margin li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: #9a9ea3; }
.why-library { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line-strong); font-size: 15px; color: var(--ink-soft); }
.why-library a { color: var(--accent-ink); }

/* ---------- Who makes this ---------- */
.about { background: var(--chrome); border-block: 1px solid var(--line); padding-block: clamp(64px, 9vw, 120px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 72px; align-items: start; }
.about-copy h2 { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 26px; }
.about-copy p:not(.eyebrow) { font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 34em; }
.promises h3 { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin-bottom: 8px; }
.promises dl { margin: 0; }
.promises dl > div { padding: 14px 0; border-top: 1px solid var(--line-strong); }
.promises dt { font-weight: 600; margin-bottom: 4px; }
.promises dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.about-copy .about-services { font-size: 16px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.about-services a { color: var(--accent-ink); }
.work-with { margin-top: 0; }
.work-with h3 { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin-bottom: 8px; }
.services { margin: 14px 0 0; }
.services > div { padding: 14px 0; border-top: 1px solid var(--line-strong); }
.services dt { font-weight: 600; margin-bottom: 4px; }
.services dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.contact { list-style: none; margin: 20px 0 0; padding: 0; }
.contact li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line-strong); }
.contact li:last-child { border-bottom: 1px solid var(--line-strong); }
.contact a { font-weight: 600; color: var(--accent-ink); }
.contact span { font-size: 14px; color: var(--muted); }
.card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3.5vw, 40px); border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); }
.card-meta { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.card h3 { font-family: var(--serif); font-size: clamp(26px, 2.5vw, 32px); line-height: 1.15; margin-bottom: 16px; }
.card p:not(.card-meta):not(.fine) { color: var(--ink-soft); }
.card .button { margin-top: auto; }
.card .fine { margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 56px; padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list details:first-child { border-top: 1px solid var(--line-strong); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  min-height: 60px; padding: 14px 0; font-size: 17px; font-weight: 500;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-weight: 300; font-size: 22px; color: var(--muted); transition: transform 200ms var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--ink-soft); max-width: 40em; margin: 0 0 20px; }

/* ---------- Closing: the living mark ---------- */
.closing { background: var(--chrome); border-top: 1px solid var(--line); padding-block: clamp(72px, 10vw, 136px); text-align: center; }
.closing-inner { display: flex; flex-direction: column; align-items: center; }
/* Primary presentation from the accepted lockup spec: 100px mark, 56px wordmark, 8px gap. */
.closing-mark { display: flex; align-items: center; gap: 8px; color: #222823; font-family: var(--identity); font-synthesis: none; font-kerning: normal; margin-bottom: 52px; }
.closing-mark svg { width: 100px; height: 100px; fill: currentColor; }
.closing-name { position: relative; margin: 0; font-size: 56px; line-height: 1; letter-spacing: 0; text-align: left; }
.closing-name span { position: absolute; left: 0; top: calc(100% + 6px); font-size: 12px; line-height: 1.2; white-space: nowrap; }
.closing h2 { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 32px; }
.closing .fine { margin-top: 14px; }
.motion-control { display: flex; align-items: center; gap: 10px; margin-top: 44px; font-size: 13px; color: var(--muted); }
.motion-control button {
  min-height: 36px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--paper); color: var(--ink-soft); font: 500 13px/1 var(--sans); cursor: pointer;
}
.motion-control button:hover { border-color: var(--ink-soft); color: var(--ink); }
.motion-control button:disabled { opacity: 0.6; cursor: default; }

/* ---------- Companion app: a quiet pointer, never a second call to action ---------- */
.companion { padding-block: 22px; border-top: 1px solid var(--line); }
.companion p { margin: 0; font-size: 15px; }
.companion a { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-soft); text-decoration: none; }
.companion a:hover span { text-decoration: underline; text-underline-offset: 0.22em; }
.companion strong { color: var(--ink); font-weight: 600; }
.companion img { width: 32px; height: 32px; border-radius: 7px; flex: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.footer p { margin: 0; }
.footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer a { color: var(--ink-soft); }

/* ---------- Entrance motion (once, on load) ---------- */
.js .hero h1, .js .hero .lead, .js .hero .actions, .js .hero-notes, .js .hero-shot { animation: rise 800ms var(--ease) both; }
.js .hero .lead, .js .hero .actions { animation-delay: 60ms; }
.js .hero-notes { animation-delay: 120ms; }
.js .hero-shot { animation-delay: 220ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .masthead-nav { gap: 20px; font-size: 14px; }
  .stage .panel, .faq { grid-template-columns: 1fr; }
  .stage .panel-text { grid-template-columns: 1fr; }
  .about-grid, .why-grid, .different { grid-template-columns: 1fr; }
  .family { grid-template-columns: 1fr; }
  .why-page { border-right: 1px solid var(--line-strong); border-bottom: 0; border-radius: 12px 12px 0 0; }
  .why-margin { border-radius: 0 0 12px 12px; }
  .examples-head { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .masthead-nav { display: none; }
  .masthead-inner { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "title" "lead" "actions" "notes" "shot"; }
  .hero-notes { margin-top: 36px; }
}
@media (max-width: 700px) {
  :root { --masthead: 64px; }
  body { font-size: 16px; }
  .lockup { gap: 7px; padding-bottom: 12px; margin-top: 10px; }
  .lockup-mark { width: 36px; height: 36px; }
  .lockup-name { font-size: 23px; }
  .lockup-byline { font-size: 9px; }
  .hero h1 { font-size: clamp(36px, 10.4vw, 48px); }
  .lead { font-size: 18px; margin: 20px 0 24px; }
  .actions .button { width: 100%; }
  .hero-notes ul { padding-left: 20px; }
  /* Phones get the app's own phone layout, framed as a device. */
  /* Phones get crops of the approved screenshots, each at its own shape. */
  .hero-frame, .panel-shot { aspect-ratio: auto; max-width: 420px; margin-inline: auto; }
  .hero-frame img, .panel-shot img { position: static; height: auto; object-fit: initial; }
  .hero-frame img { object-position: top center; }
  .hero-write { display: none; }
  .hero-shot figcaption { text-align: center; max-width: 420px; margin-inline: auto; }
  .segmented { display: flex; width: 100%; }
  .segmented button { flex: 1 1 auto; justify-content: center; padding: 8px 6px; font-size: 14px; }
  .segmented .n { display: none; }
  .stage .panel { gap: 20px; }
  .run { padding: 18px 14px 6px; }
  .run li { margin-left: calc(var(--d) * 12px); }
  .layer { grid-template-columns: 1fr; padding: 16px 4px; }
  .layer-text { margin: 8px 0; padding: 20px; }
  .stage .panel-text h3 { font-size: 24px; }
  .sheet { grid-template-columns: 1fr; }
  .sheet-margin { border-left: 0; border-top: 1px solid var(--line); }
  .sheet-page { font-size: 18px; }
  .chips button { font-size: 14px; padding: 8px 13px; }
  .closing-mark { gap: 3px; margin-bottom: 44px; }
  .closing-mark svg { width: 64px; height: 64px; }
  .closing-name { font-size: 34px; }
  .closing-name span { font-size: 10px; top: calc(100% + 5px); }
  .motion-control { flex-direction: column; gap: 8px; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 350px) {
  .segmented button { font-size: 13px; padding: 8px 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-write { opacity: 0; }
}
