/* AI Producer v2: a creator magazine. Tokens and rules: DESIGN.md. Generated pages: tools/build.py. */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f3eee6;
  --paper-2: #e8e1d5;
  --ink: #0b0b0c;
  --ink-2: #47433e;
  --ink-3: #6f6a63;
  --red: #ff3b30;
  --green: #30d158;
  --on-dark-2: rgba(243, 238, 230, .72);
  --on-dark-3: rgba(243, 238, 230, .5);
  --display: "Archivo", "Arial Narrow", Impact, sans-serif;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --app: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --gut: clamp(16px, 4vw, 64px);
  --max: 1400px;
  --sec: clamp(96px, 12vw, 190px);
  color-scheme: light;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection { background: var(--red); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 90;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-weight: 600; text-decoration: none; transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

/* ---------- type ---------- */

.display {
  font-family: var(--display);
  font-weight: 850;
  font-stretch: 64%;
  line-height: .84;
  letter-spacing: -.012em;
  text-transform: uppercase;
}
.ln { display: block; }
.ln > span { display: inline-block; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.label {
  display: flex; align-items: center; gap: .7em;
  font-size: .75rem; font-weight: 700; font-stretch: 125%; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase;
}
.label-n { display: inline-grid; place-items: center; min-width: 2.6em; height: 2.6em; padding: 0 .6em; border: 1.5px solid currentColor; border-radius: 999px; letter-spacing: .04em; }
.lede { max-width: 34ch; font-size: clamp(1.125rem, 1.4vw, 1.375rem); line-height: 1.45; }

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

.store { display: inline-flex; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; transition: transform 160ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.store img { display: block; width: auto; height: 54px; }
.store:active { transform: scale(.97); }
.store:focus-visible { outline-offset: 4px; }

.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 24px;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease-out);
}
.btn svg, .link-more svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.link-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover svg, .link-more:hover svg { transform: translateX(3px); }
  .link-more[href^="#"]:hover svg { transform: translateY(3px); }
}

/* ---------- logo ---------- */

.logo { width: 30px; height: 30px; flex: none; }
.logo-bg { fill: #0b0b0c; stroke: rgba(255, 255, 255, .22); stroke-width: 16; }

/* ---------- nav ---------- */

.nav { position: fixed; inset: 0 0 auto; z-index: 60; padding: 10px 10px 0; color: #fff; pointer-events: none; }
.nav-in {
  position: relative; isolation: isolate;
  display: flex; align-items: center; gap: 24px;
  width: min(100%, var(--max) + 2 * var(--gut)); min-height: 60px; margin-inline: auto; padding: 0 8px 0 clamp(16px, 2vw, 24px);
  border-radius: 999px; pointer-events: auto;
}
.nav-in::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  /* dark glass: what scrolls under the nav shows through blurred and tinted, the text stays white on at least ~5:1 over paper */
  background: rgba(16, 16, 18, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 10px 40px rgba(0, 0, 0, .16);
  -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7);
  opacity: 0; transform: scale(.985);
}
/* no backdrop blur (old browsers, some privacy modes): a solid pill instead of an unreadable see-through one */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-in::before { background: rgba(16, 16, 18, .94); }
  .nav.on-light .nav-in::before { background: rgba(250, 248, 244, .95); }
}
@media (prefers-reduced-transparency: reduce) { .nav-in::before { background: rgba(16, 16, 18, .94); } .nav.on-light .nav-in::before { background: rgba(250, 248, 244, .95); } }
.nav.is-scrolled .nav-in { color: var(--paper); }
.nav.is-scrolled .nav-in::before { opacity: 1; transform: none; }
.nav.is-scrolled.on-light .nav-in { color: var(--ink); }
.nav.on-light .nav-in::before { background: rgba(250, 248, 244, .74); box-shadow: inset 0 0 0 1px rgba(11, 11, 12, .08), 0 10px 40px rgba(11, 11, 12, .1); }
.nav.is-ready .nav-in { transition: color 200ms ease; }
.nav.is-ready .nav-in::before { transition: opacity 250ms ease, transform 250ms var(--ease-out), background-color 200ms ease; }
.doc-page .nav:not(.is-scrolled), .nf-page .nav:not(.is-scrolled) { color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; text-decoration: none; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: .9375rem; font-weight: 600; text-decoration: none; transition: background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { background: rgba(127, 127, 127, .18); } }
.nav-get {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: 4px; padding: 0 16px 0 20px;
  border: 0; border-radius: 999px; background: var(--red); color: var(--ink);
  font-size: .9375rem; font-weight: 750; white-space: nowrap; cursor: pointer; transition: transform 160ms var(--ease-out); -webkit-tap-highlight-color: transparent;
}
.nav-get svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.nav-get:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .nav-get:hover svg { transform: translateX(3px); } }

