/* Minimal light theme — loaded after site.css / styles.css */
:root {
  --bg: #fffdf8;
  --bg-elev: #ffffff;
  --surface: #faf8f2;
  --card: #ffffff;
  --card-hover: #faf8f2;
  --line: #ece8de;
  --line-strong: #d9d4c6;
  --text: #1d1d1b;
  --muted: #5f5d58;
  --faint: #8a877f;
  --accent: #c8452d;
  --accent-dim: #fbece8;
  --accent-ink: #ffffff;
  --warn: #9a6a12;
  --warn-dim: #f7f0e0;
  --danger: #b03a2e;
  --danger-dim: #fbeceb;
  --ok: #2c7a5b;
  --ok-dim: #e9f4ee;
  --info: #5b6b7a;
  --info-dim: #eef1f4;
  --radius: 12px;
  --shadow: none;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1040px;
}
html { color-scheme: light; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; letter-spacing: -0.005em; }
h1, h2, h3 { letter-spacing: -0.03em; font-weight: 600; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
::selection { background: var(--accent-dim); }

/* notice strip */
.topbar, .demo-banner {
  background: var(--bg); color: var(--faint); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.01em; border-bottom: 1px solid var(--line); padding: 0.55rem 1rem;
}
.demo-dot { background: var(--accent); animation: none; box-shadow: none; width: 6px; height: 6px; }

/* header */
.nav, .site-header { padding: 1.6rem 0 1.2rem; }
.site-header { padding-left: 1.25rem; padding-right: 1.25rem; }
.brand, .brand:hover { text-decoration: none; color: var(--text); gap: 0.6rem; }
.brand-name { font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; }
.brand-sub { color: var(--faint); font-size: 0.75rem; }
.logo, .brand svg { border-radius: 0; }
.nav-links { gap: 0.4rem 1.6rem; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.9rem; text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn { color: var(--accent-ink); }

/* buttons */
.btn {
  background: transparent; color: var(--text); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 0.55rem 1.15rem; font-weight: 550; font-size: 0.9rem; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--surface); border-color: var(--text); text-decoration: none; filter: none; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: #ac3a25; border-color: #ac3a25; filter: none; }
.btn.ok { background: transparent; color: var(--ok); border-color: var(--ok); }
.btn.ok:hover { background: var(--ok-dim); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--line-strong); }
.btn.danger:hover { background: var(--danger-dim); border-color: var(--danger); }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* type labels */
.eyebrow, .step, .card .step {
  background: none; padding: 0; border-radius: 0; color: var(--faint);
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow { margin-bottom: 1.2rem; }
.sim-chip, .sim-flag, .sim-label {
  background: none; color: var(--faint); border: 0; border-radius: 0; padding: 0;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
}
.sim-label { display: block; margin-bottom: 1.25rem; }
.sim-chip::before, .sim-flag::before, .sim-label::before { content: "● "; color: var(--accent); font-size: 0.6rem; }
.sim-flag { display: block; }

/* layout */
.wrap { max-width: var(--max); padding: 0 1.5rem; }
.hero { padding: 5.5rem 0 3rem; }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.2rem); line-height: 1.04; letter-spacing: -0.045em; max-width: 14ch; font-weight: 600; margin-bottom: 1.4rem; }
.hero .lead, .lead { color: var(--muted); font-size: 1.12rem; max-width: 56ch; margin-bottom: 1.2rem; }
.hero-actions { margin-top: 2rem; gap: 0.8rem; }
section.block { padding: 3.5rem 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -0.035em; margin-bottom: 0.9rem; }
.grid-3, .grid-4, .grid-2 { gap: 2.5rem; margin-top: 2.5rem; }
.card, .form-card { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.grid-3 .card, .grid-4 .card { border-top: 1px solid var(--text); padding-top: 1rem; }
.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.card p, .card li { color: var(--muted); font-size: 0.95rem; }
.card .step { margin-bottom: 0.7rem; }

/* flow (minimal) */
.card.flow, .flow { border: 0; padding: 0; text-align: left; margin-top: 2rem; }
.flow-row { gap: 0; border-top: 1px solid var(--line); }
.flow-box, .flow-core { background: none; border: 0; border-radius: 0; padding: 1rem 0.5rem 1rem 0; font-weight: 550; font-size: 0.9rem; align-items: flex-start; gap: 0.3rem; }
.flow-box.src, .flow-box.act { border: 0; }
.flow-core { background: var(--accent-dim); padding: 1.2rem 1.4rem; border-radius: 12px; max-width: none; margin: 1rem 0; align-items: flex-start; border: 0; }
.flow-core span { color: var(--muted); }
.flow-arrow { color: var(--faint); font-family: var(--mono); font-size: 0.72rem; text-align: left; padding: 0.4rem 0; text-transform: uppercase; letter-spacing: 0.08em; }
.cmd { color: var(--faint); }

.cta-band { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; text-align: left; padding: 4rem 0 5rem; margin: 0; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.04em; max-width: 18ch; margin-bottom: 1rem; }
.cta-band p { color: var(--muted); max-width: 52ch; margin-bottom: 1.6rem; }

.site-footer { border-top: 1px solid var(--line); color: var(--faint); font-size: 0.82rem; padding: 1.6rem 0 2.4rem; }
.site-footer strong { color: var(--text); font-weight: 600; }
.site-footer a { color: var(--muted); }

/* forms */
.page-head { padding: 3rem 0 1rem; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.04em; margin: 0.4rem 0 0.8rem; }
.form-card { max-width: 560px; }
label { font-weight: 550; font-size: 0.88rem; margin: 1.3rem 0 0.35rem; }
.req { color: var(--accent); }
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 0.6rem 0; min-height: 44px; font-size: 1rem;
}
input:focus, textarea:focus, select:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
textarea { min-height: 100px; }
.help { color: var(--faint); }
.form-actions { margin-top: 1.8rem; }
.alert { border-radius: 8px; font-weight: 500; font-size: 0.92rem; }
.alert.error { background: var(--danger-dim); color: var(--danger); border: 0; }
.alert.ok { background: var(--ok-dim); color: var(--ok); border: 0; }
.alert.warn { background: var(--warn-dim); color: var(--warn); border: 0; }
.narrow { max-width: 440px; margin: 0 0 4rem; }
.narrow .card { padding: 0; }

