/* One stylesheet for all four pages. No build step, no fonts fetched, no
   analytics — the site loads nothing from anywhere else, which keeps the
   privacy page honest. */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --border: #e5e1da;
  --ink: #1c1a17;
  --ink-soft: #565049;
  --accent: #7c3aed;
  --accent-ink: #ffffff;
  --shade: #f4f1ec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --surface: #1e1d1a;
    --border: #33302b;
    --ink: #eeebe5;
    --ink-soft: #a8a29a;
    --accent: #a78bfa;
    --accent-ink: #161513;
    --shade: #232120;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }

a { color: var(--accent); }
a:hover { text-decoration: none; }

/* ---- header ---- */

header.site {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
}
header.site .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.25rem; flex-wrap: wrap;
}
.brand {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; margin-right: auto;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.brand::before {
  content: ""; flex: none; width: 2rem; height: 2rem;
  background: url(/favicon.svg) center / contain no-repeat;
}
header.site nav { display: flex; gap: 1.25rem; font-size: 0.9rem; }
header.site nav a { color: var(--ink-soft); text-decoration: none; }
header.site nav a:hover { color: var(--ink); }

/* ---- hero ---- */

.hero { padding: 4.5rem 0 3rem; }
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 1rem; max-width: 20ch;
}
.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-soft); margin: 0 0 2rem; max-width: 52ch;
}

.cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.button {
  display: inline-block;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.7rem 1.35rem; border-radius: 0.5rem;
  font-weight: 600; text-decoration: none; border: 0; font-size: 1rem;
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button[disabled], .button.pending { opacity: 0.55; cursor: default; }
.button.pending:hover { filter: none; }
.cta small { color: var(--ink-soft); }

/* ---- demo slot ---- */

.demo {
  margin: 3rem 0 1rem;
  aspect-ratio: 1420 / 1028;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background:
    repeating-linear-gradient(135deg,
      transparent 0 10px, color-mix(in srgb, var(--border) 45%, transparent) 10px 11px),
    var(--shade);
  display: grid; place-items: center; text-align: center;
  color: var(--ink-soft); padding: 1.5rem;
}
.demo video { width: 100%; height: 100%; border-radius: 0.75rem; object-fit: contain; background: #000; }
.demo .label { font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }
.demo .note { font-size: 0.9rem; max-width: 40ch; }

/* ---- sections ---- */

section { padding: 3rem 0; border-top: 1px solid var(--border); }
section h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.015em; margin: 0 0 0.5rem;
}
section > .wrap > p.sub { color: var(--ink-soft); margin: 0 0 2rem; max-width: 58ch; }

/* ---- feature table ---- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
  border-collapse: collapse; width: 100%; min-width: 34rem;
  font-size: 0.95rem;
}
th, td { text-align: left; padding: 0.85rem 1rem; vertical-align: top; }
thead th {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft); border-bottom: 1px solid var(--border); font-weight: 600;
}
tbody tr + tr td { border-top: 1px solid var(--border); }
tbody th { font-weight: 600; white-space: nowrap; }
td.what { color: var(--ink-soft); }
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  padding: 0.15rem 0.5rem; border-radius: 999px;
  background: var(--shade); color: var(--ink-soft); border: 1px solid var(--border);
  white-space: nowrap;
}
.tag.paid { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }

/* ---- price ---- */

.price {
  border: 1px solid var(--border); border-radius: 0.75rem;
  background: var(--surface); padding: 2rem; max-width: 34rem;
}
.price .amount { font-size: 2.5rem; font-weight: 650; letter-spacing: -0.02em; }
.price .amount span { font-size: 1rem; font-weight: 400; color: var(--ink-soft); }
/* Sits directly under the figure rather than in the list below it: with an
   exclusive price, what the buyer is actually charged is part of the price, not
   a feature bullet. */
.price .taxnote {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.price ul { margin: 1.25rem 0 1.75rem; padding-left: 1.1rem; color: var(--ink-soft); }
.price li { margin: 0.4rem 0; }
.price li strong { color: var(--ink); font-weight: 600; }

/* ---- faq / prose ---- */

.faq dt { font-weight: 600; margin-top: 1.5rem; }
.faq dd { margin: 0.35rem 0 0; color: var(--ink-soft); }

.prose h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.02em; margin: 0 0 0.35rem; }
.prose .updated { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 2.5rem; }
.prose h2 { font-size: 1.15rem; margin: 2.5rem 0 0.5rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose { padding: 3.5rem 0 1rem; }

/* ---- footer ---- */

footer.site {
  border-top: 1px solid var(--border); margin-top: 3rem;
  padding: 2.5rem 0 3.5rem; font-size: 0.9rem; color: var(--ink-soft);
}
footer.site .rows { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: baseline; }
footer.site nav { display: flex; gap: 1.25rem; margin-left: auto; flex-wrap: wrap; }
footer.site a { color: var(--ink-soft); }
footer.site p { margin: 1.25rem 0 0; max-width: 62ch; }

/* ---- guide page ---- */

header.site nav a[aria-current="page"] { color: var(--ink); }

.guide { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 3rem; padding: 3rem 0 1rem; }
.toc { position: sticky; top: 5.25rem; align-self: start; font-size: 0.9rem; }
.toc p { margin: 0 0 0.5rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 600; }
.toc a { display: block; padding: 0.3rem 0 0.3rem 0.75rem; color: var(--ink-soft); text-decoration: none; border-left: 2px solid var(--border); }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }

.guidehead h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.6rem; }
.guidehead .lede { color: var(--ink-soft); font-size: 1.1rem; max-width: 52ch; margin: 0 0 1rem; }

