/* Termoscan. One family, three widths: expanded for headings, normal for text, condensed for readings. */
:root {
  --paper: #eceef4;
  --card: #f8f9fc;
  --ink: #16143a;
  --ink-soft: #4a4c6b;
  --line: #c9ccdb;
  /* the thermal ramp: ΔT 0 → 20 °C. Used only where something is actually warm. */
  --heat-0: #3b1e87;
  --heat-1: #8e24a8;
  --heat-2: #d8336f;
  --heat-3: #f26b21;
  --heat-4: #ffc53d;
  --pv-glass: #d9dcea;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 Archivo, system-ui, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-stretch: 114%; font-weight: 650; letter-spacing: -0.02em; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 3.7vw, 3.35rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; max-width: 62ch; }
a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--heat-3); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.reading { font-stretch: 86%; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; }
.marca { display: inline-flex; align-items: center; gap: 10px; font-stretch: 118%; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; }
.marca i { display: grid; grid-template-columns: repeat(3, 7px); gap: 2px; }
.marca i b { height: 12px; background: var(--heat-0); }
.marca i b:nth-child(2) { background: var(--heat-3); }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; font-weight: 500; }
.top nav a:not(.buton) { text-decoration: none; }
.top nav a:not(.buton):hover { text-decoration: underline; }
section[id] { scroll-margin-top: 64px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding-block: 44px 72px; }
.hero p.lede { margin-top: 22px; font-size: 1.2rem; line-height: 1.5; color: var(--ink-soft); max-width: 46ch; }
.actiuni { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }
.buton {
  display: inline-block; padding: 15px 24px; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--ink); color: #fff; font: inherit; font-weight: 600; text-decoration: none; text-align: center;
  transition: background 0.15s;
}
.buton:hover { background: #2a2766; }
.buton[disabled] { opacity: 0.6; cursor: progress; }
.buton.mic { padding: 10px 16px; font-size: 0.95rem; }
.buton.contur { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.buton.contur:hover { background: #dfe2ee; }
.sub-actiuni { margin-top: 18px; font-size: 0.98rem; color: var(--ink-soft); }

/* the figure */
.plansa { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 14px 14px 12px; }
.scena { position: relative; }
.plansa #figura { aspect-ratio: 760 / 560; cursor: ew-resize; border-radius: 3px; }
/* the thermal camera's own view, bottom left where the drawing is empty */
.vizor { position: absolute; left: 4px; bottom: 6px; width: 25%; min-width: 108px; aspect-ratio: 34 / 30; overflow: hidden; pointer-events: none; background: #1d1247; border-radius: 4px; box-shadow: 0 0 0 1.5px var(--ink), 0 10px 26px -10px rgba(22, 20, 58, 0.55); color: #fff; font-size: 0.72rem; font-weight: 600; }
.vizor svg { display: block; width: 100%; height: 100%; }
.vizor::before, .vizor::after { content: ""; position: absolute; background: rgba(255, 255, 255, 0.75); }
.vizor::before { left: 50%; top: 38%; bottom: 38%; width: 1px; }
.vizor::after { top: 50%; left: 40%; right: 40%; height: 1px; }
.vizor span { position: absolute; left: 7px; line-height: 1; text-shadow: 0 0 3px #1d1247; }
.vizor .vz-t { top: 7px; }
.vizor .vz-dt { bottom: 7px; }
.vizor .vz-dt[data-hot] { color: var(--heat-4); }
.plansa figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding: 10px 6px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-soft); }
.plansa figcaption strong { color: var(--ink); font-weight: 600; }
/* the findings fill in as the drone reaches them, the way the report does */
.constatari { list-style: none; margin: 0; padding: 0 6px; font-size: 0.9rem; }
.constatari li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); opacity: 0.3; transition: opacity 0.4s; }
.constatari li[data-on] { opacity: 1; }
.constatari i { width: 10px; height: 10px; background: var(--line); transition: background 0.4s; }
.constatari li[data-on] i { background: var(--c); }
.constatari b { font-weight: 600; }
.exemplu { padding: 8px 6px 0; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--ink-soft); max-width: none; }
.plansa.iso[data-theme="light"] {
  --anatomy-paper: var(--card); --anatomy-face: #fff; --anatomy-top: #fff;
  --anatomy-shade-0: #d3d6e6; --anatomy-shade-1: #dde0ed; --anatomy-shade-2: #e6e8f2; --anatomy-shade-3: #eff1f7;
  --anatomy-lit-top: #fff; --anatomy-lit-shade: #e4e6f1;
  --anatomy-hi: #16143a; --anatomy-mid: #7b7e9d; --anatomy-lo: #a8abc4; --anatomy-faint: #cdd0e0; --anatomy-lit: #16143a;
  --anatomy-halo: #6f7396; --anatomy-halo-opacity: 0.26; --anatomy-dot: #2b2a55;
  --anatomy-red: var(--heat-3);
}

