:root {
  --ink: #132925;
  --ink-2: #23443e;
  --cream: #f5f1e8;
  --paper: #fffcf5;
  --orange: #ff6846;
  --orange-dark: #de4829;
  --mint: #c6ead7;
  --sage: #83ad9a;
  --line: rgba(19, 41, 37, .15);
  --muted: #64726e;
  --shadow: 0 24px 60px rgba(19, 41, 37, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  min-height: 82px;
  padding: 14px clamp(20px, 5vw, 76px);
  display: flex;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 252, 245, .94);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  line-height: 1;
}
.brand > span:last-child, .footer-brand > span:last-child { display: flex; flex-direction: column; }
.brand strong, .footer-brand strong { font: 800 16px/1.1 "Segoe UI", Arial, sans-serif; letter-spacing: -.04em; }
.brand small, .footer-brand small { margin-top: 3px; color: var(--orange-dark); font: 700 11px/1 "Segoe UI", Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.brand-icon { width: 30px; height: 30px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 6px; border-radius: 9px; background: var(--ink); }
.brand-icon i { display: block; width: 4px; border-radius: 4px; background: var(--orange); transform: rotate(-8deg); }
.brand-icon i:nth-child(1) { height: 8px; }
.brand-icon i:nth-child(2) { height: 14px; }
.brand-icon i:nth-child(3) { height: 10px; }

.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 14px; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--orange-dark); }
.header-cta { padding: 11px 18px; border-radius: 999px; background: var(--ink); color: white; text-decoration: none; font-weight: 700; font-size: 13px; }
.header-cta:hover, .header-cta:focus-visible { background: var(--orange-dark); }

.hero {
  min-height: 690px;
  padding: clamp(64px, 8vw, 116px) clamp(20px, 7vw, 110px) 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  overflow: hidden;
  position: relative;
  background: var(--cream);
}
.hero::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 104, 70, .22);
  border-radius: 50%;
  left: -250px;
  top: 70px;
}
.hero-copy { position: relative; z-index: 2; max-width: 760px; }
.eyebrow, .kicker { margin: 0 0 18px; color: var(--orange-dark); font: 800 12px/1.2 "Segoe UI", Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 2px; background: var(--orange); }
h1, h2, h3 { font-family: "Segoe UI", Arial, sans-serif; letter-spacing: -.045em; }
h1 { margin: 0; max-width: 760px; font-size: clamp(3.1rem, 6.1vw, 6.2rem); line-height: .98; font-weight: 800; hyphens: none; overflow-wrap: normal; }
h1 em { color: var(--orange-dark); font-style: normal; }
.lead { max-width: 650px; margin: 30px 0 0; color: #43524e; font-size: clamp(1.08rem, 1.4vw, 1.28rem); line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.button-primary { color: white; background: var(--orange-dark); box-shadow: 0 12px 24px rgba(222, 72, 41, .2); }
.button-primary:hover, .button-primary:focus-visible { background: var(--ink); }
.button-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.6); }
.button-ghost:hover, .button-ghost:focus-visible { border-color: var(--ink); background: white; }
.microcopy { margin: 20px 0 0; color: var(--muted); font-size: 12px; }

