/* WhoseVoice.app: paper, ink and one accent. Light by default, lamp-lit dark variant. */

:root {
  --accent-l: #28406A;
  --accent-d: #A9BEE3;
  --paper: #F6F0E4;
  --paper-2: #EEE6D5;
  --card: #FBF8F1;
  --ink: #24201B;
  --ink-2: #5C5448;
  --rule: #DCD2BF;
  --line: #8F8473;
  --required: #B3261E;
  --accent: var(--accent-l);
  --on-accent: #FBF8F1;
  --shadow: 0 1px 2px rgba(60, 45, 20, .08), 0 12px 32px -12px rgba(60, 45, 20, .22);
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  color-scheme: light;
}
:root[data-accent="teal"] { --accent-l: #1D5256; --accent-d: #8CC9C4; }
:root[data-accent="oxblood"] { --accent-l: #6E2430; --accent-d: #E3A6AB; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1B1814; --paper-2: #231F1A; --card: #27221C; --ink: #ECE3D2; --ink-2: #B4A994;
    --rule: #3B342B; --line: #7A705F; --required: #F2A49B; --accent: var(--accent-d); --on-accent: #1B1814;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1B1814; --paper-2: #231F1A; --card: #27221C; --ink: #ECE3D2; --ink-2: #B4A994;
  --rule: #3B342B; --line: #7A705F; --required: #F2A49B; --accent: var(--accent-d); --on-accent: #1B1814;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .4 0 0 0 0 .3 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::placeholder { color: var(--ink-2); opacity: .85; }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- Frame ------------------------------------------------------------------ */

.frame { min-height: 100vh; display: flex; flex-direction: column; --width: 1120px; }
.frame.narrow { --width: 880px; }
.frame > main { flex: 1; width: 100%; }
.wrap { width: 100%; max-width: var(--width); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.site-header { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand svg { color: var(--accent); }
.wordmark { font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: -.01em; line-height: 1; }
.wordmark em { font-weight: 400; }
.wordmark .tld { font-size: .62em; color: var(--ink-2); letter-spacing: 0; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 10px 12px; color: var(--ink-2); text-decoration: none; font-size: 15px; min-height: 44px; display: flex; align-items: center; white-space: nowrap; }
.nav-link:hover { color: var(--ink); }
.theme-toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; background: transparent; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; }
.theme-toggle:hover { color: var(--ink); border-color: var(--line); }

.site-footer { margin-top: 96px; border-top: 1px solid var(--rule); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
.site-footer a { color: var(--ink-2); padding: 6px 0; }
.site-footer a:hover { color: var(--ink); }
.site-footer p { font-size: 14px; color: var(--ink-2); }
.narrow .site-footer { margin-top: 0; }
.narrow .site-footer .wrap { padding-top: 20px; padding-bottom: 28px; gap: 12px; font-size: 14px; }
.narrow .site-footer nav { font-size: 14px; gap: 4px 18px; }

/* --- Type ------------------------------------------------------------------- */

.display { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 6vw, 52px); letter-spacing: -.025em; line-height: 1.06; text-wrap: balance; }
.display.small { font-size: 36px; letter-spacing: -.02em; line-height: 1.1; }
.section-title { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -.015em; line-height: 1.15; margin-bottom: 28px; }
.lede { color: var(--ink-2); font-size: 18px; text-wrap: pretty; }
.kicker { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-2); }
.kicker.accent { color: var(--accent); }
.overline { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.fine { font-size: 15px; }

/* --- Controls --------------------------------------------------------------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; background: var(--accent); color: var(--on-accent); border: 1px solid transparent; border-radius: 4px; text-decoration: none; font: inherit; font-size: 17px; font-weight: 500; cursor: pointer; transition: transform .15s; }
.btn:hover { color: var(--on-accent); transform: translateY(-1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.outline:hover { color: var(--ink); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--line); min-height: 48px; padding: 0 20px; font-size: inherit; }
.btn.compact { min-height: 48px; padding: 0 16px; font-size: inherit; }
.btn.large { min-height: 60px; padding: 0 32px; font-size: 18px; }
.btn.soon, .btn.soon:disabled { background: transparent; color: var(--ink-2); border: 1px dashed var(--line); opacity: 1; cursor: not-allowed; }
.link-button { background: none; border: none; padding: 0; min-height: 44px; font: inherit; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--ink); }
.link-button.inline { min-height: 0; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-weight: 500; }
.input, .textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); color: var(--ink); font: inherit; }
.textarea { line-height: 1.6; resize: vertical; }
.input.compact { min-height: 48px; padding: 0 12px; font-size: 16px; flex: 1; min-width: 0; }
.input.mono { font-family: ui-monospace, Menlo, monospace; font-size: 14px; }

.notice { padding: 18px 22px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper-2); font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.notice strong { color: var(--ink); font-weight: 500; }
.alert { padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 4px; background: var(--card); margin-bottom: 20px; }

/* Radio cards: option and theme pickers */
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.option { position: relative; text-align: left; color: var(--ink); cursor: pointer; background: var(--card); border: 2px solid var(--rule); border-radius: 6px; padding: 24px; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; align-content: start; }
.option:has(input:checked) { border-color: var(--accent); }
.option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; }
.option .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); opacity: 0; }
.option input:checked + .dot::after { opacity: 1; }
.option .name { font-family: var(--serif); font-weight: 500; font-size: 26px; }
.option .price { font-family: var(--serif); font-size: 24px; }
.option .about { grid-column: 1 / -1; color: var(--ink-2); }
.options.tiers .option { min-height: 180px; }
.options.themes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.options.themes .option { padding: 20px 22px; grid-template-columns: 20px minmax(0, 1fr); gap: 6px 14px; align-items: start; }
.options.themes .dot { margin-top: 6px; }
.options.themes .name { font-weight: 400; font-size: 23px; line-height: 1.25; }
.options.themes .about { grid-column: 2; font-size: 16px; }

