:root {
  color-scheme: dark;
  --bg: #081018;
  --panel: rgba(12, 21, 33, 0.9);
  --panel-soft: rgba(17, 28, 43, 0.78);
  --text: #ecf4ff;
  --muted: #9db1c7;
  --line: rgba(164, 196, 255, 0.14);
  --accent: #8dd4ff;
  --accent-strong: #5ab9ff;
  --accent-warm: #ffd480;
  --success: #77e8ae;
  --warning: #ffcf7c;
  --danger: #ff9ca4;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(66, 144, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 212, 128, 0.14), transparent 24%),
    linear-gradient(180deg, #071018, #0b1320 52%, #091019);
  color: var(--text);
}
a { color: inherit; }
main { padding-bottom: 72px; }
.shell, .docs-shell { width: min(1120px, calc(100vw - 32px)); margin: 0 auto; }
.hero { padding: 72px 0 32px; }
.hero-grid, .tool-layout, .result-grid { display: grid; gap: 20px; }
.hero-grid { grid-template-columns: 1.25fr 0.95fr; align-items: start; }
.tool-layout { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
.result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
.section { padding-top: 12px; }
.card, .doc-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.hero-card { background: linear-gradient(180deg, rgba(13, 25, 39, 0.95), rgba(12, 22, 34, 0.88)); }
.accent-card { background: linear-gradient(180deg, rgba(10, 28, 43, 0.98), rgba(9, 20, 31, 0.92)); }
.caveat-card { background: linear-gradient(180deg, rgba(43, 25, 14, 0.88), rgba(24, 17, 13, 0.92)); }
.eyebrow, .mini-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
}
.mini-label { margin-bottom: 8px; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 14px; }
h1 { font-size: clamp(2.15rem, 5vw, 4rem); max-width: 13ch; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
h3 { font-size: 1.08rem; }
p { color: var(--muted); line-height: 1.65; margin: 0 0 14px; }
.lead { font-size: 1.05rem; max-width: 68ch; }
.cta-row, .planner-actions, .table-header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row, .planner-actions { margin: 24px 0 20px; }
.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent-strong), #8be0ff); color: #05111b; }
.btn-secondary { background: rgba(255,255,255,0.03); border-color: var(--line); color: var(--text); }
.btn-small { padding: 10px 14px; font-size: 0.92rem; }
.bullet-list { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.65; }
.bullet-list li + li { margin-top: 8px; }
.compact li + li { margin-top: 6px; }
.small-note { font-size: 0.92rem; color: #8fa5bd; }
.no-top { margin-top: 0; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field-grid label { display: grid; gap: 8px; color: var(--text); font-weight: 600; }
.field-grid span { font-size: 0.93rem; }
input, select, textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(6, 12, 19, 0.88);
  color: var(--text);
  padding: 14px 15px;
  font: inherit;
}
textarea { resize: vertical; }
.full-width { grid-column: 1 / -1; }
.is-hidden { display: none !important; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(119, 232, 174, 0.12);
  border: 1px solid rgba(119, 232, 174, 0.26);
  color: var(--success);
  font-weight: 700;
}
.result-zone.hidden { display: none; }
.top-gap { margin-top: 18px; }
.metric-list strong { color: var(--text); }
.score-table { display: grid; gap: 12px; }
.score-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.score-row:last-child { border-bottom: 0; }
.score-row strong { color: var(--text); font-size: 1.05rem; text-align: right; }
.brief-output {
  min-height: 220px;
  line-height: 1.6;
  background: rgba(4, 9, 15, 0.92);
}
.docs-shell { padding: 32px 0 72px; }
.back-link {
  display: inline-block;
  margin: 8px 0 18px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.doc-card h2 { margin-top: 24px; }
.doc-card ul, .doc-card ol { color: var(--muted); line-height: 1.7; padding-left: 20px; }
.info-card h3 { margin-bottom: 12px; }
@media (max-width: 920px) {
  .hero-grid, .tool-layout, .result-grid { grid-template-columns: 1fr; }
  h1 { max-width: none; }
}
@media (max-width: 680px) {
  .field-grid { grid-template-columns: 1fr; }
  .card, .doc-card { padding: 20px; border-radius: 20px; }
  .hero { padding-top: 42px; }
}
