/* Fingerstick site. One stylesheet, no web fonts, no external requests.
   Look: a paper logbook. Cool ruled paper, indigo ink, one marigold dot (the app icon, store/icon.svg).
   Serif headings (New York on Apple devices), tabular monospace numbers like a handwritten log. */

:root {
  color-scheme: light dark;
  --paper: #f6f7fb;
  --paper-2: #eceff8;
  --sheet: #ffffff;
  --ink: #1c2557;
  --ink-soft: #4a5384;
  --rule: #d9deef;
  --rule-strong: #b9c1e0;
  --brand: #3b4bc8;
  --brand-deep: #1c2557;
  --dot: #f5a524;
  --dot-ink: #8a5300;
  --in: #e2f2e8;
  --in-ink: #1f6b43;
  --high: #fcebd2;
  --high-ink: #8a4b06;
  --low: #e0eafb;
  --low-ink: #1f4f9e;
  --focus: #c2410c;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --page: 1040px;
  --text-col: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1330;
    --paper-2: #141a3d;
    --sheet: #182046;
    --ink: #e9ecf8;
    --ink-soft: #a9b0d4;
    --rule: #28305c;
    --rule-strong: #3a4377;
    --brand: #9aa6ff;
    --brand-deep: #0a0e26;
    --dot-ink: #ffc35c;
    --in: #173a2a;
    --in-ink: #8fe0b0;
    --high: #3d2a10;
    --high-ink: #ffc785;
    --low: #16284d;
    --low-ink: #9cc0ff;
    --focus: #ffb37a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.65 var(--sans);
}

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 0.45em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--sheet); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

.page { max-width: var(--page); margin: 0 auto; padding: 0 22px; }
.text-col { max-width: var(--text-col); }

/* Top bar: a thin ink rule, like the top edge of a logbook page. */
.topbar { border-top: 6px solid var(--brand-deep); border-bottom: 1px solid var(--rule); background: var(--sheet); }
.topbar .page { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 1.25rem/1 var(--serif); color: var(--ink); text-decoration: none; }
.wordmark img { width: 32px; height: 32px; border-radius: 8px; }
.links { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 0.95rem; }
.links a { color: var(--ink-soft); text-decoration: none; }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* First screen: pitch on the left, pricing on the right. */
.opening { padding: 56px 0 40px; }
.opening .page { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); align-items: start; }
.kicker { font: 600 0.82rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.manual-note {
  display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 22px;
  padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; background: var(--sheet);
}
.manual-note::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); flex: none; }

.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 8px; }
.coming-soon { font: 600 0.95rem/1.3 var(--mono); color: var(--ink-soft); }

