/* webinarhosts.com — theme_08 Minimalist Magazine Calculator */
:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --ink: #0f172a;
  --accent: #6d28d9;
  --muted: #475569;
  --line: #e2e8f0;
  --serif: Charter, Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0.25em 0; }
h2 { font-size: 1.75rem; margin-top: 0; }
h3 { font-size: 1.15rem; margin-top: 0; }
a { color: var(--accent); }
code { background: var(--surface); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }
.muted { color: var(--muted); }
.error { color: #b91c1c; font-weight: 600; min-height: 1.2em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* Masthead */
.masthead { border-bottom: 1px solid var(--line); background: var(--bg); }
.masthead-inner { display: flex; align-items: baseline; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.brand { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.masthead nav a { margin-left: 1.25rem; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.masthead nav a:hover, .masthead nav a:focus { color: var(--accent); }

/* Disclosure banner — above the fold */
.disclosure-banner { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); padding: 0.55rem 0; }
.disclosure-banner strong { color: var(--ink); }

/* Hero */
.hero { padding: 3.5rem 0 2rem; border-bottom: 1px solid var(--line); }
.kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--accent); font-weight: 700; margin: 0 0 0.5rem; }
.lede { font-size: 1.15rem; max-width: 46rem; color: var(--ink); }
.meta-line { color: var(--muted); font-size: 0.85rem; }

/* Sections */
section { padding: 2.5rem 0; }
.workbench, .reference, .methodology, .faq { border-bottom: 1px solid var(--line); }

/* Panels & controls */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.controls label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }
.controls input, .controls select {
  display: block; width: 100%; margin-top: 0.25rem; padding: 0.45rem 0.6rem;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink);
  font-size: 1rem; font-family: var(--sans);
}
.controls input:focus, .controls select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.control-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid { border: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem 1rem; }
.grid legend { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 700; padding: 0; margin-bottom: 0.5rem; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; text-align: center; }
.kpi-v { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.kpi-l { display: block; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* SVG */
#curve { width: 100%; height: auto; display: block; }
#curve .axis { stroke: var(--line); stroke-width: 1; }
#curve .curve { stroke: var(--accent); stroke-width: 2.5; }
#curve .curve-dot { fill: var(--accent); }
#curve .lbl { font-size: 12px; fill: var(--muted); font-family: var(--sans); }
#curve .lbl.end { fill: var(--ink); font-weight: 600; }

/* Tables */
.compare, .sens { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.compare th, .compare td, .sens th, .sens td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--line); text-align: right; }
.compare th:first-child, .compare td:first-child, .sens th:first-child, .sens td:first-child { text-align: left; }
.compare thead th, .sens thead th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.compare tbody tr.is-active td { color: var(--accent); font-weight: 600; }
.sens th { font-weight: 600; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } .control-row { grid-template-columns: 1fr; } }

/* Export */
.export-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
button {
  background: var(--accent); color: #fff; border: none; border-radius: 8px;
  padding: 0.65rem 1.2rem; font-size: 0.95rem; font-weight: 600; cursor: pointer;
  font-family: var(--sans);
}
button:hover, button:focus { background: #5b21b6; outline: 2px solid var(--ink); outline-offset: 2px; }

/* Rubric */
.rubric { list-style: none; padding: 0; margin: 0.5rem 0; }
.rubric li { padding: 0.4rem 0; border-bottom: 1px dashed var(--line); }
.rubric label { display: flex; gap: 0.6rem; align-items: baseline; cursor: pointer; }
.rubric input { accent-color: var(--accent); width: 1rem; height: 1rem; }
.rubric .w { color: var(--muted); font-size: 0.8rem; }
.rubric-score { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--accent); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 0.75rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--serif); font-size: 1.05rem; }
.faq details p { margin: 0.6rem 0 0.4rem; max-width: 46rem; }

/* Prose */
.prose { max-width: 46rem; }
.prose h3 { margin-top: 1.5rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 1.75rem 0 2.5rem; color: var(--muted); font-size: 0.88rem; }
.footer nav a { margin-right: 1.25rem; color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--accent); }
.footer p { margin: 0 0 0.5rem; }

/* Legal pages reuse same tokens */
.legal h1 { font-size: 2rem; }
.legal .prose { padding-bottom: 2rem; }
.legal-back { display: inline-block; margin: 1.5rem 0 0; }

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