/* ========================================================================== 
   AKFA Energy 0.9.0 — production UI refinement
   - cleaner thermal/acoustic/solar demonstration
   - interactive three-stage journey
   - calmer catalog hierarchy
   - workspace-safe advisor with a simplified live preview
   ========================================================================== */

:root {
  --v9-red: #ea2632;
  --v9-red-dark: #c91421;
  --v9-ink: #111722;
  --v9-muted: #707c8e;
  --v9-line: rgba(75, 91, 113, .13);
  --v9-surface: rgba(255, 255, 255, .92);
  --v9-surface-soft: rgba(247, 249, 252, .9);
  --v9-shadow: 0 28px 80px rgba(17, 27, 42, .11);
  --v9-shadow-soft: 0 16px 44px rgba(17, 27, 42, .075);
  --v9-ease: cubic-bezier(.18, .82, .22, 1);
}

html[data-v9-ready="true"] {
  scroll-padding-top: calc(var(--v8-header-height, 68px) + 8px);
}

body {
  background:
    radial-gradient(circle at 9% 6%, rgba(66, 152, 255, .045), transparent 31rem),
    radial-gradient(circle at 91% 8%, rgba(234, 38, 50, .055), transparent 34rem),
    #f4f6f9;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid rgba(234, 38, 50, .2);
  outline-offset: 3px;
}

.site-header {
  border-bottom-color: rgba(70, 85, 106, .1);
  background: rgba(249, 250, 252, .88);
  box-shadow: 0 8px 28px rgba(17, 27, 42, .055);
  backdrop-filter: blur(24px) saturate(1.18);
}

.desktop-nav {
  background: rgba(238, 241, 245, .82);
  border: 1px solid rgba(75, 91, 113, .09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.desktop-nav a {
  transition: color .18s ease, background .22s ease, box-shadow .22s ease, transform .22s var(--v9-ease);
}

.desktop-nav a:hover {
  color: var(--v9-ink);
  transform: translateY(-1px);
}

.desktop-nav a.is-active {
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 27, 42, .08), inset 0 -2px 0 var(--v9-red);
}

/* HERO — cleaner engineering demonstration -------------------------------- */
.hero {
  background:
    radial-gradient(circle at 82% 28%, rgba(234, 38, 50, .06), transparent 30rem),
    radial-gradient(circle at 18% 82%, rgba(59, 151, 255, .065), transparent 34rem),
    linear-gradient(180deg, #fbfcfd, #f4f7fa);
}

.hero__layout {
  grid-template-columns: minmax(430px, .86fr) minmax(620px, 1.14fr);
  gap: clamp(26px, 3.2vw, 54px);
}

.hero h1 {
  max-width: 760px;
  letter-spacing: -.058em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 720px;
  color: #687589;
  font-size: clamp(15px, 1.12vw, 18px);
  line-height: 1.58;
}

.hero-lab {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .94);
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 4%, rgba(234,38,50,.09), transparent 19rem),
    radial-gradient(circle at 8% 92%, rgba(56,153,255,.09), transparent 21rem),
    rgba(255,255,255,.86);
  box-shadow: 0 34px 100px rgba(17, 28, 44, .14), inset 0 1px 0 #fff;
  backdrop-filter: blur(28px) saturate(1.12);
  transform: perspective(1300px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition: transform .35s var(--v9-ease), box-shadow .35s ease;
}

.hero-lab::before {
  opacity: .55;
  background:
    linear-gradient(120deg, rgba(255,255,255,.86), rgba(255,255,255,.18) 42%, transparent 68%),
    radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(255,255,255,.42), transparent 24rem);
}

.hero-lab:hover {
  box-shadow: 0 40px 120px rgba(17, 28, 44, .17), inset 0 1px 0 #fff;
}

.hero-lab__top {
  min-height: 54px;
  padding: 0 2px 8px;
  align-items: center;
}

.hero-lab__top > div:first-child span {
  color: var(--v9-red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-lab__top > div:first-child strong {
  color: var(--v9-ink);
  font-size: clamp(21px, 1.7vw, 28px);
  letter-spacing: -.035em;
}

.segment-switch {
  padding: 4px;
  border: 1px solid rgba(78, 92, 112, .12);
  background: rgba(231,235,241,.9);
  box-shadow: inset 0 1px 3px rgba(17,27,42,.05);
}

.segment-switch button {
  min-width: 88px;
  min-height: 42px;
  border-radius: 12px;
  font-size: 12px;
  transition: color .2s ease, background .25s ease, box-shadow .25s ease, transform .25s var(--v9-ease);
}

.segment-switch button.is-active {
  background: #fff;
  box-shadow: 0 8px 20px rgba(17,27,42,.1), inset 0 -2px 0 var(--v9-red);
  transform: translateY(-1px);
}

.hero-focus-switch {
  position: relative;
  z-index: 12;
  width: min(430px, calc(100% - 170px));
  margin: 0 auto 8px;
  padding: 4px;
  border: 1px solid rgba(75,91,113,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 14px 34px rgba(17,27,42,.09);
  backdrop-filter: blur(18px);
}

.hero-focus-switch button {
  min-height: 42px;
  border-radius: 12px;
  color: #697486;
  transition: color .2s ease, background .25s ease, box-shadow .25s ease, transform .25s var(--v9-ease);
}

.hero-focus-switch button:hover {
  color: var(--v9-ink);
}

.hero-focus-switch button.is-active {
  color: #fff;
  background: linear-gradient(145deg, #f13a46, #d91c28);
  box-shadow: 0 10px 24px rgba(222, 25, 38, .22);
  transform: translateY(-1px);
}

.hero-lab__status {
  position: relative;
  z-index: 11;
  display: grid;
  grid-template-columns: auto minmax(70px, 1fr) auto minmax(130px, 1.6fr);
  align-items: center;
  gap: 10px;
  margin: 0 4px 8px;
  color: #788395;
  font-size: 10px;
}

.hero-lab__status > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.hero-lab__status > span i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(103,174,230,.12);
  background: #6db4e8;
}

.hero-lab__status > span i.is-akfa {
  background: var(--v9-red);
  box-shadow: 0 0 0 5px rgba(234,38,50,.1);
}

.hero-lab__status > em {
  position: relative;
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: linear-gradient(90deg, #91c9ed, #f0d0b6 50%, #f5a366);
}

.hero-lab__status > em i {
  position: absolute;
  inset: 0 auto 0 -35%;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  animation: v9StatusSweep 3.2s ease-in-out infinite;
}

.hero-lab__status small {
  text-align: right;
  line-height: 1.35;
}

@keyframes v9StatusSweep {
  0%, 15% { transform: translateX(0); opacity: 0; }
  35%, 75% { opacity: 1; }
  100% { transform: translateX(390%); opacity: 0; }
}

.climate-scene {
  --scene-divider: var(--hero-reveal, 58%);
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.96);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(175, 214, 244, .86) 0 49.85%, rgba(255, 231, 184, .9) 50.15% 100%);
  box-shadow: inset 0 0 0 1px rgba(77, 94, 116, .035), 0 18px 48px rgba(17,27,42,.075);
  isolation: isolate;
}

.climate-scene::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: .52;
  background:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px),
    radial-gradient(circle at 22% 15%, rgba(255,255,255,.64), transparent 18rem),
    radial-gradient(circle at 82% 25%, rgba(255,255,255,.42), transparent 22rem);
  background-size: 36px 36px, 36px 36px, auto, auto;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 92%);
  pointer-events: none;
}

.climate-scene::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.6));
  pointer-events: none;
}

.energy-field-canvas {
  z-index: 4;
  opacity: .38;
  filter: saturate(.82) blur(.1px);
}

.hero-product-layer {
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  clip-path: inset(0 calc(100% - var(--hero-reveal, 58%)) 0 0 round 26px 0 0 26px);
  transition: clip-path .22s linear;
}

.hero-product-layer::before {
  opacity: .24;
  background: radial-gradient(ellipse at 47% 82%, rgba(93, 177, 255, .32), transparent 34%);
}

.hero-product-layer img {
  position: absolute;
  left: 48.5%;
  bottom: -15%;
  width: auto;
  height: 126%;
  transform: translateX(-50%);
  object-fit: contain;
  filter: drop-shadow(0 30px 32px rgba(15, 24, 37, .22)) saturate(.96) contrast(1.03);
}

.hero-product-layer__ambient {
  opacity: .55;
  filter: blur(10px);
}

.hero-product-layer__labels {
  display: none;
}

.scene-window {
  z-index: 3;
  left: 50%;
  top: 51%;
  width: 205px;
  height: 250px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 30px rgba(17,27,42,.14));
}

.scene-window__frame {
  border-color: #a4afbc;
  background: rgba(232,239,245,.74);
  box-shadow: inset 0 0 0 10px rgba(245,248,250,.82), 0 0 0 2px rgba(94,109,129,.2);
}

.hero-split-indicator {
  z-index: 12;
  left: var(--hero-reveal, 58%);
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.95) 9%, rgba(234,38,50,.4) 50%, rgba(255,255,255,.95) 91%, transparent);
  box-shadow: 0 0 22px rgba(255,255,255,.8);
  transition: left .22s linear;
}

.hero-split-indicator > span {
  width: 48px;
  height: 48px;
  border: 8px solid rgba(255,255,255,.9);
  color: var(--v9-red);
  background: #fff;
  box-shadow: 0 12px 28px rgba(17,27,42,.16), 0 0 0 1px rgba(234,38,50,.12);
}

.hero-dashboard-card {
  z-index: 16;
  border: 1px solid rgba(255,255,255,.96);
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 42px rgba(17,27,42,.13), inset 0 1px 0 #fff;
  backdrop-filter: blur(20px);
}

.hero-dashboard-card--score {
  left: 20px;
  bottom: 19px;
  width: 186px;
  padding: 14px 16px;
  border-radius: 20px;
}

.hero-dashboard-card--score strong b {
  color: var(--v9-ink);
  font-size: 38px;
}

.hero-dashboard-card--saving {
  right: 20px;
  bottom: 19px;
  min-width: 180px;
  padding: 12px 14px;
  border-radius: 20px;
}

.hero-dashboard-card--saving > span {
  color: #109d5a;
  background: #e9f8f0;
}

.scene-result {
  z-index: 14;
  left: 220px;
  right: 216px;
  bottom: 19px;
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 13px 22px;
  border: 1px solid rgba(255,255,255,.96);
  border-radius: 19px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 42px rgba(17,27,42,.11);
  backdrop-filter: blur(20px);
}

.scene-result > span {
  align-items: flex-start;
  color: var(--v9-ink);
  line-height: 1.42;
}

.scene-result > span .icon {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--v9-red);
}

.scene-result > strong {
  display: none;
}

.thermal-lens {
  z-index: 18;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.82);
  transition: opacity .2s ease, transform .25s var(--v9-ease);
}

.climate-scene.is-lens-active .thermal-lens {
  opacity: .88;
  transform: translate(-50%, -50%) scale(1);
}

.climate-scene__outside,
.climate-scene__inside {
  z-index: 2;
}

.scene-temperature {
  top: 22px;
  left: 24px;
  color: rgba(255,255,255,.96);
  text-shadow: 0 5px 22px rgba(31,89,134,.18);
}

.scene-temperature--inside {
  left: auto;
  right: 25px;
  color: #8e541f;
  text-shadow: none;
}

.scene-sofa,
.scene-lamp,
.scene-plant {
  opacity: .92;
}

.heat-stream {
  z-index: 8;
  opacity: .62;
  background: linear-gradient(90deg, rgba(241,100,52,.88), rgba(241,100,52,0));
  box-shadow: 0 0 14px rgba(241,100,52,.18);
}

.sound-wave {
  opacity: .34;
}

.hero-lab[data-hero-focus-mode="acoustic"] .energy-field-canvas {
  opacity: .22;
}

.hero-lab[data-hero-focus-mode="acoustic"] .sound-wave {
  opacity: .78;
  border-color: rgba(56,139,214,.55);
}

.hero-lab[data-hero-focus-mode="acoustic"] .heat-stream {
  opacity: .14;
}

.hero-lab[data-hero-focus-mode="solar"] .climate-scene {
  background: linear-gradient(90deg, rgba(255, 210, 150, .82) 0 49.85%, rgba(255, 238, 197, .94) 50.15% 100%);
}

.hero-lab[data-hero-focus-mode="solar"] .hero-product-layer__ambient--warm {
  opacity: .88;
}

.hero-compare-control {
  margin: 10px 3px 6px;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  gap: 13px;
}

.hero-compare-control label {
  position: relative;
}

.hero-compare-control input[type="range"] {
  height: 30px;
}

.hero-compare-control input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, #86c5ed, #eff2f5 48%, #f5a063);
  box-shadow: inset 0 1px 2px rgba(17,27,42,.08);
}

.hero-compare-control input[type="range"]::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -11px;
  border: 7px solid var(--v9-red);
  background: #fff;
  box-shadow: 0 8px 20px rgba(216,27,39,.25);
}

.hero-lab__bottom {
  margin-top: 4px;
  padding: 8px;
  border: 1px solid rgba(75,91,113,.09);
  border-radius: 17px;
  background: rgba(248,250,252,.78);
}

.season-button {
  min-height: 42px;
  border-radius: 12px;
}

.season-button.is-active {
  background: #fff;
  box-shadow: 0 8px 20px rgba(17,27,42,.08), inset 0 -2px 0 var(--v9-red);
}

.lab-note {
  color: #727e90;
}

.hero-lab__telemetry {
  display: none;
}

/* HOW — interactive production journey ----------------------------------- */
.how-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(56,153,255,.06), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(234,38,50,.07), transparent 28rem),
    linear-gradient(180deg, #f8fafc, #f3f6fa);
}

.how-v9-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  align-items: end;
  gap: 36px;
  margin-bottom: 18px;
  padding: 22px 26px;
  border: 1px solid rgba(255,255,255,.94);
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--v9-shadow-soft), inset 0 1px 0 #fff;
  backdrop-filter: blur(22px);
}

.how-v9-heading h2 {
  max-width: 860px;
  margin: 5px 0 8px;
  color: var(--v9-ink);
  font-size: clamp(34px, 3.2vw, 50px);
  line-height: .98;
  letter-spacing: -.052em;
  text-wrap: balance;
}

.how-v9-heading p {
  max-width: 760px;
  margin: 0;
  color: #738094;
  font-size: 14px;
  line-height: 1.55;
}

.how-v9-heading__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.how-v9-heading__proof span {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 13px;
  border: 1px solid rgba(75,91,113,.1);
  border-radius: 16px;
  background: rgba(248,250,252,.86);
}

.how-v9-heading__proof b {
  color: var(--v9-red);
  font-size: 19px;
}

.how-v9-heading__proof small {
  margin-top: 3px;
  color: #778294;
  font-size: 10px;
  line-height: 1.35;
}

.journey-studio {
  min-height: 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 12px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.96);
  border-radius: 30px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--v9-shadow), inset 0 1px 0 #fff;
  backdrop-filter: blur(24px) saturate(1.08);
}

.journey-tabs {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(160deg, #171e29, #202b3a 58%, #111722);
  box-shadow: 0 20px 46px rgba(15,23,35,.18), inset 0 1px 0 rgba(255,255,255,.08);
}

.journey-tabs button {
  position: relative;
  min-height: 82px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  padding: 11px;
  overflow: hidden;
  color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 17px;
  background: rgba(255,255,255,.035);
  text-align: left;
  transition: color .22s ease, background .3s ease, border-color .3s ease, transform .3s var(--v9-ease);
}

.journey-tabs button:hover {
  color: #fff;
  transform: translateX(3px);
}

.journey-tabs button > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  font-size: 11px;
  font-weight: 900;
}

