/* Shared styles for the marketing pages (index, privacy, terms).
   buy.html and success.html keep their own small inline styles on purpose:
   they are transactional pages and must work even if this file fails to load.
   No external fonts, scripts or trackers: the privacy page promises that. */

:root {
  color-scheme: light dark;
  --bg: #fbfaf7; --bg2: #f1eee7; --card: #ffffff;
  --fg: #1c2330; --muted: #566074; --line: #ddd8cc;
  --accent: #1f3a5f; --accent-fg: #ffffff; --accent2: #7a5c14; --ring: #1f4f9a;
  --warn-bg: #fff7e0; --warn-line: #e3c566;
  --link: #1f4f9a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161d; --bg2: #181e28; --card: #1c2330;
    --fg: #e9ecf1; --muted: #a2adbf; --line: #2d3748;
    --accent: #8fb4ee; --accent-fg: #0f1722; --accent2: #d8b45a; --ring: #d8b45a; --line: #34405a;
    --warn-bg: #2a2412; --warn-line: #6b5a1f;
    --link: #8fb4ee;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 44rem; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--accent2); font-weight: 600; margin-bottom: .75rem; }

/* header */
header.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { font-family: Georgia, serif; font-weight: 700; font-size: 1.2rem; color: var(--fg); text-decoration: none; }
nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
nav a:hover { color: var(--fg); }
@media (max-width: 560px) { nav a.hide-sm { display: none; } }

/* buttons */
.btn { display: inline-block; padding: .75rem 1.3rem; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-fg); }
.btn.ghost { color: var(--accent); background: transparent; }
.btn:hover { filter: brightness(1.08); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.5rem 0 .75rem; }

/* sections */
section { padding: 4rem 0; }
section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero { padding: 4.5rem 0 3.5rem; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 16px; margin-top: 2rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.2rem; }
.stat b { display: block; font-family: Georgia, serif; font-size: 1.9rem; color: var(--accent); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 18px; margin-top: 1.5rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.3rem; }
.card p:last-child { margin-bottom: 0; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem 1rem 3.6rem; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 1.1rem; top: .9rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-weight: 700; }

.callout { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px; padding: 1.2rem 1.4rem; margin-top: 1.5rem; }
.callout h3 { margin-bottom: .4rem; }
.callout ul { margin: .5rem 0 0; padding-left: 1.2rem; }

.price { text-align: center; }
.price .amount { font-family: Georgia, serif; font-size: 3.6rem; color: var(--accent); line-height: 1; }
.price ul { list-style: none; padding: 0; margin: 1.2rem auto 1.5rem; max-width: 24rem; text-align: left; }
.price li { padding: .3rem 0 .3rem 1.6rem; position: relative; }
.price li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent2); font-weight: 700; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1.2rem; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: .6rem; }
details p:last-child { margin-bottom: 0; }

code, pre { font: .9rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; overflow-x: auto; }

footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: .9rem; }
footer a { margin-right: 16px; }
.doc { padding: 3rem 0 4rem; }
.doc h2 { margin-top: 2rem; font-size: 1.4rem; }
.draft { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 8px; padding: .7rem 1rem; font-size: .92rem; }

/* ---- design review pass ---- */
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
summary:focus-visible { outline-offset: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
section[id], #download { scroll-margin-top: 80px; }

nav { display: flex; align-items: center; gap: 4px; }
nav a { padding: 10px; }
nav a.btn.small { padding: .5rem .9rem; margin-left: 6px; font-size: .9rem; border-width: 1px; color: var(--accent-fg); }
footer a { display: inline-block; padding: 6px 0; }
@media (max-width: 560px) {
  header.top .wrap { flex-wrap: nowrap; }
  nav a { padding: 10px 6px; font-size: .9rem; }
}

.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2.5rem; align-items: center; }
.hero .stats { grid-column: 1 / -1; }
.hero-art { width: 100%; max-width: 340px; justify-self: center; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { max-width: 260px; } }

.stats { grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.stat { border: 0; border-radius: 0; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { font-size: clamp(1.2rem, 2vw, 1.5rem); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .stat { border-left: 0; border-top: 1px solid var(--line); } .stat:first-child { border-top: 0; } }

#why .grid { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.card, details, .steps li { box-shadow: 0 1px 2px rgb(28 35 48 / .06); }
.card h3 { margin-bottom: .35rem; }
@media (max-width: 400px) { #why .grid { grid-template-columns: 1fr; } }

.steps { max-width: 46rem; }
.steps li::after { content: ""; position: absolute; left: 2rem; top: 2.9rem; bottom: -14px; border-left: 2px solid var(--line); }
.steps li:last-child::after { display: none; }

#pricing .wrap.price { width: calc(100% - 32px); background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 14px; padding: 2rem 1.5rem; box-shadow: 0 8px 24px rgb(28 35 48 / .08); }
.price .amount span { font-size: 1rem; color: var(--muted); font-family: system-ui, sans-serif; }
.center { justify-content: center; }
.mt { margin-top: 1.5rem; }

summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; min-height: 44px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.4rem/1 Georgia, serif; color: var(--accent); }
details[open] summary::after { content: "\2212"; }
details:hover { border-color: var(--accent); }
.btn { transition: background-color .15s, color .15s; }
.btn.ghost:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); filter: none; }