/* ---------- hero: the cover ---------- */

.hero { position: relative; display: grid; min-height: max(100svh, 640px); overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.hero-img, .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { left: 30%; width: 70%; }
.hero-img img { object-fit: cover; object-position: 54% 50%; animation: cover-in 1600ms var(--ease-out) both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--ink) 30%, rgba(11, 11, 12, .55) 40%, rgba(11, 11, 12, 0) 56%), linear-gradient(0deg, rgba(11, 11, 12, .7), rgba(11, 11, 12, 0) 30%); }
.hero-in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 54%) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto minmax(0, .4fr);
  column-gap: 4vw; padding: 100px var(--gut) clamp(28px, 5vh, 52px);
}
.hero-k { grid-column: 1; grid-row: 1; align-self: end; margin-bottom: clamp(14px, 2vh, 24px); }
.hero-h { grid-column: 1; grid-row: 2; font-size: clamp(60px, min(7.4vw, 14svh), 150px); }
.hero-h .ln-serif { color: var(--red); }
.hero-h .ln-serif { font-family: var(--serif); font-weight: 400; font-style: italic; font-stretch: 100%; text-transform: none; letter-spacing: -.02em; line-height: .86; }
.hero-h .ln-serif + .ln-serif { margin-top: -.06em; }
.hero-side { grid-column: 1; grid-row: 3; align-self: start; display: grid; justify-items: start; gap: 22px; margin-top: clamp(24px, 4vh, 44px); }
.hero-lede { max-width: 30ch; font-size: clamp(1.0625rem, 1.25vw, 1.25rem); line-height: 1.45; font-weight: 500; color: var(--on-dark-2); }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.hero-lines { grid-column: 2; grid-row: 3; align-self: end; justify-self: end; width: min(100%, 300px); display: grid; gap: 6px; font-size: .8125rem; font-weight: 700; font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.hero-lines li { padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .35); }
.hero-h .ln > span { animation: rise 1100ms var(--ease-out) both; }
.hero-h .ln:nth-child(2) > span { animation-delay: 70ms; }
.hero-h .ln:nth-child(3) > span { animation-delay: 160ms; }
.hero-h .ln:nth-child(4) > span { animation-delay: 230ms; }
.hero-k, .hero-side, .hero-lines { animation: fade-up 1000ms 380ms var(--ease-out) both; }
@keyframes cover-in { from { transform: scale(1.07); } }
@keyframes rise { from { opacity: 0; transform: translateY(.35em); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }

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

.phone {
  --w: 280px;
  position: relative; container-type: inline-size;
  width: var(--w); aspect-ratio: 720 / 1565; padding: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .165); background: #0b0b0c;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14) inset, 0 calc(var(--w) * .12) calc(var(--w) * .3) rgba(0, 0, 0, .32), 0 4px 14px rgba(0, 0, 0, .2);
  box-sizing: content-box;
}
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--w) * .135); background: #000; color: #fff; }
.cap { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-home { position: absolute; left: 34%; right: 34%; bottom: 2.2cqw; height: 1.3cqw; border-radius: 99px; background: rgba(255, 255, 255, .55); }

/* ---------- three things: the strengths, right after the hero ---------- */

.three { padding: var(--sec) 0; background: var(--paper); color: var(--ink); }
.three-h { margin-top: 22px; font-size: clamp(52px, 7vw, 128px); }
.three-h .ln { display: inline-block; }
.three-h .ln:last-child { color: var(--red); }
.three-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(16px, 2.2vw, 32px); margin-top: clamp(40px, 5vw, 72px); }
.three-i { display: grid; align-content: start; gap: 14px; }
.three-a { display: grid; gap: 20px; color: inherit; text-decoration: none; }
.three-a .crop { transition: transform 500ms var(--ease-out); }
.three-t { display: flex; gap: .6em; font-size: clamp(1.25rem, 1.7vw, 1.625rem); font-weight: 800; line-height: 1.2; }
.three-t span { color: var(--red); font-variant-numeric: tabular-nums; }
.three-p { max-width: 36ch; color: var(--ink-2); font-size: clamp(1rem, 1.1vw, 1.125rem); line-height: 1.45; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .three-a:hover .crop { transform: translateY(-6px); } }

