/* Hearnote — "paper & ink" */
:root {
  --paper: #f7f2e8;
  --paper-2: #efe7d8;
  --card: #fffdf8;
  --ink: #18223a;
  --ink-2: #44506a;
  --ink-3: #6b7489;
  --rule: #ddd3c1;
  --accent: #e4572e;        /* record dot */
  --accent-ink: #b23a17;    /* accessible text accent on paper */
  --accent-soft: #fbe2d7;
  --hl: #f6d98a;            /* highlighter */
  --shadow: 0 1px 0 rgba(24, 34, 58, .06), 0 12px 32px -12px rgba(24, 34, 58, .22);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12161f;
    --paper-2: #181d28;
    --card: #1c2230;
    --ink: #efe8da;
    --ink-2: #c3bcae;
    --ink-3: #9a9487;
    --rule: #2c3343;
    --accent: #ff7451;
    --accent-ink: #ff9a7d;
    --accent-soft: #3a2420;
    --hl: #5c4a1c;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* faint paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(24, 34, 58, .045) 1px, transparent 1px);
  background-size: 22px 22px;
  z-index: -1;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 4.4vw, 4.6rem); font-weight: 560; }
h2 { font-size: clamp(1.85rem, 1.4rem + 2vw, 2.8rem); }
h3 { font-size: 1.3rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
em.ink { font-style: italic; font-weight: 400; color: var(--accent-ink); }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- header ---------- */
.site-header { padding: 1.1rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: .3rem 1.2rem; flex-wrap: wrap; justify-content: flex-end; font-size: .95rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.nav .lang { border: 1px solid var(--rule); border-radius: 999px; padding: .2rem .7rem; font-size: .85rem; letter-spacing: .04em; }
.nav .hide-sm { display: none; }
@media (min-width: 720px) { .nav .hide-sm { display: inline; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .85rem 1.25rem;
  border-radius: 14px;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-store { background: var(--ink); color: var(--paper); }
.btn-store svg { width: 22px; height: 22px; flex: none; }
.btn-store small { display: block; font-weight: 500; font-size: .75rem; opacity: .8; letter-spacing: .02em; }
.btn-store[aria-disabled="true"] { cursor: default; }
.btn-ghost { color: var(--ink); background: transparent; }
.btn:not([aria-disabled="true"]):hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(1.5rem, 4vw, 4rem) 0 clamp(3rem, 7vw, 6rem); }
.hero .wrap { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 1.2rem;
}
.rec-dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.2s ease-out infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(228, 87, 46, .55); } 70% { box-shadow: 0 0 0 10px rgba(228, 87, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(228, 87, 46, 0); } }
.hero h1 .underline { background: linear-gradient(transparent 62%, var(--hl) 62%, var(--hl) 90%, transparent 90%); padding: 0 .05em; }
.lede { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--ink-2); max-width: 34em; margin-bottom: 1.8rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.fine { font-size: .9rem; color: var(--ink-3); margin-top: 1rem; }

/* transcript card */
.sheet {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 1.3rem 1.3rem 1.1rem;
  max-width: 470px;
  margin-inline: auto;
  width: 100%;
}
.sheet::after { /* stacked paper */
  content: ""; position: absolute; inset: 10px -8px -10px 8px;
  border: 1px solid var(--rule); border-radius: 26px; background: var(--paper-2);
  z-index: -1; transform: rotate(1.6deg);
}
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; font-size: .85rem; color: var(--ink-3); margin-bottom: .6rem; }
.sheet-title { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.wave { width: 100%; height: 64px; margin: .4rem 0 .9rem; color: var(--ink); }
.wave .played { color: var(--accent); }
.line { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; padding: .55rem 0; border-top: 1px dashed var(--rule); }
.line time { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); padding-top: .2rem; font-variant-numeric: tabular-nums; }
.line .who { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.line .who.b { color: var(--accent-ink); }
.line p { margin: 0; grid-column: 2; font-size: .98rem; }
.line.now p mark { background: var(--hl); color: inherit; border-radius: 3px; padding: 0 .12em; }
.summary-chip { margin-top: .7rem; background: var(--accent-soft); border-radius: 14px; padding: .8rem .95rem; font-size: .92rem; }
.summary-chip strong { display: block; font-family: var(--serif); font-size: 1rem; margin-bottom: .2rem; }
.summary-chip ul { margin: 0; padding-left: 1.1rem; }

/* ---------- sections ---------- */
section { scroll-margin-top: 1rem; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.alt { background: var(--paper-2); border-block: 1px solid var(--rule); }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }
.kicker { font-family: var(--mono); font-size: .8rem; color: var(--accent-ink); letter-spacing: .04em; margin-bottom: .6rem; display: block; }

.features { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.6rem; }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 1rem; }
.feature .icon svg { width: 24px; height: 24px; }
.feature p { color: var(--ink-2); margin: 0; }

.extras { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; padding: 0; list-style: none; }
.extras li { border: 1px solid var(--rule); border-radius: 999px; padding: .4rem .9rem; font-size: .92rem; color: var(--ink-2); background: var(--card); }
.extras li b { color: var(--ink); font-weight: 600; }

.steps { counter-reset: s; display: grid; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps li { counter-increment: s; position: relative; padding-top: 4.2rem; }
.steps li::before {
  content: counter(s);
  position: absolute; top: 0; left: 0;
  font-family: var(--serif); font-size: 3.4rem; line-height: 1; font-weight: 400; font-style: italic;
  color: var(--accent);
}
.steps li::after { content: ""; position: absolute; top: 1.8rem; left: 3rem; right: 0; border-top: 1px dashed var(--rule); }
.steps p { color: var(--ink-2); margin: 0; }

.plans { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--ink); position: relative; }
.plan .tag { position: absolute; top: -.8rem; right: 1.4rem; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .plan .tag { color: #1b0f0a; } }
.plan h3 { font-size: 1.6rem; margin-bottom: .2rem; }
.plan .amount { font-family: var(--serif); font-size: 2.3rem; line-height: 1.1; margin: .4rem 0 1rem; }
.plan .amount small { font-family: var(--sans); font-size: 1rem; color: var(--ink-3); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.plan li { padding-left: 1.6rem; position: relative; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .45rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.pricing-note { margin-top: 1.4rem; color: var(--ink-3); font-size: .95rem; max-width: 46rem; }

.faq { max-width: 50rem; }
.faq details { border-top: 1px solid var(--rule); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 400; color: var(--accent-ink); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-top: .7rem; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

.closing { text-align: center; }
.closing .cta-row { justify-content: center; }

/* ---------- legal / doc pages ---------- */
.doc { padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem); }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem); }
.doc h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.doc h3 { margin-top: 1.6rem; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: .45rem; }
.meta { color: var(--ink-3); font-size: .95rem; border-bottom: 1px solid var(--rule); padding-bottom: 1.2rem; margin-bottom: 1.6rem; }
.callout { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 12px; padding: 1.1rem 1.25rem; margin: 1.4rem 0; }
.callout p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; vertical-align: top; padding: .65rem .7rem; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; color: var(--ink); background: var(--paper-2); }
td { color: var(--ink-2); }
.toc { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 1rem 1.3rem; margin-bottom: 2rem; }
.toc ol { margin: .3rem 0 0; }
.toc li { margin-bottom: .2rem; }
.mail { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.15rem; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 2.5rem 0 3rem; font-size: .95rem; color: var(--ink-3); }
.site-footer .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.site-footer a { color: var(--ink-2); }
.site-footer p { margin: .4rem 0 0; }