/* --- Landing ---------------------------------------------------------------- */

.hero { padding-top: 40px; padding-bottom: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 7vw, 72px); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
.hero .sub { font-family: var(--serif); font-size: clamp(21px, 2.4vw, 25px); line-height: 1.4; max-width: 30ch; text-wrap: pretty; }
.hero .sub-more { margin-top: 10px; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.cta-row form { display: contents; }
.hero .kicker { font-size: 21px; }
.hero .sample-btn { min-height: 54px; font-size: 17px; }
.hero .credit { font-size: 15px; color: var(--ink-2); padding-top: 20px; border-top: 1px solid var(--rule); max-width: 44ch; }

.sheet-wrap { display: flex; justify-content: center; padding: 12px 0; }
.sheet-stack { position: relative; width: min(100%, 380px); }
.sheet-under { position: absolute; inset: 0; background: var(--card); border: 1px solid var(--rule); transform: rotate(3deg) translate(10px, 6px); box-shadow: var(--shadow); }
.sheet { position: relative; aspect-ratio: 1 / 1.414; background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow); padding: 30px 30px 22px; display: flex; flex-direction: column; gap: 14px; transform: rotate(-1.2deg); font-family: var(--serif); }
.sheet .running { display: flex; justify-content: space-between; font-family: var(--sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.sheet .part { font-style: italic; font-size: 14px; color: var(--accent); margin-top: 6px; }
.sheet .theme { font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.sheet .rule { height: 1px; background: var(--rule); }
.sheet .q { font-size: 14px; line-height: 1.45; }
.sheet .q span { color: var(--accent); }
.sheet .lines { height: 74px; background: repeating-linear-gradient(to bottom, transparent 0 23px, var(--rule) 23px 24px); }
.sheet .lines.fill { flex: 1; height: auto; }
.sheet .folio { text-align: center; font-size: 12px; color: var(--ink-2); }

.band { padding-top: 72px; }
.band.roomy { padding-top: 80px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--ink); }
.steps li { padding: 22px 24px 8px 0; display: flex; flex-direction: column; gap: 6px; }
.steps .num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--accent); }
.steps h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.steps p { color: var(--ink-2); text-wrap: pretty; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.plan { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.plan header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--serif); font-size: 26px; }
.plan h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; }
.plan p { color: var(--ink-2); text-wrap: pretty; }
.plan .meta { margin-top: auto; padding-top: 12px; font-size: 14px; border-top: 1px solid var(--rule); }
.plan-cta { margin-top: 12px; }
.plan-cta button { all: unset; color: var(--accent); cursor: pointer; }
.plan-cta button:hover { text-decoration: underline; }
.section-title .risk-free { font-size: 0.55em; letter-spacing: 0; vertical-align: 0.15em; }
.plans-note { margin-top: 14px; }
.stamp { position: absolute; right: -16px; bottom: -16px; transform: rotate(-8deg); pointer-events: none; z-index: 2; }
.stamp-ring { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 110px; height: 110px; border: 2.5px solid var(--accent); border-radius: 50%; text-align: center; opacity: .55; padding: 12px; gap: 2px; box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 5px var(--accent); }
.stamp-title { font-family: var(--serif); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); line-height: 1; }
.stamp-rule { width: 36px; height: 1.5px; background: var(--accent); margin: 3px 0; }
.stamp-text { font-family: var(--sans); font-size: 10px; color: var(--accent); line-height: 1.2; font-weight: 500; }