/* admin tables */
.table-wrap { border: 0; border-radius: 0; margin-bottom: 1.5rem; }
table.data, .data-table { font-size: 0.9rem; }
table.data th, .data-table th { background: none; color: var(--faint); font-family: var(--mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.08em; border-bottom: 1px solid var(--text); }
table.data td, .data-table td, table.data th, .data-table th { border-bottom-color: var(--line); padding: 0.85rem 0.75rem 0.85rem 0; }
.data-table tr.is-active td { background: var(--accent-dim); }
.status.pending { color: var(--warn); }
.status.approved { color: var(--ok); }
.status.active, .status-active { color: var(--accent); }
.section-gap { margin-top: 3rem; }
.section-gap h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.modal-back { background: rgba(255,253,248,0.82); backdrop-filter: blur(6px); }
.modal { background: #fff; border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 20px 60px rgba(29,29,27,0.12); }
.code-box { background: var(--surface); border: 0; color: var(--text); }

/* demo dashboard */
.site-header { max-width: 1180px; }
.header-controls { gap: 1.2rem; }
.ctrl-label { color: var(--faint); font-family: var(--mono); letter-spacing: 0.08em; }
.mode-toggle { background: var(--surface); border: 0; }
.mode-btn { color: var(--muted); font-weight: 550; }
.mode-btn.is-active { background: var(--text); color: #fff; }
.pill { background: none; border: 0; padding: 0; color: var(--faint); }
.pill strong { color: var(--muted); }
.tabs { max-width: 1180px; border-bottom: 1px solid var(--line); padding-top: 0; }
.tab { color: var(--faint); font-weight: 500; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-bottom-color: var(--accent); }
main { max-width: 1180px; padding-top: 2rem; }
.site-footer { max-width: 1180px; }
.stat-grid { gap: 2rem; margin-bottom: 2rem; }
.stat { background: none; border: 0; border-top: 1px solid var(--text); border-radius: 0; box-shadow: none; padding: 0.8rem 0 0; }
.stat .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--faint); }
.stat .v { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.04em; }
.stat.warn, .stat.danger, .stat.ok { border-color: var(--text); }
.stat.warn .v { color: var(--warn); } .stat.danger .v { color: var(--danger); } .stat.ok .v { color: var(--ok); }
.safety-note { background: none; border: 0; border-left: 2px solid var(--accent); border-radius: 0; padding: 0.2rem 0 0.2rem 1rem; max-width: 70ch; margin: 1rem 0 2rem; }
.gpu-grid { gap: 1rem; }
.gpu-card, .gpu-card.is-watch, .gpu-card.is-cap, .gpu-card.is-pending, .gpu-card.is-safety {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: none; padding: 1rem;
}
.gpu-card.is-watch { border-color: #e2c98f; }
.gpu-card.is-cap { border-color: #e9b9ac; }
.gpu-card.is-pending { border-color: var(--line-strong); }
.gpu-card.is-safety { border-color: var(--danger); }
.badge { font-family: var(--mono); font-weight: 500; letter-spacing: 0.06em; }
.badge-cap { background: var(--accent-dim); color: var(--accent); }
.spark { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.swatch-temp { background: var(--text); }
.swatch-fc { background: var(--accent); box-shadow: none; }
.swatch-th { border-top-color: var(--danger); }
.pending-panel, .log-panel, .chart-card, .code-card { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 1.5rem 0 0; margin-bottom: 2rem; }
.chart-card { padding: 1.5rem 0 0; }
.code-card pre { background: var(--surface); border: 0; color: var(--text); border-radius: 10px; }
.audit-log li { border-bottom-color: var(--line); }
.tag-forecast { background: var(--accent-dim); color: var(--accent); }
.tag-operator { background: var(--info-dim); color: var(--info); }
.progress-track { background: var(--surface); border: 0; }
.progress-fill { background: var(--accent); }
.progress-pill { background: none; color: var(--faint); font-family: var(--mono); padding: 0; }
.lesson-layout { gap: 2.5rem; }
.lesson-nav button { background: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; color: var(--muted); }
.lesson-nav button.is-active { background: none; border-left-color: var(--accent); color: var(--text); }
.lesson-body { background: none; border: 0; box-shadow: none; padding: 0; }
.lesson-body h3 { font-size: 1.4rem; }
.quiz { border-top-color: var(--line); }
.choices label { background: none; border: 1px solid var(--line); border-radius: 10px; font-weight: 450; margin: 0; }
.choices label:hover { border-color: var(--text); }
.model-status { color: var(--muted); }

/* home illustration */
.hero-fig { margin: 3.5rem 0 0; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.hero-fig svg { width: 100%; height: auto; max-height: 280px; }
.hero-fig figcaption { color: var(--faint); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.8rem; }
.hero-fig figcaption::before { content: "● "; color: var(--accent); font-size: 0.6rem; }
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.steps .n { font-family: var(--mono); font-size: 0.78rem; color: var(--faint); padding-top: 0.2rem; }
.steps h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.steps p { color: var(--muted); max-width: 60ch; }

@media (max-width: 820px) {
  .hero { padding: 3rem 0 2rem; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; gap: 1.8rem; }
  .flow-row, .flow-row.acts-3 { grid-template-columns: 1fr 1fr; }
  .steps li { grid-template-columns: 3.2rem 1fr; }
  .nav-links { gap: 0.3rem 1.1rem; }
  .stat-grid { gap: 1.2rem; }
  .lesson-layout { gap: 1.5rem; }
}
.brand { display: flex; align-items: center; }
.brand-sub { margin-left: 0.15rem; padding-left: 0.6rem; border-left: 1px solid var(--line-strong); line-height: 1; }
@media (max-width: 520px) { .brand-sub { display: none; } }
