/* Deckspade: the one page. The app's own look: graphite and sky, Onest to read, Inter for figures (both SIL OFL 1.1, self-hosted).
   Dark by default; light when the visitor's system asks for it. Flat: no gradient, glow or shadow. No script, nothing fetched from another server. */

@font-face { font-family: "Onest"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/onest-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/onest-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-latin-600.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ground: #1a1d21;
  --bg: #14161a;
  --surface: #1c1e21;
  --tint: #17262f;
  --line: #36383c;
  --line-strong: #71757a;
  --text: #e9ebee;
  --muted: #b3b8be;
  --accent: #82c7f0;
  --fill: #6cb5de;
  --fill-hover: #85cef9;
  --on-fill: #000f1a;
  --focus: #82c7f0;
  --warn-bg: #2c2213;
  --warn-line: #583d01;
  --font-read: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-fig: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ground: #f0f4f9;
    --bg: #f0f4f9;
    --surface: #fafcff;
    --tint: #d9edf9;
    --line: #d6d9de;
    --line-strong: #83868c;
    --text: #191c20;
    --muted: #575b62;
    --accent: #236b8f;
    --fill: #286f94;
    --fill-hover: #0f5c80;
    --on-fill: #f9fcfe;
    --focus: #236b8f;
    --warn-bg: #f4e8d4;
    --warn-line: #efab04;
  }
}

* { box-sizing: border-box; }
html { background: var(--ground); color: var(--text); font-family: var(--font-read); line-height: 1.6; -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; padding: 0 16px 3rem; font-size: 1.0625rem; }
.wrap { max-width: 72rem; margin: 0 auto; }
.narrow { max-width: 42rem; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--fill); color: var(--on-fill); padding: 0.6rem 1rem; z-index: 2; }
.skip:focus { left: 0; }

h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.1rem, 6.4vw, 3.9rem); letter-spacing: -0.02em; max-width: 16ch; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); letter-spacing: -0.01em; margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem; line-height: 1.3; margin: 1.5rem 0 0.25rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.fig { font-family: var(--font-fig); font-variant-numeric: tabular-nums; }
.label { font-family: var(--font-fig); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.75rem; }

/* Buttons: the filled one for the one action, an outline for the rest. */
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0.6rem 1.25rem; border-radius: 4px; border: 1px solid var(--fill); background: var(--fill); color: var(--on-fill); font: inherit; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--fill-hover); border-color: var(--fill-hover); }
.btn--line { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--line:hover { background: transparent; border-color: var(--accent); color: var(--accent); }

/* Draft marks: the owner sees them; check.sh refuses to publish while one is left. */
.draft-bar { margin: 0 -16px; padding: 0.7rem 16px; background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); font-size: 0.95rem; }
.todo { background: var(--warn-bg); outline: 1px dashed var(--warn-line); padding: 0 0.25em; }
.draft-tag { display: inline-block; font-family: var(--font-fig); font-size: 0.75rem; font-weight: 600; padding: 0 0.45em; border: 1px solid var(--warn-line); background: var(--warn-bg); vertical-align: middle; margin-left: 0.5rem; letter-spacing: 0.05em; }

/* Top bar */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); text-decoration: none; padding: 0.4rem 0; }
.brand svg { width: 1.6rem; height: 1.6rem; fill: var(--accent); flex: none; }
.top nav { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 0 1.1rem; font-size: 0.95rem; }
.top nav a { color: var(--muted); text-decoration: none; padding: 0.7rem 0; }
.top nav a:hover { color: var(--text); text-decoration: underline; }
@media (min-width: 56rem) {
  .top { flex-wrap: nowrap; }
  .top nav { order: 0; width: auto; margin-left: auto; margin-right: 1rem; }
  .top nav a { padding: 0.5rem 0; }
}

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 2rem; }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.35rem); max-width: 38rem; margin: 1.25rem 0 1.75rem; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.facts { font-family: var(--font-fig); font-size: 0.9rem; color: var(--muted); margin: 0 0 2.5rem; }

/* A real screen of the app, framed. */
.shot { margin: 0; }
.shot picture, .shot img { display: block; width: 100%; height: auto; }
.shot .frame { border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: var(--bg); }
.shot figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }

/* Panels: one thing each, a screen beside its words. */
.panels { display: grid; gap: 1rem; margin-top: 1rem; }
.panel { background: var(--tint); border-radius: 8px; padding: clamp(1.25rem, 4vw, 3rem); display: grid; gap: 1.75rem; }
.panel--plain { background: var(--surface); border: 1px solid var(--line); }
.panel .words p:last-child { margin-bottom: 0; }
@media (min-width: 56rem) {
  .panel--split .words { max-width: 36rem; }
}

.also { display: grid; gap: 1.25rem 2.5rem; margin: 2.5rem 0 0; }
.also dt { font-weight: 600; }
.also dd { margin: 0.1rem 0 0; color: var(--muted); }
@media (min-width: 40rem) { .also { grid-template-columns: 1fr 1fr; } }

section { padding-top: clamp(3rem, 7vw, 5rem); }

/* Price: two plain plans, side by side. Not tiers. */
.plans { display: grid; gap: 1rem; margin: 1.25rem 0; }
@media (min-width: 36rem) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 48rem) { .plans--three { grid-template-columns: 1fr 1fr 1fr; } }
.plan .amount--text { font-size: clamp(1.6rem, 4vw, 2rem); }
.plan { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 8px; padding: 1.25rem 1.5rem; }
.plan .name { font-weight: 600; margin: 0; }
.plan .amount { font-family: var(--font-fig); font-variant-numeric: tabular-nums; font-size: clamp(2rem, 6vw, 2.9rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0.35rem 0; }
.plan .amount small { font-size: 1rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan p:last-child { margin: 0; color: var(--muted); }
.terms-near { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 8px; padding: 1.25rem 1.5rem; margin: 0 0 1.5rem; }
.terms-near p:last-child { margin-bottom: 0; }
.cols { display: grid; gap: 0 3rem; }
@media (min-width: 48rem) { .cols { grid-template-columns: 1fr 1fr 1fr; } .cols--two { grid-template-columns: 1fr 1fr; } }
.cols h3 { margin-top: 1rem; }

/* Contact */
.mail { display: inline-block; font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 600; letter-spacing: -0.01em; padding: 0.25rem 0; overflow-wrap: anywhere; }

/* Terms and privacy: quiet, narrow, easy to read. */
.legal { border-top: 1px solid var(--line); margin-top: clamp(3rem, 7vw, 5rem); }
.legal h2 { font-size: 1.5rem; }
.legal ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.7rem; }

footer { margin-top: 4rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }
footer p { margin: 0; }

@media (min-width: 40rem) { body { font-size: 1.125rem; } }

/* Short lines and the two small legal pages */
.line { margin: 1.5rem 0 0; max-width: 42rem; }
.legal-page { padding-top: 2.5rem; }
.legal-page h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); max-width: none; margin-bottom: 0.75rem; }
.legal-page h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
.legal-page ol { padding-left: 1.4rem; margin: 1.25rem 0; }
.legal-page li { margin-bottom: 0.7rem; }
