/* Hallmark · shape: Sheet-led (hero, results sheet, reactions, filter well, index, steps, ink statement, questions, download) · genre: editorial · theme: Sport (deal 3/3, seed iphone-app-rings-real-f8db·6344afd0·2026-12-05·r0) · redesign: full
 * hero: Stage (/) · nav: slab on the ink, wordmark, six links and the app action · footer: mast, the wordmark over the links and the legal line · imagery: the product, four simulator screenshots of PostAlarm · signature: the results sheet, eight real X posts with the time in mono and what PostAlarm did with each
 * axes: light/display-condensed/chromatic-volt · posture: restrained · contrast: pass · fold: pass · job: try · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, the page argues that most posts should stay quiet; the sheet shows five of eight posts not ringing */
/* Hallmark · waive 47b · one iPhone frame in the hero, real PostAlarm screenshots inside · the user asked to see the alarm on an iPhone, not a bare screen */
/* Hallmark · answered F15 · the download row sets icon, words and button apart at 40px, it is a band, not a column split */
/* Hallmark · answered F7 · the shots share one frame on purpose, they are the same phone */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --nav-height: 72px;
  --shot-radius: var(--radius-card);
  --ink-soft: color-mix(in oklab, var(--color-paper) 72%, var(--color-ink));
  --ink-rule: color-mix(in oklab, var(--color-paper) 22%, var(--color-ink));
  --color-ios-black: oklch(4% 0.003 260); --color-ios-white: oklch(99.5% 0.002 260); --color-ios-gray: oklch(62% 0.01 260); --color-ios-fill: oklch(23% 0.004 260);
  --color-ios-orange: oklch(76% 0.17 58); --color-ios-blue: oklch(55% 0.19 255); --color-ios-bg: oklch(96% 0.004 260); --color-ios-rule: oklch(88% 0.004 260);
  --color-ios-banner: oklch(93% 0.006 260 / 0.92); --color-ios-wall: oklch(30% 0.06 255); --color-ios-wall-2: oklch(18% 0.05 262);
  --font-ios: -apple-system, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  --color-device: oklch(24% 0.012 260); --color-device-edge: oklch(46% 0.012 260); --color-device-glass: oklch(8% 0.01 260);
}

h1, h2, h3 { text-transform: uppercase; line-height: 1.02; }