/* ---------- acts: the ten features in four parts ---------- */

.act { position: relative; }
.act-k { flex-wrap: wrap; }
.act-n { display: inline-flex; align-items: center; gap: .9em; opacity: .6; }
.act-n::after { content: ""; width: 2.4em; height: 1.5px; background: currentColor; }
.scene-head { display: grid; gap: clamp(16px, 2.2vh, 26px); container-type: inline-size; }
.scene-h { font-size: min(clamp(64px, 9.2vw, 172px), calc(184cqw / var(--len, 8))); }
.scene-copy { display: grid; align-content: start; gap: 20px; max-width: 34ch; }
.scene-p { font-size: clamp(1.0625rem, 1.25vw, 1.25rem); line-height: 1.45; font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: 8px; }
.tags li { padding: 7px 13px; border: 1.5px solid currentColor; border-radius: 999px; font-size: .8125rem; font-weight: 700; line-height: 1.2; }

/* the acts: each one pinned stage (stacked without motion or JS); red by default, ink, paper, and mirrored on wide screens */
.act-save { background: var(--red); color: var(--ink); }
.stage-ink { background: var(--ink); color: var(--paper); }
.stage-ink .scene-p { color: var(--on-dark-2); }
.stage-ink .scene-h .ln:last-child, .stage-paper .scene-h .ln:last-child { color: var(--red); }
.stage-ink .rail-bar { background: rgba(243, 238, 230, .2); }
.stage-paper { background: var(--paper); color: var(--ink); }
.act-also { padding: var(--sec) 0; background: var(--paper); color: var(--ink); }
.act-also .also { margin-top: 0; }
.save-in {
  --pw: clamp(232px, min(23vw, 36svh), 330px); --cg: clamp(32px, 6vw, 120px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(var(--pw), .8fr); column-gap: var(--cg);
  width: min(100%, var(--max) + 2 * var(--gut)); margin-inline: auto; padding: clamp(96px, 12vh, 132px) var(--gut) var(--sec);
}
.save-top { grid-column: 1 / -1; display: grid; gap: 22px; margin-bottom: clamp(48px, 7vh, 88px); }
.rail { display: none; }
.rail li { --f: 0; flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 8px; font-size: .75rem; font-weight: 700; font-stretch: 125%; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; opacity: calc(.45 + .55 * min(1, var(--f) * 4)); }
.rail-bar { grid-column: 1 / -1; height: 3px; overflow: hidden; border-radius: 2px; background: rgba(11, 11, 12, .2); }
.rail-bar b { display: block; height: 100%; background: currentColor; transform: scaleX(var(--f)); transform-origin: 0 50%; transition: transform 600ms var(--ease-out); }
.save-steps { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: clamp(88px, 12vw, 160px); }
.step { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; grid-template-rows: auto 1fr; row-gap: 32px; }
.step .scene-head { grid-column: 1; grid-row: 1; }
.step .scene-copy { grid-column: 1; grid-row: 2; }
.step-phone { --w: calc(var(--pw) / 1.064); grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: center; }
.save-phone { display: none; }

.crop { position: relative; overflow: hidden; border-radius: clamp(16px, 1.8vw, 28px); background: #000; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset, 0 24px 60px rgba(11, 11, 12, .28); }
.crop :is(.clip, .cap) { position: absolute; left: 0; top: 0; z-index: -1; width: calc(100% / var(--cw)); max-width: none; height: auto; object-fit: fill; transform: translate(calc(var(--cx) * -100%), calc(var(--cy) * -100%)); }
.crop { isolation: isolate; }


/* and also: the smaller real features in one grid */
.also { margin-top: var(--sec); }
.also-h { font-size: clamp(64px, 9vw, 168px); }
.also-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); margin-top: clamp(32px, 4vw, 56px); }
.also-list li { display: grid; align-content: start; gap: 8px; padding: clamp(18px, 1.8vw, 26px); border-radius: 20px; background: var(--paper-2); }
.also-list li:nth-child(4n + 1) { background: var(--ink); color: var(--paper); }
.also-list li:nth-child(4n + 1) p { color: var(--on-dark-2); }
.also-list h3 { font-size: 1.125rem; font-weight: 800; line-height: 1.25; }
.also-list p { color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }

