/* RecordStage site. One accent (teal), one radius scale (8px controls, 14px panels),
   system Segoe UI on Windows. Light and dark follow the OS. No web fonts, no framework. */
:root {
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-2: #eceef0;
  --text: #16181b;
  --muted: #4b515a;
  --line: #d7dbe0;
  --accent: #0f6b5c;
  --accent-strong: #0b574b;
  --accent-text: #ffffff;
  --accent-soft: #e2f1ed;
  --focus: #0f6b5c;
  --radius-control: 8px;
  --radius-panel: 14px;
  --shadow: 0 1px 2px rgb(22 40 36 / 0.06), 0 8px 24px rgb(22 40 36 / 0.06);
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1113;
    --surface: #16191c;
    --surface-2: #1d2125;
    --text: #eceef0;
    --muted: #a7aeb7;
    --line: #2a2f35;
    --accent: #4cc3a9;
    --accent-strong: #6fd3bd;
    --accent-text: #0b1512;
    --accent-soft: #15302a;
    --focus: #6fd3bd;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Navigation: one line, 64px */
header.site { border-bottom: 1px solid var(--line); background: var(--bg); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-weight: 650; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--text); }
@media (max-width: 720px) { nav .optional { display: none; } nav ul { gap: 14px; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius-control);
  font: inherit; font-weight: 600; font-size: 15px; white-space: nowrap; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.button:active { transform: translateY(1px); }
.button.primary { background: var(--accent); color: var(--accent-text); }
.button.primary:hover { background: var(--accent-strong); color: var(--accent-text); }
.button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.button.secondary:hover { border-color: var(--muted); color: var(--text); }
.button[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Notice for ?checkout=unavailable|failed */
.notice { position: sticky; top: 0; z-index: 10; background: var(--accent-soft); border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 15px; }
.notice[hidden] { display: none; }

/* Hero: text left, screenshot right */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 5fr 6fr; gap: 56px; } }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; font-weight: 700; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Screenshot slot. Real screenshots only (honesty ruling H1.L6): until the release
   build exists this is an empty, labelled frame, never a mock UI. */
.shot {
  margin: 0; aspect-ratio: 16 / 10; border-radius: var(--radius-panel); border: 1px dashed var(--line);
  background: var(--surface-2); display: grid; place-items: center; color: var(--muted);
  font-size: 14px; text-align: center; padding: 24px;
}
.shot img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-panel); display: block; }
.shot:has(img) { border: 1px solid var(--line); padding: 0; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(20, 24, 40, 0.35); }

section { padding: 72px 0; }
section h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 14px; }
section p.intro { color: var(--muted); max-width: 62ch; margin: 0 0 32px; font-size: 17px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Reliability: numbered-free stacked rows with a wide left column */
.mechanisms { display: grid; gap: 28px; max-width: 820px; }
.mechanisms div { display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 760px) { .mechanisms div { grid-template-columns: 240px 1fr; gap: 32px; } }
.mechanisms h3 { margin: 0; font-size: 17px; }
.mechanisms p { margin: 0; color: var(--muted); }

/* Free and Premium: two columns of plain lists */
.tiers { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 820px) { .tiers { grid-template-columns: 1fr 1fr; gap: 28px; } }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 28px; }
.tier.premium { border-color: var(--accent); }
.tier h3 { margin: 0 0 6px; font-size: 20px; }
.tier .sub { color: var(--muted); margin: 0 0 18px; }
.tier ul { margin: 0; padding-left: 20px; }
.tier li { margin: 6px 0; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 860px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 28px; box-shadow: var(--shadow); }
.plan h3 { margin: 0; font-size: 18px; }
.plan .price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.plan .terms { color: var(--muted); margin: 0 0 20px; }
.plan .button { width: 100%; }
.plan .seller { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.fineprint { max-width: 860px; color: var(--muted); font-size: 15px; margin-top: 24px; }
.fineprint p { margin: 6px 0; }

/* Comparison table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; vertical-align: top; }
thead th { font-size: 13px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
tbody tr + tr td, tbody tr + tr th { border-top: 1px solid var(--line); }
tbody th { font-weight: 600; }
tr.ours { background: var(--accent-soft); }
caption { caption-side: bottom; text-align: left; padding: 12px 16px; color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Download */
.download { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; }
@media (min-width: 820px) { .download { grid-template-columns: 2fr 1fr; } }
.download p { margin: 0; color: var(--muted); }

footer.site { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer.site ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }

/* Long-form pages (privacy, support) */
.doc { max-width: 720px; padding: 48px 16px 72px; margin: 0 auto; }
.doc h1 { font-size: 34px; letter-spacing: -0.02em; margin: 0 0 6px; line-height: 1.15; }
.doc h2 { font-size: 21px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc .updated { font-size: 14px; }
.doc code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
