/* Infill funnel pages. Brand colours come only from aso-tokens.css;
   everything here is neutral scaffolding built on hairlines and mono figures,
   the way a workshop spec sheet is set. */

:root {
  color-scheme: light dark;

  --paper: #FFFFFF;
  --ground: #FCFBFA;
  --ink: #14171C;
  --ink-2: #4E5560;
  --line: #E3E1DD;
  --rule: #F0EEEA;

  /* Accent that carries text. Light: --brand-ink holds 4.5:1 on white and on
     --ground. Dark: --brand-soft holds 4.5:1 on the dark ground. */
  --accent: var(--brand-ink);
  --fill: var(--brand);
  --on-fill: var(--on-brand);

  --radius: 12px;
  --gap: 20px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15181D;
    --ground: #0E1116;
    --ink: #EDEFF2;
    --ink-2: #A2AAB6;
    --line: #282D36;
    --rule: #1E232B;
    --accent: var(--brand-soft);
  }
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration: none; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 12px; }
h1 { font-size: clamp(28px, 7vw, 44px); }
h2 { font-size: clamp(23px, 5vw, 30px); }
h3 { font-size: 18px; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: 1020px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); color: var(--ink); padding: 10px 14px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  padding-top: 12px; padding-bottom: 12px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 640; letter-spacing: -0.01em; color: var(--ink); text-decoration: none;
  margin-right: auto;
}
.wordmark img { width: 26px; height: 26px; border-radius: 6px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- sections ---------- */

section { padding: 44px 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }
.pale { background: var(--paper); }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 10px;
}
.lead { font-size: clamp(18px, 2.6vw, 21px); color: var(--ink-2); margin: 0 0 22px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; color: var(--ink-2); }

/* ---------- hero ---------- */

.hero { padding: 34px 0 40px; background: var(--paper); }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 60ch; }

.facts {
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  margin: 18px 0 0; padding: 0; list-style: none;
  font-size: 13px; color: var(--ink-2);
}
.facts li {
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; background: var(--ground);
}

/* ---------- download button ---------- */

.get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 4px 0 0; }
.get .small { margin: 0; }
.aso-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.getblock {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  padding: 22px; text-align: center;
}
.getblock h2 { margin-bottom: 8px; }
.getblock .get { justify-content: center; }
.getblock p { max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---------- spec panel (worked example) ---------- */

.spec {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); padding: 18px; margin: 26px 0 0;
}
.spec-head {
  display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between;
  font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--rule);
  padding-bottom: 12px; margin-bottom: 14px;
}
.spec-head b { color: var(--ink); font-weight: 620; }

.bar {
  display: flex; height: 10px; border-radius: 999px; overflow: hidden;
  border: 1px solid var(--line); margin-bottom: 14px;
}
.bar span { display: block; height: 100%; }
.s1 { background: var(--brand-2); }
.s2 { background: var(--brand); }
.s3 { background: var(--brand); opacity: 0.62; }
.s4 { background: var(--brand-2); opacity: 0.58; }
.s5 { background: var(--brand); opacity: 0.45; }

.ledger { width: 100%; border-collapse: collapse; font-size: 15px; }
.ledger th, .ledger td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.ledger td:last-child, .ledger th:last-child { text-align: right; font-family: var(--mono); white-space: nowrap; }
.ledger tfoot td { border-bottom: 0; border-top: 1px solid var(--line); font-weight: 650; padding-top: 11px; }
.ledger .key { display: inline-flex; align-items: center; gap: 9px; }
.ledger .dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; }

.headline {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 4px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.headline .big { font-family: var(--mono); font-size: clamp(26px, 6vw, 34px); font-weight: 650; letter-spacing: -0.02em; }
.headline .cap { font-size: 13px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- data tables ---------- */

.scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 16px; }
table.data { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 15px; }
table.data caption { text-align: left; font-size: 13px; color: var(--ink-2); padding-bottom: 10px; }
table.data th, table.data td { padding: 9px 14px 9px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
table.data thead th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
table.data td.n, table.data th.n { text-align: right; font-family: var(--mono); white-space: nowrap; padding-right: 0; }

/* ---------- cards ---------- */

.cards { display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 660px) { .cards.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); padding: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--ink-2); }

.numbered { counter-reset: step; }
.numbered .card::before {
  counter-increment: step; content: counter(step);
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--on-fill); background: var(--fill);
  width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 6px;
  margin-bottom: 10px;
}

/* ---------- screenshots ---------- */

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%;
  gap: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; padding-bottom: 6px; margin-top: 20px;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img {
  width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--ground);
}
.shots figcaption { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
@media (min-width: 700px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; }
}

.shot-solo { margin: 22px 0 0; max-width: 260px; }
.shot-solo img { border-radius: 14px; border: 1px solid var(--line); background: var(--ground); }
.shot-solo figcaption { font-size: 13px; color: var(--ink-2); margin-top: 8px; }

/* ---------- lists ---------- */

.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 20px; position: relative; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--fill);
}
.ticks b { color: var(--ink); font-weight: 620; }

/* ---------- guide links ---------- */

.guides { display: grid; gap: 12px; margin-top: 20px; list-style: none; padding: 0; }
@media (min-width: 720px) { .guides { grid-template-columns: 1fr 1fr; } }
.guides li {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 15px 16px;
}
.guides a { font-weight: 620; text-decoration: none; }
.guides a:hover { text-decoration: underline; }
.guides p { font-size: 14px; color: var(--ink-2); margin: 5px 0 0; }

/* ---------- faq ---------- */

.faq { margin-top: 8px; }
.faq h3 { margin-top: 26px; }
.faq h3:first-child { margin-top: 12px; }
.faq p { color: var(--ink-2); }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line); background: var(--paper);
  padding: 30px 0 40px; font-size: 14px; color: var(--ink-2);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--accent); text-decoration: underline; }
.site-foot p { margin-bottom: 10px; max-width: 78ch; }

hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 30px 0; }
