/* Zeglow's homepage in the app's own language (docs/09): paper, ink, glass and two lights.
   Colours, type, space, radii and springs come from tokens.css, generated from design/tokens.json. */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --readable: 672px;
  --page: 1120px;
  /* 09 §11 Margins: gold ink, champagne.500 by day and champagne.300 by night. */
  --gold-ink: var(--champagne-500);
  /* The paper's tooth: a seamless cotton grain about 1% of its tone. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .33 0 0 0 0 .29 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --frame: #1C1B19;
  --frame-edge: #4A4843;
  --window: color-mix(in srgb, var(--champagne-100) 40%, var(--bg-canvas));
  --window-reach: 60%;
}
@media (prefers-color-scheme: dark) {
  :root {
    --gold-ink: var(--champagne-300);
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .97 0 0 0 0 .92 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    --frame: #2A2926;
    --frame-edge: #5B5852;
  }
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1080px) { :root { --gutter: 48px; } }

/* MARK: Paper and the window's light */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  position: relative;
  background: var(--grain), var(--bg-canvas);
  color: var(--text-primary);
  font: 400 17px/24px var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}
/* Window light from the top-leading corner, in the light of the hour (09 §11). Still: it changes
   only on the light hours, never per frame or per scroll. */
.window-light {
  position: absolute; inset: 0 0 auto 0; height: min(140vh, 1400px); z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse var(--window-reach) 70% at 0% 0%, var(--window), transparent 100%);
}
:root[data-light="morning"] { --window: var(--mist-0); --window-reach: 60%; }
:root[data-light="day"] { --window: color-mix(in srgb, var(--champagne-100) 40%, var(--bg-canvas)); --window-reach: 60%; }
:root[data-light="goldenHour"] { --window: color-mix(in srgb, var(--champagne-200) 50%, var(--bg-canvas)); --window-reach: 75%; }
:root[data-light="night"] { --window: color-mix(in srgb, var(--champagne-300) 24%, var(--bg-canvas)); --window-reach: 45%; }
@media (prefers-color-scheme: dark) {
  :root[data-light] { --window: color-mix(in srgb, var(--champagne-300) 7%, var(--bg-canvas)); --window-reach: 55%; }
}
@media (prefers-contrast: more), (prefers-reduced-transparency: reduce) {
  .window-light { display: none; }
  body { background: var(--bg-canvas); }
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* MARK: Type */

h1, h2, h3, p { margin: 0; }
a { color: inherit; }
.display, .display-s, .title, .sentence {
  font-family: var(--font-display);
  font-weight: 300;
  text-wrap: balance;
}
.display { font-size: var(--type-display-l-size); line-height: 1.1; letter-spacing: var(--type-display-l-tracking); }
.display-s { font-size: var(--type-display-m-size); line-height: 1.18; letter-spacing: var(--type-display-m-tracking); }
.title { font-size: 30px; line-height: 38px; letter-spacing: -0.005em; }
@media (min-width: 720px) {
  .display { font-size: var(--type-display-l-size-expansive); }
  .display-s { font-size: var(--type-display-m-size-expansive); }
  .title { font-size: var(--type-display-m-size); line-height: 42px; }
}
@media (min-width: 1080px) { .display { font-size: var(--type-display-l-size-expansive13); } }
.title-m { font-size: var(--type-title-m-size); line-height: var(--type-title-m-line); font-weight: var(--type-title-m-weight); }
.eyebrow {
  font-size: var(--type-eyebrow-size); line-height: var(--type-eyebrow-line); font-weight: var(--type-eyebrow-weight);
  letter-spacing: var(--type-eyebrow-tracking); text-transform: uppercase; color: var(--text-secondary);
}
.lede { font-size: 20px; line-height: 30px; color: var(--text-secondary); text-wrap: pretty; }
p { text-wrap: pretty; }
.link {
  color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.link:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 10; padding: 8px 14px; border-radius: 999px; background: var(--surface-raised); color: var(--text-primary); }
.skip:focus { top: 12px; }

/* MARK: Chrome */

/* The bar stays with you, on glass over the paper; its hairline appears once the page moves. */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg-canvas) 80%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 0 transparent; transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--border-hairline); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 10px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-primary); text-decoration: none; padding: 6px 0; }
.brand-icon { display: block; flex: none; border-radius: 23%; box-shadow: 0 0 0 .5px var(--border-hairline), 0 1px 2px rgb(23 22 20 / .12); }
.site-nav { display: flex; gap: 2px; margin-right: -12px; }
.site-nav a, .footer-nav a {
  color: var(--text-secondary); text-decoration: none; font-size: 15px; line-height: 20px; padding: 10px 12px; border-radius: 999px;
  transition: color .2s ease, background-color .2s ease;
}
.site-nav a:hover, .footer-nav a:hover { color: var(--text-primary); background: var(--fill-subtle); }
.site-nav a[aria-current], .site-menu a[aria-current] { color: var(--text-primary); }