/* act 1 pinned: each step's heading lines rise in turn and its tags pop in */
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .step .ln > span, .step .tags li { opacity: 0; transform: translateY(.4em); transition: opacity 400ms var(--ease-out), transform 700ms var(--ease-out); }
  .step .tags li { transform: translateY(10px) scale(.92); }
  .act-save:not([data-on]) .step:first-child :is(.ln > span, .tags li), .act-save .step.is-on :is(.ln > span, .tags li) { opacity: 1; transform: none; }
  .step .ln:nth-child(2) > span { transition-delay: 70ms; }
  .step .ln:nth-child(3) > span { transition-delay: 140ms; }
  .step .tags li { transition-delay: calc(300ms + var(--t, 0) * 90ms); }
}

/* ---------- the fan: a focus carousel of real screens ---------- */

.fan { position: relative; background: var(--ink); color: var(--paper); }
.fan-pin { position: relative; width: min(100%, var(--max) + 2 * var(--gut)); margin-inline: auto; padding: clamp(96px, 12vh, 132px) var(--gut) var(--sec); }
.fan-head { display: grid; align-content: start; gap: 22px; }
.fan-h { font-size: clamp(60px, min(7.6vw, 11svh), 150px); }
.fan-h-2 { color: var(--red); }
.fan-p { max-width: 30ch; color: var(--on-dark-2); font-size: clamp(1.0625rem, 1.25vw, 1.25rem); line-height: 1.45; font-weight: 500; }
.fan-stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(16px, 3vw, 48px); max-width: 1040px; margin: clamp(48px, 6vw, 88px) auto 0; }
.card { display: grid; align-content: start; gap: 16px; }
.card-screen {
  aspect-ratio: 720 / 1565; overflow: hidden; border-radius: 13% / 6%; background: #000;
  box-shadow: 0 0 0 6px #1d1d1f, 0 0 0 7px rgba(255, 255, 255, .16), 0 30px 60px rgba(0, 0, 0, .5);
}
.card-t { display: flex; justify-content: center; gap: .6em; text-align: center; font-size: 1rem; font-weight: 650; line-height: 1.35; color: var(--paper); }
.card-t span { color: var(--red); font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- tokens ---------- */

.tokens { padding: var(--sec) 0; background: var(--ink); color: var(--paper); }
.tokens-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px clamp(40px, 7vw, 120px); align-items: end; }
.tokens-h { margin-top: 22px; font-size: clamp(64px, 8.4vw, 156px); }
.tokens-h .ln:last-child { color: var(--red); }
.meter-k { margin-top: 18px; font-weight: 700; }
.rate { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 0; border-top: 1px solid rgba(243, 238, 230, .16); }
.rate:last-child { border-bottom: 1px solid rgba(243, 238, 230, .16); }
.rate-t { font-weight: 650; font-size: 1.0625rem; line-height: 1.35; }
.rate-s { margin-top: 3px; color: var(--on-dark-3); font-size: .875rem; }
.rate-n { font: 850 3rem/1 var(--display); font-stretch: 64%; text-align: right; font-variant-numeric: tabular-nums; }
.rate-free { font-size: 1.75rem; text-transform: uppercase; color: var(--green); }
.rates-more { margin-top: 18px; color: var(--on-dark-3); font-size: .9375rem; }

/* ---------- trust ---------- */

.trust { padding: var(--sec) 0 calc(var(--sec) * .7); background: var(--paper); }
.trust-h { font-size: clamp(76px, 12.4vw, 228px); }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(40px, 6vw, 80px); padding: 22px 0; border-block: 2px solid var(--ink); }
.refused { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.refused li { position: relative; font: 850 clamp(1.75rem, 3.4vw, 3.25rem)/1 var(--display); font-stretch: 64%; text-transform: uppercase; color: var(--ink-3); }
.refused li::after { content: ""; position: absolute; left: -4%; right: -4%; top: 50%; height: .09em; border-radius: 1px; background: var(--red); transform: rotate(-4deg); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 48px); margin: clamp(40px, 5vw, 64px) 0 36px; }
.facts h3 { font-size: 1.1875rem; font-weight: 800; line-height: 1.25; }
.facts p { margin-top: 10px; color: var(--ink-2); font-size: 1rem; }

/* ---------- faq ---------- */

