:root {
  color-scheme: dark;
  --canvas: #151719;
  --surface: #1d2023;
  --surface-raised: #25292d;
  --surface-soft: #202428;
  --text: #f7f8f8;
  --muted: rgba(247, 248, 248, 0.64);
  --border: rgba(255, 255, 255, 0.14);
  --blue: #5e9fe8;
  --green: #72bc8f;
  --orange: #de9255;
  --red: #e97366;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 16% -8%, rgba(94,159,232,.14), transparent 30rem),
    var(--canvas);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.site-header {
  width: min(var(--max), calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 9px; background: var(--blue); color: #101820; font-weight: 900;
}
nav { display: flex; gap: 24px; margin-left: auto; color: var(--muted); }
nav a:hover { color: var(--text); }
.private-badge {
  padding: 6px 10px; border: 1px solid rgba(222,146,85,.45); border-radius: 999px;
  color: #f1b680; background: rgba(222,146,85,.10); font-size: 12px; font-weight: 720;
  text-transform: uppercase; letter-spacing: .06em;
}

main { overflow: hidden; }
.hero {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  align-items: center;
  gap: 64px;
}
.eyebrow, .kicker { color: var(--blue); font-size: 13px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(114,188,143,.12); }
h1 { margin: 18px 0 20px; font-size: clamp(46px, 6.1vw, 76px); line-height: .98; letter-spacing: -.058em; }
.hero-copy > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 46px; padding: 11px 17px; border-radius: 9px; display: inline-flex; align-items: center; font-weight: 730; border: 1px solid var(--border); }
.button.primary { background: var(--blue); color: #101820; border-color: transparent; }
.button.secondary { background: var(--surface); }

.signal-panel { border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(160deg, var(--surface-raised), var(--surface)); padding: 24px; }
.signal-heading { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; }
.signal-heading strong { color: #f1b680; }
.signal-score { display: flex; gap: 16px; align-items: center; margin: 30px 0; }
.score-ring { flex: 0 0 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 6px solid rgba(222,146,85,.22); border-top-color: var(--orange); color: #f1b680; font-weight: 900; font-size: 21px; }
.signal-score b { display: block; margin-bottom: 4px; }
.signal-score p { margin: 0; color: var(--muted); font-size: 14px; }
.signal-stats { margin: 0; padding-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.signal-stats div { padding: 0 12px; border-right: 1px solid var(--border); }
.signal-stats div:first-child { padding-left: 0; }
.signal-stats div:last-child { border-right: 0; }
.signal-stats dt { color: var(--muted); font-size: 12px; }
.signal-stats dd { margin: 5px 0 0; font-size: 21px; font-weight: 780; }

.trust-strip {
  min-height: 58px; border-block: 1px solid var(--border); background: rgba(255,255,255,.018);
  display: flex; align-items: center; justify-content: center; gap: 34px; padding: 12px 24px;
  color: var(--muted); font-size: 13px;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; }
.green { background: var(--green); } .orange { background: var(--orange); } .blue { background: var(--blue); }
.observed { padding-left: 34px; border-left: 1px solid var(--border); }

.section { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 76px 0; }
.section.compact { padding-top: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 28px; }
.section-heading .kicker { margin: 0 0 7px; }
h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.038em; }
.section-heading > p { max-width: 440px; margin: 0; color: var(--muted); }
.review-alert { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-bottom: 20px; padding: 15px; background: rgba(222,146,85,.09); border: 1px solid rgba(222,146,85,.34); border-radius: 10px; }
.alert-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: rgba(222,146,85,.18); color: #f1b680; font-weight: 900; }
.review-alert p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.review-alert > span { color: #f1b680; font-size: 12px; font-weight: 760; text-transform: uppercase; letter-spacing: .06em; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-card { position: relative; padding: 23px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.plan-card.best { border-color: rgba(94,159,232,.58); background: linear-gradient(180deg, rgba(94,159,232,.09), var(--surface) 35%); }
.plan-card .tag { position: absolute; right: 15px; top: 15px; padding: 4px 8px; border-radius: 999px; color: #9dc7f5; background: rgba(94,159,232,.13); font-size: 11px; font-weight: 760; text-transform: uppercase; letter-spacing: .05em; }
.plan-name { color: var(--muted); font-weight: 680; }
.plan-price { margin: 17px 0 4px; font-size: 38px; line-height: 1; font-weight: 820; letter-spacing: -.04em; }
.plan-price sup { font-size: 16px; color: var(--muted); vertical-align: top; }
.price-note { color: #f1b680; font-size: 12px; }
.plan-metrics { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.plan-metrics li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.plan-metrics span { color: var(--muted); }
.plan-metrics strong { text-align: right; }

.ratio-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ratio-grid article { min-height: 230px; padding: 25px; background: var(--surface); border-right: 1px solid var(--border); }
.ratio-grid article:last-child { border-right: 0; }
.ratio-grid article > span { color: var(--blue); font-size: 13px; font-weight: 800; }
h3 { margin: 24px 0 9px; font-size: 20px; letter-spacing: -.02em; }
.ratio-grid p { margin: 0 0 22px; color: var(--muted); }
code { padding: 6px 8px; border-radius: 6px; background: rgba(255,255,255,.06); color: #b8d7f8; font: 12px/1.4 Menlo, Consolas, monospace; }

.rules-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rule-card { min-height: 210px; padding: 23px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; border-top-width: 3px; }
.rule-card h3 { margin: 38px 0 9px; font-size: 25px; }
.rule-card p { margin: 0; color: var(--muted); max-width: 510px; }
.rule-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.rule-meta b { color: var(--text); }
.accent-blue { border-top-color: var(--blue); } .accent-green { border-top-color: var(--green); }
.accent-orange { border-top-color: var(--orange); } .accent-red { border-top-color: var(--red); }

.sources { display: grid; grid-template-columns: .75fr 1.25fr; gap: 72px; align-items: start; border-top: 1px solid var(--border); }
.sources > div > p:last-child { color: var(--muted); }
.sources ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.sources li { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--border); }
.source-index { color: var(--muted); font-size: 12px; }
.source-title { font-size: 14px; }
.source-date { color: var(--muted); font-size: 12px; }
.sources a:hover .source-title { color: var(--blue); }

footer { width: min(var(--max), calc(100% - 48px)); min-height: 82px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }

@media (max-width: 840px) {
  .site-header { width: min(100% - 32px, var(--max)); }
  nav { display: none; }
  .private-badge { margin-left: auto; }
  .hero, .sources { grid-template-columns: 1fr; gap: 32px; }
  .hero { width: min(100% - 32px, var(--max)); padding-top: 50px; }
  .plan-grid, .ratio-grid { grid-template-columns: 1fr; }
  .ratio-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .ratio-grid article:last-child { border-bottom: 0; }
  .section { width: min(100% - 32px, var(--max)); padding: 58px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 14px; }
  .trust-strip { justify-content: flex-start; overflow-x: auto; }
  .trust-strip span { flex: 0 0 auto; }
  .rules-layout { grid-template-columns: 1fr; }
  footer { width: min(100% - 32px, var(--max)); flex-direction: column; align-items: flex-start; justify-content: center; padding: 20px 0; }
}

@media (max-width: 520px) {
  .site-header { gap: 12px; }
  .private-badge { max-width: 112px; text-align: center; line-height: 1.2; }
  h1 { font-size: 46px; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .button { justify-content: center; }
  .signal-stats { grid-template-columns: 1fr; gap: 12px; }
  .signal-stats div { padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--border); }
  .signal-stats div:last-child { border-bottom: 0; padding-bottom: 0; }
  .review-alert { grid-template-columns: auto 1fr; }
  .review-alert > span { grid-column: 2; }
  .sources { gap: 28px; }
  .sources li { grid-template-columns: 28px 1fr; }
  .source-date { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
