/* Gentle Reminder · style.css
   Paper, ink and a postmark red. Mobile first. */

@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces.woff2") format("woff2"); font-weight: 500 700; 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+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-sym.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; unicode-range: U+20A6, U+2190-2199, U+2713; }
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/instrumentsans.woff2") format("woff2"); font-weight: 400 700; 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+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/instrumentsans-sym.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+20A6, U+2190-2199, U+2713; }
@font-face { font-family: "DM Mono"; src: url("assets/fonts/dmmono-400.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
  --paper: #f4ede1;
  --paper-2: #ebe1d0;
  --card: #fffaf2;
  --ink: #1e1b2e;
  --ink-2: #4a4458;
  --line: #d9ccb6;
  --red: #b8361f;
  --red-deep: #8f2715;
  --blue: #23419a;
  --slate: #4d5566;
  --gold: #e6a532;
  --blush: #f4c9bf;
  --green: #24694a;
  --tone: var(--blue);
  --tone-ink: #fff;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 18px;
  --shadow: 0 1px 0 rgba(30, 27, 46, .06), 0 18px 40px -24px rgba(30, 27, 46, .35);
  --gutter: 16px;
}
@media (min-width: 400px) { :root { --gutter: 20px; } }
@media (min-width: 900px) { :root { --gutter: 32px; } }

[data-tone="polite"] { --tone: #d9776b; --tone-bg: var(--blush); --tone-ink: var(--ink); }
[data-tone="firm"] { --tone: var(--blue); --tone-bg: var(--blue); --tone-ink: #fff; }
[data-tone="corporate"] { --tone: var(--slate); --tone-bg: var(--slate); --tone-ink: #fff; }
[data-tone="aunty"] { --tone: var(--gold); --tone-bg: var(--gold); --tone-ink: var(--ink); }
[data-tone="final"] { --tone: var(--red); --tone-bg: var(--red); --tone-ink: #fff; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--sans); overflow-x: hidden; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.05; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--red); }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.defs { position: absolute; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-line:hover { background: var(--card); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.btn-sm .mono { font-size: .6875rem; color: var(--ink-2); }
.btn-paid { background: var(--green); border-color: var(--green); color: #fff; min-height: 48px; }
.btn-paid:hover { background: #1c573c; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(244, 237, 225, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(30, 27, 46, .08); }
.topbar-inner { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; min-height: 44px; white-space: nowrap; }
.wordmark i { font-weight: 400; }
.wordmark b { color: var(--red); }
.wordmark img { width: 30px; height: 30px; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 10px 12px; border-radius: 999px; font-weight: 500; }
.nav a:hover { background: var(--paper-2); }
.case-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .875rem; white-space: nowrap; }
.case-link:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 359px) { .wordmark span i { display: none; } }
@media (min-width: 860px) { .nav { display: flex; } .case-link { margin-left: 8px; } }

/* Hero */
.hero { padding: 40px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 12.4vw, 6.25rem); font-variation-settings: "opsz" 144; line-height: .98; }
.hero h1 em { display: block; }
.eyebrow span { white-space: nowrap; }
.lead { font-size: clamp(1.0625rem, 2.4vw, 1.3125rem); color: var(--ink-2); max-width: 34em; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.small-print { margin-top: 16px; font-size: .875rem; color: var(--ink-2); }
@media (min-width: 980px) { .hero { padding: 72px 0 88px; } .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; } }

/* Hero art: two letters, a stamp and a postmark */
.hero-art { position: relative; height: 370px; max-width: 520px; width: 100%; margin: 0 auto; }
.letter { position: absolute; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.letter-back { inset: 18px 8% 40px 4%; transform: rotate(-5deg); background: var(--paper-2); }
.letter-front { inset: 30px 2% 10px 10%; transform: rotate(2.5deg); padding: 34px 22px 22px; display: flex; flex-direction: column; }
.airmail { position: absolute; left: 0; right: 0; top: 0; height: 9px; background: repeating-linear-gradient(-45deg, var(--red) 0 14px, var(--card) 14px 22px, var(--blue) 22px 36px, var(--card) 36px 44px); }
.letter-back .airmail { opacity: .55; }
.letter-head { display: flex; justify-content: space-between; color: var(--ink-2); }
.letter-script { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 4.4vw, 1.625rem); line-height: 1.25; margin-top: 18px; max-width: 13em; }
.letter-amount { margin-top: auto; font-family: var(--serif); font-weight: 700; font-size: 2.5rem; line-height: 1; }
.letter-amount small { display: block; font-family: var(--sans); font-weight: 500; font-size: .875rem; color: var(--ink-2); margin-top: 6px; }
.stamp { position: absolute; right: 18px; bottom: 18px; width: 96px; height: 116px; padding: 7px; transform: rotate(4deg);
  background: radial-gradient(circle, transparent 4px, #fff 4.6px) -7px -7px / 14px 14px; filter: drop-shadow(0 4px 8px rgba(30, 27, 46, .18)); }
.stamp-face { height: 100%; background: var(--blue); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.stamp-dial { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); position: relative; background: radial-gradient(circle at 40% 35%, #3b5bc0, #1b3480); }
.stamp-dial i { position: absolute; left: 50%; top: 5px; width: 3px; height: 14px; margin-left: -1.5px; background: #fff; border-radius: 2px; transform-origin: 50% 19px; transform: rotate(-60deg); }
.postmark { position: absolute; width: 100px; right: 92px; bottom: 70px; color: var(--red); opacity: .82; transform: rotate(-14deg); mix-blend-mode: multiply; }
.postmark text, .paid-stamp text, .ph-stamp text { font-family: var(--mono); font-size: 9.6px; letter-spacing: .14em; fill: currentColor; }
.postmark .pm-big { font-family: var(--serif); font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.cancel-lines { position: absolute; width: 130px; height: 30px; right: -14px; bottom: 116px; color: var(--red); opacity: .55; transform: rotate(-14deg); }
@media (max-width: 379px) { .stamp { width: 78px; height: 96px; right: 10px; bottom: 12px; } .stamp-dial { width: 38px; height: 38px; } .stamp-dial i { height: 11px; transform-origin: 50% 14px; } .postmark { right: 70px; } .letter-amount { font-size: 2.125rem; } }
@media (min-width: 600px) { .hero-art { height: 400px; } .postmark { width: 136px; right: 128px; bottom: 64px; } .cancel-lines { width: 160px; height: 34px; bottom: 132px; } .letter-front { padding: 40px 30px 28px; } .stamp { width: 110px; height: 132px; } }

/* Sections */
section { position: relative; }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(2.125rem, 7vw, 4rem); }
.section-head > p:last-child:not(.eyebrow) { margin-top: 14px; color: var(--ink-2); font-size: 1.0625rem; max-width: 36em; }
.demo, .how, .tones, .app, .principles, .pricing { padding: 64px 0; }
@media (min-width: 900px) { .demo, .how, .tones, .app, .principles, .pricing { padding: 96px 0; } .section-head { margin-bottom: 44px; } }

/* Demo */
.demo { background: var(--paper-2); border-block: 1px solid var(--line); }
.demo-grid { display: grid; gap: 16px; }
.demo-controls, .demo-output { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 1000px) { .demo-grid { grid-template-columns: minmax(380px, 440px) minmax(0, 1fr); gap: 24px; } .demo-controls, .demo-output { gap: 24px; } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; position: relative; min-width: 0; }
@media (min-width: 600px) { .card { padding: 26px; } }
.card-title { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; display: flex; align-items: center; gap: 10px; }
.card-title .mono { color: var(--red); font-size: .75rem; }

.chase-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin-top: 16px; }
.chase-summary, .dock-side { display: none; }
.field { display: grid; gap: 6px; grid-column: 1 / -1; min-width: 0; }
@media (min-width: 400px) { .field { grid-column: auto; } .field-wide, .field-money { grid-column: 1 / -1; } }
.field label { font-weight: 600; font-size: .875rem; }
.field small { color: var(--ink-2); font-size: .8125rem; }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 14px; background: #fff; border: 1.5px solid #b5a68d; border-radius: 12px; appearance: none; -webkit-appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: right 18px center, right 13px center; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field input:focus, .field select:focus { border-color: var(--blue); outline: 3px solid rgba(35, 65, 154, .28); outline-offset: 0; }
.money { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }

/* Dial */
.dial-card { display: grid; gap: 16px; }
.dial-wrap { display: grid; justify-items: center; gap: 6px; }
.dial { position: relative; width: min(100%, 260px); aspect-ratio: 1; border-radius: 50%; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.dial:active { cursor: grabbing; }
.dial:focus-visible { outline-offset: 6px; border-radius: 50%; }
.dial-svg { width: 100%; height: 100%; overflow: visible; }
.dial-svg .seg { fill: none; stroke: var(--tone); stroke-width: 10; stroke-linecap: round; opacity: .28; transition: opacity .25s ease; }
.dial-svg .seg.on { opacity: 1; }
.dial-svg .tick { fill: var(--ink-2); font-family: var(--mono); font-size: 9px; }
.dial-svg .tick.on { fill: var(--ink); font-weight: 500; }
.dial-svg .knob-ring { fill: var(--paper-2); }
.dial-svg .knob { transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); transform-origin: 100px 100px; }
.dial.dragging .knob { transition: none; }
.dial-svg .knob-face { fill: url(#knobGrad); stroke: rgba(30, 27, 46, .15); }
.dial-svg .knob-notch { fill: var(--tone); transition: fill .25s ease; }
.dial-svg .grip { stroke: rgba(30, 27, 46, .12); stroke-width: 1.2; }
.dial-readout { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; padding: 0 22%; }
.dial-readout .mono { color: var(--ink-2); font-size: .6875rem; }
.dial-readout strong { font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 5.6vw, 1.5rem); line-height: 1.05; margin-top: 4px; }
.dial-help { font-size: .8125rem; color: var(--ink-2); }
.tone-picks { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tone-pick { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 500; font-size: .875rem; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tone-pick::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tone); }
.tone-pick[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* Phones and tablets: summary card, message, then a docked dial that stays on screen */
@media (max-width: 999px) {
  .demo-grid { display: flex; flex-direction: column; gap: 14px; }
  .demo-controls, .demo-output { display: contents; }
  .chase-form { order: 1; }
  .envelope { order: 2; }
  .plan { order: 3; }
  .dial-card { order: 4; position: sticky; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 6; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 14px; border: 1.5px solid var(--line); box-shadow: 0 -12px 32px -14px rgba(30, 27, 46, .45), 0 2px 0 rgba(30, 27, 46, .05); }
  .dial-card .card-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dial-card .dial { width: 92px; }
  .dial-card .dial-readout, .dial-card .dial-help, .dial-card .tone-picks, .dial-svg .tick { display: none; }
  .dial-card .dial-svg .seg { stroke-width: 13; }
  .dock-side { display: grid; gap: 8px; min-width: 0; }
  .dock-read { display: flex; flex-direction: column; line-height: 1.1; }
  .dock-read .mono { font-size: .6875rem; color: var(--ink-2); }
  .dock-read strong { font-family: var(--serif); font-weight: 600; font-size: 1.375rem; }
  .dock-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .dock-btns .btn { padding: 0 8px; font-size: .875rem; }
  .chase-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
  .chase-summary p { font-family: var(--serif); font-weight: 600; font-size: 1.125rem; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
  .chase-summary .btn { flex: none; }
  .chase-form.is-collapsed .chase-fields { display: none; }
  .chase-form { padding-top: 16px; padding-bottom: 16px; }
  .meta-to { display: none !important; }
  .envelope .env-body { min-height: 0; }
  .envelope.is-paid .env-body { min-height: 210px; }
  .envelope .paid-stamp { bottom: 182px; width: 150px; }
  .envelope .env-meta div.meta-to { display: none; }
}
@media (min-width: 600px) and (max-width: 999px) { .dial-card { align-self: center; width: min(100%, 460px); } }

/* Envelope preview */
.envelope { padding-top: 30px; overflow: hidden; transition: box-shadow .3s ease; }
.envelope .airmail { height: 10px; }
.env-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tone-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--tone-bg); color: var(--tone-ink); font-weight: 600; font-size: .8125rem; transition: background-color .25s ease, color .25s ease; }
.env-meta { margin: 16px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.env-meta div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.env-meta dt { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
.env-meta dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.env-body { margin-top: 18px; min-height: 290px; padding-left: 14px; border-left: 3px solid var(--tone); transition: border-color .25s ease; }
.env-body p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.0625rem; line-height: 1.6; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -.18em; background: var(--tone); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.env-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.env-actions .btn-paid { margin-left: auto; }
@media (max-width: 479px) { .env-actions .btn-paid { margin-left: 0; width: 100%; } .env-actions .btn-sm { flex: 1 1 auto; } }
.env-note { margin-top: 14px; font-size: .875rem; color: var(--ink-2); }

.paid-stamp { position: absolute; right: 5%; bottom: 128px; width: clamp(150px, 40%, 200px); color: var(--green); pointer-events: none; mix-blend-mode: multiply; transform: rotate(-12deg); }
.paid-stamp .pm-paid, .ph-stamp .pm-paid { font-family: var(--serif); font-weight: 700; font-size: 25px; letter-spacing: .08em; }
.envelope.is-paid .env-body { border-left-color: var(--green); min-height: 260px; }
.btn-paid[disabled] { opacity: 1; background: rgba(36, 105, 74, .1); color: var(--green); border-color: var(--green); }
.envelope.is-paid .tone-chip { background: var(--green); color: #fff; }
.envelope.stamping { animation: thud .5s ease; }
.paid-stamp.stamp-in { animation: stampIn .55s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes stampIn { 0% { opacity: 0; transform: rotate(-30deg) scale(2.1); } 60% { opacity: 1; } 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes thud { 0%, 100% { transform: none; } 45% { transform: translateY(3px) scale(.995); } }

/* Timeline */
.plan-head { display: grid; gap: 4px; }
.plan-sub { color: var(--ink-2); font-size: .9375rem; }
.timeline { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 0; }
.tl-step { position: relative; display: grid; grid-template-columns: 78px 1fr; gap: 14px; padding: 0 0 18px; }
.tl-step::before { content: ""; position: absolute; left: 89px; top: 22px; bottom: -2px; width: 2px; background: repeating-linear-gradient(to bottom, var(--line) 0 5px, transparent 5px 9px); }
.tl-step:last-child::before { display: none; }
.tl-when { text-align: right; padding-top: 2px; }
.tl-when b { display: block; font-family: var(--mono); font-weight: 500; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.tl-when small { display: block; white-space: nowrap; font-size: .75rem; color: var(--ink-2); }
.tl-body { position: relative; padding-left: 22px; min-width: 0; }
.tl-body::before { content: ""; position: absolute; left: -3px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 3px var(--card); }
.tl-tone { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--tone-bg); color: var(--tone-ink); font-size: .75rem; font-weight: 600; }
.tl-subject { display: block; margin-top: 6px; font-weight: 500; overflow-wrap: anywhere; }
.tl-step.is-stop .tl-body::before { background: var(--card); border: 2px solid var(--ink); }
.tl-step.is-stop .tl-subject { color: var(--ink-2); font-weight: 400; margin-top: 0; }
.tl-step.is-cancelled .tl-subject { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--ink-2); }
.tl-step.is-cancelled .tl-tone { background: var(--paper-2); color: var(--ink-2); }
.tl-step.is-cancelled .tl-body::before { background: var(--line); }
.tl-step.is-paid .tl-body::before { background: var(--green); }
.tl-step.is-paid .tl-tone { background: var(--green); color: #fff; }
.tl-step .tl-flag { margin-left: 8px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red-deep); }
.plan-status { margin-top: 4px; font-weight: 600; }
.plan-status:empty { display: none; }
#b-reset { margin-top: 14px; }

/* How */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 8px solid transparent; border-image: repeating-linear-gradient(-45deg, var(--red) 0 10px, var(--card) 10px 16px, var(--blue) 16px 26px, var(--card) 26px 32px) 8; }
.step-num { color: var(--red); }
.steps h3 { font-size: 1.625rem; margin: 12px 0 8px; }
.steps p { color: var(--ink-2); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Tone cards */
.tones { background: var(--ink); color: var(--paper); }
.tones .eyebrow, .tones .section-head > p:last-child { color: #cfc6d8; }
.tones h2 em { color: #f08a72; }
.tone-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tone-card { background: var(--tone-bg); color: var(--tone-ink); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 260px; position: relative; overflow: hidden; }
.tone-card h3 { font-size: 1.875rem; }
.tone-card .mono { opacity: .85; }
.tc-line { font-weight: 600; }
.tone-card blockquote { margin: auto 0 0; font-family: var(--serif); font-style: italic; font-size: 1.1875rem; line-height: 1.3; }
.tc-use { font-size: .875rem; opacity: .9; }
@media (min-width: 640px) { .tone-cards { grid-template-columns: repeat(2, 1fr); } .tone-card:last-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .tone-cards { grid-template-columns: repeat(5, 1fr); } .tone-card:last-child { grid-column: auto; } .tone-card { min-height: 360px; } }

/* Phones */
.phones { display: grid; gap: 40px; justify-items: center; }
@media (min-width: 900px) { .phones { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.phone-fig { margin: 0; display: grid; gap: 16px; justify-items: center; width: 100%; }
.phone-fig figcaption { font-size: .9375rem; color: var(--ink-2); text-align: center; }
.phone-fig figcaption .mono { color: var(--red); margin-right: 6px; }
.phone { width: 100%; max-width: 300px; aspect-ratio: 300 / 620; border-radius: 44px; background: var(--ink); padding: 10px; box-shadow: 0 30px 60px -30px rgba(30, 27, 46, .6); display: flex; flex-direction: column; position: relative; }
.ph-status { position: absolute; top: 18px; left: 34px; right: 34px; display: flex; justify-content: space-between; align-items: center; color: var(--ink); font-size: .75rem; font-weight: 600; z-index: 2; letter-spacing: .02em; }
.ph-island { width: 84px; height: 24px; border-radius: 20px; background: var(--ink); }
.ph-screen { flex: 1; border-radius: 35px; background: var(--paper); padding: 52px 18px 18px; display: flex; flex-direction: column; overflow: hidden; font-size: .8125rem; }
.ph-top { display: flex; justify-content: space-between; align-items: center; color: var(--ink-2); min-height: 26px; }
.ph-top .mono { font-size: .625rem; }
.ph-back { font-weight: 600; color: var(--ink); }
.ph-title { font-size: 1.875rem; margin-top: 10px; }
.ph-total { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; margin-top: 4px; }
.ph-total span { font-family: var(--sans); font-weight: 500; font-size: .75rem; color: var(--ink-2); }
.ph-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.ph-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; background: var(--card); border-radius: 14px; padding: 10px; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-content: center; background: var(--tone-bg); color: var(--tone-ink); font-weight: 700; }
.ph-row { display: grid; min-width: 0; }
.ph-row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-row b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-row small, .ph-amt small { color: var(--ink-2); font-size: .6875rem; }
.ph-amt { text-align: right; font-weight: 700; display: grid; justify-items: end; gap: 3px; }
.chip { display: inline-block; padding: 2px 7px; border-radius: 999px; background: var(--tone-bg); color: var(--tone-ink) !important; font-weight: 600; white-space: nowrap; }
.ph-paidlist { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: 14px; background: rgba(36, 105, 74, .1); color: var(--green); font-weight: 600; }
.ph-paidlist .mono { font-size: .625rem; }
.ph-hint { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--card); color: var(--ink-2); font-size: .75rem; }
.ph-new { margin-top: 12px; border: 1.5px dashed #b5a68d; border-radius: 14px; padding: 12px; text-align: center; font-weight: 600; }
.ph-tabs { margin-top: auto; display: flex; justify-content: space-around; border-top: 1px solid var(--line); padding-top: 12px; color: var(--ink-2); font-weight: 500; }
.ph-tabs .on { color: var(--ink); font-weight: 700; }
.ph-meter { display: flex; gap: 4px; margin-top: 14px; }
.ph-meter i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.ph-meter i.on { background: var(--ink-2); }
.ph-meter i.cur { background: var(--slate); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--slate); }
.ph-next { margin-top: 16px; background: var(--card); border-radius: 16px; padding: 14px; border-left: 4px solid var(--tone); display: grid; gap: 4px; }
.ph-next .mono { font-size: .625rem; color: var(--ink-2); }
.ph-next p { color: var(--ink-2); font-size: .75rem; }
.ph-btns { display: flex; gap: 6px; margin-top: 6px; }
.ph-btn { padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: .75rem; }
.ph-btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.ph-mini { list-style: none; margin: 14px 0 0; padding: 0 0 0 4px; display: grid; gap: 8px; color: var(--ink-2); }
.ph-mini li { display: flex; align-items: center; gap: 10px; }
.ph-mini i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ink-2); }
.ph-mini li.done { color: var(--ink); }
.ph-mini li.done i { background: var(--ink); border-color: var(--ink); }
.ph-pay { margin-top: auto; background: var(--green); color: #fff; text-align: center; font-weight: 700; border-radius: 999px; padding: 13px; }
.phone-paid .ph-screen { text-align: center; }
.ph-stamp { width: 70%; margin: 26px auto 0; color: var(--green); transform: rotate(-12deg); }
.ph-paid-amt { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; margin-top: 20px; }
.ph-paid-sub { color: var(--ink-2); margin-top: 6px; font-size: .875rem; }
.ph-ghost { margin-top: 8px; padding: 11px; border-radius: 999px; border: 1.5px solid var(--ink); font-weight: 600; }

/* Principles */
.principles { background: var(--card); border-block: 1px solid var(--line); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.rules li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rule-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-content: center; font-weight: 700; font-size: .875rem; margin-top: 2px; }
.rules h3 { font-size: 1.375rem; }
.rules p { color: var(--ink-2); margin-top: 6px; }
@media (min-width: 760px) { .rules { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

/* Pricing */
.plans { display: grid; gap: 16px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; max-width: 900px; gap: 20px; } }
.plan-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; gap: 14px; border: 2px solid transparent; }
.plan-pro { border-color: var(--ink); }
.plan-card .mono { color: var(--red); font-weight: 500; }
.price { font-family: var(--serif); font-weight: 700; font-size: 3.25rem; line-height: 1; }
.price span { font-family: var(--sans); font-weight: 500; font-size: 1rem; color: var(--ink-2); }
.plan-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan-card li { padding-left: 22px; position: relative; }
.plan-card li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }
.plan-cta { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.concept-note { margin-top: 24px; max-width: 900px; color: var(--ink-2); font-size: .9375rem; display: flex; gap: 12px; align-items: flex-start; }
.tag { flex: none; font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; padding: 3px 8px; border-radius: 6px; background: var(--ink); color: var(--paper); margin-top: 2px; }

/* Footer */
.footer { background: var(--ink); color: var(--paper); padding: 36px 0 44px; }
.footer-inner { display: grid; gap: 18px; }
.footer-brand b { font-family: var(--mono); font-weight: 500; letter-spacing: .1em; }
.footer-brand { color: #e6deec; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 4px; }
.footer :focus-visible { outline-color: #f4c9bf; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .caret { display: none; }
}
