/* Memoryline: warm paper, deep ink, terracotta. No external fonts or scripts. */
:root {
  --bg: #f6f1e9;
  --surface: #fffdf9;
  --ink: #22303f;
  --muted: #5d6b78;
  --line: #e4d9c8;
  --accent: #c65a36;
  --accent-hover: #ad4a29;
  --accent-ink: #ffffff;
  --accent-soft: #fbeadf;
  --warn-ink: #7a2e17;
  --ok: #2f7a55;
  --ok-soft: #e3f2e9;
  --shadow: 0 1px 2px rgba(34, 48, 63, .06), 0 10px 30px rgba(34, 48, 63, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15191e;
    --surface: #1e252c;
    --ink: #f1ebe2;
    --muted: #a3adb6;
    --line: #2f3943;
    --accent: #e27a55;
    --accent-hover: #ee906d;
    --accent-ink: #1a1310;
    --accent-soft: #3a2820;
    --warn-ink: #f6c3ad;
    --ok: #6fcf9c;
    --ok-soft: #1d3329;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--sans); min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 620px; }

/* Header / footer */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.45rem; }
.wordmark:hover { color: var(--ink); }
.wordmark svg { width: 30px; height: 30px; color: var(--accent); }
.site-footer { margin-top: auto; padding: 40px 0 34px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1.05rem/1 var(--sans); padding: 17px 30px; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .linkish:focus-visible, input:focus-visible, .player button:focus-visible, .scrub:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; }
.btn-block { width: 100%; }
.btn-quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-quiet:hover { background: var(--surface); color: var(--ink); border-color: var(--muted); }
.btn[disabled] { opacity: .55; cursor: default; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }

/* Landing */
.hero { padding: 48px 0 30px; }
.hero h1 { max-width: 13em; }
.hero .lede { font-size: 1.25rem; color: var(--muted); max-width: 34em; margin-bottom: 1.6em; }
.hero-note { margin-top: 14px; font-size: .92rem; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 40px 0 10px; padding: 0; list-style: none; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.steps h3 { font-size: 1.2rem; margin-bottom: .3em; }
.steps p { color: var(--muted); font-size: .97rem; margin: 0; }
.promise { margin: 56px 0 10px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.promise .lock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.promise .lock strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; margin-bottom: 6px; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; } }

/* Cards / forms */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow); }
.page-title { margin: 18px 0 6px; }
.progress { display: flex; gap: 8px; list-style: none; padding: 0; margin: 4px 0 26px; font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
.progress li { display: flex; align-items: center; gap: 8px; }
.progress li + li::before { content: ""; width: 22px; height: 1.5px; background: var(--line); }
.progress .dot { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; border: 1.5px solid var(--line); font-size: .78rem; font-weight: 700; }
.progress .on { color: var(--ink); font-weight: 600; }
.progress .on .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.progress .past .dot { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }
label { display: block; font-weight: 600; margin: 0 0 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.field { margin-bottom: 20px; }
input[type=tel], input[type=email], input[type=text] {
  width: 100%; font: 1.15rem/1.3 var(--sans); padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
}
input:focus { border-color: var(--accent); outline: none; }
.error-text { color: var(--accent); font-size: .92rem; margin-top: 6px; font-weight: 600; }
.flash { border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-weight: 500; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-error { background: var(--accent-soft); color: var(--warn-ink); }
.card-on-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 24px; font-size: .95rem; }
.fineprint { font-size: .9rem; color: var(--muted); margin-top: 16px; }

/* Live call status */
.status-card { text-align: center; }
.status-icon { width: 92px; height: 92px; margin: 6px auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.status-icon svg { width: 42px; height: 42px; }
.status-card.is-live .status-icon { animation: pulse 1.8s ease-in-out infinite; }
.status-card.is-ok-done .status-icon { background: var(--ok-soft); color: var(--ok); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 35%, transparent); } 50% { box-shadow: 0 0 0 16px transparent; } }
.status-card h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.status-card .detail { color: var(--muted); font-size: 1.1rem; max-width: 28em; margin: 0 auto 1.4em; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 26px 0 8px; list-style: none; padding: 0; }
.track li { font-size: .8rem; color: var(--muted); }
.track li::before { content: ""; display: block; height: 5px; border-radius: 3px; background: var(--line); margin-bottom: 8px; }
.track li.done::before, .track li.now::before { background: var(--accent); }
.track li.now { color: var(--ink); font-weight: 600; }

/* Recording page */
.rec-head { text-align: center; margin: 10px 0 26px; }
.rec-head .kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.rec-head h1 { margin-bottom: .25em; }
.keep { display: flex; gap: 14px; align-items: flex-start; background: var(--accent-soft); color: var(--warn-ink); border-radius: 14px; padding: 16px 18px; margin: 0 0 22px; font-size: .97rem; line-height: 1.5; }
.keep svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; }
.keep p { margin: 0; }
.keep .linkish { color: inherit; font-weight: 600; }
.player { padding: clamp(26px, 5vw, 46px) clamp(20px, 5vw, 44px) clamp(22px, 4vw, 34px); }
.player-main { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 4vw, 30px); margin-bottom: 26px; }
.player button { border: 0; cursor: pointer; font: inherit; }
.play {
  width: clamp(104px, 26vw, 136px); height: clamp(104px, 26vw, 136px); border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 40%, transparent); transition: transform .15s, background .15s;
}
.play:hover { background: var(--accent-hover); transform: scale(1.03); }
.play svg { width: 44%; height: 44%; }
.play .i-pause { display: none; }
.player.playing .play .i-play { display: none; }
.player.playing .play .i-pause { display: block; }
.skip { width: 58px; height: 58px; border-radius: 50%; background: var(--bg); color: var(--ink); display: grid; place-items: center; border: 1.5px solid var(--line) !important; position: relative; }
.skip:hover { border-color: var(--muted) !important; }
.skip svg { width: 26px; height: 26px; }
.skip span { position: absolute; font-size: .62rem; font-weight: 700; top: 50%; left: 50%; transform: translate(-50%, -42%); }
.scrub { width: 100%; height: 30px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --pct: 0%; }
.scrub::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--accent) var(--pct), var(--line) var(--pct)); }
.scrub::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--accent) var(--pct), var(--line) var(--pct)); }
.scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); margin-top: -7px; border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.scrub::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); }
.times { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .92rem; margin-top: 4px; }
.player-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.player-actions .btn { padding: 15px 26px; }
.loading { text-align: center; padding: 38px 10px; }
.loading .bar { height: 8px; max-width: 340px; margin: 16px auto 10px; border-radius: 4px; background: var(--line); overflow: hidden; }
.loading .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.problem { text-align: center; padding: 20px 6px; }
.problem h2 { margin-bottom: .4em; }
.btn svg { width: 20px; height: 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flush { margin: 0; }
