/* Scrypick site - native CSS, no build step (GitHub Pages).
   Design read: product landing + compliance page for League players AND Riot
   API reviewers. Brand: "the crystal ball that shows its math" - scry/oracle
   editorial language grounded in measured statistics. Shares the visual family
   of the Champion Scout page (ink-navy ground, single gold accent, serif
   display). Dials: variance 7 / motion 4 / density 4.
   Shape system: panels 10px, badges 3px, buttons 3px (sharp-ish, editorial).
   One accent (gold). Semantic good/bad kept separate from the accent. */
:root {
  --ground: #0e1420;
  --ground-2: #121926;
  --panel: #161e2e;
  --edge: #232e44;
  --edge-2: #2e3c58;
  --ink: #e8edf6;
  --muted: #8b98ad;
  --faint: #5a667c;
  --gold: #c8a24b;          /* single accent, brand */
  --gold-ink: #141004;      /* text ON gold */
  --good: #5bc98c;          /* semantic only */
  --bad: #e06a6a;           /* semantic only */
  --warn: #d7b676;          /* semantic only */
  --maxw: 1120px;
  --r-panel: 10px;
  --r-chip: 3px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.1; margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }

/* ---- nav (one line, 64px) ---- */
header.nav { border-bottom: 1px solid var(--edge); position: sticky; top: 0; background: rgba(14, 20, 32, 0.88); backdrop-filter: blur(8px); z-index: 10; }
header.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--ink); }
.brand b { color: var(--gold); font-weight: 700; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 680px) { .nav-links { display: none; } }

/* ---- buttons (sharp, editorial) ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r-chip); padding: 12px 22px; font-weight: 600; font-size: 15px; border: 1px solid var(--edge-2); transition: transform .12s ease, background .2s ease, border-color .2s ease, color .2s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn.primary { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.btn.primary:hover { background: #d6b25e; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---- hero: asymmetric split, fits viewport ---- */
.hero { padding: 56px 0 48px; border-bottom: 1px solid var(--edge); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); }
.hero p.sub { color: var(--muted); font-size: 17.5px; margin: 18px 0 26px; max-width: 44ch; }
.hero p.sub strong { color: var(--ink); font-weight: 600; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; } .hero { padding: 40px 0 36px; } }

/* live-output panel: honest typographic preview of the real overlay payload */
.example { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-panel); padding: 8px; }
.example .cap { color: var(--faint); font-size: 12px; padding: 8px 12px 6px; }
.rec { padding: 4px 12px 6px; }
.rec .row { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid var(--edge); }
.rec .row:first-child { border-top: none; }
.rec .name { font-weight: 600; flex: 0 0 auto; }
.rec .why { color: var(--faint); font-size: 12.5px; flex: 1 1 auto; min-width: 0; }
.rec .wp { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 14px; color: var(--good); font-weight: 600; flex: 0 0 auto; }
.tag { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 1px 6px; border-radius: var(--r-chip); vertical-align: 2px; }
.tag.best { color: var(--gold); border: 1px solid var(--gold); }
.tag.tie { color: var(--muted); border: 1px solid var(--edge-2); }
.tag.risk { color: var(--bad); border: 1px solid var(--bad); }
.example .plan { border-top: 1px solid var(--edge); margin-top: 4px; padding: 10px 12px 8px; }
.example .plan .plan-cap { color: var(--faint); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 7px; }
.plan-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.plan-chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: var(--r-chip); border: 1px solid var(--edge-2); color: var(--muted); }
.plan-chip.up { color: var(--good); border-color: var(--good); }
.plan-chip.down { color: var(--bad); border-color: var(--bad); }
.example .note { color: var(--faint); font-size: 11.5px; padding: 8px 12px 6px; border-top: 1px solid var(--edge); margin-top: 4px; }

/* ---- sections ---- */
section { padding: 56px 0; border-top: 1px solid var(--edge); }
section:first-of-type { border-top: none; }
section h2 { font-size: clamp(26px, 3.6vw, 34px); }
section .intro { color: var(--muted); margin: 12px 0 30px; max-width: 62ch; font-size: 16.5px; }