.keeping { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.keeping .section-title { flex: 1 1 260px; max-width: 340px; margin: 0; text-wrap: balance; }
.keeping dl { flex: 2 1 420px; margin: 0; display: grid; gap: 18px; }
.keeping dl > div { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr); gap: 4px 24px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.keeping dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.keeping dt { font-weight: 500; }
.keeping dd { margin: 0; color: var(--ink-2); }

/* --- Reading pages (approach, legal) ---------------------------------------- */

.reading { max-width: 680px; margin: 0 auto; padding: 48px 24px 0; font-family: var(--serif); font-size: 20px; line-height: 1.7; }
.reading .overline { font-family: var(--sans); margin-bottom: 12px; }
.reading h1 { font-weight: 400; font-size: clamp(38px, 6vw, 56px); line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; margin-bottom: 32px; }
.reading h2 { font-weight: 500; font-size: 27px; letter-spacing: -.01em; margin: 48px 0 12px; }
.reading p { margin-bottom: 20px; text-wrap: pretty; }
.reading .intro { font-size: 23px; line-height: 1.5; color: var(--ink-2); margin-bottom: 24px; }
.reading .parts { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--ink); }
.reading .parts li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.reading .parts .num { font-style: italic; color: var(--accent); font-size: 22px; }
.reading .parts .name { font-weight: 500; font-size: 22px; }
.reading .parts p { margin: 4px 0 0; color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.reading .books { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 14px; }
.reading .notice { margin: 48px 0 0; }
.reading .after { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-family: var(--sans); font-size: 16px; }
.reading .after form { display: contents; }

.reading.legal { font-size: 19px; }
.reading.legal h1 { font-size: clamp(38px, 6vw, 52px); margin-bottom: 8px; }
.reading.legal h2 { font-size: 24px; letter-spacing: 0; margin: 36px 0 8px; }
.reading.legal p, .reading.legal ul { margin-bottom: 16px; }
.reading.legal ul { padding-left: 22px; margin-top: 0; }
.reading.legal li { margin-bottom: 8px; }
.reading.legal .intro { font-size: 22px; margin-bottom: 20px; }
.legal .table-wrap { overflow-x: auto; margin-bottom: 16px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 17px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.legal th { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--sans); font-size: 14px; margin-bottom: 32px; }
.legal-nav a { padding: 6px 0; }
.legal .updated { font-family: var(--sans); font-size: 14px; color: var(--ink-2); margin-bottom: 36px; }
.legal address { font-style: normal; margin: 0 0 24px; padding: 20px 22px; border: 1px solid var(--rule); border-radius: 4px; background: var(--card); }

/* --- Contact, 404 ----------------------------------------------------------- */

.form-page { max-width: 600px; margin: 0 auto; padding: 48px 24px 0; }
.form-page h1 { margin-bottom: 12px; }
.form-page .lede { margin-bottom: 36px; }
.form-page form { display: flex; flex-direction: column; gap: 24px; }
.req { color: var(--required); }
.req-note .req { font-size: 1.6em; font-weight: 600; line-height: 0; vertical-align: -0.15em; }
label .req { margin-left: .3em; }
.select { appearance: none; padding-right: 40px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 20px center, right 15px center; background-size: 5px 5px; background-repeat: no-repeat; }
.done { padding: 40px 0; display: flex; flex-direction: column; gap: 16px; }
.done svg { color: var(--accent); }
.done h1 { font-size: 40px; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.done .links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; }

.lost { max-width: 640px; margin: 0 auto; padding: 12vh 24px 0; display: flex; flex-direction: column; gap: 18px; }
.lost .code { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--accent); }
.lost h1 { font-size: clamp(40px, 7vw, 60px); line-height: 1.05; }
.lost .lede { max-width: 46ch; }
.lost .actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.lost .actions form { display: contents; }

