:root {
  --bg: #0c0f14;
  --surface: #141a22;
  --surface2: #1a222d;
  --border: #2a3545;
  --text: #e8edf4;
  --muted: #8b9cb3;
  --accent-orbital: #7eb8ff;
  --accent-outback: #c9a227;
  --accent-warm: #f0a060;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 12px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, #1a2838 0%, transparent 55%),
    radial-gradient(900px 600px at 90% 20%, #1a2230 0%, transparent 50%), var(--bg);
  min-height: 100vh;
}

a {
  color: var(--accent-orbital);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #a8d0ff;
}

.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-lede-wrap::after {
  content: "";
  display: table;
  clear: both;
}

.hero-wombat {
  float: right;
  width: auto;
  max-width: min(220px, 42vw);
  max-height: min(380px, 52vh);
  height: auto;
  object-fit: contain;
  margin: 0 0 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.lede strong {
  color: var(--text);
  font-weight: 600;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  margin: 0;
  text-align: left;
}

.hero-lede-wrap .lede {
  margin-bottom: 0.85rem;
}

@media (max-width: 520px) {
  .hero-wombat {
    float: none;
    display: block;
    max-width: min(240px, 88vw);
    max-height: none;
    margin: 0 auto 1rem;
  }

  .hero-lede-wrap::after {
    clear: none;
  }
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.panel-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.panel.orbital h2 {
  color: var(--accent-orbital);
}

.panel.outback h2 {
  color: var(--accent-outback);
}

.panel.suburban h2 {
  color: #8bdc9f;
}

.conventional-results {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

@media (min-width: 700px) {
  .conventional-results {
    grid-template-columns: 1fr 1fr;
  }

  .conventional-total {
    grid-column: 1 / -1;
  }
}

.conventional-dl {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.slider-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slider-field {
  display: grid;
  gap: 0.35rem;
}

.slider-field .label-text {
  font-size: 0.82rem;
  color: var(--muted);
}

.slider-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent-warm);
  height: 6px;
}

.slider-field .value {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
}

.slider-field .hint {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 0.1rem;
}

.big-number {
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--surface2);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.big-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.big-value {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 600;
}

.big-sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.breakdown {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.breakdown li span:last-child {
  font-family: var(--mono);
  color: var(--text);
  white-space: nowrap;
}

.cooling-banner {
  margin-top: 1rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  border-radius: 8px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: #e8d49a;
}

.compare-bar h2 {
  margin-bottom: 0.5rem;
}

#headlineCompare {
  font-size: 1.05rem;
  margin: 0 0 1rem;
  color: var(--muted);
}

.ratio-bar {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface2);
  border: 1px solid var(--border);
}

.ratio-fill {
  height: 100%;
  min-width: 4px;
  transition: width 0.25s ease;
}

.ratio-fill.orbital {
  background: linear-gradient(90deg, #4a7ab8, var(--accent-orbital));
}

.ratio-fill.outback {
  background: linear-gradient(90deg, #a88620, var(--accent-outback));
}

.ratio-legend {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.65rem 0 0;
}

.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}

.swatch.orbital {
  background: var(--accent-orbital);
}

.swatch.outback {
  background: var(--accent-outback);
}

.assumptions ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.assumptions li {
  margin-bottom: 0.5rem;
}

.assumptions strong {
  color: var(--text);
}

.footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.card-inner {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.physics-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.65rem;
}

.physics-dl {
  margin: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.82rem;
}

.physics-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: baseline;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.physics-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.physics-row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}

.physics-row dd {
  margin: 0;
  font-family: var(--mono);
  color: var(--text);
  text-align: right;
}

.preset-row {
  margin: 0.25rem 0 0;
}

.preset-btn {
  width: 100%;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(180deg, #2a3545 0%, #1e2630 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  text-align: left;
  line-height: 1.35;
}

.preset-btn:hover {
  border-color: var(--accent-orbital);
  color: #fff;
}

.select-field .select-input {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem 0.65rem;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.select-field .select-input:focus {
  outline: none;
  border-color: var(--accent-orbital);
}
