/* consoles/console-page.css — shared stylesheet for the ten desk-support pages.
   Tokens come from /theme.css (Visual Canon). This file only adds layout and
   components; it never redefines --void/--accent/etc. */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-primary);
  background: var(--void);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }

code, .mono { font-family: var(--font-mono); }

/* ---- header ---- */
header { padding: 20px 0; border-bottom: 1px solid var(--border); }
header .container { max-width: 1100px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo { font-size: 20px; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.logo .interpunct { background: var(--gradient-mark); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px 24px; }
nav a { font-family: var(--font-mono); font-size: 13px; color: var(--text-secondary); }
nav a:hover { color: var(--text-primary); text-decoration: none; }
nav a.active { color: var(--accent); }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); cursor: pointer; }
.theme-btn:hover { color: var(--text-primary); border-color: var(--text-muted); }
@media (pointer: coarse) { .theme-btn { width: 44px; height: 44px; } }

/* ---- breadcrumb ---- */
.breadcrumb { padding: 14px 0; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); overflow-x: auto; white-space: nowrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text-secondary); }
.breadcrumb .sep { margin: 0 8px; }

/* ---- hero ---- */
.hero { padding: 64px 0 52px; text-align: center; position: relative; overflow: hidden; }
.hero-glow { position: absolute; top: -250px; left: 50%; transform: translateX(-50%); width: 900px; height: 700px; background: var(--gradient-glow); pointer-events: none; z-index: 0; }
.hero .container { position: relative; z-index: 1; }
.badge { display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--accent); background: var(--accent-soft); padding: 6px 14px; border-radius: 4px; margin-bottom: 24px; border: 1px solid var(--border); }
.hero h1 { font-size: clamp(28px, 4.6vw, 44px); font-weight: 700; line-height: 1.18; margin-bottom: 20px; letter-spacing: -0.5px; }
.hero-sub { font-size: 17px; color: var(--text-secondary); max-width: 620px; margin: 0 auto 32px; line-height: 1.7; }
.cta-group { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 14px; font-weight: 500; padding: 13px 26px; border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--void); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: transparent; color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--text-secondary); background: var(--surface); }
.btn-large { padding: 16px 34px; font-size: 15px; }
.btn-led { position: relative; }
.btn-led .led { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gradient-mark); box-shadow: 0 0 6px rgba(126,184,201,0.4); flex-shrink: 0; }
[data-theme="light"] .btn-led .led { box-shadow: none; }

/* ---- section shell ---- */
.section-divider { height: 1px; background: var(--gradient-divider); border: none; }
.content-section { padding: 56px 0; }
.section-title { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.section-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.section-title + .section-lede { margin-top: 8px; margin-bottom: 24px; }
.content-section p { font-size: 15.5px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 14px; max-width: 760px; }
.content-section p strong { color: var(--text-primary); }
.section-head { padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }

/* ---- spec grid (section 1: what the format is) ---- */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 20px 0; }
.spec-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; }
.spec-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.spec-value { font-family: var(--font-mono); font-size: 17px; font-weight: 600; color: var(--text-primary); }
.spec-detail { font-size: 13px; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }

/* ---- field list (writes / reads / passthrough) ---- */
.field-list { display: grid; gap: 10px; margin: 20px 0; }
.field-item { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; }
.field-item .mark { flex-shrink: 0; width: 18px; text-align: center; font-weight: 700; margin-top: 1px; }
.field-item.write .mark { color: var(--go); }
.field-item.pass .mark { color: var(--info); }
.field-item.limit .mark { color: var(--text-muted); }
.field-item strong { color: var(--text-primary); }

/* ---- passthrough banner (section 4 differentiator) ---- */
.passthrough-block { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--go); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; padding: 24px 26px; margin: 20px 0; }
.passthrough-block p:last-child { margin-bottom: 0; }

/* ---- limits block (section 5, honest without apology) ---- */
.limits-block { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 4px 26px; margin: 20px 0; background: var(--surface); }
.limits-block .field-item { background: transparent; border: none; border-bottom: 1px solid var(--border-subtle); border-radius: 0; padding: 15px 0; }
.limits-block .field-item:last-child { border-bottom: none; }

/* ---- risk callout (RIVAGE RX-EX, SD12 no-corpus, etc) ---- */
.risk-callout { background: var(--surface); border-left: 3px solid var(--caution); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; padding: 20px 24px; margin: 20px 0; }
.risk-callout p { margin-bottom: 0; }
.risk-callout .risk-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--caution); margin-bottom: 8px; display: block; }

/* ---- checklist (section 6: verify before the show) ---- */
.checklist { margin: 20px 0; list-style: none; counter-reset: chk; }
.checklist li { counter-increment: chk; display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; }
.checklist li:first-child { border-top: 1px solid var(--border); }
.checklist li::before { content: counter(chk); font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); min-width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 4px; flex-shrink: 0; margin-top: 1px; }
.checklist li strong { color: var(--text-primary); }
.checklist code { background: var(--elevated); padding: 2px 6px; border-radius: 3px; color: var(--accent); font-size: 13px; }

/* ---- capability table (per-model ceilings, gap tables) ---- */
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--border); border-radius: var(--radius-md); }
table.cap-table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 13.5px; }
table.cap-table th, table.cap-table td { text-align: left; padding: 10px 14px; white-space: nowrap; }
table.cap-table th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); background: var(--surface); border-bottom: 1px solid var(--border); }
table.cap-table td { color: var(--text-secondary); border-bottom: 1px solid var(--border-subtle); }
table.cap-table tr:last-child td { border-bottom: none; }
table.cap-table td.hl { color: var(--text-primary); font-family: var(--font-mono); }

/* ---- color chip row ---- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.chip { font-family: var(--font-mono); font-size: 11px; padding: 5px 10px; border-radius: var(--radius-sm); border: 1px solid rgba(0,0,0,0.15); }

/* ---- console nav footer link ---- */
.console-nav p { font-size: 14px; color: var(--text-muted); }

/* ---- final CTA ---- */
.final-cta { padding: 80px 0; text-align: center; background: linear-gradient(180deg, var(--void) 0%, var(--surface) 100%); }
.final-cta h2 { font-size: 28px; margin-bottom: 12px; }
.final-cta > .container > p { font-size: 17px; color: var(--text-secondary); margin-bottom: 28px; }
.final-note { font-size: 13px; color: var(--text-muted); margin-top: 16px; }

/* ---- footer ---- */
footer { padding: 44px 0; text-align: center; border-top: 1px solid var(--border); }
.footer-brand { font-size: 17px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
footer p { font-size: 13.5px; color: var(--text-muted); }
footer .interpunct { background: var(--gradient-mark); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ---- scroll reveal ---- */
.reveal { opacity: 0; transition: opacity 0.5s ease, transform 0.5s ease; transform: translateY(8px); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- responsive: no horizontal body scroll at any width ---- */
@media (max-width: 900px) {
  .spec-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  nav a:not(.active) { display: none; }
  .hero { padding: 48px 0 36px; }
}
@media (max-width: 560px) {
  .spec-grid { grid-template-columns: 1fr; }
  .cta-group { flex-direction: column; align-items: stretch; }
  .cta-group .btn { justify-content: center; }
  .content-section { padding: 40px 0; }
  .hero h1 { font-size: 26px; }
  nav { gap: 4px 14px; }
}