/* --- Session ---------------------------------------------------------------- */

.session { padding-top: 16px; padding-bottom: 64px; }
.session section { display: flex; flex-direction: column; gap: 24px; }
.session .head { display: flex; flex-direction: column; gap: 10px; }
.session .head .lede { max-width: 52ch; }
.session .head h1 .kicker { display: block; margin-bottom: 10px; font-weight: 400; letter-spacing: normal; line-height: 1.6; }

.prompts { display: flex; flex-direction: column; gap: 6px; }
.prompts ul { margin: 0; padding-left: 1.2em; display: grid; gap: 2px; color: var(--ink-2); font-family: var(--serif); font-style: italic; font-size: 18px; }
.page-card { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow); padding: 8px 0 0; }
.page-card textarea { display: block; width: 100%; min-height: 58vh; padding: 26px clamp(20px, 5vw, 48px) 34px; border: none; outline: none; resize: vertical; background: transparent repeating-linear-gradient(to bottom, transparent 0 33px, var(--rule) 33px 34px); background-attachment: local; background-position: 0 26px; color: var(--ink); font-family: var(--serif); font-size: 20px; line-height: 34px; border-radius: 4px; }
.page-card:focus-within { border-color: var(--line); }
.page-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px clamp(20px, 5vw, 48px); border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.write-actions { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 32px; }
.write-actions .private { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 15px; color: var(--ink-2); max-width: 44ch; }
.write-actions .private svg { flex: none; }
.write-actions .next-note { font-size: 15px; color: var(--ink-2); max-width: 44ch; }
.write-actions .go { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.write-actions .go .btn { margin-top: 12px; }
.write-actions .btn, .pay-row .btn, .build-row .btn { padding: 0 32px; }

.session section.waiting { min-height: 60vh; justify-content: center; align-items: flex-start; gap: 20px; max-width: 560px; }
.ink-line { width: 160px; height: 2px; background: var(--accent); border-radius: 2px; animation: iw-draw 1.8s ease-in-out infinite; }
@keyframes iw-draw {
  0% { transform: scaleX(0); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
  50.1% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: 4s !important; } }
.parts-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); align-self: stretch; }
.parts-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 20px; }
.parts-list .num { font-style: italic; }