/* Chrome */
.top { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.top.on-ink { background: var(--color-ink); color: var(--color-paper); border-bottom-color: var(--ink-rule); }
.top .in { display: flex; align-items: center; gap: var(--space-lg); min-height: var(--nav-height); }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); font: var(--display-weight) var(--text-xl)/1 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); text-decoration: none; color: inherit; }
.brand img { width: 32px; height: 32px; border-radius: var(--radius-card); }
.top nav { display: flex; align-items: center; gap: var(--space-lg); margin-left: auto; }
.top nav a:not(.btn) { font-size: var(--text-sm); font-weight: 500; text-decoration: none; white-space: nowrap; color: inherit; text-decoration-line: underline; text-decoration-color: transparent; text-underline-offset: 0.3em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.top nav a:not(.btn):hover, .top nav a[aria-current] { text-decoration-color: var(--color-accent-deep); }
.top.on-ink nav a:not(.btn):hover { text-decoration-color: var(--color-accent); }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: var(--space-sm) var(--space-lg); border: var(--rule-bar) solid transparent; border-radius: var(--radius-card); font: var(--display-weight) var(--text-md)/1.25 var(--font-display); text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn--small { min-height: 44px; padding: var(--space-xs) var(--space-md); font-size: var(--text-sm); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-paper)); }
.btn--secondary { border-color: var(--color-ink); color: var(--color-ink); }
.btn--secondary:hover { background: var(--color-paper-2); }
.on-ink .btn--secondary { border-color: var(--color-paper); color: var(--color-paper); }
.on-ink .btn--secondary:hover { background: var(--color-ink-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.on-ink .btn:focus-visible, .on-ink a:focus-visible, .on-ink summary:focus-visible { outline-color: var(--color-accent); }
.btn[aria-disabled="true"] { cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { background: var(--color-accent); }
.btn[aria-disabled="true"]:active { transform: none; }
a:hover { text-decoration-color: var(--color-accent-deep); }
.link-strong { font-weight: 500; text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; text-decoration-color: var(--color-rule-2); transition: text-decoration-color var(--dur-short) var(--ease-out); }
.link-strong:hover { text-decoration-color: var(--color-accent-deep); }
.link-strong:active { color: var(--color-ink-2); }

/* Shared */
.on-ink { background: var(--color-ink); color: var(--color-paper); }
.on-ink .lead, .on-ink figcaption { color: var(--ink-soft); }
.well { background: var(--color-paper-2); border-top: var(--rule-bar) solid var(--color-rule-2); }
.lead { color: var(--color-ink-2); }
.note, figcaption, .meta { font-size: var(--text-sm); color: var(--color-muted); }
.note { max-width: 70ch; margin-top: var(--space-lg); }
.display-s { font-size: var(--text-display-s); max-width: 18ch; }
.shot { width: 100%; height: auto; border-radius: var(--shot-radius); outline: 1px solid color-mix(in oklab, var(--color-ink) 10%, transparent); outline-offset: -1px; }
.on-ink .shot { outline-color: var(--ink-rule); }
figure { margin: 0; }
figure figcaption { margin-top: var(--space-sm); max-width: 36ch; }
.split-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.split-head h2 { grid-column: 1 / 7; }
.split-head .lead { grid-column: 8 / 13; }
mark { background: var(--color-accent); color: var(--color-accent-ink); padding-inline: var(--space-3xs); }

/* Hero */
.hero { min-height: calc(100dvh - var(--nav-height)); display: flex; align-items: center; padding-block: var(--space-2xl); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-3xl); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lead { margin-top: var(--space-lg); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero-shot { justify-self: center; display: flex; flex-direction: column; align-items: center; }
.hero-shot img { width: auto; height: min(68dvh, 640px); max-width: 100%; }
.hero-shot figcaption { text-align: center; }

/* Results sheet */
.sheet { padding-block: var(--section-gap) var(--section-gap-s); }
.sheet-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-3xl); align-items: start; }
.sheet .lead { margin-top: var(--space-md); }
.table-wrap { margin-top: var(--space-2xl); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; border-top: var(--rule-bar) solid var(--color-rule-2); border-bottom: var(--rule-bar) solid var(--color-rule-2); }
th, td { text-align: left; vertical-align: top; padding: var(--space-md) var(--space-md) var(--space-md) 0; border-top: var(--rule-hair) solid var(--color-rule); }
thead th { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); border-top: 0; padding-block: var(--space-sm); }
tbody th { font-size: var(--text-md); font-weight: 500; white-space: nowrap; }
td.time { font: 500 var(--text-md)/1.5 var(--font-outlier); font-variant-numeric: tabular-nums; white-space: nowrap; }
td:last-child { padding-right: 0; white-space: nowrap; }
td.rang { font-weight: 500; }
.fill { display: inline-block; background: var(--color-accent); color: var(--color-accent-ink); padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-card); }
tr.lead-row { background: var(--color-paper-2); }
tr.lead-row th { padding-left: 0; }
.sheet-shot { position: sticky; top: calc(var(--nav-height) + var(--space-lg)); }

