:root {
  --ink: #0c1b26;
  --muted: #52606b;
  --paper: #f4f7f8;
  --white: #ffffff;
  --navy: #071522;
  --navy-2: #102638;
  --amber: #ffb547;
  --amber-dark: #d58414;
  --cyan: #7ed7d3;
  --line: #d9e1e5;
  --shadow: 0 24px 70px rgba(6, 24, 37, 0.13);
  --radius: 18px;
  --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

a { color: inherit; }

.wrap { width: var(--wrap); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 50;
  left: 1rem;
  top: 1rem;
  transform: translateY(-180%);
  padding: 0.75rem 1rem;
  background: var(--amber);
  color: var(--navy);
  border-radius: 8px;
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  width: var(--wrap);
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.015em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--navy);
  color: var(--amber);
  font-weight: 900;
}

.brand strong { color: var(--amber-dark); }

nav { display: flex; gap: 1.6rem; }

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
}

nav a:hover, nav a:focus-visible { color: var(--ink); }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.7fr);
  gap: 4rem;
  align-items: end;
  padding: 4.7rem 0 3rem;
}

.eyebrow, .step {
  margin: 0 0 0.8rem;
  color: #9a5d06;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 760px;
  margin: 1.7rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.trust-note {
  padding: 1.35rem 0 0;
  border-top: 2px solid var(--ink);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}

.trust-number { color: var(--amber-dark); font-weight: 900; }
.trust-note p { margin: 0; color: var(--muted); }
.trust-note strong { color: var(--ink); }

.calculator-section {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
  align-items: start;
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.calculator-card {
  background: var(--white);
  padding: clamp(1.4rem, 4vw, 3.3rem);
}

.section-heading h2, .method-section h2, .faq-section h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading > p:last-child {
  max-width: 650px;
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.device-grid {
  padding: 0;
  margin: 2rem 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.device-option {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.device-option:hover { border-color: #9babb4; transform: translateY(-1px); }
.device-option:has(input:checked) { border-color: var(--amber-dark); background: #fff8ec; }

.device-option input {
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid #91a0aa;
  border-radius: 6px;
  display: grid;
  place-items: center;
}

.device-option input::after {
  content: "";
  width: 10px;
  height: 6px;
  border: solid var(--navy);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) scale(0);
}

.device-option input:checked { border-color: var(--amber); background: var(--amber); }
.device-option input:checked::after { transform: rotate(-45deg) scale(1); }
.device-option input:focus-visible { outline: 3px solid rgba(0, 117, 255, 0.35); outline-offset: 2px; }
.device-option span:nth-of-type(1) { display: flex; flex-direction: column; }
.device-option strong { font-size: 0.96rem; }
.device-option small { color: var(--muted); font-size: 0.78rem; }
.device-watt { color: var(--muted); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }

.controls-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

.range-control {
  display: block;
  padding: 1.15rem;
  background: var(--paper);
  border-radius: 13px;
}

.range-control > span:first-child { display: flex; justify-content: space-between; gap: 1rem; }
.range-control output { color: #875208; font-weight: 850; white-space: nowrap; }
.range-control input { width: 100%; margin: 1rem 0 0.4rem; accent-color: var(--amber-dark); }
.range-limits { display: flex; justify-content: space-between; color: var(--muted); }

.result-card {
  position: sticky;
  top: 1rem;
  min-height: 100%;
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    linear-gradient(rgba(126, 215, 211, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 215, 211, 0.07) 1px, transparent 1px),
    var(--navy);
  background-size: 32px 32px;
  color: var(--white);
}

.step.inverse { color: var(--cyan); }
.result-card h2 { margin: 0; color: var(--amber); font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; }
.result-card > p:not(.step, .link-status) { color: #c4d0d7; }

.metrics { margin: 2rem 0; display: grid; gap: 0; border-block: 1px solid rgba(255,255,255,0.16); }
.metrics div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.metrics div:last-child { border-bottom: 0; }
.metrics dt { color: #aab9c2; font-size: 0.86rem; }
.metrics dd { margin: 0; font-size: 1.25rem; font-weight: 850; }

.recommendation { padding: 1rem; border-left: 3px solid var(--cyan); background: rgba(126, 215, 211, 0.08); }
.recommendation p { margin: 0.35rem 0 0; color: #d5e0e5; font-size: 0.92rem; }

.primary-button {
  margin-top: 1.5rem;
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--amber);
  color: var(--navy);
  text-decoration: none;
  font-weight: 850;
}

.primary-button:hover { background: #ffc466; }
.primary-button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.link-status { color: #91a6b3; font-size: 0.78rem; }

.compare-section { padding-block: 8rem; }
.section-heading.narrow { max-width: 720px; }
.comparison-grid { margin-top: 2.4rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.comparison-card { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.comparison-card.featured { border-top: 5px solid var(--amber); }
.card-kicker { color: #875208; font-size: 0.77rem; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.comparison-card h3 { margin: 0.45rem 0 0.75rem; font-size: 1.55rem; }
.comparison-card > p:not(.card-kicker), .comparison-card li { color: var(--muted); }
.comparison-card ul { padding-left: 1.1rem; margin-bottom: 0; }
.comparison-card li + li { margin-top: 0.45rem; }

.method-section { padding-block: 5.5rem; background: var(--navy-2); color: var(--white); }
.method-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 5rem; align-items: start; }
.method-copy { color: #c7d2d9; font-size: 1.05rem; }
.method-copy p:first-child { margin-top: 0; }

.faq-section { padding-block: 7rem; }
.faq-list { max-width: 850px; margin-top: 2rem; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 1.2rem 2rem 1.2rem 0; cursor: pointer; font-weight: 800; }
.faq-list details p { margin: 0 0 1.4rem; color: var(--muted); }

.site-footer { padding: 3rem 0 1.5rem; background: var(--white); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 3rem; }
.footer-brand { margin-bottom: 0.8rem; }
.footer-grid p { max-width: 560px; margin: 0; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; align-items: start; }
.footer-links a { color: var(--muted); font-weight: 700; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; color: #70808b; font-size: 0.8rem; }

.legal-page { min-height: 100vh; }
.legal-shell { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 4rem 0 7rem; }
.legal-shell h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
.legal-shell h2 { margin: 2.5rem 0 0.7rem; font-size: 1.4rem; }
.legal-shell h3 { margin: 1.5rem 0 0.4rem; font-size: 1.08rem; }
.legal-shell p, .legal-shell li { color: var(--muted); }
.legal-shell a { color: #815006; }
.legal-intro { margin: 1.4rem 0 2.5rem; padding: 1rem 1.2rem; background: var(--white); border-left: 4px solid var(--amber); }
.legal-meta { color: #70808b; font-size: 0.86rem; }
.address-card { padding: 1.3rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 2rem; padding-top: 3rem; }
  .calculator-section { grid-template-columns: 1fr; }
  .result-card { position: static; }
  .comparison-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 650px) {
  :root { --wrap: min(100% - 24px, 1180px); }
  .site-header { min-height: 68px; }
  nav { display: none; }
  .intro { padding-top: 2.2rem; }
  h1 { font-size: clamp(2.4rem, 13vw, 3.5rem); }
  .device-grid, .controls-grid { grid-template-columns: 1fr; }
  .device-option { min-height: 72px; }
  .compare-section { padding-block: 5rem; }
  .method-section { padding-block: 4rem; }
  .faq-section { padding-block: 5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
