/* Zerofluff. One stylesheet, no framework, no web fonts. */

:root {
  --bg: #f4f2ec;
  --surface: #ffffff;
  --surface-2: #ebe8df;
  --ink: #141412;
  --muted: #55534c;
  --line: #141412;
  --soft-line: #d6d2c6;
  --hl: #d6ff3d;
  --hl-ink: #141412;
  --strike: #b4402f;
  --ok: #1f6f3a;
  --err: #a3261b;
  --shadow: #141412;
  --radius: 4px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11110f; --surface: #1a1a17; --surface-2: #23231f; --ink: #eeece4; --muted: #a9a69b;
    --line: #eeece4; --soft-line: #3a3933; --strike: #ff7a66; --ok: #7ad48f; --err: #ff8a7a; --shadow: #000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11110f; --surface: #1a1a17; --surface-2: #23231f; --ink: #eeece4; --muted: #a9a69b;
  --line: #eeece4; --soft-line: #3a3933; --strike: #ff7a66; --ok: #7ad48f; --err: #ff8a7a; --shadow: #000;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ink) 45%, transparent); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--hl); border-radius: 2px; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3, .h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code, pre, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 3px; word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.break { word-break: break-all; }
.center { text-align: center; }
.mt { margin-top: 2rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--hl); color: var(--hl-ink); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }

.wrap { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 2rem); }

/* themed screenshots */
.only-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }

/* ---------------------------------------------------------------- header */
.site-header { border-bottom: 2px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.wordmark { font: 800 1.45rem/1 var(--font-display); letter-spacing: -0.045em; text-decoration: none; }
.wordmark .dot { display: inline-block; background: var(--hl); color: var(--hl-ink); padding: 0 .12em; margin-left: .04em; }
.wordmark.small { font-size: 1.2rem; }
.nav { margin-left: auto; }
.nav ul, .menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav a, .menu a { display: block; padding: .45rem .7rem; text-decoration: none; font-weight: 600; border-radius: var(--radius); }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"], .menu a[aria-current="page"] { background: var(--ink); color: var(--bg); }

.theme-toggle {
  display: inline-flex; align-items: center; gap: .45rem; font: 600 .85rem/1 var(--mono); color: var(--ink);
  background: transparent; border: 2px solid var(--line); border-radius: 999px; padding: .45rem .75rem; cursor: pointer;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-icon { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
[data-theme-mode="light"] .theme-icon { background: transparent; }
[data-theme-mode="dark"] .theme-icon { background: var(--ink); }

.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: .55rem; border: 2px solid var(--line); border-radius: var(--radius); }
.menu summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.burger { margin: 6px 0; }
.menu[open] .burger { background: transparent; }
.menu[open] .burger::before { top: 0; transform: rotate(45deg); }
.menu[open] .burger::after { top: 0; transform: rotate(-45deg); }
.menu nav { position: absolute; right: 0; top: calc(100% + 10px); background: var(--surface); border: 2px solid var(--line); box-shadow: 6px 6px 0 var(--shadow); min-width: 220px; padding: .5rem; }
.menu ul { flex-direction: column; }
.menu a { padding: .7rem .8rem; }

@media (max-width: 820px) {
  .nav { display: none; }
  .menu { display: block; }
  .theme-toggle { margin-left: auto; }
  .theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .theme-toggle { padding: .6rem; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px;
  font: 700 1rem/1.2 var(--font); text-decoration: none; text-align: center; color: var(--ink);
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
  padding: .75rem 1.2rem; cursor: pointer; box-shadow: 4px 4px 0 var(--shadow);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }
.btn-primary { background: var(--hl); color: var(--hl-ink); }
:root[data-theme="dark"] .btn, :root[data-theme="dark"] .btn-primary { --shadow: #eeece4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { --shadow: #eeece4; } }
.btn-small { min-height: 38px; padding: .45rem .8rem; font-size: .9rem; box-shadow: 3px 3px 0 var(--shadow); }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0 1rem; }
.buy-form { margin: 0; }
.buy-form .btn { width: 100%; }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.band { background: var(--surface); border-block: 2px solid var(--line); }
.section-title { margin-bottom: 1.5rem; }
.eyebrow { font: 700 .8rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .9rem; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.lede.strong { color: var(--ink); font-weight: 600; }
.fine-print { font-size: .88rem; color: var(--muted); }
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; border-bottom: 2px solid var(--line); }
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin-bottom: 1.5rem; }

/* hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.display { font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.04em; }
.hl { background: linear-gradient(transparent 55%, var(--hl) 55%, var(--hl) 92%, transparent 92%); padding: 0 .05em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
:root[data-theme="dark"] .hl { background: none; color: var(--hl); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hl { background: none; color: var(--hl); } }
.fluff { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.fluff s { color: var(--strike); text-decoration-thickness: 2px; }
.shot { margin: 0; border: 2px solid var(--line); box-shadow: 10px 10px 0 var(--shadow); background: var(--surface); border-radius: var(--radius); overflow: hidden; }
:root[data-theme="dark"] .shot { box-shadow: 10px 10px 0 var(--hl); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shot { box-shadow: 10px 10px 0 var(--hl); } }
.caption { font-size: .8rem; color: var(--muted); margin-top: 1.1rem; }

/* rules */
.rules { list-style: none; counter-reset: r; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--line); }
.rules li { counter-increment: r; padding: 1.5rem; border-right: 2px solid var(--line); background: var(--surface); }
.rules li:last-child { border-right: 0; }
.rules li::before { content: "0" counter(r); display: block; font: 700 .85rem/1 var(--mono); color: var(--muted); margin-bottom: 1rem; }
.rules p { color: var(--muted); margin: 0; }

/* feature split */
.feature-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: 1.1rem 0; border-top: 2px solid var(--soft-line); }
.feature-list li:first-child { border-top: 0; padding-top: 0; }
.feature-list h3 { margin-bottom: .3rem; }
.feature-list p { margin: 0; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 1.5rem 0 0; border: 2px solid var(--line); }
.stats div { padding: 1rem; border-right: 2px solid var(--line); display: flex; flex-direction: column-reverse; }
.stats div:last-child { border-right: 0; }
.stats dt { font-size: .85rem; color: var(--muted); }
.stats dd { margin: 0; font: 800 1.9rem/1.1 var(--font-display); letter-spacing: -0.03em; }