.faq { padding: calc(var(--sec) * .5) 0 var(--sec); background: var(--paper); }
.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px clamp(40px, 7vw, 120px); padding-top: clamp(48px, 6vw, 88px); border-top: 2px solid var(--ink); }
.faq-side { align-self: start; position: sticky; top: 110px; }
.faq-h { font-size: clamp(64px, 8vw, 148px); }
.faq-side p { margin-top: 24px; color: var(--ink-2); }
.faq-side a { color: var(--ink); font-weight: 700; text-underline-offset: 4px; }
.qa { border-top: 1px solid rgba(11, 11, 12, .18); }
.qa:last-child { border-bottom: 1px solid rgba(11, 11, 12, .18); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding: 22px 0; font-weight: 700; font-size: 1.1875rem; line-height: 1.35; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.qa summary::-webkit-details-marker { display: none; }
.qa-x { position: relative; flex: none; width: 18px; height: 18px; transition: transform 250ms var(--ease-out); }
.qa-x::before, .qa-x::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; border-radius: 1px; background: var(--ink); }
.qa-x::after { transform: rotate(90deg); }
.qa[open] .qa-x { transform: rotate(45deg); }
.qa::details-content { block-size: 0; overflow: clip; transition: block-size 320ms var(--ease-out), content-visibility 320ms allow-discrete; }
.qa[open]::details-content { block-size: auto; }
.qa-a p { max-width: 60ch; padding-bottom: 24px; color: var(--ink-2); }
.qa-a a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- end ---------- */

.end { padding: var(--sec) 0; background: var(--red); color: var(--ink); }
.end-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .6fr); gap: 40px clamp(32px, 5vw, 80px); align-items: end; }
.end-h { font-size: clamp(76px, 11vw, 204px); }
.end-side { display: grid; justify-items: start; gap: 22px; }
.end-small { font-size: .875rem; font-weight: 600; }

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