/* Under 760 pt the links fold into a menu below the bar. */
.menu-toggle {
  display: none; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0;
  border: 0; border-radius: 999px; background: none; color: var(--text-primary); cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.menu-toggle path { transition: transform var(--spring-snappy); transform-origin: 12px 12px; }
.menu-toggle[aria-expanded="true"] .bar-top { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar-bottom { transform: translateY(-3px) rotate(-45deg); }
.site-menu { display: none; }
@media (max-width: 759px) {
  .site-nav { display: none; }
  .menu-toggle { display: grid; }
  .site-menu {
    display: grid; overflow: hidden; max-height: 0; padding: 0 var(--gutter);
    transition: max-height .45s cubic-bezier(.2, .8, .2, 1), padding .45s cubic-bezier(.2, .8, .2, 1);
  }
  .site-menu.open { max-height: 480px; padding: 4px var(--gutter) 18px; box-shadow: 0 1px 0 var(--border-hairline); }
  .site-menu a {
    padding: 12px 0; border-bottom: 1px solid var(--border-hairline); color: var(--text-secondary);
    font-size: 20px; line-height: 26px; text-decoration: none;
  }
  .site-menu a:last-child { border-bottom: 0; }
}

/* S1: the one primary action, in ink (iron-gall sepia by day, lamplit paper by night). */
.ink-capsule {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; background: var(--ink-fill); color: var(--text-on-ink);
  font-size: 17px; font-weight: 600; text-decoration: none; letter-spacing: -0.005em;
  box-shadow: inset 0 1px 0 var(--ink-sheen);
  transition: background-color var(--spring-snappy), transform var(--spring-snappy);
}
.ink-capsule:hover { background: var(--ink-pressed); }
.ink-capsule:active { transform: scale(0.97); }
.ink-capsule .arrow { width: 16px; height: 16px; transition: transform var(--spring-snappy); }
.ink-capsule:hover .arrow { transform: translateY(2px); }

/* MARK: Wordmark and Margins */

.wordmark { position: relative; display: inline-block; flex: none; color: var(--text-primary); }
.wordmark svg { position: relative; display: block; overflow: visible; }
.wordmark-bloom {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--lumen-bloom), color-mix(in srgb, var(--lumen-bloom) 40%, transparent) 55%, transparent);
}
.wordmark.writes path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: write var(--duration) cubic-bezier(.45, 0, .25, 1) var(--start) forwards; }
.wordmark.writes .wordmark-bloom { opacity: 0; transform: scale(.5); animation: bloom .7s ease-out var(--glow) forwards; }
@keyframes write { to { stroke-dashoffset: 0; } }
@keyframes bloom { to { opacity: 1; transform: none; } }