/* cards */
.card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: relative; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.5rem; }
.product-card { transition: transform .1s ease, box-shadow .1s ease; }
.product-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); }
.product-card-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.product-card h3 { margin: 0 0 .2rem; font-size: 1.5rem; }
.product-card h3 a { text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; }
.app-icon { border-radius: 12px; flex: none; }
.card-ghost { border-style: dashed; background: transparent; }
.mini-specs { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; font-size: .9rem; }
.mini-specs dt { color: var(--muted); font: 600 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.mini-specs dd { margin: .25rem 0 0; font-weight: 700; }

.product-title { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1rem; }
.product-title h1 { margin: 0; }
.product-title .eyebrow { margin-bottom: .35rem; }

.feature-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-grid h3 { margin-bottom: .4rem; }
.feature-grid p { margin: 0; color: var(--muted); }

/* plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; max-width: 820px; }
.plan { display: flex; flex-direction: column; }
.plans + .fine-print { margin-top: 1.75rem; }
.plan h3 { font: 700 .85rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.plan-featured { box-shadow: 8px 8px 0 var(--shadow); }
:root[data-theme="dark"] .plan-featured { box-shadow: 8px 8px 0 var(--hl); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan-featured { box-shadow: 8px 8px 0 var(--hl); } }
.price { margin: .2rem 0 .5rem; }
.price .amount { font: 800 3rem/1 var(--font-display); letter-spacing: -0.04em; }
.checks { list-style: none; padding: 0; margin: .5rem 0 1.5rem; flex: 1; }
.checks li { padding-left: 1.7rem; position: relative; margin: .45rem 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .95rem; height: .55rem; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg) translate(1px, -3px); }
.pricing-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.pricing-head h2 { margin: 0; }
.pricing-head a { text-decoration: none; }

/* specs, faq */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.specs { margin: 0; border-top: 2px solid var(--line); }
.specs div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--soft-line); }
.specs dt { font: 600 .8rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.specs dd { margin: 0; }
.specs.compact { border-top: 0; margin-top: 1.25rem; }
.specs.compact div { grid-template-columns: 7rem 1fr; padding: .5rem 0; }
.faq details, .help { border-top: 2px solid var(--line); padding: .25rem 0; }
.faq details:last-child { border-bottom: 2px solid var(--line); }
.faq summary, .help summary { cursor: pointer; font-weight: 700; padding: .75rem 2rem .75rem 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker, .help summary::-webkit-details-marker { display: none; }
.faq summary::after, .help summary::after { content: "+"; position: absolute; right: .25rem; top: .55rem; font: 700 1.3rem/1 var(--mono); }
.faq details[open] summary::after, .help[open] summary::after { content: "–"; }
.faq p, .help p { color: var(--muted); }
.help { margin-top: 1rem; border-top-width: 1px; border-color: var(--soft-line); }

.credits { padding-left: 1.1rem; color: var(--muted); }
.steps { padding-left: 1.4rem; }
.steps li { margin: .6rem 0; padding-left: .3rem; }
.steps li::marker { font: 700 1rem var(--mono); }

/* download */
.download-card { margin-bottom: 1.5rem; }
.download-main { display: flex; gap: 1.25rem; align-items: flex-start; }
.download-main h2 { font-size: 1.6rem; margin-bottom: .4rem; }

/* forms */
.form-card label { display: block; font-weight: 700; margin-bottom: .4rem; }
.form-card input {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); min-height: 48px;
  border: 2px solid var(--line); border-radius: var(--radius); padding: .65rem .8rem; margin-bottom: 1rem;
}
.form-card input:focus-visible { outline-offset: 0; }
.form-card .fine-print { margin: 1.25rem 0 0; }
.notice { border: 2px solid var(--line); border-left-width: 8px; padding: .8rem 1rem; background: var(--surface); margin: 1.25rem 0; }
.notice.ok { border-color: var(--ok); }
.notice.err { border-color: var(--err); }

/* thanks */
.key-card { margin-bottom: 1.5rem; }
.key-card .label { font: 600 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .4rem; }
.key { white-space: pre-wrap; word-break: break-all; background: var(--bg); border-left: 6px solid var(--hl); padding: 1rem; margin: 0 0 1rem; font-size: .95rem; line-height: 1.7; user-select: all; }

/* prose / legal */
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .4rem 0; }
.draft-banner { background: var(--hl); color: var(--hl-ink); border: 2px solid var(--hl-ink); padding: .9rem 1rem; margin-bottom: 1.5rem; font-size: .95rem; }

/* footer */
.site-footer { border-top: 2px solid var(--line); padding: 3rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: .35rem 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.tag { font: 600 .8rem/1.5 var(--mono); }
.fine { font-size: .82rem; color: var(--muted); margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--soft-line); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero-grid, .feature-split, .two-col { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr 1fr; }
  .rules li:nth-child(2) { border-right: 0; }
  .rules li:nth-child(-n+2) { border-bottom: 2px solid var(--line); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .rules, .feature-grid { grid-template-columns: 1fr; }
  .rules li { border-right: 0; border-bottom: 2px solid var(--line); }
  .rules li:last-child { border-bottom: 0; }
  .stats dd { font-size: 1.45rem; }
  .stats div { padding: .75rem; }
  .specs div { grid-template-columns: 1fr; gap: .15rem; }
  .download-main { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .cta-row .btn { flex: 1 1 100%; }
  .shot { box-shadow: 6px 6px 0 var(--shadow); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .btn, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
