:root {
  --bg: #f7f6f2; --bg-2: #efede6; --fg: #1b1d20; --muted: #585e66; --card: #fff; --line: #e2dfd7;
  --accent: #17706f; --accent-fg: #fff; --accent-soft: #dcefeb; --warn: #b4581a; --radius: 18px;
  --planned: #a8741a; --shipped: #3d7f42;
  --shadow: 0 30px 70px -30px rgba(20, 40, 50, .45);
  color-scheme: light dark;
}
/* Theme: data-theme="light" | "dark" on <html> forces a theme; anything else (or no JS) follows the system. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { --bg: #121416; --bg-2: #181b1e; --fg: #ecebe6; --muted: #a2a8b0; --card: #1c1f23; --line: #2c3035;
    --accent: #3fb3a6; --accent-fg: #06201d; --accent-soft: #163331; --warn: #f0a060; --shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
    --planned: #e0b25c; --shipped: #7cc382; color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #121416; --bg-2: #181b1e; --fg: #ecebe6; --muted: #a2a8b0; --card: #1c1f23; --line: #2c3035;
    --accent: #3fb3a6; --accent-fg: #06201d; --accent-soft: #163331; --warn: #f0a060; --shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
    --planned: #e0b25c; --shipped: #7cc382; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

header.top { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--fg); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
nav.links { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
nav.links a { color: var(--muted); text-decoration: none; } nav.links a:hover { color: var(--fg); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 999px; background: var(--accent);
  color: var(--accent-fg); font-weight: 600; text-decoration: none; border: 0; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.07); }
.btn.secondary { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.small { padding: 8px 16px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; }

.hero { padding-top: 72px; padding-bottom: 24px; text-align: center; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.04; margin: 0 auto 20px; letter-spacing: -0.025em; max-width: 900px; }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin: 0 auto 30px; max-width: 720px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero .fine { font-size: 14px; color: var(--muted); margin-top: 14px; }
.badge { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero-shot { margin: 48px auto 0; max-width: 1120px; padding: 0 24px; }
.hero-shot img, .shot img { display: block; width: 100%; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }

section { padding: 72px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
section h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.015em; }
section .sub { color: var(--muted); margin: 0 0 34px; max-width: 720px; font-size: 18px; }
.problem { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 12px; padding: 20px 22px; }
.callout p { margin: 0 0 10px; } .callout p:last-child { margin: 0; }
.callout .src { font-size: 14px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 10px 0 6px; font-size: 18px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.card .ico svg { width: 22px; height: 22px; }
.pro-tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--accent); border: 1px solid currentColor; border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; margin-top: 64px; }
.feature.flip { grid-template-columns: 1.25fr 1fr; } .feature.flip .text { order: 2; }
.feature h3 { font-size: 26px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); margin: 0 0 12px; }
.shot figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; text-align: center; }
figure { margin: 0; }
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
ol.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; font-size: 15.5px; color: var(--muted); }
ol.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 700; margin-bottom: 12px; }
ol.steps strong { display: block; color: var(--fg); font-size: 17px; margin-bottom: 4px; }
.tip { margin-top: 22px; font-size: 15.5px; color: var(--muted); }
.formats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.formats li { font-size: 14px; font-weight: 600; padding: 5px 11px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 860px; }
.pricing .card.pro { border: 2px solid var(--accent); }
.price { font-size: 40px; font-weight: 750; margin: 2px 0 12px; letter-spacing: -0.02em; } .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { padding: 5px 0 5px 28px; position: relative; color: var(--muted); font-size: 15.5px; }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

.waitlist-box { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 40px; max-width: 760px; margin: 0 auto; text-align: center; box-shadow: var(--shadow); }
form.waitlist { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 22px; text-align: left; }
form.waitlist label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 6px; }
form.waitlist .full { grid-column: 1 / -1; }
form.waitlist input, form.waitlist select { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 16px; }
form.waitlist .row-btn { align-self: end; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 13.5px; color: var(--muted); }
#wl-msg { min-height: 1.5em; font-weight: 600; margin: 6px 0 0; }
#wl-msg.ok { color: var(--accent); } #wl-msg.err { color: var(--warn); }

.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 650; font-size: 17.5px; list-style: none; position: relative; padding-right: 30px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 24px; font-weight: 400; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { border-top: 1px solid var(--line); padding: 34px 0 54px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); }
footer .legal { flex-basis: 100%; font-size: 12.5px; line-height: 1.55; margin: 6px 0 0; }

article.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
article.doc h1 { font-size: 40px; line-height: 1.1; margin: 0 0 6px; letter-spacing: -0.02em; }
article.doc h2 { margin-top: 36px; font-size: 22px; }
article.doc .meta { color: var(--muted); }
code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: color-mix(in srgb, var(--fg) 8%, transparent); padding: 1px 5px; border-radius: 5px; }
table.packs { width: 100%; border-collapse: collapse; font-size: 15px; }
table.packs th, table.packs td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .grid, ol.steps { grid-template-columns: 1fr 1fr; }
  .problem, .feature, .feature.flip, .pricing { grid-template-columns: 1fr; gap: 26px; }
  .feature.flip .text { order: 0; }
  header.top .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 0; row-gap: 4px; }
  header.top .btn { margin-left: auto; }
  nav.links { order: 3; flex-basis: 100%; margin: 0 -24px; padding: 4px 24px 10px; overflow-x: auto; gap: 18px; scrollbar-width: none; white-space: nowrap; }
  nav.links::-webkit-scrollbar { display: none; }
}
@media (max-width: 600px) {
  .grid, ol.steps { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding-top: 48px; }
  .waitlist-box { padding: 26px 20px; }
  form.waitlist { grid-template-columns: 1fr; }
  .hero-shot { padding: 0 12px; margin-top: 36px; }
}

/* ---------- inner pages ---------- */
.more { margin: 22px 0 0; font-weight: 600; }
.page-hero { padding-top: 64px; padding-bottom: 24px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 14px; }
.page-hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 760px; margin: 0 0 18px; }
.legend { font-size: 15px; color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.toc a { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); text-decoration: none; }
.toc a:hover { border-color: var(--accent); }
.tier { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; padding: 2px 8px; border-radius: 6px; vertical-align: 2px; white-space: nowrap; }
.tier.free { color: var(--muted); background: color-mix(in srgb, var(--fg) 8%, transparent); }
.tier.pro { color: var(--accent-fg); background: var(--accent); }
.tier.beta { color: var(--warn); border: 1px solid currentColor; }
.fgroup { padding: 40px 0; border-top: 1px solid var(--line); }
.fgroup h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 6px; }
.fgroup .sub { margin-bottom: 22px; font-size: 17px; }
ul.flist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
ul.flist li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.f-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.f-head h3 { margin: 0; font-size: 17px; line-height: 1.3; margin-right: auto; }
ul.flist p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.cta-band { text-align: center; border-top: 1px solid var(--line); }
.cta-band .sub { margin: 0 auto 22px; }

