/* Hallmark · shape: the desk, a passport open on it, then the desks and a note · genre: editorial · theme: custom · job: try · idea: "the visitor stamps a passport page on the app's own oak desk before they own the app" · vibe: "morning desk, passport paper, indigo ink"
 * paper: oklch(96% 0.02 85) passport paper on oklch(80% 0.035 75) oak · accent: oklch(39% 0.08 270) the app's stamp ink · display: Castoro · body: Hanken Grotesk · outlier: Kalam, the app's handwriting · hero: the app's oak desk photo full bleed, an open passport spread, the headline on the left leaf and a blank right leaf you stamp · nav: only the App Store status, top right, where a button would sit; the name lives in the headline, title and footer · footer: the app icon with the action again, three links, one fine line · imagery: the app's own desk photographs and doodles; app screens follow · signature: stamping the blank leaf with the app's doodles, tilted, worn and never twice the same
 * axes: light/roman-serif/chromatic-indigo · posture: Stage, centred book · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, the page argues by doing rather than saying; the try-it leaf carries the argument, copy stays short */
/* Hallmark · waive 47c · a paper leaf with a spine shade, inside the hero spread · the passport leaf is the app's own page, built so the visitor can stamp on it */
/* Hallmark · waive 79 · the stamp tray sits in that band under the book · the tray of doodles is the hero's control row, so the space below the button holds it */
/* Hallmark · waive 81 · the right leaf of the hero spread, plain paper · the empty leaf is the stamp target, blank on purpose until the visitor presses ink onto it */
/* Hallmark · waive 84 · the hero leaf is built, the app runs only on iOS · a stampable passport leaf cannot be a screenshot; real app screens come in the sections below */
/* Hallmark · waive 39b · the station stamps in each section stand 112px · each is a rubber stamp to press, drawn at stamp size with its label, not a control in a button row */
/* Hallmark · waive 83 · the desk stage and the pages band are the app's own desk textures, with real app screens on them · the desk is the product's material, and the finish review asked for it below the hero; no stock photo is used */
@import url("./tokens.css");
@import url("./base.css");

@font-face { font-family: "Castoro"; src: url("fonts/Castoro-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("fonts/Kalam-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --color-gold: oklch(64% 0.1 75);
  --color-gold-glow: oklch(64% 0.1 75 / 0.55);
  --color-desk: oklch(80% 0.035 75);
  --color-desk-2: oklch(75% 0.04 72);
  --color-on-desk: oklch(24% 0.03 60);
  --color-on-desk-2: oklch(36% 0.035 60);
  --color-focus-on-paper: oklch(39% 0.08 270);
  --color-spine: oklch(27% 0.035 265 / 0.09);
  --color-shadow: oklch(22% 0.03 60 / 0.32);
  --color-shadow-soft: oklch(22% 0.03 60 / 0.14);
  --radius-card: 6px;
  --radius-leaf: 4px;
  --container: 1200px;
  --stamp-size: 34%;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-desk: oklch(24% 0.02 60);
    --color-desk-2: oklch(29% 0.022 60);
    --color-on-desk: oklch(93% 0.02 80);
    --color-on-desk-2: oklch(80% 0.025 80);
    --color-shadow: oklch(8% 0.01 60 / 0.6);
    --color-shadow-soft: oklch(8% 0.01 60 / 0.35);
    --color-focus: oklch(82% 0.08 80);
  }
}

body { background: var(--color-desk); color: var(--color-on-desk); }
.defs { position: absolute; width: 0; height: 0; }

/* Nav, on the desk */
.nav { position: relative; z-index: var(--z-raised); display: flex; align-items: center; justify-content: flex-end; gap: var(--space-lg); padding-block: var(--space-md); }
.soon--nav { margin: 0; }
@media (max-width: 30rem) { .soon__more { display: none; } }
.foot a:focus-visible, .privacy__link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 2px; }