.hero-visual { min-height: 490px; display: grid; place-items: center; position: relative; }
.room-card { width: min(100%, 470px); aspect-ratio: .92; position: relative; overflow: hidden; border: 12px solid white; border-radius: 46% 46% 24px 24px; background: #e8ded0; box-shadow: var(--shadow); }
.room-card::before { content: ""; position: absolute; inset: 0 0 58% 0; background: #d7e4df; border-bottom: 2px solid rgba(19,41,37,.1); }
.room-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 31%; background: linear-gradient(18deg, #b9ad9c, #d9ccbc); clip-path: polygon(0 31%, 100% 0, 100% 100%, 0 100%); }
.window { position: absolute; z-index: 2; top: 58px; left: 50%; width: 155px; height: 175px; transform: translateX(-50%); border: 8px solid #fffaf1; background: linear-gradient(160deg, #93b7b2 0 49%, #bcd2c8 50%); box-shadow: 0 12px 22px rgba(19,41,37,.12); }
.window::before, .window::after { content: ""; position: absolute; background: #fffaf1; }
.window::before { width: 7px; top: 0; bottom: 0; left: calc(50% - 3px); }
.window::after { height: 7px; left: 0; right: 0; top: calc(50% - 3px); }
.window span { position: absolute; bottom: 5px; left: 5px; width: 35px; height: 35px; border-radius: 50% 50% 2px 2px; background: var(--ink-2); opacity: .78; }
.heater { position: absolute; z-index: 5; left: 50%; bottom: 85px; transform: translateX(-50%); width: 225px; height: 130px; display: flex; gap: 7px; padding: 16px 14px; border: 8px solid #f9f6ee; border-radius: 15px; background: #d5d2c9; box-shadow: 0 18px 28px rgba(19,41,37,.22); }
.heater::before, .heater::after { content: ""; position: absolute; bottom: -20px; width: 9px; height: 17px; border-radius: 0 0 3px 3px; background: #686e68; }
.heater::before { left: 23px; } .heater::after { right: 23px; }
.heater b { flex: 1; display: block; border-radius: 999px; background: linear-gradient(90deg, #eeeae0, #bcbab2 55%, #f6f3ec); box-shadow: inset 0 0 0 1px rgba(19,41,37,.08); }
.heat-wave { z-index: 4; position: absolute; width: 30px; height: 90px; border-left: 3px solid var(--orange); border-radius: 50%; opacity: .75; }
.wave-one { left: 38%; top: 195px; transform: rotate(-8deg); }
.wave-two { left: 50%; top: 180px; transform: rotate(6deg); }
.wave-three { left: 61%; top: 198px; transform: rotate(-2deg); }
.temperature { z-index: 6; position: absolute; top: 46px; right: 30px; width: 86px; height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; color: white; background: var(--orange-dark); box-shadow: 0 10px 24px rgba(222,72,41,.3); }
.temperature strong { font: 800 24px/1 "Segoe UI", Arial, sans-serif; }
.temperature span { margin-top: 5px; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.berlin-tag { position: absolute; right: 0; bottom: 40px; z-index: 10; padding: 11px 18px; border-radius: 999px; background: white; font: 700 13px "Segoe UI", Arial, sans-serif; box-shadow: 0 12px 28px rgba(19,41,37,.14); }
.berlin-tag span { color: var(--orange); }

.signal-bar { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); color: white; padding: 0 clamp(20px, 7vw, 110px); }
.signal-bar > div { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 27px clamp(18px, 3vw, 42px); border-right: 1px solid rgba(255,255,255,.14); }
.signal-bar > div:first-child { padding-left: 0; }
.signal-bar > div:last-child { border-right: 0; }
.signal-bar span { color: var(--orange); font: 800 12px "Segoe UI", Arial, sans-serif; }
.signal-bar p { margin: 0; color: rgba(255,255,255,.75); font-size: 13px; line-height: 1.45; }
.signal-bar strong { color: white; }

.section { padding: clamp(74px, 9vw, 130px) clamp(20px, 7vw, 110px); }
.intro { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(440px, 1.2fr); gap: clamp(50px, 9vw, 150px); align-items: start; }
.section-heading h2, .calc-copy h2, .search-section h2, .sources h2 { margin: 0; font-size: clamp(2.25rem, 4.1vw, 4.3rem); line-height: 1.04; }
.intro-copy { columns: 2; column-gap: 44px; color: #44534f; }
.intro-copy p { margin: 0; break-inside: avoid; }
.intro-copy p + p { margin-top: 18px; }

.types { padding-top: 22px; }
.section-heading.compact { max-width: 760px; margin-bottom: 48px; }
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.type-card { min-height: 500px; display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .2s ease, box-shadow .2s ease; }
.type-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(19,41,37,.08); }
.type-card.featured { background: #eaf4ed; }
.type-card.dark { color: white; background: var(--ink); }
.type-card .label { margin: 25px 0 7px; color: var(--orange-dark); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.type-card.dark .label { color: #ff9a7f; }
.type-card h3 { margin: 0 0 15px; font-size: 25px; line-height: 1.1; }
.type-card > p:not(.label):not(.best-for) { color: #53615d; font-size: 14px; }
.type-card.dark > p:not(.label):not(.best-for) { color: rgba(255,255,255,.7); }
.best-for { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; }
.type-card.dark .best-for { border-color: rgba(255,255,255,.15); }
.type-card > a { margin-top: 20px; color: var(--orange-dark); font-weight: 700; font-size: 13px; text-decoration: none; }
.type-card.dark > a { color: #ff9a7f; }
.type-icon { width: 58px; height: 58px; position: relative; border-radius: 17px; background: var(--cream); }
.type-card.dark .type-icon { background: rgba(255,255,255,.1); }
.type-icon.infrared { display: flex; align-items: center; justify-content: center; gap: 4px; }
.type-icon.infrared span { width: 5px; height: 28px; border: 2px solid var(--orange); border-top: 0; border-bottom: 0; border-radius: 50%; }
.type-icon.infrared span:nth-child(2) { height: 38px; }
.type-icon.convection span { position: absolute; left: 17px; width: 24px; height: 9px; border-top: 2px solid var(--orange); border-radius: 50%; }
.type-icon.convection span:nth-child(1) { top: 17px; } .type-icon.convection span:nth-child(2) { top: 26px; } .type-icon.convection span:nth-child(3) { top: 35px; }
.type-icon.fireplace span { position: absolute; width: 23px; height: 31px; left: 18px; top: 14px; border-radius: 70% 30% 62% 38%; background: var(--orange); transform: rotate(18deg); }
.type-icon.fireplace span::after { content: ""; position: absolute; width: 10px; height: 17px; left: 5px; bottom: 2px; border-radius: 60%; background: #ffd3a0; }
.type-icon.pump span:first-child { position: absolute; width: 33px; height: 33px; left: 13px; top: 13px; border: 2px solid #ff9a7f; border-radius: 50%; }
.type-icon.pump span:last-child { position: absolute; width: 16px; height: 16px; left: 21px; top: 21px; border: 4px dotted #ff9a7f; border-radius: 50%; }

.calculator-section { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(50px, 8vw, 120px); align-items: center; background: var(--cream); }
.calc-copy > p:not(.kicker):not(.note) { max-width: 760px; color: #475651; font-size: 18px; }
.formula { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.formula > div { min-width: 145px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.7); }
.formula strong { display: block; font: 800 24px/1.1 "Segoe UI", Arial, sans-serif; }
.formula span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.formula > b { color: var(--orange-dark); font-size: 20px; }
.formula .result { color: white; background: var(--orange-dark); border-color: transparent; }
.formula .result span { color: rgba(255,255,255,.75); }
.note { margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.decision-card { padding: 40px; border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.decision-card h3 { margin: 0 0 18px; font-size: 28px; }
.decision-card ul { margin: 0; padding: 0; list-style: none; }
.decision-card li { display: grid; grid-template-columns: 30px 1fr; gap: 13px; padding: 15px 0; border-top: 1px solid var(--line); }
.decision-card li > span { color: var(--orange-dark); font: 800 11px "Segoe UI", Arial, sans-serif; }
.decision-card strong, .decision-card small { display: block; }
.decision-card strong { font-size: 14px; }
.decision-card small { margin-top: 2px; color: var(--muted); line-height: 1.45; }

.berlin-section { padding-bottom: 90px; }
.berlin-panel { min-height: 420px; padding: clamp(42px, 6vw, 80px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 120px); align-items: center; position: relative; overflow: hidden; color: white; border-radius: 32px; background: var(--ink); }
.berlin-panel::after { content: "B"; position: absolute; right: -18px; bottom: -115px; color: rgba(255,255,255,.035); font: 800 420px/1 "Segoe UI", Arial, sans-serif; }
.kicker.light { color: #ff9a7f; }
.berlin-panel h2 { margin: 0; font-size: clamp(2.25rem, 4.2vw, 4.6rem); line-height: 1.03; }
.berlin-copy { position: relative; z-index: 2; }
.berlin-copy p { color: rgba(255,255,255,.72); }
.berlin-copy a { display: inline-block; margin-top: 13px; color: #ff9a7f; font-weight: 700; text-decoration: none; }
.use-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 38px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 20px 20px; overflow: hidden; background: var(--line); }
.use-cases article { padding: 34px; background: white; }
.use-cases article > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: white; background: var(--orange-dark); font-weight: 700; }
.use-cases h3 { margin: 18px 0 8px; font-size: 18px; }
.use-cases p { margin: 0; color: var(--muted); font-size: 13px; }

.search-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(50px, 8vw, 130px); align-items: center; background: var(--mint); }
.search-section > div:first-child > p:last-child { color: #42534d; }
.search-box { padding: clamp(28px, 4vw, 52px); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.hero-search__form label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 700; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.search-row input { min-width: 0; height: 58px; padding: 0 18px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #faf9f5; }
.search-row input:focus { outline: 3px solid rgba(255,104,70,.2); border-color: var(--orange-dark); }
.search-row button { min-width: 130px; padding: 0 20px; border: 0; border-radius: 13px; color: white; background: var(--orange-dark); font-weight: 700; cursor: pointer; }
.search-row button:hover, .search-row button:focus-visible { background: var(--ink); }
.quick-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; align-items: center; }
.quick-links span { margin-right: 3px; color: var(--muted); font-size: 11px; }
.quick-links a { padding: 6px 10px; border-radius: 999px; background: var(--cream); font-size: 11px; font-weight: 700; text-decoration: none; }
.quick-links a:hover, .quick-links a:focus-visible { color: white; background: var(--ink); }
.disclosure { margin: 20px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }

.ad-section { padding-top: 55px; padding-bottom: 55px; display: flex; align-items: center; justify-content: center; gap: 45px; border-bottom: 1px solid var(--line); }
.ad-copy { max-width: 210px; }
.ad-copy span { color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.ad-copy p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.ad-frame { width: 300px; height: 250px; background: #f1eee7; }
.ad-frame iframe { display: block; }

.faq-section { display: grid; grid-template-columns: .68fr 1.32fr; gap: clamp(50px, 8vw, 130px); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 76px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; cursor: pointer; font: 700 17px/1.35 "Segoe UI", Arial, sans-serif; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; color: var(--orange-dark); font-size: 18px; transition: transform .2s; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 820px; margin: -4px 55px 25px 0; color: var(--muted); }

.sources { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(50px, 8vw, 130px); background: var(--cream); }
.sources > div > p:last-child { color: var(--muted); font-size: 13px; }
.sources ul { margin: 0; padding: 0; list-style: none; }
.sources li { border-top: 1px solid var(--line); }
.sources li:last-child { border-bottom: 1px solid var(--line); }
.sources a { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 17px 0; text-decoration: none; }
.sources a:hover span, .sources a:focus-visible span { color: var(--orange-dark); }
.sources strong { font-size: 12px; }
.sources span { color: var(--muted); font-size: 13px; }

.site-footer { min-height: 175px; padding: 42px clamp(20px, 7vw, 110px); display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; color: white; background: var(--ink); }
.site-footer p { margin: 0; color: rgba(255,255,255,.72); font-size: 12px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { color: rgba(255,255,255,.75); font-size: 12px; text-decoration: none; }
.site-footer nav a:hover, .site-footer nav a:focus-visible { color: #ff9a7f; }
.footer-brand .brand-icon { background: rgba(255,255,255,.1); }

@media (max-width: 1120px) {
  .hero { grid-template-columns: 1.05fr .8fr; gap: 30px; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .type-card { min-height: 440px; }
  .intro-copy { columns: 1; }
  .formula { flex-wrap: wrap; }
}

@media (max-width: 820px) {
  .site-header { min-height: 70px; padding: 10px 18px; gap: 16px; }
  .main-nav { display: none; }
  .header-cta { margin-left: auto; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 64px 20px 54px; }
  h1 { font-size: clamp(2.65rem, 12vw, 4.9rem); line-height: 1.01; }
  .hero-visual { min-height: 390px; }
  .room-card { max-width: 360px; }
  .temperature { top: 25px; right: 18px; }
  .signal-bar { grid-template-columns: 1fr; padding: 10px 20px; }
  .signal-bar > div, .signal-bar > div:first-child { padding: 17px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .signal-bar > div:last-child { border-bottom: 0; }
  .section, .intro, .calculator-section, .search-section, .faq-section, .sources { grid-template-columns: 1fr; }
  .intro, .calculator-section, .search-section, .faq-section, .sources { gap: 42px; }
  .berlin-panel { grid-template-columns: 1fr; }
  .use-cases { grid-template-columns: 1fr; margin: 0 14px; }
  .site-footer { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 560px) {
  .brand strong { font-size: 14px; }
  .header-cta { padding: 9px 12px; font-size: 11px; }
  .hero { padding-top: 50px; }
  h1 { font-size: clamp(2.45rem, 12.5vw, 3.6rem); }
  .lead { font-size: 1rem; }
  .button { width: 100%; }
  .hero-visual { min-height: 330px; }
  .room-card { max-width: 300px; border-width: 8px; }
  .window { top: 38px; width: 120px; height: 132px; border-width: 6px; }
  .heater { bottom: 52px; width: 172px; height: 98px; border-width: 6px; padding: 12px 10px; }
  .heat-wave { height: 65px; top: 150px; }
  .wave-two { top: 140px; }
  .temperature { width: 70px; height: 70px; }
  .temperature strong { font-size: 20px; }
  .berlin-tag { right: 5px; bottom: 22px; }
  .section { padding: 68px 20px; }
  .section-heading h2, .calc-copy h2, .search-section h2, .sources h2 { font-size: 2.25rem; }
  .type-grid { grid-template-columns: 1fr; }
  .type-card { min-height: 0; }
  .formula { display: grid; grid-template-columns: 1fr; }
  .formula > div { width: 100%; }
  .formula > b { text-align: center; }
  .decision-card { padding: 27px; }
  .berlin-panel { padding: 38px 25px; border-radius: 22px; }
  .use-cases { margin: 0 7px; }
  .search-box { padding: 24px; }
  .search-row { grid-template-columns: 1fr; }
  .search-row button { min-height: 52px; }
  .ad-section { flex-direction: column; gap: 18px; text-align: center; }
  .faq-list summary { min-height: 88px; font-size: 15px; }
  .sources a { grid-template-columns: 1fr; gap: 3px; }
  .site-footer nav { flex-wrap: wrap; gap: 14px 22px; }
}

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