/* site.css — the sporran.app marketing site.
   
   Loads on top of the app's own tokens.css (copied in by build.sh, never
   forked): the palette, the light-dark() authoring rule, the type scale
   and .rst-btn all arrive from there, so the site and the console cannot
   drift into two violets or two button shapes. Everything below is the
   marketing page's own layout — the console mock, the hero, the claims.
   
   Zero JS, no webfonts, both themes from one declaration per colour. The
   same regime the app runs under, for the same reasons. */

/* ── Shell ─────────────────────────────────────────────────────────── */
body {
  font-size: 1rem;              /* the app runs at 14px; a page read at
                                   arm's length does not */
  -webkit-font-smoothing: antialiased;
}
main, .site-head, .site-foot {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 64rem;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.site-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-block: 1.5rem;
}
.mark {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-weight: 650;
  gap: 0.5rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.mark svg { color: var(--accent); }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(3rem, 9vw, 6rem) clamp(2rem, 5vw, 3.5rem); }
.hero h1 {
  font-size: clamp(2.5rem, 7.5vw, 4.25rem);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  max-width: 14ch;
}
.lede {
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 2.1vw, 1.375rem);
  line-height: 1.45;
  margin: 1.25rem 0 0;
  max-width: 44ch;
  text-wrap: balance;
}
.hero--narrow h1 { max-width: 20ch; }

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  max-width: 30rem;
}
.cta input {
  background: var(--surface);
  border: 1px solid var(--field-line);
  border-radius: var(--radius-ctl);
  color: var(--text);
  flex: 1 1 14rem;
  font: inherit;
  min-width: 0;
  padding: 0.55rem 0.7rem;
}
.cta input:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.cta .rst-btn { padding-inline: 1rem; }
.cta-note {
  color: var(--text-faint);
  font-size: 0.875rem;
  margin: 0.75rem 0 0;
  max-width: 36ch;
}
.cta-note a { color: var(--accent-ink); }

.visually-hidden {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ── The console, in miniature ─────────────────────────────────────── */
/* One card, one shadow, hairlines carrying the columns — the ledger's
   own discipline rather than a screenshot, so it stays sharp at every
   width and correct in both themes. */
.console {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.console__head { padding: 1.5rem 1.5rem 0; }
.console__label {
  color: var(--text-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  margin: 0;
  text-transform: uppercase;
}
.console__figure {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0;
}
.console__fresh {
  align-items: center;
  color: var(--text-faint);
  display: flex;
  font-size: 0.8125rem;
  gap: 0.4rem;
  margin: 0.35rem 0 0;
}
.dot {
  background: var(--ok);
  border-radius: 999px;
  height: 0.4rem;
  width: 0.4rem;
}

.tide { display: block; height: 5.5rem; width: 100%; }
.tide__fill { fill: var(--accent-weak); }
.tide__line { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

.console__proof {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin: 0;
  padding: 0.6rem 1.5rem;
}

.rows { border-collapse: collapse; font-size: 0.9375rem; width: 100%; }
.rows td { border-bottom: 1px solid var(--line); padding: 0.7rem 1.5rem; vertical-align: baseline; }
.rows tr:last-child td { border-bottom: 0; }
.rows__who { font-weight: 550; }
.rows__who span {
  color: var(--text-faint);
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
}
.rows__acct { color: var(--text-muted); font-size: 0.8125rem; white-space: nowrap; }
.rows__amt {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.rows__amt--in { color: var(--ok-ink); }
@media (max-width: 34rem) {
  .rows__acct { display: none; }
}

/* ── Claims ────────────────────────────────────────────────────────── */
.claims {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}
.claim h2 {
  border-top: 2px solid var(--accent);
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0;
  padding-top: 0.85rem;
}
.claim p { color: var(--text-muted); line-height: 1.55; margin: 0.6rem 0 0; }

/* ── Close ─────────────────────────────────────────────────────────── */
.close {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}
.close h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 660;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  max-width: 24ch;
}
.close p { color: var(--text-muted); line-height: 1.55; margin: 1rem 0 0; max-width: 52ch; }
.close__cta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }

/* ── Foot ──────────────────────────────────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem 3rem;
}
.site-foot p { color: var(--text-faint); font-size: 0.8125rem; margin: 0; }