.margin { position: relative; display: inline-block; flex: none; color: var(--gold-ink); }
.margin svg { position: relative; display: block; fill: currentColor; overflow: visible; }
.margin-bloom {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--lumen-bloom), color-mix(in srgb, var(--lumen-bloom) 40%, transparent) 55%, transparent);
}
.margin .pen { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
/* Drawn on in pen order once it arrives: 0.2 s between strokes, the bloom last (09 §11). */
.js .margin.draws .pen { stroke-dashoffset: 1; }
.js .margin.draws .ink-dot, .js .margin.draws .margin-bloom { opacity: 0; }
.js .in .margin.draws .pen, .js .margin.draws.in .pen {
  animation: write .5s cubic-bezier(.45, 0, .25, 1) calc(var(--delay, 0s) + var(--i) * .2s) forwards;
}
.js .in .margin.draws .ink-dot, .js .margin.draws.in .ink-dot { animation: appear .3s ease calc(var(--delay, 0s) + var(--i) * .2s) forwards; }
.js .in .margin.draws .margin-bloom, .js .margin.draws.in .margin-bloom { animation: appear .8s ease-out calc(var(--delay, 0s) + var(--strokes) * .2s + .2s) forwards; }
@keyframes appear { to { opacity: 1; } }

/* The four lights on one horizon; only the visitor's hour shows. */
.hours { display: inline-flex; }
.hours > .margin { display: none; }
:root[data-light="morning"] .hours > [data-light="morning"],
:root[data-light="day"] .hours > [data-light="day"],
:root[data-light="goldenHour"] .hours > [data-light="goldenHour"],
:root[data-light="night"] .hours > [data-light="night"] { display: inline-block; }

/* MARK: Prints (drawn stand-ins for photographs) */

.scenes { position: absolute; width: 0; height: 0; overflow: hidden; }
.print { position: relative; display: block; overflow: hidden; border-radius: var(--radius-xs); background: var(--fill-muted); }
.print svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.print::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--border-hairline); pointer-events: none; }
@media (prefers-color-scheme: dark) { .print::after { box-shadow: none; } }
/* S3 lit: a 1.5 pt inner light rim and a champagne bloom, never a coloured border. */
.print.lit { overflow: visible; }
.print.lit svg { border-radius: inherit; }
.print.lit::before { content: ""; position: absolute; inset: -10%; border-radius: 30%; background: var(--lumen-bloom); filter: blur(24px); z-index: -1; }
.print.lit::after { box-shadow: inset 0 0 0 1.5px var(--lumen-rim); }
/* S11 shade: set aside fades toward the paper by day and into the night by night. */
.print.shade { opacity: .36; filter: saturate(.55); }

/* S6 develop: photos come into focus as they arrive. */
.js .develop .print { opacity: 0; filter: blur(10px) saturate(.4); transform: scale(1.02); }
.js .develop.in .print {
  opacity: 1; filter: none; transform: none;
  transition: opacity .7s ease, filter 1.1s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--n, 0) * 60ms);
}
.js .develop.in .print.shade { opacity: .36; filter: saturate(.55); }
@media (prefers-color-scheme: dark) { .print.shade, .js .develop.in .print.shade { opacity: .5; filter: saturate(.5) brightness(.42); } }

/* MARK: Layout */

main { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
figure { margin: 0; }

/* Folios number the chapters, as the app's pages do: the number in gold ink, a short rule, the name. */
.folio {
  display: flex; align-items: center; margin-bottom: 2px;
  font-size: var(--type-eyebrow-size); line-height: var(--type-eyebrow-line); font-weight: var(--type-eyebrow-weight);
  letter-spacing: var(--type-eyebrow-tracking); text-transform: uppercase; color: var(--text-secondary);
}
.folio span { color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.folio span::after { content: ""; display: inline-block; width: 28px; height: 1px; margin: 0 12px; vertical-align: middle; background: currentColor; opacity: .7; }

/* Framed screenshots (scripts/assets/make_web_screens.py): the frame's shadow is the device lifting off the paper. */
.screen { display: block; }
.screen img { display: block; width: 100%; height: auto; }
.phone img { filter: drop-shadow(0 1px 1px rgb(23 22 20 / .10)) drop-shadow(0 24px 30px rgb(23 22 20 / .16)); }
.form-shot img { filter: drop-shadow(0 1px 1px rgb(23 22 20 / .10)) drop-shadow(0 28px 40px rgb(23 22 20 / .16)); }
@media (prefers-color-scheme: dark) {
  .phone img, .form-shot img { filter: drop-shadow(0 30px 50px rgb(0 0 0 / .55)); }
}

.hero {
  display: grid; gap: 48px; align-items: center;
  padding: 32px 0 88px;
}
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; padding: 48px 0 120px; } }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 580px; }
.hero-text .wordmark { margin: 0 0 6px 2px; }
.hero .eyebrow { margin-bottom: -6px; }
.hero .lede { max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 6px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text-secondary); }
.status-light { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-ink) 22%, transparent), 0 0 12px 2px var(--lumen-bloom); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-secondary); }
.facts li:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--text-tertiary); }