/* what-it-does: feature ledger + real screenshot */
.does { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: start; }
.does ul { list-style: none; padding: 0; margin: 0; }
.does li { padding: 16px 0; border-top: 1px solid var(--edge); }
.does li:first-child { border-top: none; padding-top: 0; }
.does li b { display: block; margin-bottom: 4px; font-size: 16.5px; }
.does li span { color: var(--muted); font-size: 14.5px; }
.does li .new { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); border-radius: var(--r-chip); padding: 1px 6px; margin-left: 8px; vertical-align: 2px; }
.does figure { margin: 0; }
.does figcaption { color: var(--faint); font-size: 12.5px; margin-top: 10px; }
.does img { display: block; width: 100%; height: auto; border-radius: var(--r-panel); border: 1px solid var(--edge); }
@media (max-width: 860px) { .does { grid-template-columns: 1fr; gap: 28px; } }

/* briefing band: full-width feature spotlight (game plan + scouting) */
.band { background: var(--ground-2); }
.band .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; }
.band h2 { font-size: clamp(24px, 3.2vw, 30px); }
.band p { color: var(--muted); font-size: 15.5px; max-width: 48ch; }
.band .brief { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-panel); padding: 18px 20px; }
.band .brief-cap { color: var(--faint); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.band .brief .line { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--edge); font-size: 14px; }
.band .brief .line:first-child { border-top: none; padding-top: 0; }
.band .brief .k { flex: 0 0 108px; color: var(--faint); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.band .brief .v { color: var(--ink); }
.band .brief .v .m { color: var(--faint); font-size: 12px; font-family: var(--mono); }
@media (max-width: 860px) { .band .wrap { grid-template-columns: 1fr; gap: 26px; } }

/* how-we-measure: stacked principle ledger (the moat, given room) */
.principles { list-style: none; padding: 0; margin: 0; max-width: 70ch; }
.principles li { padding: 18px 0; border-top: 1px solid var(--edge); }
.principles li:first-child { border-top: none; }
.principles li b { display: block; margin-bottom: 5px; font-family: var(--serif); font-size: 18px; }
.principles li span { color: var(--muted); font-size: 15px; }
.principles .num { font-variant-numeric: tabular-nums; font-family: var(--mono); color: var(--gold); }

/* how-it-works: numbered steps */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
ol.steps li { counter-increment: s; position: relative; padding: 18px 18px 18px 58px; background: var(--ground-2); border: 1px solid var(--edge); border-radius: var(--r-panel); }
ol.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-chip); background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 14px; font-family: var(--mono); }
ol.steps b { color: var(--ink); }
ol.steps span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 720px) { ol.steps { grid-template-columns: 1fr; } }

