/* Tally site: Ledger on Dusk. Tokens follow #17 (Ledger tokens, Dusk gradient). */
:root {
  color-scheme: light dark;
  --fg: #1c1c1a;
  --mute: #716F68;
  --line: #E4E1DA;
  --card: rgba(255, 255, 255, .74);
  --dusk: linear-gradient(180deg, #fbe2cc 0%, #f6e4e6 38%, #ebe5f2 72%, #e2e1f2 100%);
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f2f1ed;
    --mute: #9a9890;
    --line: #2B2A27;
    --card: rgba(32, 32, 34, .66);
    --dusk: linear-gradient(180deg, #3a2316 0%, #2a1a26 38%, #1b1828 72%, #121220 100%);
  }
}

* { box-sizing: border-box; }

html { background: var(--dusk) fixed; background-color: #ebe5f2; min-height: 100%; }
@media (prefers-color-scheme: dark) { html { background-color: #1b1828; } }

body {
  margin: 0;
  color: var(--fg);
  font: 17px/1.55 var(--sans);
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}

main, footer { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 20px; }
main { padding-top: 48px; padding-bottom: 24px; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--mute); }

h1 { font-size: clamp(32px, 9vw, 44px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; margin: 0 0 16px; }
h2 { font-size: 18px; line-height: 1.3; font-weight: 600; margin: 32px 0 6px; }
p { margin: 0 0 12px; }

.mono { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.lead { font-size: 19px; }
.free { font-weight: 600; }

/* Landing */
.landing { text-align: left; }
.badge { display: inline-block; margin: 8px 0 16px; line-height: 0; }
.badge img { display: block; width: 180px; height: auto; }
.req { color: var(--mute); }

/* The Small "Hero + then" widget, Ledger dark (mockup 7a), as it renders on 9 Oct 2026. */
.widget {
  width: 200px; height: 200px; margin: 0 0 32px;
  border-radius: 28px; overflow: hidden;
  background: #141412; color: #f2f1ed;
  display: flex; flex-direction: column;
  box-shadow: 0 18px 40px rgba(20, 16, 30, .22);
}
.widget .hero { flex: 1; background: #22211E; padding: 16px 16px 14px; display: flex; flex-direction: column; justify-content: space-between; }
.widget .head, .widget .then { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: #9a9890; text-transform: uppercase; letter-spacing: .08em; }
.widget .body { display: flex; flex-direction: column; gap: 7px; }
.widget .days { font-size: 60px; font-weight: 600; letter-spacing: -.03em; line-height: .9; color: oklch(0.78 0.14 60); font-variant-numeric: tabular-nums; }
.widget .days small { font-size: .32em; font-weight: 400; letter-spacing: 0; margin-left: 3px; color: #9a9890; }
.widget .name { font-size: 15px; font-weight: 600; }
.widget .track { height: 4px; background: #363533; border-radius: 2px; }
.widget .fill { width: 75%; height: 100%; border-radius: 2px; background: oklch(0.78 0.14 60); }
.widget .then { height: 34px; align-items: center; padding: 0 16px; text-transform: none; letter-spacing: 0; }
.widget .then b { font-weight: 400; color: oklch(0.78 0.14 160); }

/* Policy and support pages */
.doc { background: var(--card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 24px; padding: 28px 24px; }
.doc h1 { margin-bottom: 6px; }
.doc .mono { margin-bottom: 20px; }
.doc h2:first-of-type { margin-top: 24px; }

footer { padding-top: 16px; padding-bottom: 40px; font-size: 14px; color: var(--mute); }
footer p { border-top: 1px solid var(--line); padding-top: 14px; margin: 0; }
footer a { color: var(--mute); }
footer a:hover { color: var(--fg); }