/* The hero's two phones: the Library in front, Organize behind, in the window's light. */
.hero-art { position: relative; display: flex; justify-content: center; padding: 0 0 8px; }
.lumen-field {
  position: absolute; left: 50%; top: 46%; width: min(150%, 100vw); aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--lumen-field), color-mix(in srgb, var(--lumen-field) 45%, transparent) 50%, transparent);
}
@media (prefers-color-scheme: light) { .lumen-field { opacity: .9; } }
.hero-front { position: relative; width: min(320px, 74vw); }
.hero-back { display: none; }
@media (min-width: 640px) {
  .hero-art { justify-content: flex-start; padding-left: 4%; }
  .hero-back { display: block; position: absolute; width: min(270px, 34vw); right: 2%; top: 9%; opacity: .96; }
  .hero-front { width: min(320px, 44vw); }
}
@media (min-width: 960px) {
  .hero-art { padding-left: 0; }
  .hero-back { width: 76%; max-width: 270px; right: -2%; }
  .hero-front { width: 86%; max-width: 330px; }
}

/* Chapters: words beside the screens they describe. */
.chapter {
  display: grid; gap: 48px; align-items: center; padding: 80px 0;
  border-top: 1px solid var(--border-hairline);
}
@media (min-width: 900px) {
  .chapter { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; padding: 120px 0; }
  .chapter.flip > .chapter-text { order: 2; }
}
.chapter-text { display: flex; flex-direction: column; gap: 16px; max-width: 30em; }
.chapter-text p:not(.folio):not(.sentence) { color: var(--text-secondary); font-size: 17px; line-height: 26px; }

.phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 4vw, 40px); }
.phones .phone { width: min(300px, 70vw); }
.phones.pair .phone { width: min(260px, 42vw); }
.phones.pair .phone:last-child { margin-top: clamp(32px, 7vw, 72px); }