.guide .gsec { padding: 2.5rem 0 0.5rem; border-top: 0; scroll-margin-top: 5.25rem; }
.guide .gsec + .gsec { border-top: 1px solid var(--border); margin-top: 2rem; }
.guide .gsec h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 0 0 0.5rem; }
.guide .gsec > p, .guide li, .guide dd { color: var(--ink-soft); }
.guide .gsec > p.sub { margin: 0 0 1.5rem; }
.guide strong, .guide b { color: var(--ink); font-weight: 600; }
.guide code, .guide kbd {
  font: 0.85em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--shade); border: 1px solid var(--border); border-radius: 0.3rem; padding: 0.05rem 0.35rem; color: var(--ink);
}

.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.route { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.25rem; text-decoration: none; color: var(--ink-soft); }
.route:hover { border-color: var(--accent); }
.route h3 { color: var(--ink); font-size: 1.05rem; margin: 0.6rem 0 0.4rem; }
.route p { margin: 0; font-size: 0.95rem; }

.callout { background: var(--shade); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 0.5rem; padding: 0.9rem 1.1rem; margin: 1.25rem 0; color: var(--ink-soft); }

.facts { padding-left: 1.2rem; }
.facts li { margin: 0.7rem 0; }

.step { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.1rem 1.25rem; margin: 1rem 0; }
.step h3, .bite h3 { font-size: 1.05rem; margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.65rem; }
.step h3 .n { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 0.85rem; }
.step p, .bite p { margin: 0.5rem 0 0; }
.step ul, .bite ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.step li, .bite li { margin: 0.3rem 0; }
.note { font-size: 0.9rem; color: var(--ink-soft); }
.next { margin: 1.25rem 0 0; font-weight: 600; color: var(--ink); }

.bite { padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.bite:last-child { border-bottom: 0; }
.keys { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0.6rem 0 0; color: var(--ink-soft); font-size: 0.92rem; }

.order { padding-left: 1.2rem; }
.order li { margin: 0.55rem 0; }

table.map { min-width: 30rem; }
table.map tbody th { white-space: normal; font-weight: 500; color: var(--ink); width: 45%; }
table.map td { color: var(--ink-soft); }

@media (max-width: 52rem) {
  .guide { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; margin-bottom: 1.5rem; }
  .toc a { display: inline-block; border-left: 0; padding: 0.25rem 0.75rem 0.25rem 0; }
  .routes { grid-template-columns: 1fr; }
}

/* ---- articles (/learn) ---- */

.article .crumbs { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 1rem; }
.article .crumbs a { color: var(--ink-soft); }
.article .lede { font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 1.5rem; max-width: 56ch; }
.article ol { padding-left: 1.2rem; }
.article li { margin: 0.45rem 0; }
.article kbd, .article code {
  font: 0.85em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--shade); border: 1px solid var(--border); border-radius: 0.3rem; padding: 0.05rem 0.35rem; color: var(--ink);
}
.cta-box { background: var(--shade); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.25rem 1.4rem; margin: 2.5rem 0 1rem; }
.cta-box h2 { margin: 0 0 0.4rem; }
.cta-box p { margin: 0 0 1rem; }
.cta-box p.note { margin: 1rem 0 0; }
ul.hub { list-style: none; padding: 0; }
ul.hub li { padding: 1rem 0; border-bottom: 1px solid var(--border); }

/* ---- zoom-box background (home, guide, learn) ----
   Rounded frames that drift and scale like a camera move: grow, hold, ease back.
   Decorative only: pointer-events off, hidden from assistive tech, transform and
   opacity only, and switched off under reduced motion. */

.zoombg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.zoombg i {
  position: absolute; display: block;
  border: 1.5px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 1.1rem;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  opacity: 0.55;
  will-change: transform;
  animation: zb-move 48s ease-in-out infinite;
}
.zoombg i:nth-child(1) { width: 34vmax; height: 20vmax; left: -6vmax;  top: 8vh;     animation-duration: 52s; }
.zoombg i:nth-child(2) { width: 22vmax; height: 13vmax; right: -4vmax; top: 30vh;    animation-duration: 44s; animation-delay: -14s; }
.zoombg i:nth-child(3) { width: 28vmax; height: 16vmax; left: 30vw;    bottom: -6vmax; animation-duration: 60s; animation-delay: -30s; }
.zoombg i:nth-child(4) { width: 12vmax; height: 7vmax;  left: 58vw;    top: 6vh;     animation-duration: 38s; animation-delay: -8s;
  background: color-mix(in srgb, var(--accent) 9%, transparent); }
.zoombg i:nth-child(5) { width: 9vmax;  height: 5.5vmax; left: 12vw;   bottom: 14vh; animation-duration: 42s; animation-delay: -22s; }

@keyframes zb-move {
  0%, 12%   { transform: translate(0, 0) scale(1); }
  38%, 56%  { transform: translate(5vw, 4vh) scale(1.45); }   /* zoom in and hold */
  82%, 100% { transform: translate(-3vw, 2vh) scale(0.9); }
}

@media (max-width: 40rem) {
  .zoombg i:nth-child(n+4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .zoombg i { animation: none; }
}