/* Hero: the desk */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; isolation: isolate; }
.hero__desk { position: absolute; inset: 0; z-index: -1; }
.hero__desk img { width: 100%; height: 100%; object-fit: cover; }
.spread { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-lg); padding-bottom: var(--space-xl); }

.spread__book {
  --book-w: min(100%, 920px, calc((100svh - 230px) * 1.44));
  width: var(--book-w);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: var(--radius-leaf);
  box-shadow: 0 2px 2px var(--color-shadow-soft), 0 18px 40px -8px var(--color-shadow), 0 40px 80px -30px var(--color-shadow);
}
.leaf { position: relative; aspect-ratio: 0.72; background: var(--color-paper); color: var(--color-ink); }
.leaf--left { border-radius: var(--radius-leaf) 0 0 var(--radius-leaf); background-image: linear-gradient(to left, var(--color-spine), transparent 5%); padding: clamp(var(--space-lg), 4.5%, var(--space-2xl)); display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-md); }
.leaf--right { border-radius: 0 var(--radius-leaf) var(--radius-leaf) 0; background-image: linear-gradient(to right, var(--color-spine), transparent 5%); }

.leaf--left h1 { font-size: clamp(2.1rem, 3.6vw, 3.4rem); font-weight: 400; line-height: 1.04; letter-spacing: var(--tracking-display); color: var(--color-ink); max-width: 11ch; }
.lede { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 30ch; }
.soon { display: inline-flex; align-self: flex-start; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); font-weight: 600; white-space: nowrap; margin-top: var(--space-xs); }
@media (prefers-color-scheme: dark) { .soon { background: var(--color-paper); color: var(--color-ink); } }
.devices { font-size: var(--text-sm); color: var(--color-muted); }

