/* Marketing and legal pages. Uses the tokens and the type scale (12/13/15/18/24/32/44) from app.css. */

.site { background: var(--paper); }
.site-wrap { max-width: var(--content); margin: 0 auto; padding: 0 var(--s4); }
.site-wrap.narrow > * { max-width: 760px; }

.site-head { background: var(--bar); color: var(--bar-ink); position: sticky; top: 0; z-index: 20; }
:root[data-theme="dark"] .site-head { border-bottom: 1px solid var(--line); }
.site-head-in { display: flex; align-items: center; gap: var(--s4); height: 60px; }
.site-nav { display: flex; gap: var(--s4); flex: 1; }
.site-nav a { display: inline-flex; align-items: center; min-height: 32px; color: var(--bar-ink-2); text-decoration: none; font-size: 13px; font-weight: 500; }
.site-nav a:hover { color: #fff; }
.site-cta { display: flex; align-items: center; gap: var(--s2); }
.site-head .btn-ghost { color: var(--bar-ink); }
.site-head .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.site-head .icon-btn { color: var(--bar-ink-2); }
.site-head .icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.h3 { font-size: 18px; }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }

/* Hero: one line of promise, then the product's own object (a swap log) at full width. */
.hero { background: var(--bar); color: var(--bar-ink); padding: var(--s6) 0 var(--s7); }
.hero-in { display: flex; flex-direction: column; gap: var(--s5); }
.hero h1 { font-size: 44px; line-height: 1.08; max-width: 26ch; }
.hero .lead { color: var(--bar-ink-2); max-width: 70ch; }
.hero .muted { color: var(--bar-ink-2); max-width: 80ch; }
.hero-copy { display: flex; flex-direction: column; gap: var(--s3); }
.hero-actions { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; margin: var(--s2) 0; }
.hero-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--bar-ink); font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--bar-ink-2); }
.hero-link:hover { text-decoration-color: currentColor; }
.hero-demo .panel { color: var(--ink); }
.demo-head { display: grid; grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr); gap: var(--s3); padding: var(--s2) var(--s4); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.demo-head span:nth-child(2) { text-align: center; }
.demo-head span:last-child { text-align: right; }
.demo-row { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
.demo-row:last-child { border-bottom: 0; }
.demo-row .deck { grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr); }
.demo-row .track-title { font-size: 15px; }
.demo-num { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.demo-num .num { font-size: 15px; color: var(--ink); }
.demo-cover { width: 52px; height: 52px; background: var(--note); }
.demo-cover.alt { background: var(--ink-2); }

.band { padding: var(--s7) 0; }
.band-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-slim { padding: var(--s5) 0; }
.band h2 { font-size: 32px; margin-bottom: var(--s4); max-width: 24ch; }
.band h1 { font-size: 44px; margin-bottom: var(--s3); }

.steps-grid { list-style: none; counter-reset: step; margin: var(--s5) 0 var(--s6); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.steps-grid li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: var(--s3); }
.steps-grid li::before { content: counter(step); font: 600 24px/1 var(--display); font-stretch: 87%; color: var(--ink-3); display: block; margin-bottom: var(--s2); }
.steps-grid h3 { margin-bottom: var(--s2); }
.steps-grid p { color: var(--ink-2); }

.grade-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); align-items: start; }
.ticks { list-style: none; margin: var(--s3) 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 10px; height: 2px; background: var(--ink-3); }
.ticks-wide { max-width: 80ch; color: var(--ink-2); }
.checker { display: flex; flex-direction: column; gap: var(--s3); }
.checker input[type="range"] { width: 100%; height: 24px; accent-color: var(--ink); }
:root[data-theme="dark"] .checker input[type="range"] { accent-color: var(--signal); }
.checker output { font: 600 15px/1 var(--display); font-stretch: 87%; margin-left: 6px; }
.checker-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s3); }
.checker-result > div { display: flex; flex-direction: column; justify-content: space-between; }

.totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); margin: 0; }
.totals > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.totals dd { margin: 0; }

.price-title { margin: var(--s5) 0 var(--s3); }
.price-table th[scope="row"] { font: 600 15px/1.2 var(--display); font-stretch: 87%; color: var(--ink); background: none; border-bottom: 1px solid var(--line); }
.price-table { background: var(--surface); border: 1px solid var(--line); }
.band-alt .price-table { background: var(--paper); }
.band-alt .price-table th { background: none; }
.price-note { margin: var(--s3) 0 var(--s4); max-width: 80ch; }
.plan-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: var(--s3); }
.plan-card { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); }
.band-alt .plan-card { background: var(--paper); }
.plan-card p { margin: 0; color: var(--ink-2); }
.plan-card-price .num { font-size: 32px; line-height: 1.1; color: var(--ink); }

.article-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.article-link { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r2); background: var(--paper); text-decoration: none; }
.article-link:hover { border-color: var(--ink); }

.faq details { border-top: 1px solid var(--line); padding: var(--s3) 0; max-width: 760px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 600 18px/1.3 var(--display); font-stretch: 87%; list-style: none; display: flex; justify-content: space-between; gap: var(--s3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: var(--s2); color: var(--ink-2); }
.attribution { margin-top: var(--s5); }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin: var(--s5) 0; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); text-decoration: none; }
.choice:hover { border-color: var(--ink); }
.choice h2 { font-size: 24px; margin: 0; }
.choice p { color: var(--ink-2); }
/* The lists differ in length; letting them grow keeps both buttons on one line. */
.choice .ticks { flex: 1 1 auto; }

.prose h1 { font-size: 32px; margin-bottom: var(--s3); }
.prose h2 { font-size: 24px; margin: var(--s5) 0 var(--s2); max-width: none; }
.prose p, .prose li { font-size: 15px; line-height: 1.65; }
.prose ul { padding-left: 20px; }
.prose-cta { margin-top: var(--s5); }

.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding: var(--s5) 0 var(--s4); }
.site-foot-in { display: flex; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; margin-bottom: var(--s4); }
.site-foot nav { display: flex; gap: var(--s2) var(--s4); flex-wrap: wrap; align-items: flex-start; font-size: 13px; }
.site-foot nav a, .site-foot nav .link-btn { display: inline-flex; align-items: center; min-height: 32px; }
.site-foot .brand { color: var(--ink); margin-bottom: var(--s2); }

/* Consent bar: two equal choices, no pre-selection, does not cover the page content it sits under. */
.consent { position: sticky; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--ink); box-shadow: var(--pop); padding: var(--s3) 0; }
.consent-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); flex-wrap: wrap; }
.consent p { margin: 0; flex: 1 1 420px; max-width: 90ch; font-size: 13px; color: var(--ink-2); }
.consent-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }

@media (max-width: 960px) {
  .grade-grid { grid-template-columns: minmax(0, 1fr); }
  .steps-grid, .totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-list { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .site-nav { display: none; }
  .site-head-in { justify-content: space-between; }
}
@media (max-width: 860px) {
  .demo-head { display: none; }
  .demo-row .deck { grid-template-columns: minmax(0, 1fr); }
  .demo-row .deck-spine { align-items: stretch; text-align: left; }
}
@media (max-width: 620px) {
  .hero h1, .band h1 { font-size: 32px; }
  .band h2 { font-size: 24px; }
  .hero, .band { padding: var(--s6) 0; }
  .band-slim { padding: var(--s4) 0; }
  .steps-grid, .choice-grid, .plan-cards { grid-template-columns: minmax(0, 1fr); }
  .site-wrap { padding: 0 var(--s3); }
  .site-cta .btn-ghost { display: none; }
  .checker-result { grid-template-columns: minmax(0, 1fr); }
  .consent-actions, .consent-actions .btn { width: 100%; }
}