/* Rules (L-11): the sentence in Light type with its pills, and the funnel as the photos' path. */
.rule-art { display: flex; flex-direction: column; gap: 24px; margin-top: 16px; }
.sentence { font-size: 24px; line-height: 42px; letter-spacing: -0.005em; color: var(--text-primary); }
@media (min-width: 720px) { .sentence { font-size: 26px; line-height: 46px; } }
.pill {
  display: inline-block; padding: 0 14px; margin: 0 1px; line-height: 36px; border-radius: 999px;
  background: var(--fill-muted); font-weight: 400; color: var(--text-primary); white-space: nowrap;
}
.funnel { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; max-width: 420px; }
.funnel::before { content: ""; position: absolute; left: 5px; top: 22px; bottom: 22px; width: 1.5px; background: var(--border-strong); border-radius: 1px; }
.funnel li { position: relative; display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--border-hairline); font-size: 17px; color: var(--text-secondary); }
.funnel li:last-child { border-bottom: 0; }
.funnel li::before { content: ""; position: absolute; left: -26px; top: 50%; translate: 0 -50%; width: 11px; height: 11px; border-radius: 50%; background: var(--bg-canvas); box-shadow: inset 0 0 0 1.5px var(--text-tertiary); }
.funnel b { font-family: var(--font-display); font-weight: 300; font-size: 26px; line-height: 30px; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.funnel .kept::before { background: var(--gold-ink); box-shadow: 0 0 10px 2px var(--lumen-bloom); }
.funnel .lit { color: var(--text-primary); font-weight: 600; }
.funnel .lit::before { background: var(--text-primary); box-shadow: none; }

/* How rules work: three ink notes, each drawing beside its words. */
.guide { padding: 0 0 104px; }
.guide > .eyebrow { margin-bottom: 28px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; }
@media (min-width: 820px) { .notes { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.notes li { display: flex; gap: 18px; align-items: flex-start; }
.notes li:nth-child(2) { --delay: .85s; }
.notes li:nth-child(3) { --delay: 1.7s; }
.notes h3 { font-size: 17px; line-height: 22px; font-weight: 600; margin: 4px 0 6px; }
.notes p { color: var(--text-secondary); font-size: 15px; line-height: 22px; }

/* Widgets (11 W1–W3): full-bleed photos with a caption on an adaptive scrim; the week on paper. */
.widgets-art { display: flex; justify-content: center; }
.widget-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 158px)); gap: 20px; }
.widget { position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 1; box-shadow: var(--shadow-lift); }
@media (prefers-color-scheme: dark) { .widget { box-shadow: inset 0 0 0 1px var(--border-hairline); } }
.widget > .print { position: absolute; inset: 0; border-radius: 0; }
.widget .caption {
  position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px; display: flex; flex-direction: column;
  color: var(--text-on-photo); font-size: 13px; line-height: 16px;
  /* The adaptive scrim keeps white captions at 4.5 : 1 or more, even over snow. */
  background: linear-gradient(to top, rgb(0 0 0 / .64), rgb(0 0 0 / .56) 50%, transparent);
}
.widget .caption b { font-size: 15px; line-height: 19px; font-weight: 600; }
.widget.medium { grid-column: span 2; aspect-ratio: 338 / 158; background: var(--surface-raised); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.week-head { font-size: 15px; font-weight: 600; }
.week { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 0; }
.wd i { font-style: normal; font-size: 11px; line-height: 13px; font-weight: 600; color: var(--text-tertiary); }
.wd b { font-size: 11px; line-height: 13px; font-weight: 600; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.wd .tile { flex: 1; width: 100%; min-height: 0; border-radius: 6px; background: var(--fill-subtle); }
.wd.today b { color: var(--text-primary); }
.wd.today .tile { box-shadow: 0 0 0 1.5px var(--bg-canvas), 0 0 0 3px var(--today); }

/* Every form: the iPad and the open Duo stand on one line, then a word on each. */
.forms, .questions { padding: 80px 0; border-top: 1px solid var(--border-hairline); }
@media (min-width: 900px) { .forms, .questions { padding: 120px 0; } }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 36em; margin-bottom: 56px; }
.section-head p:not(.folio) { color: var(--text-secondary); font-size: 17px; line-height: 26px; }
.form-row { display: grid; gap: 40px; align-items: end; }
@media (min-width: 760px) { .form-row { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); gap: clamp(28px, 4vw, 56px); } }
.form-ipad { width: min(380px, 78vw); justify-self: center; }
.form-shot figcaption { margin-top: 18px; text-align: center; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-tertiary); }
.form-list { list-style: none; margin: 64px 0 0; padding: 32px 0 0; display: grid; gap: 28px; border-top: 1px solid var(--border-hairline); }
@media (min-width: 820px) { .form-list { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.form-list h3 { font-size: 17px; line-height: 22px; font-weight: 600; margin: 0 0 6px; }
.form-list p { color: var(--text-secondary); font-size: 15px; line-height: 22px; max-width: 24em; }

/* Private by default (Welcome ③): a few words, then the ledger. */
.private { display: grid; gap: 40px; padding: 80px 0; border-top: 1px solid var(--border-hairline); }
@media (min-width: 900px) { .private { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; padding: 120px 0; align-items: start; } }
.private-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 28em; }
.private-text p:not(.folio) { color: var(--text-secondary); line-height: 26px; }
.private-mark { margin-bottom: 12px; }
.ledger { margin: 0; }
.ledger div { display: grid; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--border-hairline); }
.ledger div:first-child { border-top: 1px solid var(--border-hairline); }
@media (min-width: 560px) { .ledger div { grid-template-columns: 9.5em minmax(0, 1fr); } }
.ledger dt { display: flex; align-items: baseline; gap: 10px; font-weight: 600; }
.ledger dt::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-ink); translate: 0 -2px; box-shadow: 0 0 8px 1px var(--lumen-bloom); }
.ledger dd { margin: 0; color: var(--text-secondary); line-height: 24px; }

