/*
 * site.css — landing page and documentation pages
 * ===============================================
 * Loaded after styles.css, which supplies the design tokens, reset and shared
 * components (.btn, .note, .cite, .brand). This file only adds the page-level
 * furniture the tool itself does not need.
 */

body.site { background: var(--bg); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 10px 16px; background: var(--brand-700); color: #fff;
  border-radius: 0 0 6px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

.site-header {
  display: flex; align-items: center; gap: 20px;
  padding: 12px 24px; max-width: 1080px; margin: 0 auto;
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .brand { padding: 0; border: none; background: none; position: static; }
a.brand { text-decoration: none; }
a.brand:hover { text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.site-nav a {
  padding: 6px 11px; font-size: 13.5px; font-weight: 500;
  color: var(--text-2); border-radius: 6px;
}
.site-nav a:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.site-nav .nav-cta {
  background: var(--brand-700); color: #fff; font-weight: 600;
  border: 1px solid var(--brand-800); margin-left: 6px;
}
.site-nav .nav-cta:hover { background: var(--brand-600); color: #fff; }
.nav-toggle { display: none; margin-left: auto; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; right: 16px; left: 16px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 8px;
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .site-nav .nav-cta { margin: 4px 0 0; text-align: center; }
}

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

.hero { padding: 64px 0 52px; }
.eyebrow {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--accent-600); margin-bottom: 14px;
}
:root[data-theme="dark"] .eyebrow { color: var(--accent-500); }

.hero h1 {
  font-size: clamp(28px, 5vw, 48px); line-height: 1.1;
  letter-spacing: -.03em; margin-bottom: 18px; color: var(--text);
}
.lede {
  font-size: clamp(15px, 1.7vw, 17.5px); line-height: 1.62;
  color: var(--text-2); max-width: 62ch; margin-bottom: 26px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: 38px; }
.btn-lg { width: auto; padding: 11px 22px; font-size: 14.5px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; margin: 0 0 18px; padding: 0;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.hero-stats > div { background: var(--surface); padding: 14px 16px; }
.hero-stats dt {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-3);
}
.hero-stats dd {
  margin: 3px 0 0; font-size: 21px; font-weight: 700;
  letter-spacing: -.02em; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.hero-note { font-size: 13px; color: var(--text-3); }

/* ------------------------------------------------------------------- bands */

.band { padding: 56px 0; border-top: 1px solid var(--border); }
.band.alt { background: var(--surface); }
.band h2 {
  font-size: clamp(21px, 3vw, 28px); letter-spacing: -.02em;
  margin-bottom: 12px; color: var(--text);
}
.section-lede {
  font-size: 15px; line-height: 1.6; color: var(--text-2);
  max-width: 66ch; margin-bottom: 28px;
}
.prose-lg {
  max-width: 68ch; font-size: 15px; line-height: 1.72; color: var(--text-2);
}
.prose-lg p { margin-bottom: 1.05em; }
.prose-lg strong, .limit-list strong { color: var(--text); }

/* ---------------------------------------------------------------- features */

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 14px; margin-top: 34px;
}
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow);
}
.band.alt .feature { background: var(--surface-2); }
.feature h3 { font-size: 14.5px; margin-bottom: 7px; color: var(--text); }
.feature p { font-size: 13.5px; line-height: 1.6; color: var(--text-2); margin: 0; }

/* ------------------------------------------------------------------- steps */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps > li {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px;
  align-items: start; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px;
}
.band.alt .steps > li { background: var(--bg); }
.step-n {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-700); color: #fff;
  font-weight: 700; font-size: 14px;
}
.steps h3 { font-size: 15px; margin-bottom: 5px; color: var(--text); }
.steps p { font-size: 13.5px; line-height: 1.62; color: var(--text-2); margin: 0; }

/* ------------------------------------------------------------- limitations */

.limit-list { margin: 22px 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.limit-list li {
  font-size: 14px; line-height: 1.6; color: var(--text-2);
  padding-left: 20px; position: relative;
}
.limit-list li::before {
  content: "—"; position: absolute; left: 0; color: var(--text-3);
}
.fineprint { font-size: 13px; color: var(--text-3); margin-top: 22px; }

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

.link-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px; margin-top: 28px;
}
.link-card {
  display: block; padding: 15px; text-decoration: none;
  background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); transition: border-color .12s, transform .08s;
}
.band.alt .link-card { background: var(--surface-2); }
.link-card:hover {
  border-color: var(--brand-500); text-decoration: none;
  transform: translateY(-1px);
}
.link-card h3 { font-size: 13.5px; color: var(--brand-700); margin-bottom: 3px; }
:root[data-theme="dark"] .link-card h3 { color: var(--brand-500); }
.link-card p { font-size: 12.5px; color: var(--text-3); margin: 0; }

