/* PickMyGenerator — family palette, storm-amber accent */
:root {
  --brand-dark: #1a2028;
  --accent: #d97706;
  --teal: #147d74;
  --bg: #f8f8f6;
  --text: #21262d;
  --muted: #5b6570;
  --line: #e0e2dd;
  --alert-extreme: #b91c1c;
  --alert-severe: #d97706;
  --alert-moderate: #ca8a04;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; }
main { max-width: 60rem; margin: 0 auto; padding: 1rem 1.2rem 3rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; padding: 0.7rem 1.2rem; background: var(--brand-dark); color: #fff; }
.logo { color: #fff; font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: 0.02em; }
.tagline { font-size: 0.8rem; color: #b9c2cc; flex: 1 1 14rem; }
.site-nav a { color: #e8ecf0; text-decoration: none; margin-right: 0.9rem; font-size: 0.95rem; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-cta { background: var(--accent); padding: 0.3rem 0.7rem; border-radius: 6px; font-weight: 700; }
.lang-toggle { font-size: 0.85rem; color: #b9c2cc; }
.lang-toggle a { color: #e8ecf0; }

.hero { text-align: center; padding: 2.2rem 0 1rem; }
.hero h1 { font-size: 2rem; margin-bottom: 0.4rem; }
.hero p { max-width: 46rem; margin: 0 auto 1.2rem; }
h2 { margin-top: 2rem; border-bottom: 2px solid var(--accent); padding-bottom: 0.2rem; }
.intro { color: var(--muted); max-width: 46rem; }
.muted { color: var(--muted); }

.zip-form { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.zip-form input { font-size: 1.1rem; padding: 0.6rem 0.9rem; width: 11rem; border: 2px solid var(--line); border-radius: 8px; }
.zip-form button { font-size: 1.05rem; padding: 0.6rem 1.2rem; border: none; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.zip-form button:hover { filter: brightness(1.08); }
.zip-error { color: var(--alert-extreme); text-align: center; }
.zip-form[data-inline] { justify-content: flex-start; }

.alert-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.alert { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--muted); border-radius: 8px; padding: 0.55rem 0.9rem; }
.alert strong { display: block; }
.alert-area { color: var(--muted); font-size: 0.85rem; }
.alert.sev-extreme { border-left-color: var(--alert-extreme); }
.alert.sev-severe { border-left-color: var(--alert-severe); }
.alert.sev-moderate { border-left-color: var(--alert-moderate); }

.card-grid { list-style: none; margin: 0.6rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.8rem; }
.card-grid a { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; text-decoration: none; color: var(--text); }
.card-grid a:hover { border-color: var(--accent); }
.card-grid strong { display: block; font-size: 1.05rem; }
.card-grid p { margin: 0.4rem 0; font-size: 0.9rem; color: var(--muted); }
.card-grid span { color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.card-grid .highlight a { border: 2px solid var(--accent); }

.link-row { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.link-row a { color: var(--teal); }

.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin: 0.8rem 0; }
.breadcrumbs a { color: var(--teal); }

.article { max-width: 46rem; }
.article h2 { margin-top: 1.8rem; }
.article p, .article li { line-height: 1.7; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f3f1ec; }
tr:last-child td { border-bottom: 0; }

.button-link { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; padding: 0.6rem 1.2rem; border-radius: 8px; margin-top: 0.5rem; }
.button-link:hover { filter: brightness(1.08); }

.calc { max-width: 46rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem; }
.calc-modes { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.calc-modes .mode { padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); cursor: pointer; font-size: 0.9rem; font-family: inherit; }
.calc-modes .mode.active { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }
.calc-pane label { display: block; margin: 0.7rem 0; font-size: 0.95rem; }
.calc-pane input[type=number], .calc-pane select { display: block; margin-top: 0.3rem; padding: 0.5rem 0.7rem; font-size: 1rem; border: 1px solid var(--line); border-radius: 6px; width: 100%; max-width: 22rem; font-family: inherit; }
.appliance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.3rem 1rem; }
.appliance-grid label { font-size: 0.92rem; }
.calc-go { margin-top: 1rem; padding: 0.6rem 1.4rem; font-size: 1.05rem; border: none; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.calc-result { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.result-kw { font-size: 1.3rem; font-weight: 800; margin: 0.2rem 0; }
.result-cost { font-size: 1.05rem; font-weight: 600; color: var(--teal); margin: 0.2rem 0; }

.risk-result { margin-top: 1.5rem; }

.lead-form { max-width: 34rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem 1.4rem; }
.lead-step { border: none; padding: 0; margin: 0; }
.lead-step legend { font-weight: 800; font-size: 1.05rem; padding: 0 0 0.5rem; }
.lead-form label { display: block; margin: 0.8rem 0 0.2rem; font-size: 0.95rem; }
.lead-form input[type=text], .lead-form input[type=email], .lead-form input[type=tel], .lead-form input[type=number], .lead-form input:not([type]), .lead-form select { display: block; width: 100%; margin-top: 0.3rem; padding: 0.55rem 0.7rem; font-size: 1rem; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; }
.radio-label { margin: 0.9rem 0 0.2rem; font-size: 0.95rem; }
.lead-form label.radio { display: block; margin: 0.15rem 0; font-weight: 400; }
.lead-form label.radio input { width: auto; display: inline; margin-right: 0.35rem; }
.lead-form .consent { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1.1rem; font-size: 0.8rem; line-height: 1.5; color: var(--muted); }
.lead-form .consent input { margin-top: 0.2rem; }
.step-nav { display: flex; justify-content: space-between; margin-top: 1.2rem; }
.step-nav .next, .step-nav .submit { margin-left: auto; padding: 0.55rem 1.3rem; border: none; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; }
.step-nav .back { padding: 0.55rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-family: inherit; }
.form-error { color: var(--alert-extreme); font-weight: 600; }
.lead-thanks { max-width: 34rem; background: #ecfdf5; border: 2px solid var(--teal); border-radius: 10px; padding: 1.2rem 1.4rem; }

.site-footer { background: var(--brand-dark); color: #b9c2cc; font-size: 0.8rem; padding: 1.2rem; margin-top: 2rem; }
.site-footer p { max-width: 60rem; margin: 0.4rem auto; }
.footer-links { font-size: 0.85rem; }
.footer-links a { color: #e8ecf0; }
