/* Geist, self-hosted (latin subset, variable weight). Licence: assets/fonts/OFL.txt */
@font-face { font-family: Geist; src: url(assets/fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(assets/fonts/geist-mono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

/* Soft Deck tokens, from the app's src/theme.css. */
:root {
  --bg: #0e0f12;
  --text: #eef0f3;
  --dim: #aeb5bf;
  --line: #23252a;
  --hover: #17191d;
  --face: linear-gradient(145deg, #16181c, #0c0d10);
  --sh: rgb(0 0 0 / 0.8);
  --hl: rgb(255 255 255 / 0.05);
  --nav: rgb(14 15 18 / 0.78);
  --accent: #c6f432;
  --accent-text: var(--accent);
  --on-accent: #14160a;
  --edge-mix: 78%;
  --rad: 18px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #e4e6e1;
  --text: #14161a;
  --dim: #4a505a;
  --line: #cfd2cb;
  --hover: #dadcd7;
  --face: linear-gradient(145deg, #eff1ec, #dadcd7);
  --sh: rgb(96 102 90 / 0.38);
  --hl: rgb(255 255 255 / 0.9);
  --nav: rgb(228 230 225 / 0.8);
  --edge-mix: 45%;
  color-scheme: light;
}
[data-accent="blue"] { --accent: #7ab0ff; }
[data-accent="orange"] { --accent: #ffa05c; }
[data-accent="pink"] { --accent: #ff8fc7; }
/* On light, accent text is darkened to keep 4.5:1. */
[data-theme="light"] { --accent-text: #3b5400; }
[data-theme="light"][data-accent="blue"] { --accent-text: #1a57c2; }
[data-theme="light"][data-accent="orange"] { --accent-text: #984304; }
[data-theme="light"][data-accent="pink"] { --accent-text: #a3195b; }
:root {
  --primary: linear-gradient(145deg, color-mix(in oklab, var(--accent) 88%, #fff), color-mix(in oklab, var(--accent) 90%, #000));
  --primary-edge: color-mix(in oklab, var(--accent) var(--edge-mix), #000);
  --raise: 7px 7px 16px var(--sh), -6px -6px 14px var(--hl);
  --raise-sm: 3px 3px 8px var(--sh), -3px -3px 7px var(--hl);
  --press: inset 3px 3px 7px var(--sh), inset -3px -3px 6px var(--hl);
  --well: inset 4px 4px 9px var(--sh), inset -3px -3px 8px var(--hl);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Geist, system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.92em; padding: 2px 6px; border-radius: 6px; background: var(--hover); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.raise { background: var(--face); box-shadow: var(--raise); border-radius: var(--rad); }
.well { background: var(--bg); box-shadow: var(--well); border-radius: var(--rad); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: var(--nav); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.links { display: flex; gap: 32px; }
.links a { color: var(--dim); font-size: 14px; font-weight: 500; }
.links a:hover { color: var(--text); text-decoration: none; }
.tools { display: flex; align-items: center; gap: 14px; }
.swatches { display: flex; gap: 10px; padding: 10px 12px; border-radius: 999px; }
.sw { width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.25); transition: box-shadow 0.2s var(--ease); }
.sw[data-set-accent="lime"] { background: #c6f432; }
.sw[data-set-accent="blue"] { background: #7ab0ff; }
.sw[data-set-accent="orange"] { background: #ffa05c; }
.sw[data-set-accent="pink"] { background: #ff8fc7; }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--face); box-shadow: var(--raise-sm); color: var(--text); cursor: pointer; }
.icon-btn:active { box-shadow: var(--press); }
[data-theme="dark"] .i-moon, [data-theme="light"] .i-sun { display: none; }

/* Buttons */
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 26px;
  border-radius: calc(var(--rad) - 2px); font-weight: 600; font-size: 16px; color: var(--text);
  background: var(--face); box-shadow: var(--raise-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--raise); }
.btn:active { transform: none; box-shadow: var(--press); }
.btn.primary { background: var(--primary); color: var(--on-accent); box-shadow: var(--raise-sm), inset 0 0 0 1px var(--primary-edge); }
.btn small { display: block; font-weight: 500; font-size: 12px; opacity: 0.75; font-family: "Geist Mono", monospace; text-align: left; }
.btn span { text-align: left; }

/* Hero */
.hero { padding-top: 112px; padding-bottom: 72px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-family: "Geist Mono", monospace; color: var(--dim); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; max-width: 980px; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.lede { color: var(--dim); font-size: clamp(17px, 2vw, 20px); line-height: 1.55; max-width: 640px; }
.hero .cta { margin-top: 12px; }
.fine { color: var(--dim); font-size: 13px; font-family: "Geist Mono", monospace; }
.shot { margin-top: 56px; width: 100%; padding: 14px; border-radius: 22px; }
.shot img { border-radius: 12px; width: 100%; }

/* Sections */
.section { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 48px; }
.narrow { max-width: 880px; }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 700px; }
.eyebrow { font-family: "Geist Mono", monospace; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.head h2, .final h2 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.035em; line-height: 1.05; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.card { padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: transform 0.25s var(--ease); }
.card:hover { transform: translateY(-3px); }
.card h3 { font-size: 19px; letter-spacing: -0.01em; }
.card p, .step p { color: var(--dim); font-size: 15px; line-height: 1.55; }
.ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shots figure { margin: 0; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.shots img { border-radius: 10px; }
.shots figcaption { color: var(--dim); font-size: 13px; font-family: "Geist Mono", monospace; padding: 0 6px 4px; }
.step { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.num { font-family: "Geist Mono", monospace; font-size: 40px; font-weight: 500; color: var(--accent-text); }
.step h3 { font-size: 20px; }
.list { padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.list h3 { font-size: 20px; }
.list .accent { color: var(--accent-text); }
.list ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; color: var(--dim); line-height: 1.5; }
.faq { display: flex; flex-direction: column; gap: 16px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--dim); padding: 0 24px 24px; line-height: 1.6; }
.plus { color: var(--accent-text); font-size: 22px; transition: transform 0.25s var(--ease); }
.faq details[open] .plus { transform: rotate(45deg); }
.final { padding: 64px 48px; border-radius: 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }

[hidden] { display: none !important; }

/* Live stats */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.stat { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: var(--raise-sm); color: var(--dim); font-size: 14px; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.stat:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--raise); color: var(--text); }
.stat b { color: var(--text); font-family: "Geist Mono", monospace; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat svg { color: var(--accent-text); }
.live { width: 8px; height: 8px; border-radius: 50%; background: #3ba55d; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(59 165 93 / 0.6); } 70% { box-shadow: 0 0 0 8px rgb(59 165 93 / 0); } 100% { box-shadow: 0 0 0 0 rgb(59 165 93 / 0); } }

/* What's new */
.notes { padding: 32px 36px; display: flex; flex-direction: column; gap: 20px; }
#news-title small { display: block; margin-top: 8px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--dim); font-family: "Geist Mono", monospace; }
#news-body { display: flex; flex-direction: column; gap: 14px; color: var(--dim); line-height: 1.6; max-height: 420px; overflow: auto; }
#news-body h3 { color: var(--text); font-size: 17px; margin-top: 6px; }
#news-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
#news-body strong { color: var(--text); }

/* Live visitors, beside the logo */
.brand-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.visitors { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--dim); white-space: nowrap; }
.visitors b { color: var(--text); font-family: "Geist Mono", monospace; font-weight: 500; font-variant-numeric: tabular-nums; }

/* 404 page */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; }
.nf { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 28px; padding: 64px 16px; }
.nf-code { font-size: clamp(120px, 22vw, 240px); font-weight: 800; letter-spacing: -0.07em; line-height: 0.85; }
.nf-code span { color: var(--accent-text); }
.nf-card { width: 100%; max-width: 520px; padding: 18px 20px; display: flex; align-items: center; gap: 16px; text-align: left; }
.nf-avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--dim); }
.nf-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nf-path { font-family: "Geist Mono", monospace; font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-tag { flex: none; font-family: "Geist Mono", monospace; font-size: 12px; padding: 6px 10px; border-radius: 999px; background: var(--hover); color: #ffa05c; }
[data-theme="light"] .nf-tag { color: #984304; }
.nf .lede { max-width: 520px; }
.caret { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.foot-links { display: flex; gap: 20px; }
.foot { border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: 13px; color: var(--dim); }

@media (max-width: 900px) {
  .grid3, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .links { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 64px; }
  .cta { flex-direction: column; align-self: stretch; }
  .btn { justify-content: center; }
  .swatches { gap: 6px; padding: 7px 8px; }
  .sw { width: 18px; height: 18px; }
  .nav-row { gap: 10px; }
  .brand { gap: 8px; font-size: 18px; }
  .brand img { width: 30px; height: 30px; }
  .brand-row { flex-shrink: 0; }
  .visitors { padding: 5px 9px; }
  .vl { display: none; }
  .brand-row { gap: 10px; }
  .tools { gap: 10px; }
  .final { padding: 40px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