.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; margin-top: 12px; }
.rm-col { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.rm-col h2 { font-size: 17px; margin: 2px 4px 12px; display: flex; align-items: center; gap: 8px; }
.rm-col h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.rm-now h2::before { background: var(--accent); } .rm-next h2::before { background: #c9922e; } .rm-shipped h2::before { background: #4a8f4f; }
.rm-list, .community ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rm-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.rm-item h3 { font-size: 15.5px; margin: 0 0 4px; line-height: 1.3; }
.rm-item p { margin: 0; font-size: 14px; color: var(--muted); }
.rm-item.req { border-style: dashed; }
.rm-item .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.community:not(:empty) { margin-top: 10px; }
.community h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 4px 8px; }
.gaps { padding: 36px 0 8px; } .gaps h2 { font-size: 22px; } .gaps li { color: var(--muted); margin: 6px 0; }

.rq-board { padding: 0; }
.requests { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; padding-bottom: 72px; }
.rq-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.rq-bar h2 { font-size: 22px; margin: 0; }
.rq-sort { display: flex; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.rq-sort a { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.rq-sort a[aria-current="true"] { background: var(--card); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.rq-flash:empty { display: none; } .rq-flash { font-weight: 600; color: var(--accent); }
ul.rq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rq { display: grid; grid-template-columns: auto 1fr; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.rq h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.3; }
.rq p { margin: 0 0 8px; color: var(--muted); font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.rq .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.vote { margin: 0; }
.vote button { display: grid; justify-items: center; gap: 0; width: 56px; padding: 8px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; cursor: pointer; }
.vote button:hover { border-color: var(--accent); }
.vote button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.vote .arrow { font-size: 14px; line-height: 1; } .vote .count { font-weight: 750; font-size: 18px; }
.status { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--muted); }
.status.planned { background: #c9922e22; color: var(--planned); } .status.in_progress { background: var(--accent-soft); color: var(--accent); }
.status.shipped { background: #4a8f4f22; color: var(--shipped); } .status.pending { background: #8882; } .status.declined { background: #b4581a22; color: var(--warn); }
.rq-new { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 80px; }
.rq-new h2 { font-size: 20px; margin: 0 0 12px; }
.stack-form { display: grid; gap: 6px; }
.stack-form label { font-size: 14px; font-weight: 600; margin-top: 8px; }
.stack-form input, .stack-form textarea, .stack-form select { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 16px; }
.stack-form textarea { resize: vertical; }
.stack-form .btn { margin-top: 12px; justify-self: start; }
.rq-msg { min-height: 1.4em; font-weight: 600; margin: 4px 0 0; } .rq-msg.ok { color: var(--accent); } .rq-msg.err { color: var(--warn); }
.empty { color: var(--muted); padding: 24px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; }

@media (max-width: 1000px) { .roadmap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .requests { grid-template-columns: 1fr; } .rq-new { position: static; } ul.flist { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .roadmap { grid-template-columns: 1fr; } .page-hero { padding-top: 40px; } .rq { gap: 12px; padding: 14px; } }

/* ---------- theme switch ---------- */
.theme-switch { display: none; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.js .theme-switch { display: inline-flex; }
.theme-switch button { display: grid; place-items: center; width: 30px; height: 26px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.theme-switch button:hover { color: var(--fg); }
.theme-switch button[aria-checked="true"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.theme-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.theme-switch svg { width: 16px; height: 16px; }
nav.links .theme-switch { margin-left: 4px; }
@media (max-width: 900px) { nav.links .theme-switch { order: -1; margin: 0 4px 0 0; flex: none; } nav.links { align-items: center; } }