.journey-tabs button b {
  display: block;
  color: inherit;
  font-size: 13px;
}

.journey-tabs button small {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,.42);
  font-size: 9px;
  line-height: 1.3;
}

.journey-tabs button > i {
  position: absolute;
  inset: auto 11px 7px;
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
}

.journey-tabs button > i::after {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff5661, #fff);
}

.journey-tabs button.is-active {
  color: #fff;
  border-color: rgba(255,82,95,.32);
  background: linear-gradient(135deg, rgba(234,38,50,.25), rgba(255,255,255,.07));
  box-shadow: inset 3px 0 0 var(--v9-red), 0 12px 30px rgba(0,0,0,.16);
}

.journey-tabs button.is-active > span {
  background: linear-gradient(145deg, #f13b47, #d71926);
  box-shadow: 0 8px 22px rgba(218,25,37,.26);
}

.journey-tabs button.is-active > i::after {
  width: 100%;
  animation: v9JourneyProgress 5.6s linear both;
}

.journey-studio.is-paused .journey-tabs button.is-active > i::after {
  animation-play-state: paused;
}

@keyframes v9JourneyProgress { from { width: 0; } to { width: 100%; } }

.journey-stage {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(75,91,113,.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 22% 20%, rgba(80,170,255,.12), transparent 20rem),
    radial-gradient(circle at 82% 82%, rgba(234,38,50,.1), transparent 20rem),
    linear-gradient(145deg, #f8fafc, #eef3f8);
  box-shadow: inset 0 1px 0 #fff;
}

.journey-grid {
  position: absolute;
  inset: 0;
  opacity: .36;
  background-image: linear-gradient(rgba(79,94,115,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(79,94,115,.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.75), transparent 92%);
}

.journey-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px) scale(.975);
  pointer-events: none;
  transition: opacity .5s ease, transform .65s var(--v9-ease), filter .5s ease;
}

.journey-scene.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.journey-map {
  position: absolute;
  left: 8%;
  top: 17%;
  width: 47%;
  height: 58%;
  overflow: hidden;
  border: 1px solid rgba(56,153,255,.18);
  border-radius: 26px;
  background:
    linear-gradient(25deg, transparent 42%, rgba(62,155,236,.11) 43% 45%, transparent 46%),
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(225,239,251,.9));
  box-shadow: 0 24px 60px rgba(31,92,139,.13), inset 0 1px 0 #fff;
}

.journey-map::before,
.journey-map::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(73,158,232,.18);
  border-radius: 44% 56% 48% 52%;
  transform: rotate(-13deg);
}

.journey-map::before { width: 74%; height: 44%; left: -9%; top: 21%; }
.journey-map::after { width: 58%; height: 66%; right: -12%; bottom: -8%; }

.journey-map__route {
  position: absolute;
  left: 13%;
  top: 58%;
  width: 66%;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #58aef0, #f24a55);
  transform: rotate(-11deg);
  box-shadow: 0 0 14px rgba(67,159,232,.3);
}

.journey-map__pulse {
  position: absolute;
  left: 67%;
  top: 39%;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(234,38,50,.22);
  border-radius: 50%;
  animation: v9MapPulse 2.2s ease-out infinite;
}