.session section.pause { max-width: 640px; gap: 22px; padding-top: 12px; }
.pause .serif-lede { font-family: var(--serif); font-size: 22px; line-height: 1.5; text-wrap: pretty; }
.helplines { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 8px 24px; }
.helplines > p { margin: 16px 0 4px; font-weight: 500; }
.helplines ul { list-style: none; margin: 0; padding: 0; }
.helplines li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
.helplines a, .helplines li > span:last-child { font-weight: 500; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.reflection { display: flex; flex-direction: column; gap: 12px; padding: 24px clamp(20px, 4vw, 32px); background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 4px; }
.reflection .overline { font-size: 15px; }
.reflection-text { font-family: var(--serif); font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.reflection-next { padding-top: 12px; border-top: 1px solid var(--rule); font-size: 15px; font-style: italic; color: var(--ink-2); }
.choose-head { margin-top: 24px; }
.choose-head .display { font-size: clamp(30px, 4.5vw, 40px); }
.pay-block { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.pay-block .small { max-width: 56ch; }

.session section.ready { gap: 28px; }
.file-card { background: var(--card); border: 1px solid var(--rule); border-radius: 6px; box-shadow: var(--shadow); padding: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.file-thumb { width: 72px; aspect-ratio: 1 / 1.414; flex: none; background: var(--paper); border: 1px solid var(--rule); padding: 10px 9px; display: flex; flex-direction: column; gap: 5px; }
.file-thumb span:first-child { height: 3px; width: 60%; background: var(--accent); }
.file-thumb span:last-child { flex: 1; background: repeating-linear-gradient(to bottom, transparent 0 6px, var(--rule) 6px 7px); }
.file-meta { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.file-meta strong { font-weight: 500; }
.file-card .btn { flex: 1 1 220px; }
.box { border: 1px solid var(--rule); border-radius: 6px; padding: 22px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.box h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.box h2 span { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--ink-2); }
.box .inline { display: flex; gap: 8px; }
.box .btn { min-width: 84px; }
.until { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.until .when { display: flex; flex-direction: column; }
.until time { font-family: var(--serif); font-size: 21px; }
.until time.soon { color: var(--required); }
.save-now { margin: 14px 0 0; font-size: 15px; color: var(--ink-2); }
.save-now strong { color: var(--ink); font-weight: 600; }
.ready .share { text-align: center; }
.until .delete { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.until .delete .hint { font-size: 13px; color: var(--ink-2); }
.confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); }
.confirm p { flex: 1 1 240px; }

.session section.closed { min-height: 55vh; justify-content: center; gap: 18px; max-width: 580px; }
.closed .actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.closed .actions form { display: contents; }
.refund-line { margin-top: 28px; font-size: 14px; color: var(--ink-2); }
.refund-form { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.refund-form label { font-weight: 500; color: var(--ink); }
.refund-form .row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* Headings receive focus when a session step changes; they don't need a ring. */
[tabindex="-1"]:focus { outline: none; }
.narrow .site-footer .wrap { color: var(--ink-2); }

/* On a phone the counter alone fits on one line. */
@media (max-width: 480px) { .page-card .foot .plenty { display: none; } }

/* Sessions remembered in this browser: a small panel in the bottom-right corner. */
.my-sessions { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: calc(100vw - 32px); }
.my-sessions-toggle { min-height: 44px; padding: 0 16px; background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-radius: 999px; box-shadow: var(--shadow); font: inherit; font-size: 14px; cursor: pointer; }
.my-sessions-body { width: 320px; max-width: 100%; padding: 16px 18px; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; box-shadow: var(--shadow); }
.my-sessions-title { margin: 0 0 8px; font-family: var(--serif); font-size: 18px; }
.my-sessions ul { list-style: none; margin: 0; padding: 0; }
.my-sessions li { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.my-sessions li span { grid-column: 1; }
.my-sessions li .my-sessions-open { grid-column: 2; grid-row: 1 / span 3; font-size: 14px; }
.my-sessions-body > p.small { margin: 10px 0 0; }