/* ------------------------------------------------------------------- chips */

.chip-row { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.chip {
  padding: 8px 15px; font-size: 13.5px; text-decoration: none;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 22px;
}
.chip:hover {
  border-color: var(--brand-500); background: var(--brand-050);
  text-decoration: none;
}
.chip b { color: var(--brand-700); font-family: var(--mono); font-size: 12.5px; }
:root[data-theme="dark"] .chip b { color: var(--brand-500); }
.cta-band { background: var(--surface); }

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

.site-footer {
  border-top: 1px solid var(--border); background: var(--surface);
  padding: 40px 0 26px; margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 26px; padding-bottom: 26px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-3); margin-bottom: 9px;
}
.footer-grid nav a {
  display: block; font-size: 13px; color: var(--text-2); padding: 3px 0;
}
.footer-note { font-size: 12.5px; line-height: 1.6; color: var(--text-3); margin: 8px 0 0; }
.footer-legal {
  border-top: 1px solid var(--border); padding-top: 20px;
  font-size: 12px; line-height: 1.65; color: var(--text-3);
}
.footer-legal strong { color: var(--text-2); }
.footer-legal p { margin-bottom: .8em; max-width: 90ch; }

/* ---------------------------------------------------------- document pages */

.doc { padding: 40px 0 64px; }
.doc h1 {
  font-size: clamp(24px, 4vw, 34px); letter-spacing: -.025em;
  margin-bottom: 6px; color: var(--text);
}
.doc .updated { font-size: 13px; color: var(--text-3); margin-bottom: 30px; }
.doc h2 {
  font-size: 18px; margin: 34px 0 10px; color: var(--text);
  padding-top: 18px; border-top: 1px solid var(--border);
}
.doc h3 { font-size: 14.5px; margin: 20px 0 7px; color: var(--text); }
.doc p, .doc li {
  font-size: 14.5px; line-height: 1.72; color: var(--text-2);
}
.doc p { margin-bottom: 1em; max-width: 74ch; }
.doc ul, .doc ol { max-width: 74ch; padding-left: 22px; margin-bottom: 1.1em; }
.doc li { margin-bottom: .5em; }
.doc strong { color: var(--text); }
.doc code {
  background: var(--surface-3); padding: 1px 5px; border-radius: 4px;
  font-size: .88em; color: var(--text);
}
.doc table { margin: 16px 0 22px; max-width: 100%; }
.doc .table-wrap { max-height: none; }
.toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 30px;
}
.toc h2 {
  margin: 0 0 8px; padding: 0; border: none;
  font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-3);
}
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; }
@media (max-width: 640px) { .toc ul { columns: 1; } }
.toc li { margin-bottom: 4px; font-size: 13.5px; }

@media print {
  .site-header, .site-nav, .hero-cta, .cta-band, .nav-toggle { display: none !important; }
  .band { page-break-inside: avoid; }
}

/* ----- editions page ----- */

.edition-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 40px;
}
@media (max-width: 880px) { .edition-grid { grid-template-columns: 1fr; } }

.edition {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.edition-tag {
  display: inline-block; align-self: flex-start;
  padding: 3px 10px; margin-bottom: 10px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; border-radius: 20px;
  background: var(--brand-100); color: var(--brand-700);
}
.edition-tag.alt { background: var(--accent-100); color: var(--accent-600); }
:root[data-theme="dark"] .edition-tag { color: var(--brand-500); }
:root[data-theme="dark"] .edition-tag.alt { color: var(--accent-500); }

.edition h2 {
  font-size: 20px; margin: 0 0 8px; padding: 0; border: none; color: var(--text);
}
.edition-lede {
  font-size: 14px; line-height: 1.62; color: var(--text-2); margin-bottom: 4px;
}
.edition h3 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-3); margin: 18px 0 7px;
}
.edition ul { margin: 0; padding-left: 20px; }
.edition li { font-size: 13.5px; line-height: 1.55; color: var(--text-2); margin-bottom: 5px; }
.edition .req { font-size: 13px; color: var(--text-2); line-height: 1.55; }
.edition .btn { margin-top: auto; align-self: flex-start; }
.edition .btn:first-of-type { margin-top: 20px; }

.doc pre {
  padding: 12px 14px; overflow-x: auto; margin: 10px 0 18px;
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 12.5px; line-height: 1.6;
}
.doc pre code { background: none; padding: 0; font-size: inherit; }