/* The stampable page */
.page { position: absolute; inset: 0; cursor: crosshair; border-radius: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.page:focus-visible { outline: 2px solid var(--color-focus-on-paper); outline-offset: -6px; }
.page__hint { position: absolute; left: 0; right: 0; display: block; top: 46%; text-align: center; font: 400 var(--text-xl)/1.2 var(--font-outlier); color: var(--color-muted); pointer-events: none; transition: opacity var(--dur-long) var(--ease-out); }
.page.has-ink .page__hint { opacity: 0; }
.no-js .page__hint, .no-js .tray { display: none; }
.no-js .page { cursor: default; background: url("img/stamped-page.webp") center / cover no-repeat; }
.page__ink { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }

.stamp {
  position: absolute; left: var(--x); top: var(--y); width: var(--stamp-size); aspect-ratio: 1;
  translate: -50% -50%; rotate: var(--r); opacity: var(--o);
  background: var(--color-accent);
  -webkit-mask: var(--chop) center / contain no-repeat; mask: var(--chop) center / contain no-repeat;
  filter: var(--distress); mix-blend-mode: multiply;
  animation: press var(--dur-short) var(--ease-out) backwards;
  transition: opacity var(--dur-long) var(--ease-out);
}
.stamp.is-leaving { opacity: 0; }
.stamp--sample { --x: 70%; --y: 22%; --r: -5deg; --o: 0.82; --chop: url("img/doodles/stamped.webp"); --distress: url(#distress-3); width: 40%; animation: none; }
@keyframes press { from { scale: 1.04; opacity: 0; } to { scale: 1; opacity: var(--o); } }

/* The tray of chops and tools */
.tray { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-md); }
.tray__chops { display: flex; gap: var(--space-xs); margin: 0; padding: var(--space-xs); border: 0; border-radius: var(--radius-pill); background: var(--color-paper); box-shadow: 0 6px 18px -6px var(--color-shadow); }
.tray__chops input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tray__chops label { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.tray__chops label img { width: 42px; height: 42px; opacity: 0.78; }
.tray__chops label:hover { background: var(--color-paper-2); }
.tray__chops label:active { transform: scale(0.96); }
.tray__chops input:checked + label { background: var(--color-paper-3); box-shadow: inset 0 0 0 2px var(--color-accent); }
.tray__chops input:checked + label img { opacity: 1; }
.tray__chops input:focus-visible + label { outline: 2px solid var(--color-focus-on-paper); outline-offset: 2px; }
.tray__tools { display: flex; gap: var(--space-xs); }

.tool { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.tool:hover { background: var(--color-paper-2); }
.tool:active { transform: translateY(1px); }
.tool:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.tool:disabled { opacity: 0.55; cursor: not-allowed; }
.tool[aria-pressed="false"] .tool__waves { opacity: 0.25; }
.tool[aria-pressed="true"] { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }

/* Capture: a stamp on paper, the words, a chop on a page */
.capture { padding-block: var(--section-gap) var(--section-gap-s); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 3fr); gap: var(--gap-columns); align-items: center; }
.capture figure, .pages figure { margin: 0; }
.capture__before img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; display: block; }
/* The scan: the lifted page shows above the line, the receipt below it. The line moves by transform only. */
.scan__frame { position: relative; overflow: hidden; border-radius: var(--radius-card); box-shadow: 0 18px 40px -18px var(--color-shadow); --scan: 0; }
.scan__lifted { position: absolute; inset: 0; height: 100%; clip-path: inset(0 0 calc((1 - var(--scan)) * 100%) 0); }
.scan__line { position: absolute; left: 0; right: 0; top: 0; height: 3px; translate: 0 calc(var(--scan-px, 0px) - 1px); background: var(--color-gold); box-shadow: 0 0 14px 2px var(--color-gold-glow); pointer-events: none; }
.scan__knob { position: absolute; right: var(--space-md); top: 0; translate: 0 calc(var(--knob-px, 30px) - 50%); display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font-weight: 600; box-shadow: 0 4px 14px -4px var(--color-shadow); cursor: grab; touch-action: none; user-select: none; }
.scan__knob:active { cursor: grabbing; }
.scan__knob:focus-visible { outline: 2px solid var(--color-focus-on-paper); outline-offset: -5px; }
.scan__done { position: absolute; left: 50%; top: 22%; translate: -50% 0; padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); font-weight: 600; opacity: 0; transition: opacity var(--dur-long) var(--ease-out); pointer-events: none; }
.scan.is-done .scan__done { opacity: 1; }
.no-js .scan__lifted, .no-js .scan__line, .no-js .scan__knob, .no-js .scan__done, .no-js .scan__hint { display: none; }
.capture__text { display: grid; gap: var(--space-md); align-self: end; padding-bottom: var(--space-2xl); }
.capture h2, .pages__head h2, .slip h2 { font-size: var(--text-section); font-weight: 400; line-height: 1.05; letter-spacing: var(--tracking-display); }
.capture h2 { color: var(--color-on-desk); }
.capture__text p, .pages__head p { color: var(--color-on-desk-2); font-size: var(--text-lead); max-width: 38ch; }
.capture__after { align-self: start; margin-top: var(--space-2xl); }
.capture__after img, .pages__shots img { width: 100%; border-radius: 28px; box-shadow: 0 2px 2px var(--color-shadow-soft), 0 24px 48px -20px var(--color-shadow); }
.capture figcaption, .pages figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-on-desk-2); }