/* free tools: two-cell grid with distinct grounds */
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tools .tool { border: 1px solid var(--edge); border-radius: var(--r-panel); padding: 24px; display: block; color: var(--ink); position: relative; overflow: hidden; transition: border-color .2s ease, transform .12s ease; }
.tools .tool:hover { text-decoration: none; border-color: var(--gold); transform: translateY(-2px); }
.tools .tool.scout { background: linear-gradient(135deg, var(--panel) 0%, #1b2438 100%); }
.tools .tool.blog { background: linear-gradient(135deg, var(--ground-2) 0%, #18202f 100%); }
.tools .tool h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 8px; }
.tools .tool p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 40ch; }
.tools .tool .go { display: inline-block; margin-top: 16px; color: var(--gold); font-weight: 600; font-size: 14px; }
@media (max-width: 680px) { .tools { grid-template-columns: 1fr; } }

/* api table (compliance surface, unchanged contract) */
table.api { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.api th, table.api td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--edge); vertical-align: top; }
table.api th { color: var(--faint); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
table.api td:first-child { font-weight: 600; white-space: nowrap; font-family: var(--mono); font-size: 13.5px; }
table.api td.why { color: var(--muted); }
.badge { display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: var(--r-chip); border: 1px solid var(--edge-2); color: var(--faint); white-space: nowrap; }
.badge.live { color: var(--good); border-color: #2f5d40; }
.api-foot { color: var(--faint); font-size: 13px; margin-top: 14px; }

/* responsible use: single card row */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-panel); padding: 22px; }
.card h3 { font-size: 16px; margin-bottom: 7px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* contact */
.contact p { color: var(--muted); }

/* footer */
footer.site { border-top: 1px solid var(--edge); padding: 32px 0 64px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.legal { color: var(--faint); font-size: 12.5px; line-height: 1.65; max-width: 560px; }
.footlinks { font-size: 13px; }
.footlinks a { color: var(--muted); display: block; margin-bottom: 6px; }

/* ---- doc pages (privacy) ---- */
.doc { padding: 44px 0 64px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); }
.doc .updated { color: var(--faint); font-size: 13px; margin: 12px 0 30px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc a.back { font-size: 14px; }

/* ---- blog: index + posts ---- */
.blog-head { padding: 52px 0 8px; }
.blog-head .eyebrow { margin-bottom: 12px; }
.blog-head h1 { font-size: clamp(30px, 4.4vw, 44px); }
.blog-head p.sub { color: var(--muted); font-size: 17px; margin: 14px 0 0; max-width: 60ch; }

.postlist { list-style: none; padding: 0; margin: 0; }
.postlist li { border-top: 1px solid var(--edge); }
.postlist li:first-child { border-top: none; }
.postlist a.post-card { display: block; padding: 24px 0; color: var(--ink); }
.postlist a.post-card:hover { text-decoration: none; }
.postlist a.post-card:hover h3 { color: var(--gold); }
.postlist .kicker { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.postlist h3 { font-family: var(--serif); font-size: 22px; margin: 8px 0 8px; }
.postlist p { color: var(--muted); font-size: 14.5px; margin: 0; max-width: 68ch; }

.post { padding: 8px 0 60px; }
.post .updated { color: var(--faint); font-size: 13px; margin: 8px 0 26px; }
.post > .wrap > .lede, .post .lede { font-size: 18px; color: var(--ink); margin: 0 0 22px; max-width: 62ch; }
.post h2 { font-size: 24px; margin: 36px 0 10px; }
.post h3 { font-size: 17px; margin: 24px 0 6px; color: var(--ink); }
.post p { color: var(--muted); max-width: 68ch; margin: 12px 0; }
.post ul { color: var(--muted); max-width: 68ch; padding-left: 20px; }
.post li { margin: 6px 0; }
.post a.back { font-size: 14px; display: inline-block; margin-top: 10px; }
.callout { background: var(--ground-2); border: 1px solid var(--edge); border-left: 3px solid var(--gold); border-radius: var(--r-chip); padding: 14px 16px; margin: 20px 0; }
.callout p { margin: 0; color: var(--muted); font-size: 14.5px; }

.tbl-wrap { overflow-x: auto; margin: 16px 0 6px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
table.data caption { text-align: left; color: var(--faint); font-size: 12.5px; padding: 0 0 8px; }
table.data th, table.data td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--edge); }
table.data thead th { color: var(--faint); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
table.data td.pair { font-weight: 600; white-space: nowrap; }
table.data td.num { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 13.5px; text-align: right; white-space: nowrap; }
table.data td.pos { color: var(--good); }
table.data td.neg { color: var(--bad); }
table.data td.dim { color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 13px; }
.tbl-note { color: var(--faint); font-size: 12.5px; margin: 6px 0 0; }

/* restrained scroll-reveal, reduced-motion safe. Transform-only on purpose:
   opacity reveals leave below-fold content invisible in non-scrolled renders
   (print, previews, full-page screenshots), which this page cannot afford. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    section .wrap > * {
      animation: rise .55s cubic-bezier(0.16, 1, 0.3, 1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 14%;
    }
  }
  @keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
}
