/* Small pages (thanks, downloads, privacy, freebies): content starts on the same left edge as the logo. */
.page { position: relative; overflow: hidden; isolation: isolate; min-height: calc(100svh - 72px); padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 8vw, 110px); }
.page::before { content: ''; position: absolute; right: -20%; top: -40%; width: 90vw; height: 120%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(226,194,90,.15), transparent 72%); }
.page::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(40% 50% at 10% 15%, #000, transparent); mask-image: radial-gradient(40% 50% at 10% 15%, #000, transparent); }
.page h1 { max-width: 18ch; }
.page-steps, .dl-list, .page-note, .wait-line, .page .signup, .download, .legal-copy > * { max-width: 760px; }
.page h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .98; letter-spacing: -0.025em; text-wrap: balance; }
.page h1 span { color: var(--gold); }
.page .lede { font-size: 1.15rem; color: var(--text-2); max-width: 52ch; margin: 20px 0 36px; }
.page h2 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.015em; margin: 44px 0 14px; }
.page p, .page li { color: var(--text-2); }
.page a:not(.btn) { color: var(--gold); }
.page-steps { display: grid; gap: 12px; counter-reset: s; margin: 8px 0 0; }
.page-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 18px 20px; border-radius: 16px; background: rgba(244,240,230,.04); border: 1px solid var(--line); }
.page-steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--gold); border: 1px solid rgba(226,194,90,.5); }
.page-steps b { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; }
.page-steps .ui { color: var(--text); font-weight: 600; }
.page-note { margin-top: 26px; padding: 16px 20px; border-radius: 14px; border: 1px dashed var(--line-2); font-size: .96rem; }
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 22px; border-radius: 22px; background: linear-gradient(170deg, #24201A, #15130F); border: 1px solid rgba(226,194,90,.3); }
.download .meta { font-family: var(--mono); font-size: .8rem; color: var(--text-3); }
.download .btn-primary { min-height: 58px; font-size: 1.05rem; }
.page-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.legal-copy h2 { font-size: 1.25rem; margin-top: 36px; }
.legal-copy p, .legal-copy li { margin-top: 10px; max-width: 68ch; }
.legal-copy ul { list-style: disc; padding-left: 20px; }
.nav-back { display: inline-block; line-height: 44px; min-height: 44px; color: var(--text-3); text-decoration: none; transition: color .2s; } /* type comes from the header tokens in theme.css */
.nav-back:hover, .nav-back:focus-visible { color: var(--gold-2); }


/* ---------- freebie page (/r/...) ---------- */
.rp-grid { max-width: 1100px; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 8px; }
.rp-gate .signup { max-width: 560px; }
.rp-locked { display: inline-block; margin-bottom: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(226,194,90,.4); color: var(--gold); font-size: .92rem; }
.rp-unlocked { padding: 24px; border-radius: 20px; border: 1px solid rgba(226,194,90,.35); background: linear-gradient(170deg, #24201A, #15130F); display: grid; gap: 12px; justify-items: start; }
.rp-unlocked .meta { font-family: var(--mono); font-size: .8rem; color: var(--text-3); }
.rp-facts { padding: 26px; border-radius: 20px; background: rgba(244,240,230,.035); border: 1px solid var(--line); }
.rp-facts h2 { margin: 0 0 14px; font-size: 1.15rem; }
.rp-list { display: grid; margin-bottom: 20px; counter-reset: rp; }
.rp-list li { display: grid; grid-template-columns: 34px 1fr; padding: 11px 0; border-top: 1px solid var(--line); color: var(--text); counter-increment: rp; }
.rp-list li:first-child { border-top: 0; padding-top: 2px; }
.rp-list li::before { content: counter(rp, decimal-leading-zero); font-family: var(--mono); font-size: .78rem; color: var(--gold); padding-top: .2em; }
.rp-dl { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.rp-dl dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.rp-dl dd { color: var(--text-2); margin-top: 2px; }
.rp-more-title { margin-top: clamp(56px, 8vw, 96px); }
.rp-more { grid-template-columns: repeat(3, 1fr); }
.rp-card { padding: 24px 0 !important; text-decoration: none; color: inherit; }
.rp-card .res-sum { color: var(--text-2); }
@media (max-width: 900px) { .rp-grid, .rp-more { grid-template-columns: 1fr; } }

/* ---------- downloads (/unlocked) ---------- */
.dl-list { display: grid; gap: 14px; margin-top: 8px; }
.dl-row { display: flex; justify-content: space-between; align-items: center; gap: 18px 28px; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); background: rgba(244,240,230,.03); }
.dl-row h2 { margin: 2px 0 4px; font-size: 1.25rem; }
.dl-row p { font-size: .95rem; }
.dl-type { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold) !important; }
.dl-row.is-highlight { border-color: rgba(226,194,90,.5); background: linear-gradient(170deg, #24201A, #15130F); }
.dl-row .btn { flex: none; }
.dl-size { font-family: var(--mono); font-size: .75rem; opacity: .7; margin-left: 4px; }
@media (max-width: 640px) { .dl-row { flex-direction: column; align-items: flex-start; } }

/* ---------- waiting indicator ---------- */
.wait-line { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: .95rem; color: var(--text-2); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(226,194,90,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(226,194,90,.55); } 70% { box-shadow: 0 0 0 12px rgba(226,194,90,0); } 100% { box-shadow: 0 0 0 0 rgba(226,194,90,0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