.foot { padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper); }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 18px 40px; align-items: center; }
.foot-made { justify-self: end; color: var(--on-dark-2); font-family: var(--serif); font-style: italic; font-size: 1.375rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark-2); font-size: .9375rem; text-decoration: none; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover { color: var(--paper); } }
.foot-copy { justify-self: end; color: var(--on-dark-3); font-size: .875rem; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 80;
  max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 16px 40px rgba(0, 0, 0, .35);
  font-weight: 650; text-align: center;
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast:empty { visibility: hidden; }

/* ---------- doc pages ---------- */

.doc { padding-top: clamp(120px, 16vh, 168px); }
.doc-head { padding-bottom: clamp(32px, 4vw, 48px); border-bottom: 2px solid var(--ink); }
.doc-h { font-size: clamp(4rem, 12vw, 10rem); }
.doc-meta { margin-top: 20px; color: var(--ink-3); font-weight: 600; }
.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); padding: clamp(32px, 4vw, 56px) 0 var(--sec); }
.doc-side { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; }
.toc h2 { color: var(--ink-3); font-size: .75rem; font-weight: 700; font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; }
.toc ol { margin-top: 12px; }
.toc a { display: block; padding: 6px 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.35; text-decoration: none; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--ink); } }
.prose { max-width: 70ch; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.4em; color: var(--ink); font-size: 1.75rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; scroll-margin-top: 96px; }
.prose h3 { margin-top: 1.8em; color: var(--ink); font-size: 1.1875rem; font-weight: 750; }
.prose > h2:first-child { margin-top: 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--ink); text-decoration-color: var(--ink-3); text-underline-offset: 4px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: .45em; padding-left: .2em; }
.prose li::marker { color: var(--ink-3); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(11, 11, 12, .14); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 700; }
mark.todo { padding: 0 4px; border-radius: 3px; background: rgba(255, 59, 48, .18); color: #a3170f; outline: 1px dashed rgba(255, 59, 48, .6); }
.doc-top { margin-top: 64px !important; }
.doc-top a { color: var(--ink-3); }

.form { position: relative; display: grid; gap: 18px; margin-top: 40px !important; padding: clamp(22px, 2.6vw, 34px); border-radius: 18px; background: var(--paper-2); }
.form h2 { margin: 0 !important; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form label > span { display: block; margin-bottom: 7px; color: var(--ink-2); font-size: .875rem; font-weight: 700; }
.form input, .form select, .form textarea {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid rgba(11, 11, 12, .2); border-radius: 10px; background: #fbf8f3; color: var(--ink);
  font: inherit; font-size: 1rem;
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); border-radius: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-note { color: var(--ink-3); font-size: .875rem; }
.form-status { min-height: 1.5em; font-weight: 700; }
.form-status[data-kind="ok"] { color: #12722f; }
.form-status[data-kind="error"] { color: #b4190f; }

/* ---------- 404 ---------- */

.nf { display: grid; align-items: center; min-height: 82svh; padding: 140px 0 var(--sec); }
.nf-h { margin-top: 20px; font-size: clamp(5rem, 16vw, 15rem); }
.nf .lede { margin-top: 28px; color: var(--ink-2); }
.nf-act { margin-top: 36px; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  html.rv [data-rv]:not(.in) { opacity: 0; transform: translateY(32px); }
  html.rv [data-rv] { transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out); }
  html.rv .scene-head[data-rv]:not(.in), html.rv :is(.also-h, .also-list, .three-h, .three-list)[data-rv]:not(.in) { opacity: 1; transform: none; }
  html.rv :is(.scene-head, .also-h, .three-h)[data-rv] .ln > span { transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  html.rv :is(.scene-head, .also-h, .three-h)[data-rv]:not(.in) .ln > span { opacity: 0; transform: translateY(.45em); }
  html.rv [data-rv] .ln:nth-child(2) > span { transition-delay: 80ms; }
  html.rv [data-rv] .ln:nth-child(3) > span { transition-delay: 160ms; }
  html.rv [data-rv] .tags li, html.rv :is(.also-list, .three-list) li { transition: opacity 500ms var(--ease-out) calc(250ms + var(--t, 0) * 80ms), transform 700ms var(--ease-out) calc(250ms + var(--t, 0) * 80ms); }
  html.rv [data-rv]:not(.in) .tags li { opacity: 0; transform: translateY(10px) scale(.92); }
  html.rv :is(.also-list, .three-list):not(.in) li { opacity: 0; transform: translateY(24px); }
}

/* act 1 pinned: the phone stays put and the three scenes crossfade with scroll (home.js sets data-on and --f) */
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .act-save { height: calc(100svh + var(--units, 3) * 62svh); }
  @media (min-width: 901px) {
    .stage-flip .save-in { grid-template-columns: minmax(var(--pw), .8fr) minmax(0, 1fr); }
    .stage-flip .save-top { grid-column: 2; }
    .stage-flip .step :is(.scene-head, .scene-copy) { grid-column: 2; }
    .stage-flip .save-phone { grid-column: 1; }
  }
  .save-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
  .save-in { --pw: clamp(220px, min(23vw, calc((100svh - 150px) / 2.24)), 330px); height: 100%; grid-template-rows: auto minmax(0, 1fr); padding-bottom: clamp(32px, 6vh, 64px); }
  .save-top { grid-column: 1; grid-row: 1; margin-bottom: clamp(24px, 4vh, 48px); }
  .rail { display: flex; gap: 12px; max-width: 620px; }
  .save-steps { grid-row: 2; row-gap: 0; }
  .step { grid-area: 1 / 1 / auto / -1; opacity: 0; transform: translateY(28px); transition: opacity 450ms var(--ease-out), transform 700ms var(--ease-out); will-change: opacity, transform; }
  .step .scene-h { font-size: min(clamp(64px, 9.2vw, 172px), 12svh, calc(184cqw / var(--len, 8))); }
  .step-phone { display: none; }
  .save-phone { display: block; grid-column: 2; grid-row: 1 / -1; align-self: center; justify-self: center; }
  .save-phone .phone { --w: var(--pw); }
  .save-phone .clip { opacity: 0; transition: opacity 500ms ease; will-change: opacity; }
  .save-phone .clip:nth-of-type(n + 2) { position: absolute; inset: 0; }
  .act-save:not([data-on]) .step:first-child, .act-save .step.is-on, .act-save:not([data-on]) .clip:first-of-type, .act-save .clip.is-on { opacity: 1; transform: none; }
}

/* the fan pinned: a flat track moving sideways with the scroll; home.js sets --tx (offset in card widths), --s and --dim per card.
   Cards never overlap (pitch 1.1 card widths), the ones off-centre shrink and dim under an ink veil, and each one rests in the middle before the next */
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .fan { height: 340vh; }
  .fan-pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: clamp(24px, 4vw, 64px); overflow: hidden; padding-bottom: clamp(32px, 5vh, 56px); }
  .fan-head { align-self: center; }
  .fan-stage {
    --cw: clamp(220px, min(26vw, calc((100svh - 230px) / 2.17)), 340px); position: relative; display: block; margin: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  }
  .card {
    --ad: 0;
    position: absolute; left: 50%; top: 50%; width: var(--cw); margin-left: calc(var(--cw) / -2);
    transform: translateY(-50%) translateX(calc(var(--tx, 0) * var(--cw))) scale(var(--s, 1)); will-change: transform;
    transition: transform 800ms var(--ease-out);
  }
  .card-screen { position: relative; }
  .card-screen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ink); opacity: var(--dim, 0); pointer-events: none; transition: opacity 800ms var(--ease-out); }
  .card-t { opacity: calc(1 - var(--ad)); transition: opacity 500ms ease; }
}