/* Reactions */
.modes { padding-block: var(--section-gap-s) var(--section-gap); }
.modes-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.modes .lead { margin-top: var(--space-md); }
.reactions { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; border-top: var(--rule-bar) solid var(--color-rule-2); }
.reactions li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-lg); padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.reactions svg { width: 32px; height: 32px; fill: none; stroke: var(--color-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reactions h3 { font-size: var(--text-2xl); }
.reactions p { margin-top: var(--space-xs); color: var(--color-ink-2); }
.modes-shot img { max-height: 760px; width: auto; margin-inline: auto; }
.modes-shot figcaption { margin-inline: auto; text-align: center; }

/* Word filter */
.filter { padding-block: var(--section-gap-s); }
.filter-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.filter-shot img { max-height: 720px; width: auto; }
.rule { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--space-2xl) 0 0; border-top: var(--rule-bar) solid var(--color-rule-2); }
.rule div { padding: var(--space-md) var(--space-md) var(--space-lg) 0; border-right: var(--rule-hair) solid var(--color-rule); }
.rule div + div { padding-left: var(--space-md); }
.rule div:last-child { border-right: 0; }
.rule dt { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.rule dd { margin: var(--space-xs) 0 0; font: var(--display-weight) var(--text-2xl)/1.05 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); }
.outcomes { list-style: none; margin: var(--space-xl) 0 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.outcomes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-lg); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.outcomes q { font-size: var(--text-lead); quotes: "“" "”"; }
.outcomes strong { font-weight: 500; white-space: nowrap; }

/* Follow anyone */
.follow { padding-block: var(--section-gap-l) var(--section-gap); }
.index { border-top: var(--rule-bar) solid var(--color-rule-2); }
.index-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); align-items: baseline; }
.index-row h3 { grid-column: 1 / 4; font-size: var(--text-2xl); }
.index-row p { grid-column: 4 / 8; color: var(--color-ink-2); }
.index-row .handles { grid-column: 8 / 13; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); }
.handles a { font-size: var(--text-md); font-weight: 500; text-decoration-line: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.25em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.handles a:hover { text-decoration-color: var(--color-accent-deep); }
.market { margin-top: var(--section-gap-s); }
.market h3 { font-size: var(--text-3xl); max-width: 24ch; }
.market-accounts { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule-bar) solid var(--color-rule-2); }
.market-accounts li { border-bottom: var(--rule-hair) solid var(--color-rule); border-right: var(--rule-hair) solid var(--color-rule); }
.market-accounts li:nth-child(3n) { border-right: 0; }
.market-account { display: grid; gap: var(--space-3xs); padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; text-decoration: none; min-height: 100%; transition: background-color var(--dur-short) var(--ease-out); }
.market-accounts li:not(:nth-child(3n + 1)) .market-account { padding-left: var(--space-lg); }
.market-account:hover { background: var(--color-paper-2); }
.market-account:active { background: var(--color-paper-3); }
.market-account strong { font-size: var(--text-lg); font-weight: 500; }
.market-handle { font-weight: 500; color: var(--color-ink-2); text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.25em; }
.market-account:hover .market-handle { text-decoration-color: var(--color-accent-deep); }
.market-why { font-size: var(--text-sm); color: var(--color-muted); }
.market-footer { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-xl); align-items: baseline; justify-content: space-between; margin-top: var(--space-xl); }

/* Steps */
.how { padding-block: var(--section-gap-s) var(--section-gap); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule-bar) solid var(--color-rule-2); }
.steps li { counter-increment: step; padding: var(--space-xl) var(--space-xl) var(--space-2xl); border-right: var(--rule-hair) solid var(--color-rule); min-height: 300px; display: flex; flex-direction: column; }
.steps li:first-child { padding-left: 0; }
.steps li:last-child { border-right: 0; }
.steps li::before { content: counter(step); font: var(--display-weight) var(--text-display)/0.9 var(--font-display); font-variant-numeric: tabular-nums; margin-bottom: auto; padding-bottom: var(--space-2xl); }
.steps li.live { background: var(--color-accent); color: var(--color-accent-ink); padding-left: var(--space-xl); }
.steps h3 { font-size: var(--text-2xl); }
.steps p { margin-top: var(--space-xs); }

/* Privacy band */
.privacy { padding-block: var(--section-gap-s); }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: end; }
.privacy-list { list-style: none; margin: 0; padding: 0; border-top: var(--rule-bar) solid var(--color-paper); }
.privacy-list li { padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--ink-rule); font-size: var(--text-lg); }

/* Questions */
.faq { padding-block: var(--section-gap) var(--section-gap-s); }
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); }
.faq-grid h2 { grid-column: 1 / 5; }
.faq-list { grid-column: 5 / 13; border-top: var(--rule-bar) solid var(--color-rule-2); }
details { border-bottom: var(--rule-hair) solid var(--color-rule); }
summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); min-height: 64px; padding-block: var(--space-md); cursor: pointer; list-style: none; font-size: var(--text-lg); font-weight: 500; transition: background-color var(--dur-short) var(--ease-out); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: var(--display-weight) var(--text-2xl)/1 var(--font-display); flex: none; }
details[open] summary::after { content: "−"; }
summary:hover { background: var(--color-paper-2); }
summary:active { background: var(--color-paper-3); }
summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
details p { padding-bottom: var(--space-lg); color: var(--color-ink-2); }