/* Pricing card: an index card with a ruled header. */
.price-card { background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 6px; box-shadow: 6px 6px 0 var(--paper-2); }
.price-card header { padding: 14px 20px; border-bottom: 2px solid var(--brand); font: 600 0.82rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.price-card .tier { padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.price-card .tier:last-of-type { border-bottom: 0; }
.tier-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tier-name { font: 700 1.1rem/1.2 var(--serif); }
.tier-price { font: 700 1.35rem/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tier-price small { font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); }
.tier ul { margin: 8px 0 0; padding-left: 1.1em; font-size: 0.95rem; color: var(--ink-soft); }
.tier .tag { display: inline-block; margin-top: 8px; font: 600 0.75rem/1 var(--mono); padding: 5px 8px; border-radius: 4px; background: var(--paper-2); color: var(--ink); }
.price-card footer { padding: 12px 20px 16px; font-size: 0.85rem; color: var(--ink-soft); border-top: 1px solid var(--rule); }

/* The logbook illustration is a real table, so screen readers get real data. */
.logbook-wrap { padding: 8px 0 56px; }
.logbook-sheet { background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 6px; overflow-x: auto; }
.logbook-sheet caption { caption-side: top; text-align: left; padding: 16px 18px 6px; font: 700 1.1rem/1.3 var(--serif); }
.logbook-sheet caption span { display: block; font: 500 0.85rem/1.4 var(--sans); color: var(--ink-soft); }
table.logbook { width: 100%; border-collapse: collapse; font: 500 0.95rem/1.2 var(--mono); font-variant-numeric: tabular-nums; min-width: 420px; }
.logbook th, .logbook td { padding: 10px 12px; border-top: 1px solid var(--rule); text-align: center; }
.logbook thead th { font: 600 0.75rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); border-top: 2px solid var(--brand); }
.logbook tbody th { text-align: left; font-weight: 600; color: var(--ink); white-space: nowrap; }
.logbook td.in { background: var(--in); color: var(--in-ink); }
.logbook td.high { background: var(--high); color: var(--high-ink); font-weight: 700; }
.logbook td.low { background: var(--low); color: var(--low-ink); font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 18px 16px; font-size: 0.85rem; color: var(--ink-soft); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legend .k-in { background: var(--in); border: 1px solid var(--in-ink); }
.legend .k-high { background: var(--high); border: 1px solid var(--high-ink); }
.legend .k-low { background: var(--low); border: 1px solid var(--low-ink); }

/* Features: numbered entries on ruled lines. */
.entries { padding: 48px 0; background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.entry-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; counter-reset: entry; }
.entry-list li { counter-increment: entry; padding: 16px 0 16px 52px; border-bottom: 1px solid var(--rule); position: relative; }
.entry-list li::before { content: counter(entry, decimal-leading-zero); position: absolute; left: 0; top: 18px; font: 700 0.95rem/1 var(--mono); color: var(--brand); }
.entry-list h3 { margin-bottom: 4px; }
.entry-list p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

.plain { padding: 48px 0; }
.plain .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 18px; }
.plain .cols div { border-left: 3px solid var(--dot); padding-left: 16px; }
.plain .cols p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

.notice { margin: 0 0 48px; padding: 18px 22px; border: 1.5px dashed var(--rule-strong); border-radius: 6px; background: var(--sheet); font-size: 0.98rem; }
.notice strong { font-family: var(--serif); }

/* Document pages (privacy, terms, support). */
.doc { padding: 44px 0 64px; }
.doc .meta { font: 500 0.85rem/1.4 var(--mono); color: var(--ink-soft); margin-bottom: 28px; }
.doc h2 { margin-top: 1.6em; padding-top: 0.6em; border-top: 1px solid var(--rule); font-size: 1.45rem; }
.doc h3 { margin-top: 1.2em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.4em; }
.summary-box { background: var(--sheet); border: 1px solid var(--rule-strong); border-left: 6px solid var(--brand); border-radius: 6px; padding: 16px 20px; margin-bottom: 28px; }
.summary-box ul, .summary-box p:last-child { margin: 0; }

details.faq { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; margin: 0 0 10px; }
details.faq summary { cursor: pointer; padding: 14px 18px; font: 700 1.05rem/1.35 var(--serif); list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "+"; display: inline-block; width: 1.2em; font-family: var(--mono); color: var(--brand); }
details.faq[open] summary::before { content: "\2212"; }
details.faq .answer { padding: 0 18px 14px 40px; color: var(--ink); }
details.faq .answer ol, details.faq .answer ul { padding-left: 1.2em; }
.faq-group { margin-top: 32px; font: 600 0.82rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
pre.sample { background: var(--paper-2); border-radius: 4px; padding: 10px 12px; font: 0.85rem/1.5 var(--mono); overflow-x: auto; }

.bottom { border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: 0.9rem; color: var(--ink-soft); }
.bottom .page { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.bottom a { color: var(--ink-soft); }

.lost { padding: 96px 0; text-align: center; }
.lost .big { font: 700 4.5rem/1 var(--mono); color: var(--brand); margin-bottom: 12px; }

@media (max-width: 820px) {
  .opening .page { grid-template-columns: 1fr; }
  .entry-list { grid-template-columns: 1fr; }
  .plain .cols { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  table.logbook { min-width: 0; font-size: 0.85rem; }
  .logbook th, .logbook td { padding: 8px 5px; }
  .logbook thead th { font-size: 0.66rem; letter-spacing: 0.02em; }
  .opening { padding-top: 36px; }
}

@media print {
  .topbar, .bottom, .skip { display: none; }
  body { background: #fff; color: #000; }
}