/* ---------- page transitions ---------- */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out 240ms var(--ease-out) both; }
::view-transition-new(root) { animation: page-fade 420ms 60ms var(--ease-out) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes page-fade { from { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(18px); } }
.doc-page main, .nf-page main { animation: page-in 760ms var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: page-fade 200ms ease both !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-get { margin-left: auto; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .also-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-img { left: 0; width: 100%; height: 62%; }
  .hero-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto auto auto; padding-top: 96px; }
  .hero-k, .hero-h, .hero-side { grid-column: 1; }
  .hero-k { grid-row: 2; align-self: auto; }
  .hero-h { grid-row: 3; font-size: clamp(48px, 14.6vw, 120px); }
  .hero-side { grid-row: 4; }
  .hero-lines { display: none; }
  .hero::after { background: linear-gradient(0deg, var(--ink) 40%, rgba(11, 11, 12, .6) 50%, rgba(11, 11, 12, 0) 64%); }
  .hero-img img { object-position: 50% 50%; }

  .save-in { --pw: min(38vw, 220px); --cg: 16px; grid-template-columns: minmax(0, 1fr) var(--pw); padding-top: 104px; }
  .step { row-gap: 28px; }
  .step .scene-head { align-self: end; }
  .step .scene-copy { grid-column: 1 / -1; max-width: 46ch; }
  .step-phone { grid-row: 1; }

  .tokens-in, .faq-in, .end-in { grid-template-columns: minmax(0, 1fr); }
  .faq-side { position: static; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-side { position: static; max-height: none; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-made, .foot-copy { justify-self: start; }
}

@media (max-width: 700px) {
  body { font-size: 1rem; }
  .nav { padding: 8px 8px 0; }
  .nav-in { min-height: 56px; gap: 12px; }
  .brand span { font-size: .9375rem; }
  .nav-get { min-height: 42px; padding: 0 14px 0 18px; }
  .fan-h { font-size: clamp(56px, 17.5vw, 120px); }
  .fan-p { font-size: 1rem; }
  .fan-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .card-t { font-size: .875rem; }
  .tokens-sub { font-size: 14vw; }
  .trust-h { font-size: clamp(64px, 19vw, 140px); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .end-h { font-size: clamp(60px, 17vw, 120px); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .also-list li { padding: 16px; border-radius: 16px; }
  .also-list h3 { font-size: 1rem; }
  .also-list p { font-size: .875rem; }
}

@media (max-width: 900px) and (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .save-in { --pw: min(44vw, 220px, calc((100svh - 440px) / 2.24)); padding-top: 92px; padding-bottom: 24px; }
  .save-top { grid-column: 1 / -1; margin-bottom: 24px; }
  .rail { gap: 8px; }
  .rail li { font-size: .6875rem; letter-spacing: .06em; }
  .save-top .act-n { display: none; }
  .step { row-gap: 20px; }
  .step .scene-copy { gap: 14px; }
  .step .scene-h { font-size: min(64px, calc(184cqw / var(--len, 8))); }
  .step .scene-p { font-size: 1rem; }
  .step .scene-head { min-height: calc(var(--pw) * 2.24); }
  .save-phone { grid-row: 2; align-self: start; }
}

@media (max-width: 900px) and (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .fan-pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); padding-top: 92px; padding-bottom: 20px; }
  .fan-head { align-self: start; gap: 14px; }
  .fan-h { font-size: clamp(48px, 14vw, 96px); }
  .fan-stage { --cw: min(70vw, calc((100svh - 400px) / 2.2), 300px); grid-template-columns: none; }
  .card { top: calc(50% - 14px); }
  .card-t { font-size: .9375rem; }
}
