:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --band: #f3f0e8;
  --text: #1d1b16;
  --muted: #5d584d;
  --line: #e4e0d6;
  --accent: #1f6f5b;
  --accent-ink: #ffffff;
  --code-bg: #f1eee6;
  --keep: #1f6f5b;
  --fyi: #7a5a12;
  --skip: #6b665b;
  --chip-keep: #dcefe8;
  --chip-fyi: #f6ebcb;
  --chip-skip: #ebe8e0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14130f;
    --surface: #1c1b16;
    --band: #1a1914;
    --text: #f0ede4;
    --muted: #aaa597;
    --line: #2f2d25;
    --accent: #4fb89c;
    --accent-ink: #0d1a16;
    --code-bg: #23211b;
    --keep: #7fd6bd;
    --fyi: #e6c66e;
    --skip: #aaa597;
    --chip-keep: #17362d;
    --chip-fyi: #3a2f10;
    --chip-skip: #2b2922;
  }
}
:root[data-theme="dark"] {
  --bg: #14130f;
  --surface: #1c1b16;
  --band: #1a1914;
  --text: #f0ede4;
  --muted: #aaa597;
  --line: #2f2d25;
  --accent: #4fb89c;
  --accent-ink: #0d1a16;
  --code-bg: #23211b;
  --keep: #7fd6bd;
  --fyi: #e6c66e;
  --skip: #aaa597;
  --chip-keep: #17362d;
  --chip-fyi: #3a2f10;
  --chip-skip: #2b2922;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

header.site { padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
nav a:hover { color: var(--text); }
nav a.btn { color: var(--accent-ink); padding: 8px 14px; font-size: 15px; }

h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.06; letter-spacing: -0.035em; margin: 0 0 18px; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 14px; font-weight: 750; }
h3 { font-size: 1.08rem; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 33em; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.note { color: var(--muted); font-size: 15px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

section { padding: 64px 0; }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.facts { color: var(--muted); font-size: 15px; margin-top: 14px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 9px; font: inherit; font-weight: 650; cursor: pointer;
  text-decoration: none; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
}
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: not-allowed; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.frame { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .35); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--band); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.frame-bar span { margin-left: 8px; font-size: 13px; color: var(--muted); }
.frame.clip .frame-body { max-height: 430px; overflow: hidden; position: relative; }
.frame.clip .frame-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, #fbfaf7); }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }

.inbox { list-style: none; margin: 0; padding: 0; }
.inbox li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); margin: 0; }
.inbox li:last-child { border-bottom: 0; }
.inbox .from { font-weight: 650; font-size: 15px; }
.inbox .subject { grid-column: 1; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox .chip { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.inbox li.is-skip .from, .inbox li.is-skip .subject { opacity: .5; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.chip.keep { background: var(--chip-keep); color: var(--keep); }
.chip.fyi { background: var(--chip-fyi); color: var(--fyi); }
.chip.skip { background: var(--chip-skip); color: var(--skip); }

.stat { display: grid; gap: 20px; align-items: center; }
.stat-number { font-size: clamp(3rem, 10vw, 5.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.stat-number small { display: block; font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-top: 8px; }

.feature { display: grid; gap: 28px; align-items: center; padding: 36px 0; }
.showcase { padding: 28px 0 36px; }
.showcase .frame { max-width: 800px; margin: 22px auto 14px; }
.feature .frame { max-width: 520px; width: 100%; justify-self: center; }
.feature ul { padding-left: 1.2em; margin: 0 0 14px; }

ul, ol { padding-left: 1.3em; margin: 0 0 14px; }
li { margin-bottom: 8px; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 20px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card.pro { border-color: var(--accent); border-width: 2px; }
.steps { counter-reset: step; }
.steps .card { counter-increment: step; }
.steps .card::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 12px; }
.price { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 2px; }
.price small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 14px 0; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

pre, code { font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
pre { background: var(--code-bg); padding: 14px 16px; border-radius: 8px; overflow-x: auto; margin: 0 0 14px; }
code { background: var(--code-bg); padding: 1px 5px; border-radius: 4px; }
pre code { padding: 0; background: none; }
details { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; }
details > p, details > pre, details > ol { margin-top: 12px; }
label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 4px; }
input, select, textarea {
  width: 100%; font: inherit; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
textarea { min-height: 90px; resize: vertical; }
.hidden-field { position: absolute; left: -9999px; }
.status { min-height: 1.5em; margin-top: 10px; font-size: 15px; }
footer { padding: 32px 0 56px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .stat { grid-template-columns: auto 1fr; gap: 48px; }
  .feature { grid-template-columns: 1fr 1.15fr; gap: 56px; }
  .feature.flip .feature-text { order: 2; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 879px) { nav a.btn { display: none; } }
.legal { padding-top: 24px; padding-bottom: 56px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin-top: 24px; }
.legal h2 { font-size: 1.25rem; letter-spacing: -0.01em; margin: 32px 0 8px; }
footer p { margin: 0 0 8px; }
