:root {
  color-scheme: dark;
  --bg:     #111110;
  --raised: #1A1917;
  --ink:    #F0EFE9;
  --body:   #C9C6BE;
  --mid:    #9A968F;
  --line:   #2A2926;
  --accent: #0B7A61;
  --accent-hi: #0E8A6E;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--body);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(1040px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(1040px, 100% - 40px); margin-inline: auto; }
.narrow > * { max-width: 680px; }
.narrow.doc { width: min(680px, 100% - 40px); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 18px; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.top nav { display: flex; gap: 28px; font-size: 15px; }
.top nav a { color: var(--mid); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* type */
h1, h2 { color: var(--ink); font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.04; max-width: 14ch; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; }
h3 { color: var(--ink); font-weight: 600; font-size: 17px; line-height: 1.35; }
p { text-wrap: pretty; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--body); max-width: 40ch; margin-top: 24px; }

/* buy form */
.buy { margin-top: 36px; max-width: 520px; }
.buy .row { display: flex; gap: 10px; }
.buy input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px;
  background: var(--raised); color: var(--ink);
  border: 1px solid #3a3835; border-radius: 10px;
  font: 400 16px var(--sans);
}
.buy input::placeholder { color: #77736d; }
.buy input:focus { border-color: var(--accent-hi); outline: none; }
.buy button {
  height: 52px; padding: 0 24px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: #fff; font: 600 16px var(--sans); white-space: nowrap;
  transition: background .15s;
}
.buy button:hover:not(:disabled) { background: var(--accent-hi); }
.buy button:disabled { opacity: .7; cursor: progress; }
.buy-note { margin-top: 12px; font-size: 14px; color: var(--mid); }
.buy-error { margin-top: 12px; font-size: 14px; color: #f0a58c; }

/* screenshots: flat, hairline border, nothing else */
.shot { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--raised); }
.shot img { width: 100%; }
.hero { padding: 56px 0 0; }
.hero .shot { margin-top: 64px; }

/* sections */
section.block { padding: 112px 0 0; }
.cols { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.cols.flip { grid-template-columns: 7fr 5fr; }
.cols.flip > :first-child { order: 2; }
.cols p { margin-top: 16px; max-width: 44ch; }
.cols p + p { margin-top: 12px; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--mid); margin-bottom: 14px; }

/* problem / answer list */
.pairs { margin-top: 40px; border-top: 1px solid var(--line); }
.pairs div { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pairs dt { color: var(--mid); }
.pairs dd { color: var(--ink); }

.pair-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

/* command line */
pre {
  margin-top: 24px; padding: 20px 22px; overflow-x: auto;
  background: var(--raised); border: 1px solid var(--line); border-radius: 10px;
  font: 400 14px/1.7 var(--mono); color: var(--ink);
}
pre .c { color: var(--mid); }

/* smaller features */
.small { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.small div { padding: 20px 0; border-top: 1px solid var(--line); }
.small p { font-size: 16px; color: var(--mid); margin-top: 4px; }

/* price */
.price { margin-top: 112px; padding: 80px 0; border-top: 1px solid var(--line); }
.price .amount { color: var(--ink); font-size: clamp(56px, 9vw, 96px); font-weight: 500; letter-spacing: -.04em; line-height: 1; margin-bottom: 20px; }
.price p { max-width: 46ch; }

/* faq */
.faq { padding: 80px 0 24px; border-top: 1px solid var(--line); }
.faq h2 { margin-bottom: 32px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 0; color: var(--ink); font-weight: 500; display: flex; justify-content: space-between; gap: 24px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--mid); font-weight: 400; }
details[open] summary::after { content: '–'; }
details p { padding: 0 0 22px; max-width: 62ch; }

footer { margin-top: 56px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding: 28px 0 44px; color: var(--mid); font-size: 14px; }
footer nav { display: flex; gap: 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* simple text pages (privacy, thanks) */
.doc h1 { font-size: clamp(34px, 5vw, 48px); max-width: none; margin: 40px 0 8px; }
.doc .meta { color: var(--mid); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: 19px; font-weight: 600; letter-spacing: 0; margin: 36px 0 8px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc a { color: #4fc3a5; }
.doc code { font: 400 13px var(--mono); background: var(--raised); padding: 1px 6px; border-radius: 4px; color: var(--ink); }
.btn { display: inline-block; margin-top: 24px; padding: 15px 26px; border-radius: 10px; background: var(--accent); color: #fff !important; font-weight: 600; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--accent-hi); }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .top nav a:not(:last-child) { display: none; }
  .hero { padding-top: 32px; }
  .hero .shot { margin-top: 44px; }
  section.block { padding-top: 80px; }
  .cols, .cols.flip { grid-template-columns: 1fr; gap: 32px; }
  .cols.flip > :first-child { order: 0; }
  .pairs div { grid-template-columns: 1fr; gap: 6px; }
  .small { grid-template-columns: 1fr; }
  .price { margin-top: 80px; padding: 56px 0; }
  .buy .row { flex-direction: column; }
  .buy input { flex: none; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