/* Desks: one desk at a time, the passport lying on it, the controls on a paper slip */
.desks { padding-block: var(--section-gap-s); }
/* The slip sits in the flow, so the stage grows past 16:9 when the slip is taller (iPad portrait) instead of cropping it */
.stage { position: relative; display: grid; align-items: end; aspect-ratio: 16 / 9; padding: var(--space-2xl) 5% 4.5%; border-radius: var(--radius-card); box-shadow: 0 30px 60px -30px var(--color-shadow); }
.stage__desk { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; transition: opacity var(--dur-long) var(--ease-in-out); }
.stage.is-loading .stage__desk { opacity: 0.6; }
.stage__book { position: absolute; right: 14%; top: 50%; width: 24%; translate: 0 -50%; rotate: 4deg; border-radius: 6px; box-shadow: 0 2px 3px var(--color-shadow), 0 26px 40px -14px var(--color-shadow); }
.slip { position: relative; justify-self: start; width: clamp(300px, 44%, 460px); display: grid; gap: var(--space-md); padding: var(--space-xl); background: var(--color-paper); color: var(--color-ink); border-radius: var(--radius-leaf); rotate: -1deg; box-shadow: 0 2px 2px var(--color-shadow-soft), 0 20px 40px -16px var(--color-shadow); }
.slip h2 { color: var(--color-ink); font-size: clamp(1.75rem, 2vw + 0.75rem, 2.75rem); }
.slip p { color: var(--color-ink-2); }
.slip__desks { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0; padding: 0; border: 0; }
.slip__desks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slip__desks label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); cursor: pointer; font-weight: 500; transition: background-color var(--dur-short) var(--ease-out); }
.slip__desks label:hover { background: var(--color-paper-2); }
.slip__desks input:checked + label { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.slip__desks input:focus-visible + label { outline: 2px solid var(--color-focus-on-paper); outline-offset: 2px; }
.slip .tool--lamp { justify-self: start; }
.slip .tool:focus-visible { outline-color: var(--color-focus-on-paper); }
.no-js .slip__desks, .no-js .tool--lamp { display: none; }

/* Pages: two screens laid on the oak desk */
.pages { position: relative; isolation: isolate; padding-block: var(--section-gap); margin-block: var(--section-gap-s); }
.pages__desk { position: absolute; inset: 0; z-index: -1; }
.pages__desk img { width: 100%; height: 100%; object-fit: cover; }
.pages__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: center; }
.pages__head { display: grid; gap: var(--space-md); padding: var(--space-xl); background: var(--color-paper); border-radius: var(--radius-leaf); rotate: 1deg; box-shadow: 0 2px 2px var(--color-shadow-soft), 0 20px 40px -16px var(--color-shadow); }
.pages__head h2 { color: var(--color-ink); }
.pages__head p { color: var(--color-ink-2); }
.pages__shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl); align-items: start; max-width: 620px; justify-self: center; }
.pages__shots li:nth-child(1) { rotate: -2deg; margin-top: var(--space-2xl); }
.pages__shots li:nth-child(2) { rotate: 1.5deg; }
.pages figcaption { color: var(--color-on-desk); font-weight: 500; }

/* Yours alone: a sheet of passport paper with a handwritten note */
.yours { padding-block: var(--section-gap-s) var(--section-gap); }
.yours__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; gap: var(--space-lg) var(--gap-columns); align-items: start; }
.yours h2 { font-size: var(--text-section); font-weight: 400; line-height: 1.05; letter-spacing: var(--tracking-display); color: var(--color-on-desk); }
.yours__note { grid-row: span 2; max-width: none; padding: var(--space-xl) var(--space-2xl); border-radius: var(--radius-leaf); background: var(--color-paper); color: var(--color-ink); font: 400 clamp(1.5rem, 1.4vw + 1rem, 2.1rem)/1.45 var(--font-outlier); rotate: -0.6deg; box-shadow: 0 2px 2px var(--color-shadow-soft), 0 24px 48px -20px var(--color-shadow); }

.story { padding-block: var(--section-gap-s); }
.story__sign { grid-column: 1; color: var(--color-on-desk-2); font: 400 var(--text-xl)/1.3 var(--font-outlier); }