/* Download */
.download { padding-block: var(--section-gap-s); }
.download-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-xl); align-items: center; }
.app-icon { width: 128px; height: 128px; border-radius: 28px; }
.download .lead { margin-top: var(--space-sm); }

/* Footer */
footer.site { padding-block: var(--space-3xl) var(--space-2xl); border-top: var(--rule-bar) solid var(--color-rule-2); }
footer.site .in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); }
footer.site .wordmark { grid-column: 1 / 8; font: var(--display-weight) var(--text-display)/0.95 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); }
footer.site nav { grid-column: 8 / 13; display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-xl); align-self: end; }
footer.site nav a { font-weight: 500; text-decoration-line: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.25em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
footer.site nav a:hover { text-decoration-color: var(--color-accent-deep); }
footer.site .legal, footer.site > .in > div { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--color-muted); max-width: 90ch; }

/* Documents: support, privacy, blog */
.doc { max-width: 52rem; margin-inline: auto; padding: var(--space-3xl) var(--gutter) var(--section-gap-s); }
.doc > h1 { font-size: var(--text-display-s); }
.doc .card { padding-block: var(--space-xl); border-top: var(--rule-bar) solid var(--color-rule-2); }
.doc .card + .card { border-top-width: var(--rule-hair); border-top-color: var(--color-rule); }
.doc .card h2 { font-size: var(--text-2xl); max-width: none; }
.doc .card h3 { font-family: var(--font-body); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: var(--text-lg); margin-top: var(--space-xl); }
.doc .card p, .doc .card ul, .doc .card ol { margin-top: var(--space-sm); }
.doc .card li + li { margin-top: var(--space-xs); }
.doc .card a { text-decoration-color: var(--color-accent-deep); }
.mail { display: inline-block; margin-top: var(--space-md); font: 500 var(--text-xl)/1.3 var(--font-body); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.post-head { max-width: 52rem; margin-inline: auto; padding: var(--space-3xl) var(--gutter) 0; }
.post-head h1 { font-size: var(--text-display-s); max-width: 22ch; }
.post-head .lead { margin-top: var(--space-md); }
.post-head .meta { margin-top: var(--space-md); }
.kicker { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); margin-bottom: var(--space-sm); }
.toc { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin-top: var(--space-xl); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); font-weight: 500; }
.toc a { text-decoration-color: var(--color-rule); text-underline-offset: 0.25em; }
.post-list { max-width: 52rem; margin-inline: auto; padding: var(--space-xl) var(--gutter) var(--section-gap-s); }
.post-card { display: block; padding-block: var(--space-xl); border-top: var(--rule-bar) solid var(--color-rule-2); border-bottom: var(--rule-hair) solid var(--color-rule); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.post-card:hover { background: var(--color-paper-2); }
.post-card:active { background: var(--color-paper-3); }
.post-card h2 { font-size: var(--text-3xl); margin-top: var(--space-xs); }
.post-card p { margin-top: var(--space-sm); }
.setup { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }
.setup span { font-size: var(--text-sm); font-weight: 500; padding: var(--space-2xs) var(--space-sm); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); }
.setup .a { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
.acct { list-style: none; padding: 0; margin-top: var(--space-lg) !important; border-top: var(--rule-hair) solid var(--color-rule); }
.acct li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); margin: 0 !important; }
.acct .h { font-weight: 500; overflow-wrap: anywhere; }
.acct .why { color: var(--color-ink-2); }
.warn { margin-block: var(--space-xl); padding: var(--space-lg) var(--space-xl); background: var(--color-paper-2); border-top: var(--rule-bar) solid var(--color-rule-2); }
.warn a { text-decoration-color: var(--color-accent-deep); }