/* the production check */
.verificare { background: var(--ink); color: #e9eaf5; padding-block: 84px; }
.verificare .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.verificare h2 { color: #fff; }
.verificare .despre p { margin-top: 20px; color: #c3c5dc; }
.verificare .despre ul { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; color: #c3c5dc; }
.verificare .despre li { padding-left: 22px; position: relative; }
.verificare .despre li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; background: var(--heat-3); }
form.calcul { background: var(--card); color: var(--ink); border-radius: 6px; padding: 28px; display: grid; gap: 18px; }
.calcul .doua { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calcul label, .calcul legend { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 6px; padding: 0; }
.calcul input, .calcul select {
  width: 100%; padding: 11px 12px; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #a9acc4; border-radius: 4px;
}
.calcul input:focus-visible, .calcul select:focus-visible { outline-offset: 0; border-color: var(--ink); }
.calcul fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calcul .luni { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.calcul .luni label { font-weight: 400; font-size: 0.8rem; color: var(--ink-soft); margin: 0; }
.calcul .luni input { padding: 9px 8px; margin-top: 3px; }
.calcul .bifa { display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 0; }
.calcul .bifa input { width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.calcul .buton { width: 100%; font-size: 1.05rem; }
.calcul .acord { font-size: 0.85rem; color: var(--ink-soft); }
#rezultat { border-left: 4px solid var(--heat-3); background: #fff; padding: 14px 16px; font-weight: 500; }
#rezultat:empty { display: none; }

/* what the camera sees */
.camera { padding-block: 96px 80px; }
.camera > .wrap > p { margin-top: 18px; color: var(--ink-soft); }
.scara { margin-top: 56px; position: relative; padding-top: 30px; }
.scara .banda { height: 18px; border-radius: 2px; background: linear-gradient(90deg, var(--heat-0) 0%, var(--heat-1) 19.5%, var(--heat-2) 31%, var(--heat-3) 60%, var(--heat-4) 92%, #ffe9a8 100%); }
.scara .semn { position: absolute; top: 0; transform: translateX(-50%); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.scara .semn::after { content: ""; position: absolute; left: 50%; top: 24px; width: 2px; height: 30px; background: var(--ink); }
.scara .gradatii { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.82rem; color: var(--ink-soft); }
.clase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 52px; }
.clase article { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; align-items: start; }
.clase svg { width: 76px; height: auto; display: block; border-radius: 2px; }
.clase .dt { font-size: 1.7rem; font-weight: 650; font-stretch: 86%; line-height: 1; }
.clase h3 { margin-top: 8px; }
.clase p { margin-top: 8px; font-size: 0.98rem; color: var(--ink-soft); }

/* the two ways to buy */
.oferta { padding-block: 80px; border-top: 1px solid var(--line); }
.oferta .intro { margin-top: 16px; color: var(--ink-soft); }
.moduri { display: grid; grid-template-columns: 1fr 1fr; margin-top: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.moduri section { padding: 34px 36px 38px; }
.moduri section + section { border-left: 1px solid var(--line); }
.moduri .pret { margin-top: 14px; font-size: 2.6rem; font-weight: 650; font-stretch: 86%; line-height: 1; letter-spacing: -0.01em; }
.moduri .pret small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.moduri .cui { margin-top: 10px; color: var(--ink-soft); }
.moduri ol { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: pas; display: grid; gap: 14px; }
.moduri li { counter-increment: pas; display: grid; grid-template-columns: 30px minmax(0, 1fr); }
.moduri li::before { content: counter(pas); font-weight: 650; font-stretch: 86%; color: var(--heat-3); }
.moduri .buton { margin-top: 28px; }
.oferta .nota { margin-top: 22px; font-size: 0.95rem; color: var(--ink-soft); }

/* the request form */
.comanda { padding-block: 80px; border-top: 1px solid var(--line); }
.comanda .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.comanda .despre p { margin-top: 18px; color: var(--ink-soft); }
.comanda form.calcul { border: 1px solid var(--line); }
.calcul textarea { width: 100%; padding: 11px 12px; font: inherit; color: var(--ink); background: #fff; border: 1px solid #a9acc4; border-radius: 4px; resize: vertical; }
.calcul .alegere { display: grid; gap: 8px; }
.calcul .alegere label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; font-weight: 500; background: #fff; border: 1px solid #a9acc4; border-radius: 4px; cursor: pointer; }
.calcul .alegere label:has(:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.calcul .alegere input { width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.raspuns { border-left: 4px solid var(--heat-3); background: #fff; padding: 14px 16px; font-weight: 500; }
.raspuns:empty { display: none; }

/* the report */
.raport { padding-block: 80px 96px; border-top: 1px solid var(--line); }
.raport .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.raport .limite { margin-top: 20px; color: var(--ink-soft); }
.raport ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 40px; }
.raport li { break-inside: avoid; padding: 13px 0; border-top: 1px solid var(--line); }
.raport li strong { display: block; font-weight: 600; }
.raport li span { color: var(--ink-soft); font-size: 0.96rem; }

footer.jos { border-top: 1px solid var(--line); padding-block: 28px 44px; font-size: 0.9rem; color: var(--ink-soft); }
footer.jos .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; }

@media (max-width: 900px) {
  .hero, .verificare .wrap, .raport .wrap, .comanda .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero { padding-block: 28px 56px; }
  .top nav a:not(.buton) { display: none; }
  .clase { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .moduri { grid-template-columns: minmax(0, 1fr); }
  .moduri section + section { border-left: 0; border-top: 1px solid var(--line); }
  .verificare, .camera { padding-block: 64px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .calcul .doua { grid-template-columns: minmax(0, 1fr); }
  .actiuni .buton { width: 100%; }
  .calcul { padding: 20px 16px; }
  .calcul .luni { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .moduri section { padding: 26px 20px 30px; }
  .raport ul { columns: 1; }
  .plansa { padding: 8px 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