@keyframes v9MapPulse { 0% { transform: scale(.35); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

.journey-map__pin {
  position: absolute;
  z-index: 2;
  left: calc(67% + 18px);
  top: calc(39% + 18px);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(145deg, #f1424e, #d71b28);
  box-shadow: 0 12px 24px rgba(216,25,37,.24);
}

.journey-map__pin .icon { width: 18px; height: 18px; }
.journey-map > b { position: absolute; left: 10%; bottom: 18%; color: var(--v9-ink); font-size: 22px; }
.journey-map > small { position: absolute; left: 10%; bottom: 10%; color: #778397; font-size: 10px; }

.journey-object {
  position: absolute;
  right: 8%;
  bottom: 12%;
  width: 40%;
  min-height: 230px;
  padding: 24px 20px 18px;
  border: 1px solid rgba(255,255,255,.96);
  border-radius: 26px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 26px 66px rgba(17,27,42,.13), inset 0 1px 0 #fff;
  backdrop-filter: blur(18px);
}

.journey-building {
  position: relative;
  width: 126px;
  height: 132px;
  margin: 0 auto 14px;
  border: 3px solid #283342;
  border-radius: 10px 10px 4px 4px;
  background: #eef5fb;
  box-shadow: 0 18px 35px rgba(17,27,42,.12);
}

.journey-building i {
  position: absolute;
  width: 25px;
  height: 25px;
  border-radius: 4px;
  background: linear-gradient(145deg, #bfe2fb, #e7f4fe);
  box-shadow: inset 0 0 0 1px rgba(64,137,196,.12);
}
.journey-building i:nth-child(1) { left: 17px; top: 19px; }
.journey-building i:nth-child(2) { right: 17px; top: 19px; }
.journey-building i:nth-child(3) { left: 17px; top: 59px; }
.journey-building i:nth-child(4) { right: 17px; top: 59px; }
.journey-building b { position: absolute; left: 50%; bottom: -3px; width: 28px; height: 43px; border-radius: 5px 5px 0 0; background: #273242; transform: translateX(-50%); }

.journey-object__chips {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.journey-object__chips span {
  padding: 7px 9px;
  color: #586579;
  border: 1px solid rgba(75,91,113,.1);
  border-radius: 999px;
  background: #f5f8fb;
  font-size: 9px;
  font-weight: 800;
}

.journey-scan-line {
  position: absolute;
  z-index: 3;
  left: 3%;
  right: 3%;
  top: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(234,38,50,.75), transparent);
  box-shadow: 0 0 16px rgba(234,38,50,.38);
  animation: v9Scan 3.2s ease-in-out infinite;
}

@keyframes v9Scan { 0%, 12% { transform: translateY(0); opacity: 0; } 28%, 72% { opacity: 1; } 100% { transform: translateY(285px); opacity: 0; } }

.journey-scene--diagnostics img {
  position: absolute;
  left: 50%;
  bottom: -24%;
  height: 128%;
  width: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 26px 32px rgba(17,27,42,.22));
}

.journey-diagnostic-glow {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 420px;
  height: 330px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, rgba(62,160,244,.22), rgba(255,255,255,.08), rgba(244,106,55,.22), rgba(62,160,244,.22));
  filter: blur(24px);
  transform: translate(-50%, -50%);
  animation: v9DiagnosticGlow 8s linear infinite;
}

@keyframes v9DiagnosticGlow { to { transform: translate(-50%, -50%) rotate(1turn); } }

.journey-issue {
  position: absolute;
  z-index: 4;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: #3c4758;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 13px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 13px 30px rgba(17,27,42,.1);
  backdrop-filter: blur(15px);
  animation: v9FloatBadge 4s ease-in-out infinite;
}

.journey-issue .icon { width: 15px; height: 15px; color: var(--v9-red); }
.journey-issue b { font-size: 10px; }
.journey-issue--draft { left: 9%; top: 23%; }
.journey-issue--noise { right: 9%; top: 31%; animation-delay: -.9s; }
.journey-issue--sun { right: 13%; bottom: 18%; animation-delay: -1.8s; }

@keyframes v9FloatBadge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.journey-diagnostic-ring {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 48%;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(234,38,50,.26);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: v9DiagnosticRing 2.6s ease-out infinite;
}

.journey-diagnostic-ring i {
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(55,159,240,.25);
  border-radius: 50%;
}

.journey-diagnostic-ring span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--v9-red);
  box-shadow: 0 10px 28px rgba(216,25,37,.26);
  transform: translate(-50%, -50%);
}

@keyframes v9DiagnosticRing { 0% { box-shadow: 0 0 0 0 rgba(234,38,50,.22); } 70% { box-shadow: 0 0 0 28px rgba(234,38,50,0); } 100% { box-shadow: 0 0 0 0 rgba(234,38,50,0); } }

.journey-energy-lines i {
  position: absolute;
  z-index: 3;
  width: 150px;
  height: 2px;
  border-radius: 99px;
  opacity: .7;
  background: linear-gradient(90deg, transparent, rgba(62,159,241,.9), transparent);
  animation: v9EnergyLine 2.8s linear infinite;
}
.journey-energy-lines i:nth-child(1) { left: 9%; top: 42%; }
.journey-energy-lines i:nth-child(2) { left: 12%; top: 57%; animation-delay: -.7s; }
.journey-energy-lines i:nth-child(3) { right: 8%; top: 45%; background: linear-gradient(90deg, transparent, rgba(244,116,62,.9), transparent); animation-delay: -1.4s; }
.journey-energy-lines i:nth-child(4) { right: 13%; top: 61%; background: linear-gradient(90deg, transparent, rgba(244,116,62,.9), transparent); animation-delay: -2.1s; }
@keyframes v9EnergyLine { 0% { transform: translateX(-20px) scaleX(.5); opacity: 0; } 25%,75% { opacity: .75; } 100% { transform: translateX(28px) scaleX(1.15); opacity: 0; } }

.journey-score-orbit {
  position: absolute;
  left: 50%;
  top: 10%;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 22px 50px rgba(17,27,42,.14), inset 0 0 0 1px rgba(75,91,113,.09);
  transform: translateX(-50%);
}

.journey-score-orbit > span {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: conic-gradient(var(--v9-red) 0 86%, #e7ebf0 86% 100%);
  mask: radial-gradient(circle, transparent 59%, #000 60%);
  animation: v9ScoreOrbit 1.1s var(--v9-ease) both;
}

@keyframes v9ScoreOrbit { from { transform: rotate(-140deg); opacity: 0; } to { transform: rotate(0); opacity: 1; } }

.journey-score-orbit strong { position: relative; z-index: 2; margin-top: -6px; color: var(--v9-ink); font-size: 38px; }
.journey-score-orbit small { position: absolute; z-index: 2; bottom: 27px; color: #8791a0; font-size: 9px; }

.journey-options {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 20%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 9px;
  align-items: end;
}

.journey-options article {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(75,91,113,.11);
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 32px rgba(17,27,42,.08);
  transform: translateY(9px) scale(.96);
  animation: v9OptionIn .55s var(--v9-ease) both;
}

.journey-options article:nth-child(2) { animation-delay: .12s; }
.journey-options article:nth-child(3) { animation-delay: .24s; }
@keyframes v9OptionIn { to { transform: translateY(0) scale(1); } }

.journey-options article.is-recommended {
  min-height: 140px;
  border-color: rgba(234,38,50,.32);
  background: linear-gradient(155deg, #fff, #fff0f1);
  box-shadow: 0 22px 48px rgba(216,25,37,.13), inset 0 3px 0 var(--v9-red);
}

.journey-options small { color: #8791a0; font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.journey-options b { color: var(--v9-ink); font-size: 13px; }
.journey-options span { color: #18a765; font-size: 22px; font-weight: 900; }
.journey-options .is-recommended span { color: var(--v9-red); }

.journey-chart {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 7%;
  height: 36px;
  border-bottom: 1px solid rgba(75,91,113,.12);
}

.journey-chart i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 7px;
  border-radius: 99px 99px 0 0;
  background: linear-gradient(180deg, #f14b56, #ffa267);
  animation: v9Bars .8s var(--v9-ease) both;
}
.journey-chart i:nth-child(1) { left: 0%; height: 8px; }
.journey-chart i:nth-child(2) { left: 20%; height: 14px; animation-delay:.08s; }
.journey-chart i:nth-child(3) { left: 40%; height: 21px; animation-delay:.16s; }
.journey-chart i:nth-child(4) { left: 60%; height: 28px; animation-delay:.24s; }
.journey-chart i:nth-child(5) { left: 80%; height: 34px; animation-delay:.32s; }
@keyframes v9Bars { from { height: 0; opacity: 0; } }
.journey-chart span { position: absolute; right: 0; bottom: 7px; color: #8a94a3; font-size: 9px; }

.journey-detail {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  padding: 22px;
  border: 1px solid rgba(75,91,113,.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(234,38,50,.08), transparent 18rem),
    rgba(252,253,254,.9);
}

.journey-detail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(75,91,113,.1);
}

.journey-detail__top span {
  color: var(--v9-red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.journey-detail__top b {
  color: #8892a2;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.journey-detail article {
  align-self: center;
  animation: v9DetailIn .42s var(--v9-ease) both;
}

@keyframes v9DetailIn { from { opacity: 0; transform: translateY(12px); } }

.journey-detail h3 {
  margin: 0 0 11px;
  color: var(--v9-ink);
  font-size: clamp(25px, 2.25vw, 34px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.journey-detail p {
  margin: 0 0 18px;
  color: #6f7b8d;
  font-size: 13px;
  line-height: 1.55;
}

.journey-detail ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-detail li {
  position: relative;
  padding-left: 25px;
  color: #414c5d;
  font-size: 12px;
  font-weight: 750;
}

.journey-detail li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  color: #0d9554;
  border-radius: 50%;
  background: #e7f7ef;
  font-size: 9px;
  font-weight: 900;
}

.journey-detail__footer {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(75,91,113,.1);
}

.journey-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8ecf1;
}

.journey-progress i {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--v9-red), #ff8c62);
  transition: width .5s var(--v9-ease);
}

.journey-detail .button {
  width: 100%;
  min-height: 48px;
}

/* SERIES — calmer, more legible catalog ---------------------------------- */
.series-section {
  background:
    radial-gradient(circle at 10% 88%, rgba(59,151,255,.055), transparent 32rem),
    radial-gradient(circle at 90% 8%, rgba(234,38,50,.065), transparent 30rem),
    #f5f7fa;
}

.series-heading {
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.94);
  background: rgba(255,255,255,.82);
  box-shadow: var(--v9-shadow-soft), inset 0 1px 0 #fff;
}

.series-heading h2 {
  max-width: 930px;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.series-heading__stat {
  background: linear-gradient(145deg, #f04450, #d71926);
  box-shadow: 0 18px 40px rgba(216,25,37,.2);
}

.series-dashboard {
  gap: 12px;
  border-color: rgba(255,255,255,.96);
  background: rgba(255,255,255,.82);
  box-shadow: var(--v9-shadow), inset 0 1px 0 #fff;
}

.series-dashboard__feature {
  border-radius: 23px;
  background:
    radial-gradient(circle at 76% 24%, rgba(234,38,50,.22), transparent 18rem),
    radial-gradient(circle at 18% 44%, rgba(47,153,236,.15), transparent 20rem),
    linear-gradient(160deg, #171d28, #222e3e 68%, #151b25);
  box-shadow: 0 24px 60px rgba(15,23,35,.22), inset 0 1px 0 rgba(255,255,255,.08);
}

.series-profile-hero {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(239,155,75,.14), transparent 48%, rgba(63,158,239,.14)),
    rgba(7,12,18,.22);
}

.series-profile-render {
  height: 122%;
  bottom: -16%;
  filter: drop-shadow(0 28px 32px rgba(0,0,0,.35)) saturate(.96) contrast(1.04);
  transition: transform .55s var(--v9-ease), filter .4s ease;
}

.series-dashboard__feature:hover .series-profile-render {
  transform: translateX(-50%) translateY(-5px) scale(1.035);
  filter: drop-shadow(0 34px 38px rgba(0,0,0,.4)) saturate(1.02) contrast(1.05);
}

.series-feature__copy h3 {
  letter-spacing: -.045em;
}

.series-feature__metrics span,
.series-feature-score {
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.series-dashboard__catalog {
  border-radius: 23px;
}

.series-controls {
  gap: 8px;
  border: 1px solid rgba(75,91,113,.09);
  border-radius: 18px;
  background: rgba(250,251,253,.94);
  box-shadow: 0 12px 30px rgba(17,27,42,.055), inset 0 1px 0 #fff;
}

.series-filters button,
.series-view-switch button,
.series-compare-inline {
  min-height: 38px;
  border-radius: 11px;
}

.series-filters button.is-active,
.series-view-switch button.is-active {
  color: #fff;
  background: linear-gradient(145deg, #f23b47, #d71926);
  box-shadow: 0 9px 20px rgba(216,25,37,.19);
}

.series-search {
  min-width: 240px;
  border-radius: 13px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(75,91,113,.11), 0 8px 20px rgba(17,27,42,.035);
}

.series-rail:not(.is-compact) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.series-card {
  overflow: hidden;
  border-color: rgba(75,91,113,.105);
  border-radius: 18px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 28px rgba(17,27,42,.055), inset 0 1px 0 #fff;
  transition: border-color .25s ease, box-shadow .3s ease, transform .3s var(--v9-ease), background .3s ease;
}

.series-card:hover {
  z-index: 2;
  border-color: rgba(234,38,50,.22);
  box-shadow: 0 18px 42px rgba(17,27,42,.095), 0 8px 24px rgba(234,38,50,.055);
  transform: translateY(-3px);
}

.series-card.is-selected {
  border-color: rgba(234,38,50,.55);
  background: linear-gradient(145deg, #fff, #fff7f8);
  box-shadow: 0 18px 42px rgba(216,25,37,.105), inset 3px 0 0 var(--v9-red);
}

.series-card__visual {
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(145deg, #f3f7fa, #e8eef4);
}

.series-card__copy strong {
  color: var(--v9-ink);
  letter-spacing: -.025em;
}

.series-card__copy em {
  color: #788395;
  line-height: 1.35;
}

.series-card__facts span {
  background: #f6f8fb;
  border-color: rgba(75,91,113,.08);
}

.series-card__score b {
  color: #15995a;
}

.series-card.is-selected .series-card__score b {
  color: var(--v9-red);
}

.series-dashboard__footer {
  border-radius: 16px;
  background: rgba(250,251,253,.95);
}

/* ADVISOR — workspace-safe, clearer, easier to scan ---------------------- */
.advisor-section {
  background:
    radial-gradient(circle at 90% 12%, rgba(234,38,50,.06), transparent 31rem),
    radial-gradient(circle at 10% 88%, rgba(58,153,244,.06), transparent 32rem),
    #f5f7fa;
}

.advisor-heading {
  align-items: center;
  margin-bottom: 10px;
}

.advisor-heading h2 {
  letter-spacing: -.052em;
}

.advisor-mode-bar {
  border: 1px solid rgba(255,255,255,.94);
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 34px rgba(17,27,42,.065), inset 0 1px 0 #fff;
}

.advisor-mode-switch {
  border: 1px solid rgba(75,91,113,.08);
  background: #e9edf2;
}

.advisor-shell {
  border: 1px solid rgba(255,255,255,.96);
  background: rgba(255,255,255,.88);
  box-shadow: 0 34px 100px rgba(17,27,42,.13), inset 0 1px 0 #fff;
}

.advisor-progress {
  background: linear-gradient(175deg, #1a212d, #202c3b 68%, #131923);
  box-shadow: 14px 0 38px rgba(17,27,42,.1), inset 0 1px 0 rgba(255,255,255,.07);
}

.advisor-progress__meta {
  color: rgba(255,255,255,.62);
}

.advisor-progress__meta strong {
  color: #fff;
}

.advisor-step-rail button {
  color: rgba(255,255,255,.42);
  border-color: transparent;
  background: transparent;
}

.advisor-step-rail button:hover:not(:disabled) {
  color: #fff;
  background: rgba(255,255,255,.055);
}

.advisor-step-rail button.is-active {
  color: #fff;
  border-color: rgba(255,91,103,.24);
  background: linear-gradient(135deg, rgba(234,38,50,.28), rgba(255,255,255,.055));
  box-shadow: inset 3px 0 0 var(--v9-red), 0 10px 24px rgba(0,0,0,.14);
}

.advisor-step-rail button.is-complete {
  color: rgba(255,255,255,.72);
}

.advisor-context-ribbon {
  gap: 8px;
  padding: 8px 11px;
  background: rgba(247,249,252,.92);
}

.advisor-context-ribbon button {
  border-radius: 13px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 7px 18px rgba(17,27,42,.035), inset 0 1px 0 #fff;
}

.advisor-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 12px;
  padding: 12px;
  background: #f7f9fc;
}

.advisor-main {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(75,91,113,.1);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 15px 42px rgba(17,27,42,.065), inset 0 1px 0 #fff;
}

.engineer-message {
  margin: 12px 12px 0;
  border-color: rgba(234,38,50,.1);
  background:
    radial-gradient(circle at 88% 50%, rgba(234,38,50,.075), transparent 26%),
    linear-gradient(135deg, #f8fafc, #fff);
}

.energy-form {
  padding: 0 18px 10px;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

.question-step {
  min-height: 0;
  padding: 20px 0 16px;
}

.question-head {
  margin-bottom: 17px;
}

.question-head > span {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 15px;
}

.question-head h3 {
  font-size: clamp(24px, 2.15vw, 32px);
  line-height: 1.04;
  text-wrap: balance;
}

.question-head p {
  margin-top: 5px;
  max-width: 720px;
  font-size: 12px;
  line-height: 1.45;
}

.choice-grid,
.solution-type-grid,
.priority-grid,
.measurement-grid,
.field-row {
  gap: 10px;
}

.choice-card > span,
.solution-type-card > span,
.priority-grid label > span,
.number-field,
.select-field,
.money-field,
.tool-button {
  border-color: rgba(75,91,113,.12);
  background: rgba(249,250,252,.92);
  box-shadow: inset 0 1px 0 #fff;
  transition: border-color .22s ease, background .22s ease, box-shadow .25s ease, transform .25s var(--v9-ease);
}

.choice-card > span:hover,
.solution-type-card > span:hover,
.priority-grid label > span:hover,
.tool-button:hover {
  border-color: rgba(234,38,50,.22);
  background: #fff;
  box-shadow: 0 12px 28px rgba(17,27,42,.065), inset 0 1px 0 #fff;
  transform: translateY(-2px);
}

.choice-card input:checked + span,
.solution-type-card input:checked + span,
.priority-grid input:checked + span {
  border-color: rgba(234,38,50,.42);
  background: linear-gradient(145deg, #fff, #fff5f6);
  box-shadow: 0 14px 30px rgba(216,25,37,.095), inset 0 0 0 1px rgba(234,38,50,.08);
}

input,
select,
textarea {
  color: var(--v9-ink);
}

.advisor-controls {
  min-height: 68px;
  margin: 0;
  padding: 10px 13px;
  border-top: 1px solid rgba(75,91,113,.09);
  background: rgba(255,255,255,.95);
  box-shadow: 0 -12px 28px rgba(17,27,42,.045);
  backdrop-filter: blur(16px);
}

.advisor-controls .button {
  min-height: 48px;
  border-radius: 14px;
}

.advisor-live {
  min-height: 0;
  height: 100%;
  padding: 16px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 12%, rgba(64,155,236,.16), transparent 18rem),
    radial-gradient(circle at 20% 90%, rgba(234,38,50,.13), transparent 20rem),
    linear-gradient(160deg, #192230, #26354a 62%, #151d29);
  box-shadow: 0 18px 48px rgba(15,23,35,.2), inset 0 1px 0 rgba(255,255,255,.08);
  scrollbar-width: thin;
}

.advisor-live::before {
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.advisor-live__head {
  display: grid;
  gap: 5px;
}

.advisor-live__head span {
  color: #ff7a83;
  font-size: 9px;
  letter-spacing: .1em;
}

.advisor-live__head strong {
  color: #fff;
  font-size: clamp(20px, 1.65vw, 25px);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.advisor-live__explain {
  margin: 7px 0 11px;
  color: rgba(255,255,255,.56);
  font-size: 10px;
  line-height: 1.45;
}

.live-score {
  min-height: 86px;
  grid-template-columns: 74px minmax(0,1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 17px;
  background: rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.score-orbit {
  width: 68px;
  height: 68px;
  background: rgba(255,255,255,.92);
}

.advisor-live .score-orbit strong {
  color: var(--v9-ink);
  font-size: 22px;
}

.advisor-live .live-score > div:last-child b {
  color: #ff7a83;
  font-size: 9px;
  letter-spacing: .07em;
}

.advisor-live .live-score > div:last-child p {
  margin-top: 4px;
  color: rgba(255,255,255,.54);
  font-size: 9px;
  line-height: 1.35;
}

.live-window {
  position: relative;
  min-height: 218px;
  height: 218px;
  margin: 11px 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: linear-gradient(90deg, #b9d8ef 0 49.8%, #ffe6b8 50.2% 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}

.live-window__legend {
  position: absolute;
  z-index: 8;
  left: 10px;
  right: 10px;
  top: 9px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.live-window__legend span {
  padding: 5px 7px;
  color: rgba(31,43,58,.62);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(255,255,255,.45);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.energy-field-canvas--live {
  opacity: .24;
}

.live-window__render {
  left: 50%;
  bottom: -28%;
  height: 138%;
  filter: drop-shadow(0 20px 24px rgba(17,27,42,.22));
}

.live-window__frame {
  display: none;
}

.live-window__outside,
.live-window__inside {
  z-index: 2;
  opacity: .9;
}

.live-window__flow {
  z-index: 5;
}

.live-window__flow i {
  height: 3px;
  opacity: .72;
  background: linear-gradient(90deg, rgba(239,99,55,.78), rgba(239,99,55,0));
}

.live-facts {
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
}

.live-facts > div {
  min-height: 55px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.075);
}

.advisor-live .live-facts small {
  color: rgba(255,255,255,.42);
  font-size: 7px;
}

.advisor-live .live-facts b {
  color: #fff;
  font-size: 10px;
}

.live-tip {
  margin-top: 9px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(255,255,255,.075);
}

.advisor-live .live-tip p {
  color: rgba(255,255,255,.68);
  font-size: 9px;
  line-height: 1.45;
}

.advisor-live .text-button {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  margin-top: 9px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  background: rgba(255,255,255,.07);
}

/* Passport refinement ----------------------------------------------------- */
#passport-dialog .modal-panel {
  max-width: 920px;
  border-radius: 34px;
  box-shadow: 0 40px 120px rgba(8,14,23,.28);
}

#passport-dialog .modal-head {
  padding: 28px 32px 22px;
}

.passport-card {
  overflow: hidden;
  border: 1px solid rgba(75,91,113,.12);
  border-radius: 26px;
  box-shadow: 0 24px 62px rgba(17,27,42,.1);
}

.passport-card__brand {
  min-height: 88px;
  padding: 20px 26px;
  background:
    radial-gradient(circle at 88% 16%, rgba(234,38,50,.22), transparent 18rem),
    linear-gradient(145deg, #111722, #1f2a39);
}

.passport-card__main {
  grid-template-columns: minmax(230px, .72fr) minmax(0,1.28fr);
  gap: 34px;
  padding: 30px;
  align-items: center;
}

.passport-qr {
  max-width: 280px;
  margin: auto;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(75,91,113,.13), 0 14px 34px rgba(17,27,42,.07);
}

.passport-card__main h3 {
  color: var(--v9-ink);
  font-size: clamp(30px, 3vw, 44px);
  letter-spacing: -.045em;
}

.passport-card__foot {
  background: #fff8e9;
  border-top-color: #f1d79c;
}

/* Workspace behaviour: the advisor uses internal scrolling and never acts
   like a presentation slide while the form is open. */
html[data-screen-mode="on"][data-screen-layout="immersive"] #advisor[data-workspace-lock] {
  scroll-snap-stop: normal;
}

html[data-screen-mode="on"][data-screen-layout="immersive"] #advisor[data-workspace-lock] .energy-form,
html[data-screen-mode="on"][data-screen-layout="immersive"] #advisor[data-workspace-lock] .advisor-live {
  overscroll-behavior-y: contain;
}

/* Responsive -------------------------------------------------------------- */
@media (min-width: 1024px) and (min-height: 680px) {
  .how-section > .container {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
  }

  .how-v9-heading {
    margin: 0;
    padding: 15px 20px;
  }

  .how-v9-heading h2 {
    font-size: clamp(31px, 2.8vw, 43px);
  }

  .journey-studio {
    height: 100%;
    min-height: 0;
  }

  .journey-stage {
    min-height: 0;
    height: 100%;
  }

  .series-dashboard {
    grid-template-columns: minmax(300px, .29fr) minmax(0, .71fr);
  }

  .advisor-section > .container {
    grid-template-rows: auto auto auto minmax(0,1fr);
  }

  .advisor-heading {
    min-height: 58px;
  }

  .advisor-mode-bar {
    min-height: 58px;
  }

  .advisor-shell {
    grid-template-columns: 190px minmax(0,1fr);
    grid-template-rows: auto minmax(0,1fr);
  }

  .advisor-progress {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: auto;
    min-width: 0;
    height: 100%;
    padding: 14px 12px;
    border-radius: 25px 0 0 25px;
  }

  .advisor-context-ribbon {
    grid-column: 2;
    grid-row: 1;
  }

  .advisor-layout {
    grid-column: 2;
    grid-row: 2;
  }

  .advisor-progress__meta {
    display: grid;
    grid-template-columns: 50px minmax(0,1fr);
    gap: 8px;
    align-items: center;
  }

  .advisor-progress__meta > span {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 15px;
    background: rgba(255,255,255,.06);
  }

  .advisor-progress__meta strong {
    font-size: 12px;
  }

  .advisor-progress__meta em {
    grid-column: 2;
    font-size: 8px;
  }

  .progress-track {
    margin: 13px 4px 10px;
    background: rgba(255,255,255,.09);
  }

  .advisor-step-rail {
    display: grid;
    gap: 4px;
    overflow-y: auto;
    padding-right: 2px;
  }

  .advisor-step-rail button {
    min-height: 40px;
    padding: 6px 8px;
    border-radius: 12px;
  }

  .advisor-step-rail button span {
    width: 27px;
    height: 27px;
    border-radius: 9px;
    font-size: 8px;
  }

  .advisor-step-rail button b {
    font-size: 9px;
  }

  .advisor-context-ribbon {
    min-height: 58px;
  }

  .advisor-layout {
    min-height: 0;
    height: 100%;
  }

  .advisor-main,
  .advisor-live {
    min-height: 0;
    height: 100%;
  }
}

@media (max-width: 1280px) {
  .hero__layout {
    grid-template-columns: minmax(400px, .9fr) minmax(520px, 1.1fr);
    gap: 24px;
  }

  .journey-studio {
    grid-template-columns: 180px minmax(0, 1.15fr) minmax(270px, .85fr);
  }

  .journey-tabs button {
    grid-template-columns: 34px minmax(0,1fr);
    padding: 9px;
  }

  .journey-tabs button > span {
    width: 34px;
    height: 34px;
  }

  .advisor-layout {
    grid-template-columns: minmax(0,1fr) minmax(280px, 315px);
  }
}

@media (max-width: 1090px) {
  .hero__layout {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: clamp(42px, 5vw, 57px);
  }

  .hero-lab {
    padding: 14px;
  }

  .scene-result {
    left: 16px;
    right: 16px;
    bottom: 91px;
  }

  .hero-dashboard-card--score,
  .hero-dashboard-card--saving {
    bottom: 15px;
  }

  .hero-dashboard-card--score { left: 16px; }
  .hero-dashboard-card--saving { right: 16px; }

  .journey-studio {
    grid-template-columns: 150px minmax(0,1fr) 290px;
  }

  .journey-tabs button div {
    display: none;
  }

  .journey-tabs button {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 1023px) {
  .hero__layout {
    grid-template-columns: 1fr;
  }

  .hero-lab {
    max-width: 820px;
    margin-inline: auto;
  }

  .how-v9-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .journey-studio {
    grid-template-columns: 1fr;
  }

  .journey-tabs {
    grid-template-columns: repeat(3, minmax(0,1fr));
    padding: 8px;
  }

  .journey-tabs button {
    min-height: 68px;
    grid-template-columns: 34px minmax(0,1fr);
    justify-items: initial;
  }

  .journey-tabs button div {
    display: block;
  }

  .journey-stage {
    min-height: 430px;
  }

  .journey-detail {
    min-height: 330px;
  }

  .series-rail:not(.is-compact) {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .advisor-layout {
    grid-template-columns: 1fr;
  }

  .advisor-live {
    min-height: 0;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .hero-lab__status,
  .hero-lab {
    display: none;
  }

  .how-v9-heading {
    padding: 18px;
    border-radius: 22px;
  }

  .how-v9-heading h2 {
    font-size: 32px;
  }

  .how-v9-heading__proof {
    grid-template-columns: 1fr;
  }

  .how-v9-heading__proof span {
    min-height: 52px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .journey-studio {
    padding: 8px;
    border-radius: 23px;
  }

  .journey-tabs {
    gap: 5px;
    overflow-x: auto;
    border-radius: 17px;
  }

  .journey-tabs button {
    min-width: 102px;
    min-height: 60px;
    grid-template-columns: 30px minmax(0,1fr);
    gap: 6px;
    padding: 7px;
  }

  .journey-tabs button > span {
    width: 30px;
    height: 30px;
  }

  .journey-tabs button small {
    display: none;
  }

  .journey-stage {
    min-height: 350px;
    border-radius: 18px;
  }

  .journey-map {
    left: 5%;
    top: 10%;
    width: 58%;
    height: 52%;
  }

  .journey-object {
    right: 4%;
    bottom: 7%;
    width: 48%;
    min-height: 190px;
    padding: 16px 10px;
  }

  .journey-building {
    width: 92px;
    height: 102px;
  }

  .journey-building i { width: 18px; height: 18px; }
  .journey-building i:nth-child(1) { left: 13px; top: 14px; }
  .journey-building i:nth-child(2) { right: 13px; top: 14px; }
  .journey-building i:nth-child(3) { left: 13px; top: 47px; }
  .journey-building i:nth-child(4) { right: 13px; top: 47px; }

  .journey-scene--diagnostics img {
    height: 118%;
  }

  .journey-issue--draft { left: 4%; top: 15%; }
  .journey-issue--noise { right: 4%; top: 25%; }
  .journey-issue--sun { right: 5%; bottom: 12%; }

  .journey-options {
    left: 3%;
    right: 3%;
    gap: 5px;
  }

  .journey-options article {
    min-height: 98px;
    padding: 9px;
  }

  .journey-options article.is-recommended {
    min-height: 122px;
  }

  .journey-options b { font-size: 10px; }
  .journey-options span { font-size: 18px; }

  .journey-detail {
    min-height: 320px;
    padding: 18px;
    border-radius: 18px;
  }

  .journey-detail h3 {
    font-size: 27px;
  }

  .series-rail:not(.is-compact) {
    grid-template-columns: 1fr;
  }

  .series-controls__primary,
  .series-controls__secondary {
    gap: 7px;
  }

  .series-search {
    min-width: 0;
    width: 100%;
  }

  .advisor-heading h2 {
    font-size: 36px;
  }

  .advisor-layout {
    padding: 8px;
  }

  .advisor-main {
    border-radius: 18px;
  }

  .energy-form {
    padding-inline: 13px;
  }

  .question-head > span {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .question-head h3 {
    font-size: 26px;
  }

  .advisor-live {
    padding: 13px;
    border-radius: 18px;
  }

  .live-window {
    height: 205px;
  }

  .passport-card__main {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
  }

  .passport-qr {
    width: min(100%, 250px);
  }
}

@media (max-width: 430px) {
  .how-v9-heading h2 {
    font-size: 29px;
  }

  .journey-tabs button {
    min-width: 92px;
  }

  .journey-stage {
    min-height: 320px;
  }

  .journey-map > b {
    font-size: 17px;
  }

  .journey-issue {
    min-height: 34px;
    padding: 6px 8px;
  }

  .journey-issue b {
    font-size: 8px;
  }

  .journey-score-orbit {
    width: 108px;
    height: 108px;
  }

  .journey-score-orbit strong {
    font-size: 32px;
  }

  .journey-options {
    bottom: 18%;
  }

  .journey-detail h3 {
    font-size: 24px;
  }

  .advisor-context-ribbon {
    gap: 6px;
  }

  .advisor-context-ribbon button {
    min-width: 0;
  }

  .advisor-controls__center {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-lab__status > em i,
  .journey-tabs button.is-active > i::after,
  .journey-map__pulse,
  .journey-scan-line,
  .journey-diagnostic-glow,
  .journey-issue,
  .journey-diagnostic-ring,
  .journey-energy-lines i,
  .journey-score-orbit > span,
  .journey-options article,
  .journey-chart i {
    animation: none !important;
  }
}

/* v0.9.0 final mobile refinement: the process tabs remain fully legible. */
@media (max-width: 620px) {
  .journey-tabs button {
    min-width: 0;
    padding: 10px 7px;
    gap: 6px;
  }
  .journey-tabs button > div { min-width: 0; }
  .journey-tabs button b {
    font-size: 11px;
    line-height: 1.12;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .journey-tabs button small { display: none; }
}
@media (max-width: 620px) {
  .journey-tabs button {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
  }
  .journey-tabs button > span {
    width: 28px;
    height: 24px;
    font-size: 11px;
  }
  .journey-tabs button b {
    font-size: 10px;
    white-space: nowrap;
    overflow-wrap: normal;
  }
}
@media (max-width: 760px) {
  .how-v9-heading__proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .how-v9-heading__proof span {
    min-height: 68px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    padding: 8px 9px;
  }
  .how-v9-heading__proof b { font-size: 17px; }
  .how-v9-heading__proof small {
    margin-top: 1px;
    font-size: 8px;
    line-height: 1.18;
  }
}

/* RC2: admin-managed product media inside the restored full series catalogue. */
.series-card__visual img {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  object-fit: contain;
  object-position: center;
  z-index: 4;
  filter: drop-shadow(0 8px 10px rgba(14, 22, 34, .14));
  pointer-events: none;
}
.series-card__visual:has(img) > i,
.series-card__visual:has(img) > b {
  opacity: .18;
}
.series-profile-render.is-updating {
  opacity: .55;
  transform: translateY(4px) scale(.98);
}
.lead-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.lead-form select {
  width: 100%;
  min-height: 52px;
  padding: 0 42px 0 16px;
  border: 1px solid var(--line, #dde2e8);
  border-radius: 14px;
  background: #fff;
  color: var(--ink, #121821);
  font: inherit;
}
.consent-check--optional { opacity: .84; }
@media (max-width: 620px) {
  .lead-form-grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   AKFA Energy V1 RC3 — production visual refinement
   - removes the profile cutaway from the public before/after animation;
   - replaces it with two recognisable complete-window states;
   - folds the removed "How it works" screen into a compact three-step cue;
   - guarantees accessible contrast on the final dark result screen.
   ======================================================================== */

.hero-process-mini {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  max-width: 690px;
  margin: 18px 0 4px;
  padding: 8px;
  border: 1px solid rgba(91, 106, 126, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 12px 36px rgba(17, 27, 42, .055), inset 0 1px 0 rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
}

.hero-process-mini > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 6px 9px;
  border-radius: 12px;
  color: #4e5b6d;
  background: rgba(248, 250, 252, .82);
}

.hero-process-mini > span b {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, #ef3d48, #d91f2b);
  box-shadow: 0 8px 18px rgba(218, 29, 42, .2);
  font-size: 9px;
  letter-spacing: .04em;
}

.hero-process-mini > span em {
  min-width: 0;
  overflow: hidden;
  color: #3e4a5c;
  font-size: 10px;
  font-style: normal;
  font-weight: 780;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-process-mini > i {
  display: grid;
  place-items: center;
  color: #aab3bf;
}

.hero-process-mini > i .icon {
  width: 14px;
  height: 14px;
}

/* The old cutaway layer is intentionally retired from the public demo. */
.hero-product-layer,
.hero-split-indicator,
.thermal-lens {
  display: none !important;
}

.climate-scene {
  --hero-ratio: .58;
  --hero-inverse: .42;
  --current-opacity: .62;
  --akfa-opacity: .72;
  --current-scale: .98;
  --akfa-scale: .98;
  min-height: 382px;
  background:
    radial-gradient(circle at 19% 19%, rgba(255, 255, 255, .62), transparent 20rem),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, .48), transparent 20rem),
    linear-gradient(90deg, #cfe5f7 0 49.7%, #ffe7bc 50.3% 100%);
}

.climate-scene::before {
  opacity: .62;
  background:
    linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.76), transparent 16rem),
    radial-gradient(circle at 82% 25%, rgba(255,255,255,.5), transparent 19rem);
  background-size: 38px 38px, 38px 38px, auto, auto;
}

.climate-scene::after {
  z-index: 2;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.72));
}

.window-comparison {
  position: absolute;
  z-index: 9;
  inset: 44px 54px 94px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  pointer-events: none;
}

.window-comparison__card {
  position: relative;
  min-width: 0;
  min-height: 234px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  padding: 13px 13px 11px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 24px;
  background: rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 18px 42px rgba(37,63,89,.08);
  backdrop-filter: blur(6px);
  transition: opacity .28s ease, transform .34s var(--v9-ease), border-color .28s ease, box-shadow .28s ease;
}

.window-comparison__card--current {
  opacity: var(--current-opacity);
  transform: scale(var(--current-scale));
}

.window-comparison__card--akfa {
  opacity: var(--akfa-opacity);
  transform: scale(var(--akfa-scale));
  border-color: rgba(255,255,255,.94);
  background: rgba(255,255,255,.38);
  box-shadow: inset 0 1px 0 #fff, 0 22px 54px rgba(17,27,42,.1), 0 0 0 1px rgba(25,157,94,.08);
}

.window-comparison__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  color: #596678;
  font-size: 9px;
  font-weight: 830;
  letter-spacing: .015em;
  white-space: nowrap;
}

.window-comparison__badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #68aee0;
  box-shadow: 0 0 0 5px rgba(104,174,224,.12);
}

.window-comparison__card--akfa .window-comparison__badge {
  color: #1e713f;
}

.window-comparison__card--akfa .window-comparison__badge i {
  background: #1ca363;
  box-shadow: 0 0 0 5px rgba(28,163,99,.12);
}

.window-comparison__card > small {
  min-height: 24px;
  max-width: 220px;
  color: #748093;
  font-size: 8.5px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
}

.window-comparison__bridge {
  position: relative;
  align-self: stretch;
  display: grid;
  place-items: center;
}

.window-comparison__bridge > i {
  position: absolute;
  top: 50%;
  left: -26px;
  right: -26px;
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(85,155,211,.25), rgba(234,38,50,.46), rgba(40,172,106,.28));
}

.window-comparison__bridge > i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -55%;
  width: 48%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  animation: rc3BridgeSweep 2.8s ease-in-out infinite;
}

.window-comparison__bridge > span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 8px solid rgba(255,255,255,.86);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #ef3b48, #d91f2b);
  box-shadow: 0 14px 32px rgba(221,28,41,.24), 0 0 0 1px rgba(255,255,255,.85);
}

.window-comparison__bridge > span .icon {
  width: 17px;
  height: 17px;
}

.window-comparison__bridge > b {
  position: absolute;
  top: calc(50% + 33px);
  color: #7a8493;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@keyframes rc3BridgeSweep {
  0%, 12% { transform: translateX(0); opacity: 0; }
  35%, 76% { opacity: 1; }
  100% { transform: translateX(330%); opacity: 0; }
}

.window-model {
  position: relative;
  width: 142px;
  height: 172px;
  filter: drop-shadow(0 19px 25px rgba(17,27,42,.16));
}

.window-model__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(145deg, #f8fafc, #c8d1db);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), 0 0 0 1px rgba(91,107,127,.22);
}

.window-model__frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 4px solid #a9b5c1;
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255,255,255,.68), transparent 38%),
    linear-gradient(135deg, rgba(180,221,248,.86), rgba(248,235,212,.68));
  box-shadow: inset 0 0 26px rgba(255,255,255,.48);
}

.window-model__frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 5px;
  background: linear-gradient(120deg, transparent 10%, rgba(255,255,255,.55) 30%, transparent 47%);
  opacity: .58;
  transform: translateX(-42%);
}

.window-model__frame > i {
  position: absolute;
  z-index: 3;
  background: #e5ebf0;
  box-shadow: 0 0 0 1px #9eaab6;
}

.window-model__frame > i:nth-child(1) {
  top: 10px;
  bottom: 10px;
  left: calc(50% - 2.5px);
  width: 5px;
}

.window-model__frame > i:nth-child(2) {
  left: 10px;
  right: 10px;
  top: calc(57% - 2.5px);
  height: 5px;
}

.window-model__frame > i:nth-child(3) {
  display: none;
}

.window-model__frame > b {
  position: absolute;
  z-index: 5;
  top: 49%;
  right: 6px;
  width: 8px;
  height: 36px;
  border: 1px solid #9aa6b1;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 5px 10px rgba(20,29,40,.14);
}

.window-model__frame > em {
  position: absolute;
  z-index: 4;
  inset: 8px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 10px;
  pointer-events: none;
}

.window-model--current {
  width: 132px;
  height: 164px;
}

.window-model--current .window-model__frame {
  filter: saturate(.78);
  background: linear-gradient(145deg, #e4e9ee, #aeb8c2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.66), 0 0 0 1px rgba(70,86,105,.25);
}

.window-model--current .window-model__frame::before {
  inset: 8px;
  border-width: 3px;
  border-color: #8d9ba8;
  background: linear-gradient(135deg, rgba(184,215,235,.86), rgba(226,235,242,.72));
}

.window-model--current .window-model__frame > i:nth-child(1) {
  top: 8px;
  bottom: 8px;
}

.window-model--current .window-model__frame > i:nth-child(2) {
  left: 8px;
  right: 8px;
}

.window-model__condensation {
  position: absolute;
  z-index: 7;
  inset: 16px 15px 18px;
  border-radius: 8px;
  opacity: calc(.18 + var(--hero-inverse));
  background:
    radial-gradient(circle at 28% 77%, rgba(255,255,255,.82) 0 3px, transparent 4px),
    radial-gradient(circle at 72% 62%, rgba(255,255,255,.72) 0 2px, transparent 3px),
    linear-gradient(180deg, transparent 36%, rgba(237,247,252,.6));
  filter: blur(.4px);
  transition: opacity .3s ease;
}

.window-model__draft,
.window-model__comfort {
  position: absolute;
  z-index: 8;
  height: 5px;
  border-radius: 99px;
  transform-origin: left center;
}

.window-model__draft {
  left: calc(100% - 4px);
  width: 70px;
  opacity: calc(.2 + var(--hero-inverse));
  background: linear-gradient(90deg, rgba(238,101,55,.92), rgba(238,101,55,0));
  box-shadow: 0 0 14px rgba(238,101,55,.16);
  animation: rc3Leak 2.2s ease-in-out infinite;
}

.window-model__draft--1 { top: 36%; }
.window-model__draft--2 { top: 55%; animation-delay: -.7s; width: 60px; }
.window-model__draft--3 { top: 72%; animation-delay: -1.35s; width: 48px; }

@keyframes rc3Leak {
  0%, 100% { transform: scaleX(.76); opacity: .32; }
  50% { transform: scaleX(1.08); opacity: .85; }
}

.window-model--akfa {
  width: 148px;
  height: 178px;
}

.window-model--akfa .window-model__frame {
  background: linear-gradient(145deg, #fff, #dbe3e9 68%, #bec9d2);
  box-shadow:
    inset 0 0 0 1px #fff,
    inset 0 0 0 8px rgba(250,252,253,.8),
    0 0 0 1px rgba(74,91,112,.18),
    0 0 0 5px rgba(28,163,99,.055);
}

.window-model--akfa .window-model__frame::before {
  inset: 13px;
  border-width: 5px;
  border-color: #9eabb7;
  background:
    linear-gradient(150deg, rgba(255,255,255,.74), transparent 34%),
    linear-gradient(135deg, rgba(186,225,248,.92), rgba(255,239,207,.66));
  box-shadow:
    inset 0 0 0 2px rgba(190,213,229,.55),
    inset 0 0 0 5px rgba(255,255,255,.28),
    inset 0 0 28px rgba(255,255,255,.5);
}

.window-model--akfa .window-model__frame > i:nth-child(1) {
  top: 13px;
  bottom: 13px;
  width: 6px;
}

.window-model--akfa .window-model__frame > i:nth-child(2) {
  left: 13px;
  right: 13px;
  height: 6px;
}

.window-model--akfa .window-model__frame > i:nth-child(3) {
  display: block;
  top: 18px;
  bottom: 18px;
  left: calc(50% + 7px);
  width: 1px;
  opacity: .45;
  background: rgba(96,164,208,.58);
  box-shadow: 7px 0 0 rgba(255,255,255,.52);
}

.window-model__seal {
  position: absolute;
  z-index: 8;
  inset: 5px;
  border: 2px solid rgba(31,169,103,.26);
  border-radius: 20px;
  opacity: var(--akfa-opacity);
  box-shadow: 0 0 18px rgba(31,169,103,.15), inset 0 0 10px rgba(31,169,103,.07);
  animation: rc3Seal 3.1s ease-in-out infinite;
}

@keyframes rc3Seal {
  0%, 100% { opacity: .34; }
  50% { opacity: .78; }
}

.window-model__comfort {
  right: calc(100% - 4px);
  width: 56px;
  opacity: calc(.18 + var(--hero-ratio));
  transform-origin: right center;
  background: linear-gradient(270deg, rgba(62,167,235,.74), rgba(62,167,235,0));
  animation: rc3Comfort 2.8s ease-in-out infinite;
}

.window-model__comfort--1 { top: 39%; }
.window-model__comfort--2 { top: 57%; animation-delay: -.9s; width: 48px; }
.window-model__comfort--3 { top: 72%; animation-delay: -1.8s; width: 38px; }

@keyframes rc3Comfort {
  0%, 100% { transform: scaleX(.72); opacity: .24; }
  50% { transform: scaleX(1); opacity: .64; }
}

.scene-flow {
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
}

.scene-flow i {
  position: absolute;
  height: 4px;
  border-radius: 99px;
}

.scene-flow--current i {
  left: 31%;
  width: 13%;
  opacity: calc(.18 + var(--hero-inverse));
  background: linear-gradient(90deg, rgba(238,100,53,.9), rgba(238,100,53,0));
  animation: rc3Leak 2.4s ease-in-out infinite;
}

.scene-flow--akfa i {
  right: 31%;
  width: 10%;
  opacity: calc(.12 + var(--hero-ratio));
  background: linear-gradient(270deg, rgba(54,157,225,.76), rgba(54,157,225,0));
  animation: rc3Comfort 2.9s ease-in-out infinite;
}

.scene-flow i:nth-child(1) { top: 37%; }
.scene-flow i:nth-child(2) { top: 50%; animation-delay: -.8s; }
.scene-flow i:nth-child(3) { top: 64%; animation-delay: -1.55s; }

.climate-scene__outside,
.climate-scene__inside {
  z-index: 3;
}

.scene-temperature {
  z-index: 12;
}

.scene-sofa,
.scene-lamp,
.scene-plant {
  z-index: 4;
  opacity: .66;
}

.hero-dashboard-card,
.scene-result {
  z-index: 20;
}

.hero-dashboard-card--score,
.hero-dashboard-card--saving {
  bottom: 17px;
}

.scene-result {
  left: 218px;
  right: 218px;
  bottom: 17px;
  min-height: 74px;
  padding-inline: 20px;
}

.hero-lab[data-hero-focus-mode="acoustic"] .window-model__draft,
.hero-lab[data-hero-focus-mode="acoustic"] .scene-flow--current i {
  background: linear-gradient(90deg, rgba(71,144,211,.78), rgba(71,144,211,0));
}

.hero-lab[data-hero-focus-mode="acoustic"] .window-model__comfort,
.hero-lab[data-hero-focus-mode="acoustic"] .scene-flow--akfa i {
  background: linear-gradient(270deg, rgba(88,119,190,.76), rgba(88,119,190,0));
}

.hero-lab[data-hero-focus-mode="acoustic"] .sound-wave {
  opacity: calc(.2 + var(--hero-inverse));
}

.hero-lab[data-hero-focus-mode="solar"] .climate-scene {
  background:
    radial-gradient(circle at 19% 18%, rgba(255,245,199,.9), transparent 17rem),
    radial-gradient(circle at 81% 24%, rgba(255,255,255,.46), transparent 20rem),
    linear-gradient(90deg, #f8c984 0 49.7%, #ffe7b4 50.3% 100%);
}

.hero-lab[data-hero-focus-mode="solar"] .window-model--current::after {
  content: "";
  position: absolute;
  z-index: 9;
  inset: 15px;
  border-radius: 9px;
  background: rgba(255,150,48,.2);
  box-shadow: inset 0 0 30px rgba(255,122,35,.24);
}

.hero-lab[data-hero-focus-mode="solar"] .window-model--akfa::after {
  content: "";
  position: absolute;
  z-index: 9;
  inset: 17px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(101,170,219,.12), rgba(255,198,101,.08));
  box-shadow: inset 0 0 28px rgba(72,153,211,.16);
}

.hero-lab[data-hero-focus-mode="solar"] .scene-flow--current i {
  background: linear-gradient(90deg, rgba(255,141,31,.86), rgba(255,141,31,0));
}

.hero-lab[data-hero-focus-mode="solar"] .scene-flow--akfa i {
  background: linear-gradient(270deg, rgba(96,169,216,.62), rgba(96,169,216,0));
}

/* Mobile hero now uses complete windows as well, never a profile cutaway. */
.hero-mobile-glance__render,
.hero-mobile-glance__profile {
  display: none !important;
}

.hero-mobile-window {
  position: absolute;
  z-index: 7;
  top: 48%;
  width: 70px;
  height: 92px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(145deg, #fafcfd, #c6d0d9);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.92), 0 13px 24px rgba(17,27,42,.17);
  transform: translateY(-50%);
  transition: opacity .28s ease, transform .34s var(--v9-ease);
}

.hero-mobile-window::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 3px solid #9eabb7;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(185,222,245,.86), rgba(255,236,204,.62));
}

.hero-mobile-window > i {
  position: absolute;
  z-index: 3;
  background: #e7ecf0;
  box-shadow: 0 0 0 1px #9ba7b2;
}

.hero-mobile-window > i:nth-child(1) {
  top: 7px;
  bottom: 7px;
  left: calc(50% - 1.5px);
  width: 3px;
}

.hero-mobile-window > i:nth-child(2) {
  left: 7px;
  right: 7px;
  top: calc(58% - 1.5px);
  height: 3px;
}

.hero-mobile-window > i:nth-child(3) {
  display: none;
}

.hero-mobile-window > b {
  position: absolute;
  z-index: 4;
  top: 48%;
  right: 3px;
  width: 5px;
  height: 22px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 0 1px #9ca7b1;
}

.hero-mobile-window > em {
  position: absolute;
  z-index: 4;
  inset: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.72);
}

.hero-mobile-window--current {
  left: 21%;
  opacity: var(--current-opacity);
  transform: translateY(-50%) scale(.94);
  filter: saturate(.76);
}

.hero-mobile-window--current::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 11px 9px;
  border-radius: 5px;
  background: linear-gradient(180deg, transparent 38%, rgba(241,248,252,.64));
}

.hero-mobile-window--akfa {
  right: 18%;
  width: 76px;
  height: 98px;
  opacity: var(--akfa-opacity);
  box-shadow: inset 0 0 0 1px #fff, inset 0 0 0 5px rgba(255,255,255,.68), 0 15px 28px rgba(17,27,42,.18), 0 0 0 3px rgba(31,169,103,.07);
}

.hero-mobile-window--akfa::before {
  inset: 9px;
  border-width: 4px;
}

.hero-mobile-window--akfa > i:nth-child(3) {
  display: block;
  top: 13px;
  bottom: 13px;
  left: calc(50% + 4px);
  width: 1px;
  opacity: .42;
  background: rgba(87,158,205,.62);
  box-shadow: 4px 0 0 rgba(255,255,255,.48);
}

.hero-mobile-glance__transition {
  position: absolute;
  z-index: 9;
  top: 49%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 5px solid rgba(255,255,255,.84);
  border-radius: 50%;
  color: #fff;
  background: #e52d39;
  box-shadow: 0 10px 22px rgba(218,29,42,.22);
  transform: translate(-50%, -50%);
}

.hero-mobile-glance__transition .icon {
  width: 13px;
  height: 13px;
}

/* Final result screen: explicit white-on-dark contrast, independent of any
   inherited heading or button styles from earlier visual generations. */
.result-cta.result-screen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.11);
  background:
    radial-gradient(circle at 13% 40%, rgba(237,42,55,.3), transparent 27rem),
    radial-gradient(circle at 88% 24%, rgba(57,145,230,.2), transparent 28rem),
    linear-gradient(145deg, #121923, #0c1119 62%, #202a37) !important;
  box-shadow: 0 34px 92px rgba(9,15,24,.28), inset 0 1px 0 rgba(255,255,255,.12);
}

.result-cta.result-screen::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
}

.result-cta.result-screen::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -9%;
  bottom: -42%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(255,255,255,.025), 0 0 0 108px rgba(255,255,255,.018);
}

.result-cta__copy {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.result-cta.result-screen .section-kicker,
.result-cta.result-screen .section-kicker * {
  color: #ff919a !important;
}

.result-cta.result-screen h3,
.result-cta.result-screen h3 *,
.result-cta.result-screen .result-cta__copy h3 {
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0,0,0,.18);
}

.result-cta.result-screen p,
.result-cta.result-screen p *,
.result-cta.result-screen .result-cta__copy p {
  color: #cbd5e1 !important;
}

.result-cta__actions {
  position: relative;
  z-index: 2;
}

.result-cta.result-screen .button--primary,
.result-cta.result-screen .button--primary span,
.result-cta.result-screen .button--primary .icon {
  color: #111821 !important;
}

.result-cta.result-screen .button--primary {
  border-color: rgba(255,255,255,.9) !important;
  background: #fff !important;
  box-shadow: 0 16px 38px rgba(0,0,0,.24), 0 0 0 1px rgba(255,255,255,.35) !important;
}

.result-cta.result-screen .button--primary:hover {
  background: #f6f8fa !important;
  transform: translateY(-2px);
}

.result-cta.result-screen .text-button,
.result-cta.result-screen .text-button span,
.result-cta.result-screen .text-button .icon {
  color: #fff !important;
}

.result-cta.result-screen .text-button {
  opacity: .9;
}

.result-cta.result-screen .text-button:hover {
  opacity: 1;
}

@media (max-width: 1280px) {
  .hero-process-mini {
    max-width: 620px;
  }

  .window-comparison {
    inset-inline: 40px;
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    gap: 12px;
  }

  .window-model {
    width: 128px;
    height: 160px;
  }

  .window-model--current {
    width: 120px;
    height: 152px;
  }

  .window-model--akfa {
    width: 134px;
    height: 164px;
  }
}

@media (max-width: 1023px) {
  .hero-process-mini {
    display: none;
  }

  .window-comparison {
    inset: 44px 30px 96px;
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
    gap: 8px;
  }

  .window-comparison__card {
    min-height: 214px;
    padding-inline: 8px;
  }

  .window-comparison__card > small {
    font-size: 8px;
  }

  .window-comparison__bridge > span {
    width: 40px;
    height: 40px;
    border-width: 7px;
  }

  .scene-result {
    left: 200px;
    right: 200px;
  }

  .result-cta.result-screen {
    min-height: 520px;
    padding: 36px 28px;
  }
}

@media (max-width: 760px) {
  .hero-process-mini {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
    padding: 6px;
  }

  .hero-process-mini > i {
    display: none;
  }

  .hero-process-mini > span {
    min-height: 36px;
    gap: 6px;
    padding: 5px 6px;
  }

  .hero-process-mini > span b {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    font-size: 8px;
  }

  .hero-process-mini > span em {
    font-size: 8px;
    white-space: normal;
  }

  .hero-lab {
    display: none;
  }

  .result-cta.result-screen {
    min-height: auto;
    display: grid;
    gap: 26px;
    padding: 32px 22px;
    border-radius: 28px;
  }

  .result-cta.result-screen h3 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .result-cta__actions {
    min-width: 0 !important;
    width: 100%;
  }

  .result-cta__actions .button,
  .result-cta__actions .text-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero-process-mini {
    margin-inline: -2px;
  }

  .hero-process-mini > span em {
    font-size: 7.5px;
  }

  .hero-mobile-window--current {
    left: 18%;
  }

  .hero-mobile-window--akfa {
    right: 15%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .window-comparison__bridge > i::after,
  .window-model__draft,
  .window-model__comfort,
  .window-model__seal,
  .scene-flow i {
    animation: none !important;
  }
}

/* ========================================================================== 
   AKFA Energy V1 RC3 — focused hero reconstruction
   - removes the generic profile-corner render from the before/after demo
   - replaces it with an architectural full-window model
   - folds the removed second screen into a compact three-step strip
   - guarantees readable typography on every dark final screen
   ========================================================================== */

/* The removed "How it works" screen is represented by a compact process strip
   in the hero, keeping the conversion path short without losing explanation. */
.hero-process-mini {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  max-width: 690px;
  margin: 20px 0 2px;
  padding: 8px;
  border: 1px solid rgba(72, 88, 110, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 12px 34px rgba(17, 27, 42, .055), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
}

.hero-process-mini > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 13px;
  transition: background .22s ease, transform .22s var(--v9-ease);
}

.hero-process-mini > span:hover {
  background: rgba(244, 247, 250, .9);
  transform: translateY(-1px);
}

.hero-process-mini > span b {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(145deg, #f24650, #d91e2a);
  box-shadow: 0 8px 18px rgba(218, 26, 39, .2);
  font-size: 10px;
  letter-spacing: .04em;
}

.hero-process-mini > span em {
  min-width: 0;
  color: #445065;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
}

.hero-process-mini > i {
  display: grid;
  place-items: center;
  color: #a5afbc;
}

.hero-process-mini > i .icon {
  width: 15px;
  height: 15px;
}

/* Hero: real full-window comparison instead of a cropped profile corner. */
.hero-lab .climate-scene {
  min-height: 382px;
  background:
    linear-gradient(90deg, rgba(176, 216, 246, .9) 0 49.8%, rgba(255, 235, 194, .94) 50.2% 100%);
}

.hero-lab .climate-scene::before {
  opacity: .62;
  background:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.78), transparent 18rem),
    radial-gradient(circle at 82% 20%, rgba(255,255,255,.5), transparent 20rem);
  background-size: 40px 40px, 40px 40px, auto, auto;
}

.hero-window-visual {
  position: absolute;
  z-index: 8;
  top: 48%;
  left: 50%;
  width: 236px;
  height: 274px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 24px 34px rgba(17, 27, 42, .18));
  pointer-events: none;
  isolation: isolate;
}

.hero-window-visual::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%;
  bottom: -20px;
  width: 250px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(41, 68, 96, .2), transparent 68%);
  transform: translateX(-50%);
  filter: blur(5px);
}

.hero-window-visual::after {
  content: "";
  position: absolute;
  z-index: 12;
  top: 4px;
  bottom: 8px;
  left: var(--compare, 58%);
  width: 2px;
  border-radius: 99px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.92) 8%, rgba(234,38,50,.72) 50%, rgba(255,255,255,.92) 92%, transparent);
  box-shadow: 0 0 18px rgba(255,255,255,.85), 0 0 22px rgba(234,38,50,.16);
  transform: translateX(-1px);
  transition: left .2s linear;
}

.hero-window-aura {
  position: absolute;
  z-index: -1;
  top: 9%;
  width: 130px;
  height: 78%;
  border-radius: 50%;
  filter: blur(22px);
  opacity: .5;
}

.hero-window-aura--cold {
  left: -54px;
  background: rgba(71, 166, 239, .34);
}

.hero-window-aura--warm {
  right: -54px;
  background: rgba(246, 154, 72, .34);
}

.hero-window-state {
  position: absolute;
  inset: 0;
  transition: clip-path .2s linear, opacity .28s ease, transform .35s var(--v9-ease), filter .28s ease;
  transform-origin: 50% 70%;
}

.hero-window-state--before {
  opacity: 1;
  transform: scale(calc(.985 + var(--hero-inverse, .42) * .015));
  filter: saturate(.82) contrast(.98);
}

.hero-window-state--after {
  clip-path: inset(0 calc(100% - var(--compare, 58%)) 0 0);
  opacity: 1;
  transform: scale(calc(.985 + var(--hero-ratio, .58) * .015));
  filter: saturate(1.05) contrast(1.02);
}

.hero-window-frame {
  position: absolute;
  inset: 12px 18px 16px;
  padding: 17px;
  border-radius: 18px;
  background: linear-gradient(145deg, #fdfefe, #d8dfe6 55%, #f8fafc);
  border: 1px solid rgba(119, 134, 151, .34);
  box-shadow:
    0 20px 42px rgba(17,27,42,.17),
    inset 0 0 0 7px rgba(255,255,255,.76),
    inset 0 1px 0 #fff;
}

.hero-window-state--before .hero-window-frame {
  inset: 18px 25px 20px;
  padding: 11px;
  border-radius: 13px;
  background: linear-gradient(145deg, #e9eef2, #b8c2cb 62%, #d9e0e6);
  box-shadow: 0 18px 34px rgba(17,27,42,.16), inset 0 0 0 3px rgba(255,255,255,.46);
}

.hero-window-glass {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 3px solid rgba(120, 139, 158, .72);
  border-radius: 7px;
  background:
    linear-gradient(140deg, rgba(255,255,255,.56), transparent 28%),
    linear-gradient(135deg, rgba(178,219,247,.82), rgba(243,235,215,.68));
  box-shadow: inset 0 0 34px rgba(255,255,255,.48), inset 0 0 0 1px rgba(255,255,255,.64);
}

.hero-window-state--after .hero-window-glass {
  border-color: rgba(112, 137, 159, .7);
  background:
    linear-gradient(140deg, rgba(255,255,255,.7), transparent 25%),
    linear-gradient(135deg, rgba(164,215,249,.82), rgba(242,235,211,.72));
  box-shadow:
    inset 0 0 44px rgba(255,255,255,.58),
    inset 0 0 0 1px rgba(255,255,255,.72),
    0 0 0 2px rgba(17,159,98,.05);
}

.hero-window-glass > i {
  position: absolute;
  z-index: 2;
  background: linear-gradient(90deg, #e9edf1, #bcc6cf 50%, #f7f9fb);
  box-shadow: 0 0 0 1px rgba(110,126,143,.45);
}

.hero-window-glass > i:nth-child(1) {
  top: 0;
  bottom: 0;
  left: calc(50% - 3px);
  width: 6px;
}

.hero-window-glass > i:nth-child(2) {
  top: calc(50% - 3px);
  left: 0;
  right: 0;
  height: 6px;
}

.hero-window-glass > i:nth-child(3),
.hero-window-glass > i:nth-child(4) {
  top: 0;
  bottom: 0;
  width: 2px;
  opacity: .62;
  background: rgba(128, 176, 207, .76);
  box-shadow: 5px 0 0 rgba(255,255,255,.34);
}

.hero-window-glass > i:nth-child(3) { left: 31%; }
.hero-window-glass > i:nth-child(4) { right: 31%; }
.hero-window-state--before .hero-window-glass > i:nth-child(3),
.hero-window-state--before .hero-window-glass > i:nth-child(4) { display: none; }

.hero-window-handle {
  position: absolute;
  z-index: 4;
  top: 43%;
  right: 6px;
  width: 10px;
  height: 48px;
  border: 1px solid rgba(93,109,125,.55);
  border-radius: 7px;
  background: linear-gradient(90deg, #eef2f5, #fff 50%, #c8d0d8);
  box-shadow: 0 5px 10px rgba(17,27,42,.14);
}

.hero-window-state--before .hero-window-handle {
  right: 4px;
  height: 41px;
  opacity: .78;
}

.hero-window-seal {
  position: absolute;
  z-index: 3;
  inset: 9px 15px 13px;
  border: 3px solid rgba(17, 159, 98, .26);
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(17,159,98,.18), inset 0 0 18px rgba(17,159,98,.08);
  animation: rc3SealPulse 3s ease-in-out infinite;
}

.hero-window-coating {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(110deg, transparent 15%, rgba(80,171,239,.15) 42%, rgba(255,255,255,.36) 50%, rgba(244,151,65,.12) 68%, transparent 86%);
  transform: translateX(-45%);
  animation: rc3GlassSweep 4.2s ease-in-out infinite;
}

.hero-window-condensation {
  position: absolute;
  z-index: 3;
  left: 8%;
  right: 8%;
  bottom: 5%;
  height: 34%;
  background:
    radial-gradient(circle at 18% 70%, rgba(255,255,255,.76) 0 2px, transparent 3px),
    radial-gradient(circle at 44% 38%, rgba(255,255,255,.58) 0 2px, transparent 3px),
    radial-gradient(circle at 73% 66%, rgba(255,255,255,.7) 0 2px, transparent 3px),
    linear-gradient(180deg, transparent, rgba(230,241,248,.58));
  filter: blur(.35px);
  opacity: calc(.18 + var(--hero-inverse, .42) * .72);
}

.hero-window-frost {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: radial-gradient(circle at 10% 50%, rgba(224,245,255,.62), transparent 48%);
  opacity: calc(.2 + var(--hero-inverse, .42) * .55);
}

.hero-window-draft,
.hero-window-shield {
  position: absolute;
  z-index: 9;
  inset: 0;
}

.hero-window-draft i,
.hero-window-shield i {
  position: absolute;
  display: block;
  border-radius: 99px;
}

.hero-window-draft i {
  left: -50px;
  width: 90px;
  height: 5px;
  background: linear-gradient(90deg, transparent, rgba(82,171,234,.85));
  filter: blur(.15px);
  opacity: calc(.14 + var(--hero-inverse, .42) * .78);
  animation: rc3Draft 2.5s ease-in-out infinite;
}

.hero-window-draft i:nth-child(1) { top: 31%; }
.hero-window-draft i:nth-child(2) { top: 50%; animation-delay: -.85s; }
.hero-window-draft i:nth-child(3) { top: 68%; animation-delay: -1.55s; }

.hero-window-shield i {
  right: -28px;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(33, 171, 111, .25);
  border-left-color: transparent;
  opacity: calc(.12 + var(--hero-ratio, .58) * .5);
  animation: rc3Shield 2.8s ease-out infinite;
}

.hero-window-shield i:nth-child(1) { top: 27%; }
.hero-window-shield i:nth-child(2) { top: 47%; animation-delay: -.95s; }
.hero-window-shield i:nth-child(3) { top: 65%; animation-delay: -1.75s; }

.hero-window-foundation {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 1px;
  width: 252px;
  height: 22px;
  border-radius: 8px 8px 13px 13px;
  background: linear-gradient(180deg, #fbfcfd, #cbd3db);
  border: 1px solid rgba(111,126,142,.36);
  box-shadow: 0 12px 24px rgba(17,27,42,.18), inset 0 1px 0 #fff;
  transform: translateX(-50%);
}

.hero-window-foundation i {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 5px;
  height: 2px;
  background: rgba(113, 130, 147, .22);
}

.hero-window-foundation span {
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 190px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(17,27,42,.18), transparent 68%);
  transform: translateX(-50%);
  filter: blur(4px);
}

.hero-window-aura {
  position: absolute;
  z-index: -1;
  top: 10%;
  width: 150px;
  height: 76%;
  border-radius: 50%;
  filter: blur(26px);
  opacity: .52;
}

.hero-window-aura--cold { left: -64px; background: rgba(65,157,229,.38); }
.hero-window-aura--warm { right: -64px; background: rgba(245,151,66,.35); }

.hero-airflow {
  position: absolute;
  z-index: 7;
  top: 0;
  bottom: 0;
  width: 48%;
  pointer-events: none;
}

.hero-airflow--cold { left: 0; }
.hero-airflow--warm { right: 0; }

.hero-airflow i {
  position: absolute;
  width: 128px;
  height: 4px;
  border-radius: 99px;
  filter: blur(.15px);
  opacity: .52;
  animation: rc3Airflow 3s ease-in-out infinite;
}

.hero-airflow--cold i {
  left: 10%;
  background: linear-gradient(90deg, transparent, rgba(58,151,222,.76));
}

.hero-airflow--warm i {
  right: 10%;
  background: linear-gradient(90deg, rgba(241,126,65,.72), transparent);
  animation-direction: reverse;
}

.hero-airflow i:nth-child(1) { top: 34%; }
.hero-airflow i:nth-child(2) { top: 50%; animation-delay: -.9s; }
.hero-airflow i:nth-child(3) { top: 66%; animation-delay: -1.8s; }

.hero-lab[data-hero-focus-mode="acoustic"] .hero-window-shield i {
  border-color: rgba(39, 130, 208, .46);
  border-left-color: transparent;
  opacity: calc(.2 + var(--hero-ratio, .58) * .64);
}

.hero-lab[data-hero-focus-mode="acoustic"] .hero-airflow {
  opacity: .25;
}

.hero-lab[data-hero-focus-mode="solar"] .hero-window-coating {
  background: linear-gradient(110deg, transparent 8%, rgba(255,199,84,.14) 34%, rgba(255,255,255,.62) 48%, rgba(88,177,239,.2) 66%, transparent 90%);
  opacity: .96;
}

.hero-lab[data-hero-focus-mode="solar"] .hero-window-aura--warm {
  opacity: .8;
}

.hero-lab[data-hero-focus-mode="solar"] .hero-window-shield i {
  border-color: rgba(240,154,52,.42);
  border-left-color: transparent;
}

.hero-lab .scene-temperature,
.hero-lab .scene-temperature--inside {
  z-index: 13;
}

.hero-lab .scene-result {
  z-index: 18;
  left: 218px;
  right: 214px;
  bottom: 18px;
  min-height: 74px;
}

.hero-lab .hero-dashboard-card {
  z-index: 19;
}

/* Mobile gets the same clean full-window model, not a cropped corner. */
.hero-window-visual--mobile {
  top: 54%;
  width: 132px;
  height: 158px;
  filter: drop-shadow(0 16px 24px rgba(17,27,42,.18));
}

.hero-window-visual--mobile::before {
  width: 145px;
  height: 34px;
  bottom: -12px;
}

.hero-window-visual--mobile::after {
  top: 8px;
  bottom: 8px;
}

.hero-window-visual--mobile .hero-window-frame {
  inset: 8px 10px 11px;
  padding: 10px;
  border-radius: 11px;
}

.hero-window-visual--mobile .hero-window-state--before .hero-window-frame {
  inset: 12px 15px 14px;
  padding: 7px;
  border-radius: 9px;
}

.hero-window-visual--mobile .hero-window-handle {
  right: 2px;
  width: 7px;
  height: 29px;
}

.hero-window-visual--mobile .hero-window-seal {
  inset: 6px 8px 9px;
  border-width: 2px;
  border-radius: 13px;
}

.hero-window-visual--mobile .hero-window-draft i {
  left: -27px;
  width: 49px;
  height: 3px;
}

.hero-window-visual--mobile .hero-window-shield i {
  right: -16px;
  width: 31px;
  height: 31px;
}

.hero-mobile-glance__render,
.hero-mobile-glance__profile {
  display: none !important;
}

/* Dark final screens: explicit color contract prevents black-on-black text. */
.result-cta,
.result-cta.result-screen {
  color: #f8fafc !important;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 10% 35%, rgba(239,34,49,.31), transparent 30rem),
    radial-gradient(circle at 90% 18%, rgba(69,151,239,.2), transparent 28rem),
    linear-gradient(145deg, #111722, #0d131d 58%, #202a38) !important;
  box-shadow: 0 32px 90px rgba(8,14,23,.27), inset 0 1px 0 rgba(255,255,255,.1);
}

.result-cta .section-kicker,
.result-cta.result-screen .section-kicker {
  color: #ff8b92 !important;
}

.result-cta h3,
.result-cta.result-screen h3 {
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0,0,0,.18);
}

.result-cta p,
.result-cta.result-screen p {
  color: #cbd4df !important;
}

.result-cta .text-button,
.result-cta.result-screen .text-button,
.result-cta .text-button span,
.result-cta .text-button .icon {
  color: #fff !important;
  stroke: currentColor;
}

.result-cta .button--primary,
.result-cta.result-screen .button--primary {
  color: #111722 !important;
  background: #fff !important;
}

.methodology-section,
.methodology-section .methodology-layout,
.methodology-section h2,
.methodology-section h3,
.methodology-section b,
.methodology-section strong {
  color: #f8fafc !important;
}

.methodology-section .section-kicker {
  color: #ff7b84 !important;
}

.methodology-section .methodology-layout > div > p,
.methodology-section .methodology-cards p {
  color: #b9c3cf !important;
}

.methodology-section .methodology-cards article {
  background: rgba(255,255,255,.065);
  border-color: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.methodology-section .button {
  color: #111722 !important;
  background: #fff !important;
}

.site-footer,
.site-footer a,
.site-footer button,
.site-footer strong,
.site-footer b {
  color: #d9e0e8;
}

.site-footer__bottom,
.site-footer__bottom p,
.site-footer__top > p {
  color: #9eabb9;
}

@keyframes rc3Draft {
  0%, 100% { transform: translateX(-10px) scaleX(.82); opacity: .18; }
  48% { transform: translateX(24px) scaleX(1.08); opacity: .88; }
}

@keyframes rc3Shield {
  0% { transform: translateX(10px) scale(.55); opacity: 0; }
  45% { opacity: .58; }
  100% { transform: translateX(-34px) scale(1.12); opacity: 0; }
}

@keyframes rc3SealPulse {
  0%, 100% { opacity: .55; box-shadow: 0 0 16px rgba(17,159,98,.12), inset 0 0 12px rgba(17,159,98,.05); }
  50% { opacity: .95; box-shadow: 0 0 25px rgba(17,159,98,.24), inset 0 0 20px rgba(17,159,98,.1); }
}

@keyframes rc3GlassSweep {
  0%, 15% { transform: translateX(-65%); opacity: 0; }
  35%, 70% { opacity: .9; }
  100% { transform: translateX(65%); opacity: 0; }
}

@keyframes rc3Airflow {
  0%, 100% { transform: translateX(-12px) scaleX(.72); opacity: .15; }
  50% { transform: translateX(20px) scaleX(1.08); opacity: .62; }
}

@media (max-width: 1280px) {
  .hero-process-mini {
    gap: 4px;
  }

  .hero-process-mini > span {
    padding-inline: 7px;
  }

  .hero-process-mini > span em {
    font-size: 10px;
  }

  .hero-window-visual {
    width: 218px;
    height: 254px;
  }

  .hero-lab .scene-result {
    left: 204px;
    right: 202px;
  }
}

@media (max-width: 1090px) {
  .hero-lab .climate-scene {
    min-height: 354px;
  }

  .hero-window-visual {
    width: 196px;
    height: 230px;
  }

  .hero-lab .scene-result {
    left: 16px;
    right: 16px;
    bottom: 87px;
  }
}

@media (max-width: 1023px) {
  .hero-process-mini {
    max-width: none;
  }

  .hero-lab .climate-scene {
    min-height: 390px;
  }
}

@media (max-width: 760px) {
  .hero-process-mini {
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 6px;
    margin-top: 15px;
    padding: 6px;
  }

  .hero-process-mini > i {
    display: none;
  }

  .hero-process-mini > span {
    min-height: 52px;
    display: grid;
    grid-template-columns: 26px minmax(0,1fr);
    gap: 7px;
    padding: 7px;
  }

  .hero-process-mini > span b {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 9px;
  }

  .hero-process-mini > span em {
    font-size: 9px;
  }

  .hero-window-visual:not(.hero-window-visual--mobile) {
    width: 174px;
    height: 206px;
  }

  .hero-lab .climate-scene {
    min-height: 344px;
  }
}

@media (max-width: 520px) {
  .hero-process-mini > span {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero-process-mini > span em {
    line-height: 1.1;
  }

  .hero-window-visual--mobile {
    width: 116px;
    height: 142px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-window-seal,
  .hero-window-coating,
  .hero-window-draft i,
  .hero-window-shield i,
  .hero-airflow i {
    animation: none !important;
  }
}

/* ========================================================================== 
   AKFA Energy 1.0.0 RC3 — focused hero, five-screen flow, dark-screen fix
   - the technical profile corner has been removed from the hero animation
   - the hero now compares two front-facing windows, not a catalogue cutaway
   - the former second screen is removed from the product flow
   - final methodology/footer contrast is production-safe
   ========================================================================== */

/* Retire legacy hero layers that visually competed with the comparison. */
.hero-product-layer,
.hero-split-indicator,
.thermal-lens,
.scene-window,
.hero-lab__status {
  display: none !important;
}

.climate-scene {
  --hero-progress: .58;
  --hero-inverse: calc(1 - var(--hero-progress));
  min-height: 380px;
  border-color: rgba(255, 255, 255, .95);
  background:
    radial-gradient(circle at 16% 16%, rgba(255,255,255,.72), transparent 15rem),
    radial-gradient(circle at 83% 20%, rgba(255,255,255,.5), transparent 20rem),
    linear-gradient(90deg, #c8e1f3 0 49.85%, #ffe8bc 50.15% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(62, 82, 106, .035),
    inset 0 -70px 100px rgba(255,255,255,.18),
    0 18px 50px rgba(17,27,42,.08);
}

.climate-scene::before {
  opacity: .42;
  background:
    linear-gradient(180deg, rgba(255,255,255,.2), transparent 36%),
    radial-gradient(circle at 14% 18%, rgba(255,255,255,.76), transparent 13rem),
    radial-gradient(circle at 88% 18%, rgba(255,244,209,.54), transparent 18rem);
  mask-image: none;
}

.climate-scene::after {
  z-index: 2;
  height: 28%;
  background:
    linear-gradient(180deg, transparent, rgba(255,255,255,.56)),
    linear-gradient(90deg, rgba(167,200,224,.24), rgba(255,224,172,.24));
}

.energy-field-canvas {
  z-index: 6;
  opacity: .13;
  filter: saturate(.72) blur(.2px);
  mix-blend-mode: screen;
}

/* Front-facing window comparison. The visual changes with --hero-progress. */
.hero-window-visual {
  position: absolute;
  z-index: 11;
  left: 50%;
  top: 49%;
  width: clamp(190px, 29%, 248px);
  height: 77%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 28px 32px rgba(28, 43, 60, .18));
  isolation: isolate;
}

.hero-window-aura {
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 48%;
  width: 148%;
  height: 108%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(30px);
  transition: opacity .5s var(--v9-ease), transform .7s var(--v9-ease);
}

.hero-window-aura--cold {
  opacity: var(--hero-cold-aura-opacity, .331);
  background: radial-gradient(ellipse, rgba(74,163,231,.52), rgba(74,163,231,0) 68%);
}

.hero-window-aura--warm {
  opacity: var(--hero-warm-aura-opacity, .402);
  background: radial-gradient(ellipse, rgba(255,184,100,.48), rgba(255,184,100,0) 69%);
}

.hero-window-state {
  position: absolute;
  inset: 0;
  transform-origin: 50% 86%;
  transition:
    opacity .42s var(--v9-ease),
    transform .58s var(--v9-ease),
    filter .5s ease;
}

.hero-window-state--before {
  opacity: var(--hero-before-opacity, .42);
  transform: translateX(var(--hero-before-shift, -4px)) scale(var(--hero-before-scale, .98));
  filter: saturate(.76) contrast(.94);
}

.hero-window-state--after {
  opacity: var(--hero-after-opacity, .58);
  transform: translateX(var(--hero-after-shift, 3px)) scale(var(--hero-after-scale, .99));
  filter: saturate(.98) contrast(1.02);
}

.hero-window-frame {
  position: absolute;
  inset: 4% 8% 7%;
  overflow: visible;
  border-radius: 13px;
  transition: border-color .4s ease, box-shadow .5s ease, background .4s ease;
}

.hero-window-state--before .hero-window-frame {
  border: 11px solid #9ca8b2;
  background: #8f9ca7;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.42),
    inset 0 0 0 8px rgba(129,143,154,.38),
    0 15px 28px rgba(45,65,84,.18);
  transform: rotate(-.45deg);
}

.hero-window-state--after .hero-window-frame {
  border: 17px solid #f5f7f8;
  background: #e8edf1;
  box-shadow:
    inset 0 0 0 2px #cdd6dd,
    inset 0 0 0 8px rgba(255,255,255,.88),
    0 18px 36px rgba(30,48,67,.19),
    0 0 0 1px rgba(111,129,148,.16);
}

.hero-window-glass {
  position: absolute;
  inset: 5px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: #aab5bd;
  box-shadow: inset 0 0 20px rgba(34,75,105,.12);
}

.hero-window-state--after .hero-window-glass {
  gap: 7px;
  background: #eef2f4;
  box-shadow:
    inset 0 0 0 1px rgba(129,151,170,.25),
    inset 0 0 22px rgba(46,112,160,.11);
}

.hero-window-glass > i {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(255,255,255,.68);
  background:
    linear-gradient(155deg, rgba(255,255,255,.58), transparent 30%),
    linear-gradient(180deg, rgba(184,218,240,.92), rgba(220,235,245,.84) 58%, rgba(191,213,228,.9));
  box-shadow: inset 0 0 18px rgba(85,148,190,.12);
}

.hero-window-glass > i::before {
  content: "";
  position: absolute;
  left: -60%;
  top: -20%;
  width: 60%;
  height: 150%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: rc3GlassSweep 5.8s ease-in-out infinite;
}

.hero-window-state--before .hero-window-glass > i {
  background:
    linear-gradient(145deg, rgba(255,255,255,.42), transparent 30%),
    linear-gradient(180deg, rgba(183,205,219,.9), rgba(212,222,228,.82));
  filter: blur(.15px) saturate(.75);
}

.hero-window-state--after .hero-window-glass > i {
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), transparent 28%),
    radial-gradient(circle at 74% 18%, rgba(255,239,196,.25), transparent 34%),
    linear-gradient(180deg, rgba(166,214,244,.93), rgba(218,239,251,.86) 56%, rgba(173,207,228,.9));
}

.hero-window-handle {
  position: absolute;
  z-index: 7;
  right: -5px;
  top: 48%;
  width: 8px;
  height: 45px;
  border: 1px solid rgba(92,107,123,.3);
  border-radius: 99px;
  background: linear-gradient(90deg, #cbd2d8, #fff 48%, #c1cad2);
  box-shadow: 0 4px 8px rgba(34,50,66,.16);
}

.hero-window-state--before .hero-window-handle {
  right: -1px;
  height: 38px;
  background: linear-gradient(90deg, #818b94, #c5ccd1 50%, #747f89);
}

.hero-window-condensation {
  position: absolute;
  z-index: 3;
  inset: auto 4% 3%;
  height: 42%;
  opacity: var(--hero-condensation-opacity, .486);
  border-radius: 48% 48% 8px 8px;
  background:
    radial-gradient(circle at 16% 35%, rgba(255,255,255,.85) 0 2px, transparent 3px),
    radial-gradient(circle at 37% 68%, rgba(255,255,255,.68) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 69% 32%, rgba(255,255,255,.74) 0 2px, transparent 3px),
    linear-gradient(180deg, transparent, rgba(238,247,252,.7));
  filter: blur(.3px);
}

.hero-window-frost {
  position: absolute;
  z-index: 4;
  left: -5%;
  bottom: -3%;
  width: 55%;
  height: 45%;
  opacity: var(--hero-frost-opacity, .311);
  background:
    repeating-radial-gradient(circle at 15% 80%, rgba(255,255,255,.7) 0 1px, transparent 2px 8px),
    linear-gradient(30deg, transparent 30%, rgba(255,255,255,.65), transparent 64%);
  clip-path: polygon(0 100%, 0 38%, 18% 53%, 32% 18%, 47% 62%, 69% 27%, 100% 75%, 100% 100%);
}

.hero-window-coating {
  position: absolute;
  z-index: 3;
  inset: 0;
  opacity: var(--hero-coating-opacity, .37);
  background:
    linear-gradient(118deg, transparent 18%, rgba(93,174,232,.18) 42%, rgba(255,206,111,.15) 58%, transparent 80%);
  mix-blend-mode: screen;
}

.hero-window-seal {
  position: absolute;
  z-index: 8;
  inset: -8px;
  border: 2px solid rgba(27, 147, 94, .5);
  border-radius: 17px;
  opacity: var(--hero-after-opacity, .58);
  box-shadow: 0 0 0 6px rgba(33,158,101,.08), 0 0 24px rgba(33,158,101,.16);
  animation: rc3SealPulse 3.4s ease-in-out infinite;
}

.hero-window-draft,
.hero-window-shield {
  position: absolute;
  z-index: 10;
  inset: 8% -32%;
  pointer-events: none;
}

.hero-window-draft {
  opacity: var(--hero-draft-opacity, .386);
}

.hero-window-draft i {
  position: absolute;
  left: -7%;
  width: 42%;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(72,158,224,0), rgba(72,158,224,.88) 56%, rgba(72,158,224,0));
  filter: drop-shadow(0 0 7px rgba(72,158,224,.38));
  animation: rc3DraftPass 2.7s ease-in-out infinite;
}

.hero-window-draft i:nth-child(1) { top: 27%; }
.hero-window-draft i:nth-child(2) { top: 50%; width: 54%; animation-delay: -.85s; }
.hero-window-draft i:nth-child(3) { top: 72%; width: 37%; animation-delay: -1.65s; }

.hero-window-shield {
  inset: 4% -24%;
  opacity: var(--hero-after-opacity, .58);
}

.hero-window-shield i {
  position: absolute;
  right: -1%;
  top: 50%;
  width: 70%;
  aspect-ratio: 1;
  border: 2px solid rgba(80,160,218,.3);
  border-left-color: transparent;
  border-radius: 50%;
  transform: translateY(-50%) scale(.55);
  animation: rc3ShieldWave 3.7s ease-out infinite;
}

.hero-window-shield i:nth-child(2) { animation-delay: -1.2s; }
.hero-window-shield i:nth-child(3) { animation-delay: -2.4s; }

.hero-window-foundation {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 0;
  width: 124%;
  height: 11%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(47,70,91,.2), rgba(47,70,91,0) 70%);
  filter: blur(5px);
}

.hero-window-foundation::before,
.hero-window-foundation::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88%;
  height: 34%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(78,157,217,.2);
  border-radius: 50%;
}

.hero-window-foundation::after {
  width: 58%;
  border-color: rgba(239,149,75,.22);
}

.hero-airflow {
  position: absolute;
  z-index: 9;
  top: 0;
  bottom: 88px;
  width: 36%;
  pointer-events: none;
}

.hero-airflow i {
  position: absolute;
  width: 70%;
  height: 4px;
  border-radius: 99px;
  filter: drop-shadow(0 0 8px currentColor);
  animation: rc3Airflow 3.1s ease-in-out infinite;
}

.hero-airflow i:nth-child(1) { top: 33%; }
.hero-airflow i:nth-child(2) { top: 50%; width: 88%; animation-delay: -.95s; }
.hero-airflow i:nth-child(3) { top: 66%; width: 58%; animation-delay: -1.9s; }

.hero-airflow--warm {
  right: 10%;
  color: rgba(237,120,66,.35);
  opacity: var(--hero-warm-flow-opacity, .427);
}

.hero-airflow--warm i {
  right: 0;
  background: linear-gradient(90deg, rgba(238,119,62,0), rgba(238,119,62,.66), rgba(238,119,62,0));
}

.hero-airflow--cold {
  left: 10%;
  color: rgba(69,151,217,.38);
  opacity: var(--hero-cold-flow-opacity, .404);
}

.hero-airflow--cold i {
  left: 0;
  background: linear-gradient(90deg, rgba(69,151,217,0), rgba(69,151,217,.72), rgba(69,151,217,0));
  animation-direction: reverse;
}

/* Focus modes use the same clean window instead of swapping in a cutaway. */
.hero-lab[data-hero-focus-mode="thermal"] .hero-window-draft,
.hero-lab[data-hero-focus-mode="thermal"] .hero-airflow {
  filter: saturate(1.08);
}

.hero-lab[data-hero-focus-mode="acoustic"] .hero-airflow {
  opacity: .08;
}

.hero-lab[data-hero-focus-mode="acoustic"] .hero-window-shield {
  opacity: var(--hero-shield-opacity, .698);
}

.hero-lab[data-hero-focus-mode="acoustic"] .sound-wave {
  opacity: var(--hero-sound-opacity, .509);
}

.hero-lab[data-hero-focus-mode="solar"] .climate-scene {
  background:
    radial-gradient(circle at 18% 16%, rgba(255,247,206,.92), transparent 15rem),
    radial-gradient(circle at 83% 18%, rgba(255,255,255,.54), transparent 19rem),
    linear-gradient(90deg, #f5c174 0 49.85%, #ffe5ad 50.15% 100%);
}

.hero-lab[data-hero-focus-mode="solar"] .hero-window-coating {
  opacity: var(--hero-solar-coating-opacity, .657);
  background:
    linear-gradient(116deg, transparent 9%, rgba(74,166,228,.24) 38%, rgba(255,184,70,.3) 56%, transparent 86%);
}

.hero-lab[data-hero-focus-mode="solar"] .hero-window-aura--warm {
  opacity: var(--hero-solar-aura-opacity, .591);
}

/* Information cards are retained, but they no longer cover the window. */
.hero-dashboard-card--score,
.hero-dashboard-card--saving {
  bottom: 18px;
}

.scene-result {
  left: 218px;
  right: 218px;
  bottom: 18px;
  min-height: 72px;
}

/* Mobile hero uses the same front-facing visual language. */
.hero-mobile-glance {
  --hero-progress: .58;
}

.hero-mobile-glance__scene {
  min-height: 232px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 17%, rgba(255,255,255,.72), transparent 9rem),
    linear-gradient(90deg, #c7e1f3 0 49.8%, #ffe7b9 50.2% 100%);
}

.hero-window-visual--mobile {
  z-index: 7;
  top: 54%;
  width: 118px;
  height: 152px;
  filter: drop-shadow(0 16px 18px rgba(25,43,60,.18));
}

.hero-window-visual--mobile .hero-window-frame {
  inset: 3% 6% 6%;
  border-radius: 9px;
}

.hero-window-visual--mobile .hero-window-state--before .hero-window-frame {
  border-width: 7px;
}

.hero-window-visual--mobile .hero-window-state--after .hero-window-frame {
  border-width: 10px;
}

.hero-window-visual--mobile .hero-window-glass {
  inset: 3px;
  gap: 3px;
  border-radius: 3px;
}

.hero-window-visual--mobile .hero-window-state--after .hero-window-glass {
  gap: 4px;
}

.hero-window-visual--mobile .hero-window-handle {
  right: -4px;
  width: 6px;
  height: 28px;
}

.hero-window-visual--mobile .hero-window-draft {
  inset-inline: -50%;
}

.hero-window-visual--mobile .hero-window-shield {
  inset-inline: -38%;
}

.hero-mobile-glance[data-hero-focus-mode="acoustic"] .hero-window-shield {
  opacity: var(--hero-shield-opacity, .698);
}

.hero-mobile-glance[data-hero-focus-mode="solar"] .hero-window-coating {
  opacity: var(--hero-solar-coating-opacity, .657);
}

@keyframes rc3GlassSweep {
  0%, 32% { transform: translateX(0) skewX(-18deg); opacity: 0; }
  48%, 70% { opacity: .75; }
  100% { transform: translateX(330%) skewX(-18deg); opacity: 0; }
}

@keyframes rc3DraftPass {
  0%, 100% { transform: translateX(-18px) scaleX(.72); opacity: .15; }
  48% { transform: translateX(48px) scaleX(1); opacity: .9; }
}

@keyframes rc3ShieldWave {
  0% { transform: translateY(-50%) scale(.45); opacity: 0; }
  32% { opacity: .62; }
  100% { transform: translateY(-50%) scale(1.08); opacity: 0; }
}

@keyframes rc3SealPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(33,158,101,.06), 0 0 18px rgba(33,158,101,.12); }
  50% { box-shadow: 0 0 0 9px rgba(33,158,101,.025), 0 0 30px rgba(33,158,101,.2); }
}

@keyframes rc3Airflow {
  0%, 100% { transform: translateX(-18px) scaleX(.72); opacity: .1; }
  50% { transform: translateX(24px) scaleX(1); opacity: .8; }
}

/* Final screen: hard contrast guarantees over the dark background. */
.methodology-section {
  position: relative;
  overflow: hidden;
  color: #f7f9fc !important;
  background:
    radial-gradient(circle at 8% 14%, rgba(234,38,50,.18), transparent 25rem),
    radial-gradient(circle at 92% 84%, rgba(65,149,226,.15), transparent 28rem),
    linear-gradient(145deg, #0b1018 0%, #111925 54%, #090d13 100%) !important;
}

.methodology-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
}

.methodology-section .methodology-layout {
  position: relative;
  z-index: 1;
}

.methodology-section .section-kicker {
  color: #ff817b !important;
}

.methodology-section .methodology-layout h2 {
  color: #ffffff !important;
  text-shadow: 0 12px 40px rgba(0,0,0,.18);
}

.methodology-section .methodology-layout > div > p {
  color: #b8c2cf !important;
}

.methodology-section .methodology-cards article {
  border-color: rgba(255,255,255,.11);
  background:
    linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 44px rgba(0,0,0,.13);
  backdrop-filter: blur(16px);
}

.methodology-section .methodology-cards article > span {
  color: #ff756f !important;
}

.methodology-section .methodology-cards b {
  color: #ffffff !important;
}

.methodology-section .methodology-cards p {
  color: #aeb9c7 !important;
}

.methodology-section .button,
.methodology-section .button--dark {
  color: #111722 !important;
  border-color: rgba(255,255,255,.9) !important;
  background: #ffffff !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.22) !important;
}

.methodology-section .button:hover,
.methodology-section .button--dark:hover {
  color: #ffffff !important;
  border-color: #ea2632 !important;
  background: #ea2632 !important;
}

.site-footer,
.site-footer a,
.site-footer button,
.site-footer p,
.site-footer small,
.site-footer .brand__product,
.site-footer .brand__product strong,
.site-footer .brand__product b {
  color: #d7dde6 !important;
}

.site-footer {
  background: #080c12 !important;
}

.site-footer a:hover,
.site-footer button:hover {
  color: #ffffff !important;
}

.site-footer__bottom {
  color: #949eac !important;
}

@media (max-width: 1280px) {
  .hero-window-visual {
    width: 206px;
    height: 73%;
  }

  .scene-result {
    left: 202px;
    right: 202px;
  }
}

@media (max-width: 1060px) {
  .hero-window-visual {
    width: 184px;
    height: 69%;
  }

  .hero-dashboard-card--score {
    left: 14px;
  }

  .hero-dashboard-card--saving {
    right: 14px;
  }

  .scene-result {
    left: 190px;
    right: 190px;
    padding-inline: 16px;
  }
}

@media (max-width: 760px) {
  .hero-lab {
    display: none !important;
  }

  .methodology-section {
    padding-block: 72px 92px;
  }

  .methodology-section .methodology-layout {
    gap: 34px;
  }

  .methodology-section .methodology-cards {
    gap: 9px;
  }

  .methodology-section .methodology-cards article {
    min-height: 132px;
    padding: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-window-glass > i::before,
  .hero-window-draft i,
  .hero-window-shield i,
  .hero-window-seal,
  .hero-airflow i {
    animation: none !important;
  }
}

/* ========================================================================== 
   AKFA Energy V1 RC4 — production motion, exact screen alignment and
   responsive hardening. Kept in the consolidated V9 public layer so the
   release does not add another CSS request.
   ========================================================================== */

.motion-toggle,
.hero-motion-button {
  position: relative;
}

.motion-toggle__state {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #31a56c;
  box-shadow: 0 0 0 3px rgba(49,165,108,.12);
  transition: background .2s ease, box-shadow .2s ease;
}

html[data-motion="paused"] .motion-toggle__state {
  background: #f3a83d;
  box-shadow: 0 0 0 3px rgba(243,168,61,.14);
}

.mobile-motion-mode {
  margin-top: -4px;
}

.hero-compare-readout {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: -2px 22px 0;
  color: #738094;
  font-size: 10px;
  letter-spacing: .01em;
}

.hero-compare-readout::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #74b8e7, #ef3b42 58%, #f3b55a);
  box-shadow: 0 0 0 5px rgba(237,49,47,.07);
}

.hero-compare-readout b {
  min-width: 42px;
  padding: 4px 8px;
  color: #202a38;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(86,105,130,.1);
  border-radius: 999px;
  text-align: center;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.hero-lab__bottom {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.hero-lab__season {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-motion-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #606d7e;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(91,107,128,.12);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(25,38,55,.06);
  font-size: 9px;
  white-space: nowrap;
}

.hero-motion-button .icon {
  width: 14px;
  height: 14px;
  color: #ed312f;
}

.hero-motion-button b {
  min-width: 29px;
  color: #1f2936;
  font-size: 8px;
}

.hero-motion-button:hover {
  color: #202a38;
  border-color: rgba(237,49,47,.2);
  transform: translateY(-1px);
}

/* A complete-window visual: the sash and glass remain the focus while the
   old-window defects and the AKFA sealing contour are visibly different. */
.hero-window-state--before .hero-window-frame::before,
.hero-window-state--after .hero-window-frame::before {
  content: "";
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 5px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(96,112,126,.18), rgba(255,255,255,.88), rgba(91,108,122,.2));
  box-shadow: 0 0 0 1px rgba(76,94,111,.08);
}

.hero-window-state--before .hero-window-frame::after,
.hero-window-state--after .hero-window-frame::after {
  content: "";
  position: absolute;
  z-index: 9;
  left: 0;
  right: 0;
  top: 50%;
  height: 5px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(99,115,128,.16), rgba(255,255,255,.9), rgba(93,108,122,.2));
  box-shadow: 0 0 0 1px rgba(76,94,111,.08);
}

.hero-window-state--before .hero-window-frame::before,
.hero-window-state--before .hero-window-frame::after {
  opacity: .78;
  filter: saturate(.7);
}

.hero-window-state--after .hero-window-frame::before,
.hero-window-state--after .hero-window-frame::after {
  opacity: 1;
}

.hero-window-state--after .hero-window-glass {
  outline: 1px solid rgba(48,129,181,.16);
  outline-offset: -3px;
}

.hero-window-state--before .hero-window-frame {
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.38),
    inset 0 0 0 8px rgba(129,143,154,.34),
    0 16px 30px rgba(45,65,84,.2),
    -8px 0 22px rgba(67,145,204,.12);
}

.hero-window-state--after .hero-window-frame {
  box-shadow:
    inset 0 0 0 2px #cdd6dd,
    inset 0 0 0 8px rgba(255,255,255,.9),
    0 20px 40px rgba(30,48,67,.2),
    0 0 0 1px rgba(111,129,148,.15),
    10px 0 28px rgba(245,171,82,.12);
}

/* Exact full-screen navigation is driven by JS. Native mandatory snap was
   fighting sticky header offsets on some browsers and caused partial screens. */
@media (min-width: 1024px) and (min-height: 680px) {
  html[data-screen-mode="on"][data-screen-layout="immersive"] {
    scroll-snap-type: none !important;
  }

  html[data-screen-mode="on"][data-screen-layout="immersive"] [data-fullpage-screen],
  html[data-screen-mode="on"][data-screen-layout="immersive"] [data-result-screen] {
    scroll-snap-align: none !important;
    scroll-margin-top: var(--v8-header-height) !important;
  }

  .technology-section,
  .methodology-section {
    min-height: var(--v8-stage-height) !important;
    height: var(--v8-stage-height) !important;
  }

  .technology-section > .container,
  .methodology-section > .container {
    min-height: 0;
    height: 100%;
  }
}

/* On ordinary 1280/1366/1440 laptops the left rail covered hero copy. The
   compact HUD provides the same navigation without competing with content. */
@media (min-width: 1024px) and (max-width: 1499px) and (min-height: 680px) {
  html[data-screen-mode="on"][data-screen-layout="immersive"] .screen-rail {
    display: none !important;
  }

  html[data-screen-mode="on"][data-screen-layout="immersive"] .screen-hud {
    display: grid !important;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  html[data-screen-mode="on"][data-screen-layout="immersive"][data-active-screen="advisor"] .screen-hud,
  html[data-screen-mode="on"][data-screen-layout="immersive"][data-active-screen^="result-"] .screen-hud,
  html[data-screen-mode="on"][data-screen-layout="immersive"][data-active-screen="options"] .screen-hud,
  html[data-screen-mode="on"][data-screen-layout="immersive"][data-active-screen="catalog-match"] .screen-hud {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (min-width: 1500px) and (min-height: 680px) {
  html[data-screen-mode="on"][data-screen-layout="immersive"] .screen-rail {
    display: flex !important;
  }

  html[data-screen-mode="on"][data-screen-layout="immersive"] .screen-hud {
    display: none !important;
  }
}

/* Hard contrast for every descendant on the final dark screens. */
.result-cta.result-screen,
.methodology-section {
  color-scheme: dark;
}

.result-cta.result-screen :is(h1,h2,h3,h4,h5,h6,strong,b),
.methodology-section :is(h1,h2,h3,h4,h5,h6,strong,b) {
  color: #fff !important;
}

.result-cta.result-screen :is(p,small,em,li),
.methodology-section :is(p,small,em,li) {
  color: #bcc6d3 !important;
}

.result-cta.result-screen .button--primary :is(span,b,strong),
.methodology-section .button :is(span,b,strong) {
  color: #111722 !important;
}

.result-cta.result-screen .text-button :is(span,b,strong) {
  color: #fff !important;
}

/* User-controlled motion pause. Interactive state changes remain available;
   only continuous decorative movement is paused. */
html[data-motion="paused"] .energy-field-canvas {
  opacity: .05 !important;
}

html[data-motion="paused"] :is(
  .hero-window-glass > i::before,
  .hero-window-draft i,
  .hero-window-shield i,
  .hero-window-seal,
  .hero-airflow i,
  .sound-wave i,
  .hero-mobile-glance__warm i,
  .hero-mobile-glance__cold i,
  .series-profile-hero__flows i,
  .noise-wave i,
  .screen-transition-layer i
) {
  animation-play-state: paused !important;
}

html[data-motion="paused"] [data-tilt-card] {
  transform: none !important;
}

@media (max-width: 1180px) {
  .hero-lab__bottom {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hero-motion-button {
    grid-column: 1 / -1;
    justify-self: end;
    min-height: 34px;
  }
}

@media (max-width: 760px) {
  .hero-compare-readout,
  .hero-motion-button {
    display: none !important;
  }

  .mobile-motion-mode {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-toggle__state {
    background: #f3a83d;
  }

  .hero-compare-readout,
  .hero-window-state,
  .hero-dashboard-card,
  .scene-result {
    transition: none !important;
  }
}