/* Narrow screens */
@media (max-width: 60rem) {
  .top nav a.hide-sm { display: none; }
  .hero { min-height: 0; padding-block: var(--space-2xl) var(--space-3xl); }
  .hero-grid, .sheet-grid, .modes-grid, .filter-grid, .privacy-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero-shot img { height: auto; width: min(100%, 320px); }
  .sheet-shot { position: static; max-width: 320px; }
  .modes-shot img, .filter-shot img { max-height: none; width: min(100%, 320px); }
  .filter-shot { order: 2; }
  .split-head, .faq-grid, footer.site .in { grid-template-columns: minmax(0, 1fr); }
  .split-head h2, .split-head .lead, .faq-grid h2, .faq-list, footer.site .wordmark, footer.site nav { grid-column: 1 / -1; }
  .split-head .lead { margin-top: var(--space-md); }
  .faq-list { margin-top: var(--space-xl); }
  .index-row { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xs); }
  .index-row h3, .index-row p, .index-row .handles { grid-column: 1 / -1; }
  .market-accounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-accounts li:nth-child(3n) { border-right: var(--rule-hair) solid var(--color-rule); }
  .market-accounts li:nth-child(2n) { border-right: 0; }
  .market-accounts li .market-account { padding-left: 0 !important; }
  .market-accounts li:nth-child(2n) .market-account { padding-left: var(--space-lg) !important; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { border-right: 0; border-bottom: var(--rule-hair) solid var(--color-rule); min-height: 0; padding-left: 0; }
  .steps li::before { font-size: var(--text-3xl); padding-bottom: var(--space-md); }
  .download-grid { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .app-icon { width: 88px; height: 88px; border-radius: 20px; }
}
@media (max-width: 40rem) {
  .top nav { gap: var(--space-md); }
  .top nav a:not(.btn) { display: none; }
  .brand { font-size: var(--text-lg); }
  .rule { grid-template-columns: minmax(0, 1fr); }
  .rule div, .rule div + div { padding-left: 0; border-right: 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
  .outcomes li { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .market-accounts { grid-template-columns: minmax(0, 1fr); }
  .market-accounts li { border-right: 0 !important; }
  .market-accounts li .market-account { padding-left: 0 !important; }
  .acct li { grid-template-columns: minmax(0, 1fr); gap: var(--space-3xs); }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-md); row-gap: var(--space-2xs); padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
  tbody tr:first-child { border-top: 0; }
  tbody th, tbody td { display: block; padding: 0; border: 0; }
  tbody td:nth-child(3) { grid-column: 1 / -1; }
  tbody td:last-child { grid-column: 1 / -1; }
  tr.lead-row { padding-inline: var(--space-sm); }
  .table-wrap { overflow-x: visible; }
}

/* Document details */
.doc-meta { margin-top: var(--space-sm); margin-bottom: var(--space-xl); }
.doc--post { padding-top: var(--space-xl); }
.doc--404 { text-align: left; }
.doc--404 h1 { margin-top: var(--space-lg); }
.doc--404 .meta { margin-top: var(--space-md); }

/* Homepage alert-rule demo */
.hero .actions { align-items: center; }
.release-note { color: inherit; font-size: var(--text-sm); }
#cpi-example { scroll-margin-top: var(--nav-height); }
#cpi-example .lead { margin-top: var(--space-md); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--space-xl); gap: var(--space-lg); }
.demo-options { border: 0; min-width: 0; padding: 0; margin: 0; }
.demo-options legend { margin-bottom: var(--space-sm); }
.demo-options label { display: block; cursor: pointer; padding: 12px; border: 1px solid var(--color-rule); }
.demo-options label + label { margin-top: 6px; }
.demo-options label:has(:checked) { border-color: currentColor; font-weight: 600; }
.demo-options input { accent-color: var(--color-accent-deep); }
.demo-result { display: grid; align-content: center; gap: 8px; padding: var(--space-lg); background: var(--color-accent); color: var(--color-accent-ink); }
.demo-result.quiet { background: var(--color-paper-2); color: var(--color-ink); }
.demo-result h3 { font-size: var(--text-3xl); }
.market-section { padding-bottom: var(--section-gap-s); }
.posts-toggle { margin-top: 16px; background: transparent; color: inherit; border: 1px solid currentColor; padding: 10px 16px; cursor: pointer; font: inherit; }
#watchlist-posts tr[hidden], .posts-toggle[hidden] { display: none; }
@media (max-width: 40rem) {
  .hero { padding-block: 20px; }
  .hero-grid { gap: 14px; }
  .hero h1 { font-size: clamp(32px, 9vw, 48px); max-width: 18ch; }
  .hero .lead, .hero .actions { margin-top: 10px; }
  .hero-shot img { width: auto; height: clamp(195px, 49svh, 380px); }
  .demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) and (max-height: 620px) {
  .hero { padding-block: 12px; }
  .hero .actions { gap: 6px 12px; }
  .hero-shot img { height: 195px; }
}

/* Hero flow: post, alarm, post opened */
.flow { justify-self: center; display: flex; flex-direction: column; align-items: center; }
.flow-stage { display: grid; height: min(64dvh, 620px); aspect-ratio: 552 / 1200; }
.flow-frame { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; }
.js .flow-frame { opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.js .flow-frame.is-on { opacity: 1; }
.flow-post-card { display: flex; flex-direction: column; justify-content: center; gap: var(--space-sm); padding: var(--space-lg); background: var(--color-paper); color: var(--color-ink); border-radius: var(--radius-card); }
.flow-name { font-weight: 500; font-size: var(--text-md); }
.flow-handle, .flow-time { font-size: var(--text-sm); color: var(--color-muted); }
.flow-text { font-size: var(--text-sm); color: var(--color-ink-2); }
.flow-quote { font: var(--display-weight) var(--text-2xl)/1.05 var(--font-display); color: var(--color-ink); letter-spacing: var(--tracking-display); margin-block: var(--space-sm); }
.flow-steps { display: none; flex-wrap: wrap; justify-content: center; gap: var(--space-xs); margin-top: var(--space-md); }
.js .flow-steps { display: flex; }
.flow-steps button { min-height: 44px; padding: var(--space-xs) var(--space-sm); background: transparent; color: var(--color-paper); border: var(--rule-hair) solid var(--ink-rule); border-radius: var(--radius-card); font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.flow-steps button:hover { border-color: var(--color-paper); }
.flow-steps button:active { background: var(--color-ink-2); }
.flow-steps button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.flow-steps button[data-go][aria-pressed="true"] { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
.flow-steps .flow-pause { color: var(--ink-soft); }
.flow figcaption { text-align: center; }
@media (max-width: 60rem) { .flow-stage { height: auto; width: min(100%, 300px); } }

/* The iPhone around the flow */
.phone { position: relative; padding: var(--space-sm); background: var(--color-device-glass); border-radius: 56px; box-shadow: 0 0 0 3px var(--color-device), 0 0 0 4px var(--color-device-edge), 0 30px 60px -20px color-mix(in oklab, var(--color-device-glass) 70%, transparent); box-sizing: content-box; }
.phone .flow-frame { border-radius: 45px; outline: 0; overflow: hidden; }
.phone::before, .phone::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: var(--color-device-edge); }
.phone::before { left: -7px; top: 18%; height: 7%; box-shadow: 0 calc(var(--phone-h, 620px) * 0.1) 0 var(--color-device-edge), 0 calc(var(--phone-h, 620px) * 0.19) 0 var(--color-device-edge); }
.phone::after { right: -7px; top: 26%; height: 12%; }
@media (max-width: 60rem) { .phone { border-radius: 44px; padding: var(--space-xs); } .phone .flow-frame { border-radius: 36px; } }

.hero-terms { margin-top: var(--space-md); font-size: var(--text-md); font-weight: 500; color: var(--color-paper); }

/* Hero demo: a screen recording of PostAlarm inside the iPhone frame */
.demo { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); }
.screen { display: block; height: min(64dvh, 620px); aspect-ratio: 402 / 874; border-radius: 45px; object-fit: cover; background: var(--color-ios-black); }
.demo-pause { min-height: 44px; padding: var(--space-xs) var(--space-md); background: transparent; color: var(--ink-soft); border: var(--rule-hair) solid var(--ink-rule); border-radius: var(--radius-card); font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: border-color var(--dur-short) var(--ease-out); }
.demo-pause:hover { border-color: var(--color-paper); }
.demo-pause:active { background: var(--color-ink-2); }
.demo-pause:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.demo figcaption { text-align: center; max-width: 40ch; }
@media (max-width: 60rem) { .screen { height: auto; width: min(72vw, 300px); border-radius: 36px; } }