/* Both devices: the iPad spread, the iPhone laid in front of it */
.both { padding-block: var(--section-gap); }
.both__head { display: grid; gap: var(--space-md); max-width: 46rem; margin-bottom: var(--space-2xl); }
.both__head h2 { font-size: var(--text-section); font-weight: 400; line-height: 1.05; letter-spacing: var(--tracking-display); color: var(--color-on-desk); overflow-wrap: break-word; min-width: 0; }
.both__head p { color: var(--color-on-desk-2); font-size: var(--text-lead); max-width: 52ch; }
.both__pair { position: relative; margin: 0; padding-right: 12%; padding-bottom: 6%; }
.both__ipad { width: 100%; border-radius: 22px; box-shadow: 0 2px 2px var(--color-shadow-soft), 0 30px 60px -24px var(--color-shadow); }
.both__phone { position: absolute; right: 0; bottom: 0; width: 22%; border-radius: 28px; rotate: 3deg; box-shadow: 0 2px 2px var(--color-shadow-soft), 0 30px 50px -18px var(--color-shadow); }
.both figcaption { max-width: 62%; margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-on-desk-2); }

/* Privacy: plain words on the desk */
.privacy { padding-block: var(--section-gap-s) var(--section-gap); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
.privacy h2 { font-size: var(--text-section); font-weight: 400; line-height: 1.05; letter-spacing: var(--tracking-display); color: var(--color-on-desk); overflow-wrap: break-word; min-width: 0; }
.privacy__facts { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.privacy__facts li { display: grid; gap: var(--space-sm); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-gold); color: var(--color-on-desk-2); }
.privacy__facts strong { font: 400 var(--text-xl)/1.15 var(--font-display); color: var(--color-on-desk); }
.privacy__link { justify-self: start; color: var(--color-on-desk); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }

/* Footer */
.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-lg) var(--gap-columns); padding-block: var(--space-2xl) var(--space-xl); border-top: var(--rule-hair) solid var(--color-gold); }
.foot__action { display: flex; align-items: center; gap: var(--space-md); }
.foot__action img { border-radius: 14px; box-shadow: 0 6px 16px -6px var(--color-shadow); }
.foot__action .soon { margin: 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.foot__links a { color: var(--color-on-desk); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot__links a:hover { text-decoration: underline; }
.foot__fine { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--color-on-desk-2); }

/* Phones: one leaf at a time, text first */
/* The stamp rally: a station in each section and a sheet pinned to the corner. Added by script only. */
.has-station { position: relative; }
.station { position: absolute; top: var(--space-lg); right: var(--space-lg); z-index: 2; display: grid; justify-items: center; gap: var(--space-xs); width: 96px; padding: var(--space-sm); border: 0; border-radius: var(--radius-card); background: none; color: var(--color-on-desk-2); font: 500 var(--text-xs)/1.2 var(--font-body); cursor: pointer; }
.station__label { padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); }
/* Each station is a paper disc on the desk: the chop shows faintly until pressed, then in full ink. */
.station__ink { position: relative; width: 76px; aspect-ratio: 1; border-radius: var(--radius-pill); background: var(--color-paper); box-shadow: 0 0 0 2px var(--color-ink-2), 0 6px 14px -6px var(--color-shadow); transition: box-shadow var(--dur-short) var(--ease-out); }
.station__ink::after { content: ""; position: absolute; inset: 9px; background: var(--color-ink-2); -webkit-mask: var(--chop) center / contain no-repeat; mask: var(--chop) center / contain no-repeat; rotate: var(--r); opacity: 0.3; }
.station:hover .station__ink { box-shadow: 0 0 0 3px var(--color-accent), 0 6px 14px -6px var(--color-shadow); }
.station.is-pressed .station__ink { box-shadow: 0 0 0 2px var(--color-accent), 0 6px 14px -6px var(--color-shadow); }
.station.is-pressed .station__ink::after { background: var(--color-accent); opacity: 1; animation: station-press var(--dur-long) var(--ease-out) backwards; }
.station:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.desks .station, .story .station { color: var(--color-ink-2); }
@keyframes station-press { from { scale: 1.3; opacity: 0; } }
.rally { position: fixed; right: var(--space-md); bottom: var(--space-md); z-index: 20; display: grid; gap: var(--space-xs); max-width: 18rem; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); box-shadow: 0 2px 2px var(--color-shadow-soft), 0 18px 36px -14px var(--color-shadow); font-size: var(--text-sm); opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity var(--dur-long) var(--ease-out), translate var(--dur-long) var(--ease-out); }
.rally.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.rally.is-closed { opacity: 0; translate: 0 12px; pointer-events: none; }
.rally__count { margin: 0; font-weight: 600; }
.rally__slots { display: flex; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.rally__slot { width: 34px; aspect-ratio: 1; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--color-rule); }
.rally__ink { display: block; width: 100%; height: 100%; background: var(--color-accent); -webkit-mask: var(--chop) center / contain no-repeat; mask: var(--chop) center / contain no-repeat; opacity: 0; scale: 1.3; transition: opacity var(--dur-short) var(--ease-out), scale var(--dur-short) var(--ease-out); }
.rally__slot.is-inked { box-shadow: none; }
.rally__slot.is-inked .rally__ink { opacity: 1; scale: 1; }
.rally__done { display: grid; gap: var(--space-xs); padding-top: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); }
.rally__done p { margin: 0; }
.rally__title { font: 400 var(--text-lg)/1.2 var(--font-display); }
.rally__close { justify-self: start; min-height: 44px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: var(--color-paper-3); color: var(--color-ink); font: inherit; font-weight: 600; cursor: pointer; }
.rally__close:focus-visible { outline: 2px solid var(--color-focus-on-paper); outline-offset: 2px; }