/* Questions: the FAQ, answered in place. */
.questions .faq { max-width: 46em; }
.questions .faq summary { font-size: 19px; line-height: 26px; padding: 20px 0; }
.questions .faq details p { color: var(--text-secondary); line-height: 26px; max-width: 40em; padding-bottom: 22px; }

/* The closing note under the lens. */
.closing { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 104px 0 120px; border-top: 1px solid var(--border-hairline); }
.closing p { max-width: 34em; color: var(--text-secondary); line-height: 26px; }
.closing-mark { margin-bottom: 8px; }

/* Arriving: chapters settle into place once, as they reach the window. */
.js [data-reveal] { opacity: 0; translate: 0 18px; }
.js [data-reveal].in { opacity: 1; translate: none; transition: opacity .8s ease, translate 1s cubic-bezier(.2, .7, .2, 1); }
.js .phones[data-reveal].in .phone:last-child, .js .form-row[data-reveal].in .form-shot:last-child { transition-delay: .12s; }

/* Footer */
.site-footer { border-top: 1px solid var(--border-hairline); }
.footer-inner {
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 32px var(--gutter) 48px;
  display: grid; gap: 12px 24px; grid-template-columns: auto 1fr auto; align-items: center;
}
.footer-line { font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0; margin-right: -12px; }
.fine { grid-column: 1 / -1; font-size: 13px; line-height: 18px; color: var(--text-tertiary); max-width: 56em; padding-top: 8px; }

/* MARK: Articles (privacy, support) */

.article { max-width: calc(var(--readable) + 2 * var(--gutter)); padding-bottom: 96px; }
.article-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 40px 0 48px; border-bottom: 1px solid var(--border-hairline); }
.article-mark { margin-bottom: 8px; }
.meta { font-size: 13px; line-height: 18px; color: var(--text-tertiary); }
.article section { padding: 36px 0 0; }
.article section > * + * { margin-top: 14px; }
.article section p, .points li { color: var(--text-secondary); line-height: 26px; }
.article strong { color: var(--text-primary); font-weight: 600; }
.article em { font-style: normal; color: var(--text-primary); }
.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.points li { position: relative; padding-left: 22px; }
.points li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-ink); }
.contact .ink-capsule { margin-top: 6px; }
.note { font-size: 15px; line-height: 22px; }
.faq { border-top: 1px solid var(--border-hairline); margin-top: 18px; }
.faq details { border-bottom: 1px solid var(--border-hairline); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; font-weight: 600; color: var(--text-primary);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid var(--text-tertiary); border-bottom: 1.5px solid var(--text-tertiary);
  transform: rotate(45deg) translateY(-3px); transition: transform var(--spring-snappy);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details p { padding: 0 0 18px; }

/* MARK: Small screens */

@media (max-width: 560px) {
  .header-inner { padding-top: 6px; padding-bottom: 6px; }
  .hero { padding-top: 16px; gap: 44px; }
  .lede { font-size: 18px; line-height: 27px; }
  .sentence { font-size: 22px; line-height: 40px; }
  .pill { line-height: 34px; padding: 0 12px; }
  .widget-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; }
  .widget.medium { aspect-ratio: 338 / 170; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; margin: 0 0 0 -12px; }
}

/* MARK: Motion and contrast preferences */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wordmark.writes path, .js .margin.draws .pen { stroke-dashoffset: 0; }
  .wordmark.writes .wordmark-bloom, .js .margin.draws .ink-dot, .js .margin.draws .margin-bloom { opacity: 1; transform: none; }
  .js .develop .print, .js [data-reveal] { opacity: 1; filter: none; transform: none; translate: none; }
  .js .develop .print.shade { opacity: .36; filter: saturate(.55); }
}
@media (prefers-contrast: more) {
  .print.shade { opacity: .55; }
  .site-header { background: var(--bg-canvas); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 0 var(--border-strong); }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg-canvas); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
