/* Layout: single centred column (~68rem) — hero with a "rows become pages" diagram, the tool as the main card,
   then how-it-works, uses, FAQ, waitlist. Accent = deep teal (data), highlight = amber (offer). */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/onest-latin.woff2") format("woff2"); 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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/onest-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JB Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/jbmono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "JB Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/jbmono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: "JB Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/jbmono-cyrillic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491; }

:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --ink: #17212b;
  --muted: #5a6773;
  --line: #d8dee3;
  --accent: #0a6e63;
  --accent-ink: #ffffff;
  --accent-soft: #e0efec;
  --amber: #b26a00;
  --amber-soft: #fbefd9;
  --good: #23704a;
  --good-soft: #e2f2e9;
  --bad: #a83a32;
  --bad-soft: #f8e5e3;
  --page: #fffdf8;
  --shadow: 0 1px 2px rgba(23, 33, 43, .06), 0 8px 24px rgba(23, 33, 43, .06);
  --f-ui: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JB Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1418; --surface: #161e24; --ink: #e5eaee; --muted: #9aa6b0; --line: #2a353e;
    --accent: #4fc2b2; --accent-ink: #062b26; --accent-soft: #12332f; --amber: #f0b45a; --amber-soft: #3a2b12;
    --good: #7fd4a4; --good-soft: #15301f; --bad: #f19189; --bad-soft: #3b1e1b; --page: #1d262d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1418; --surface: #161e24; --ink: #e5eaee; --muted: #9aa6b0; --line: #2a353e;
  --accent: #4fc2b2; --accent-ink: #062b26; --accent-soft: #12332f; --amber: #f0b45a; --amber-soft: #3a2b12;
  --good: #7fd4a4; --good-soft: #15301f; --bad: #f19189; --bad-soft: #3b1e1b; --page: #1d262d;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-ui); font-size: 17px; line-height: 1.6; }
.wrap { max-width: 68rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(30px, 5.2vw, 52px); font-weight: 750; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
code, .mono { font-family: var(--f-mono); font-size: .92em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; color: var(--ink); text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.langs { display: flex; gap: 4px; flex-wrap: wrap; }
.langs a { padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 14px; }
.langs a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 28px 36px; }
.hero .lede { font-size: 19px; color: var(--muted); margin-top: 16px; max-width: 36rem; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.pill { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }

.diagram { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); align-items: center; gap: 8px; }
.sheet-mini { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 12px; box-shadow: var(--shadow); }
.sheet-mini div { display: grid; grid-template-columns: 1.4fr 1fr; border-top: 1px solid var(--line); }
.sheet-mini div:first-child { border-top: 0; background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.sheet-mini span { padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-mini span + span { border-left: 1px solid var(--line); color: var(--muted); }
.arrow { color: var(--accent); justify-self: center; }
.pages { position: relative; height: 210px; }
.pages .pg { position: absolute; inset: 0 auto auto 0; width: 76%; aspect-ratio: 1 / 1.3; max-height: 200px; background: var(--page); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 12px; font-size: 11px; display: grid; align-content: start; gap: 6px; }
.pages .pg:nth-child(1) { transform: translate(0, 10px) rotate(-6deg); }
.pages .pg:nth-child(2) { transform: translate(12%, 4px) rotate(-1deg); }
.pages .pg:nth-child(3) { transform: translate(24%, 0) rotate(4deg); }
.pg b { font-size: 13px; color: var(--ink); }
.pg i { display: block; height: 4px; border-radius: 2px; background: var(--line); }
.pg i.s { width: 60%; }
.pg .fname { margin-top: auto; font-family: var(--f-mono); font-size: 10px; color: var(--accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; border: 1px solid transparent; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--accent); }
.btn:disabled { opacity: .6; cursor: progress; }

/* tool */
.tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: clamp(16px, 3vw, 28px); display: grid; gap: 18px; }
#tool { display: grid; gap: 18px; }
.privacy { display: flex; gap: 8px; align-items: center; color: var(--good); font-size: 15px; font-weight: 550; }
.icon { width: 18px; height: 18px; flex: none; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.drop { display: grid; gap: 8px; align-content: start; min-width: 0; }
.hint { color: var(--muted); font-size: 15px; }
.zone { display: block; border: 2px dashed var(--line); border-radius: var(--r); padding: 22px 16px; text-align: center; cursor: pointer; background: var(--bg); transition: border-color .15s, background .15s; }
.zone:hover, .zone.over { border-color: var(--accent); background: var(--accent-soft); }
.zone .link { color: var(--accent); text-decoration: underline; font-weight: 600; }
input[type="file"]:focus-visible + .status, .zone:focus-within { outline: 3px solid var(--accent); }
.status { font-size: 15px; min-height: 1.6em; }
.status.good { color: var(--good); }
.status.bad { color: var(--bad); }
.sheet-pick { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.examples { display: flex; gap: 12px 18px; flex-wrap: wrap; align-items: center; }
.ex-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; }
.step3 { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.label { font-weight: 600; font-size: 15px; color: var(--muted); }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--bg); }
td code { background: var(--accent-soft); color: var(--accent); padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
td.pv { color: var(--muted); max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.miss { display: inline-block; margin-left: 8px; color: var(--bad); font-size: 13px; }
select, input[type="text"], input[type="email"] { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-height: 40px; max-width: 100%; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span:first-child { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13px; overflow-wrap: anywhere; }
.note { padding: 10px 14px; border-radius: 10px; font-size: 15px; }
.note.ok { background: var(--good-soft); color: var(--good); }
.note.warn { background: var(--amber-soft); color: var(--amber); }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.result { display: grid; gap: 12px; justify-items: start; }
.offer { border: 2px solid var(--amber); background: var(--amber-soft); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; justify-items: start; }
.offer h3 { color: var(--amber); }
.fine { font-size: 13px; color: var(--muted); }

/* sections */
section.block { padding-block: 48px 8px; display: grid; gap: 20px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; counter-reset: s; }
.steps li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 6px; align-content: start; }
.steps li::before { counter-increment: s; content: counter(s); font-weight: 750; font-size: 22px; color: var(--accent); }
.steps, .uses { padding: 0; margin: 0; }
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.uses li { list-style: none; border-left: 3px solid var(--accent); padding: 6px 0 6px 14px; }
.uses b { display: block; }
.uses span { color: var(--muted); font-size: 15px; }
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.yes { color: var(--good); font-weight: 650; }
.no { color: var(--bad); }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 60rem; }
.price { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.price > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; align-content: start; }
.price .big { font-size: 30px; font-weight: 750; }
#waitlist-form { display: grid; gap: 12px; max-width: 34rem; }
#waitlist-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
#waitlist-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
#waitlist-form .check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.wl { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; }
footer { margin-top: 56px; padding-block: 24px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: grid; gap: 10px; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.legal { max-width: 46rem; padding-block: 24px 40px; display: grid; gap: 14px; }
.legal h2 { font-size: 22px; margin-top: 12px; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

@media (max-width: 560px) {
  .step3 .tbl { overflow: visible; }
  .step3 thead { display: none; }
  .step3 table, .step3 tbody, .step3 td { display: block; width: 100%; }
  .step3 tr { display: grid; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); }
  .step3 tr:last-child { border-bottom: 0; }
  .step3 td { border: 0; padding: 0; }
  .step3 td select { width: 100%; }
  .step3 td.pv { white-space: normal; max-width: none; font-size: 14px; }
  .step3 td.pv:not(:empty)::before { content: attr(data-label) ": "; font-weight: 600; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .diagram { max-width: 460px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
