/* KNC Pulls shared styles. Tokens and rules are documented in DESIGN.md. */

/* Fonts are self-hosted (latin subset) so the first paint doesn't wait on Google. */
@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/bebas-neue-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/archivo-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/archivo-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/archivo-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/archivo-latin-700-normal.woff2) format('woff2'); }

:root {
  --bg: #0c0c11;
  --surface: #15151d;
  --surface-2: #1d1d28;
  --line: #2a2a39;
  --line-strong: #3b3b4f;
  --text: #f3f1ea;
  --text-2: #bdbccb;
  --text-3: #9493a6;
  --gold: #f0b429;
  --gold-hover: #ffc847;
  --gold-ink: #16120a;
  --gold-soft: rgba(240, 180, 41, 0.12);
  --ok: #46d384;
  --danger: #ff6b7d;
  --sealed: #6cb2ff;

  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r: 6px;
  --wide: 1080px;
  --narrow: 760px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 12px; border-radius: var(--r); z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: var(--narrow); }
@media (min-width: 720px) { :root { --gutter: 24px; } }

/* Type */
.h1 { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 11vw, 96px); line-height: 0.92; letter-spacing: 0.01em; }
.h1 em { font-style: normal; color: var(--gold); }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 6vw, 48px); line-height: 1; letter-spacing: 0.01em; }
.h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.lede { font-size: 18px; color: var(--text-2); max-width: 36em; }
.small { font-size: 14px; color: var(--text-3); }
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.gold { color: var(--gold); }
.num { font-variant-numeric: tabular-nums; }
.link { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(240,180,41,.35); }
.link:hover { border-bottom-color: var(--gold); }
.prose p + p { margin-top: 16px; }
.prose p { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }

/* Nav */
.nav { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-size: 24px; letter-spacing: 0.04em; color: var(--text); white-space: nowrap; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { display: block; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text-2); padding: 8px 10px; border-radius: var(--r); transition: color .15s ease-out, background .15s ease-out; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a.nav-sell { color: var(--gold); border: 1px solid rgba(240,180,41,.45); padding: 7px 12px; margin-right: 4px; }
.nav-links a.nav-sell:hover { background: var(--gold-soft); }
@media (max-width: 400px) {
  .brand span { display: none; }
  .nav-links a { padding: 8px 8px; font-size: 14px; }
  .nav-links a.nav-sell { padding: 7px 10px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 24px; border-radius: var(--r); font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s ease-out, border-color .15s ease-out, color .15s ease-out; text-align: center; }
.btn-primary { background: var(--gold); color: var(--gold-ink); box-shadow: 0 8px 28px rgba(240,180,41,.22); }
.btn-primary:hover { background: var(--gold-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--text-3); background: var(--surface); }
.btn-quiet { background: var(--surface-2); color: var(--text); border-color: var(--line); min-height: 44px; padding: 10px 16px; font-size: 15px; }
.btn-quiet:hover { border-color: var(--line-strong); }
.btn-block { width: 100%; }
.btn-danger { background: transparent; color: var(--text-3); border-color: transparent; min-height: 44px; font-size: 15px; }
.btn-danger:hover { color: var(--danger); }

/* Sections */
.section { padding: 48px 0; }
@media (min-width: 720px) { .section { padding: 72px 0; } }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 24px; }
.section-head .label { margin-bottom: 8px; display: block; }
.section-head p { color: var(--text-2); margin-top: 8px; max-width: 40em; }

/* Panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
@media (min-width: 720px) { .panel { padding: 24px; } }

/* Rate board */
.rates { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 820px) { .rates { grid-template-columns: repeat(4, 1fr); } }
.rate { background: var(--surface); padding: 20px 16px; }
.rate .label { display: block; }
.rate-num { font-family: var(--display); font-size: clamp(44px, 9vw, 64px); line-height: 1; color: var(--gold); margin: 8px 0 4px; }
.rate-num small { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; margin-right: 4px; vertical-align: 0.6em; }
.rate p { font-size: 14px; color: var(--text-3); line-height: 1.45; }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); padding: 16px 20px; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; }
.steps li > * { grid-column: 2; }
.steps li::before { content: counter(step); grid-column: 1; grid-row: 1 / span 2; font-family: var(--display); font-size: 32px; line-height: 1; color: var(--gold); }
@media (min-width: 820px) { .steps li { display: block; padding: 20px; } .steps li::before { display: block; margin-bottom: 8px; } }
.steps h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.steps p { font-size: 15px; color: var(--text-2); line-height: 1.5; }

/* Reviews */
.reviews { display: grid; gap: 12px; }
@media (min-width: 720px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.review .stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.review blockquote { font-size: 16px; color: var(--text); line-height: 1.5; }
.review footer { margin-top: auto; font-size: 13px; color: var(--text-3); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.review footer b { color: var(--text-2); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 16px; }
.stat { background: var(--surface); padding: 16px 12px; text-decoration: none; display: block; transition: background .15s ease-out; }
.stat:hover { background: var(--surface-2); }
.stat .label { display: block; }
.stat-num { font-family: var(--display); font-size: clamp(30px, 6vw, 40px); line-height: 1.05; color: var(--text); margin-top: 4px; }
.stat p { font-size: 13px; color: var(--text-3); }

/* Chips and tags */
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-size: 15px; font-weight: 500; cursor: pointer; transition: border-color .15s ease-out, color .15s ease-out, background .15s ease-out; }
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.is-on { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.chip.chip-sealed.is-on { border-color: var(--sealed); color: var(--sealed); background: rgba(108,178,255,.1); }
.chip .chip-badge { display: none; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); }
.chip.chip-sealed .chip-badge { background: var(--sealed); color: #07121f; }
.chip.is-on .chip-badge { display: inline-block; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; vertical-align: 2px; margin-left: 6px; }
.tag-slab { background: var(--gold); color: var(--gold-ink); }
.tag-sealed { background: var(--sealed); color: #07121f; }

/* FAQ */
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-size: 17px; font-weight: 600; line-height: 1.4; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--text-3); transition: transform .15s ease-out; }
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--gold); }
.qa summary:hover { color: var(--gold); }
.qa .prose { padding: 0 0 20px; max-width: 42em; }
.qa ul, .qa ol { padding-left: 20px; color: var(--text-2); }
.qa li + li { margin-top: 6px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 32px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer h2 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.footer ul { list-style: none; display: grid; gap: 6px; }
.footer a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.footer a:hover { color: var(--gold); }
.footer-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