@media (max-width: 40rem) {
  .station { position: relative; top: auto; right: auto; grid-column: 1 / -1; justify-self: end; display: flex; align-items: center; width: auto; margin: 0 var(--space-md) var(--space-sm) auto; }
  .station__ink { width: 56px; }
  .station__ink::after { inset: 7px; }
  .rally { left: var(--space-sm); right: var(--space-sm); bottom: var(--space-sm); max-width: none; }
  .rally:not(.is-complete) { grid-template-columns: 1fr auto; align-items: center; }
  .hero { min-height: auto; }
  .spread { gap: var(--space-md); }
  .spread__book { --book-w: 100%; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); box-shadow: none; }
  .leaf { border-radius: var(--radius-leaf); box-shadow: 0 2px 2px var(--color-shadow-soft), 0 18px 40px -12px var(--color-shadow); }
  .leaf--left { aspect-ratio: auto; background-image: none; padding: var(--space-xl) var(--space-lg); }
  .leaf--right { background-image: none; aspect-ratio: 1; }
  .stamp--sample { display: none; }
  .leaf--left h1 { font-size: 2.25rem; }
  .tray__chops label { width: 44px; height: 44px; }
  .tray__chops label img { width: 36px; height: 36px; }
  .yours__inner, .capture, .pages__inner { grid-template-columns: minmax(0, 1fr); }
  .capture__text { order: -1; padding-bottom: 0; }
  .capture__after { margin-top: 0; max-width: 280px; justify-self: center; }
  .stage { aspect-ratio: auto; padding: 0; box-shadow: none; }
  .stage__desk { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-card); }
  .stage__book { right: 10%; top: 0; width: 34%; translate: 0 12%; }
  .slip { justify-self: stretch; width: auto; margin: calc(-1 * var(--space-xl)) var(--space-sm) 0; rotate: none; }
  .pages__shots { gap: var(--space-md); max-width: none; }
  .pages__shots li { rotate: none !important; margin-top: 0 !important; }
  .yours__inner { grid-template-rows: none; }
  .story__sign { grid-column: auto; }
  .privacy__facts { grid-template-columns: minmax(0, 1fr); }
  .both__pair { padding-right: 18%; padding-bottom: 14%; }
  .both__ipad { border-radius: 12px; }
  .both__phone { width: 30%; border-radius: 16px; }
  .yours__note { grid-row: auto; padding: var(--space-lg); rotate: none; }
  .foot { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .stamp { animation: none; transition: none; }
  .tool, .tray__chops label, .slip__desks label, .stage__desk, .page__hint, .scan__done, .rally, .rally__ink, .station__ink { transition: none; }
  .station.is-pressed .station__ink::after { animation: none; }
}
