/* Heliotos landing page. Brand tokens are unchanged; layout, rhythm and
   components are shared by every section of the page. */
:root {
    --ink: #101621;
    --ink-2: #1D2939;
    --muted: #5B6879;
    --muted-2: #7A8698;
    --line: #E4E9F0;
    --line-2: #D6DFEA;
    --surface: #FFFFFF;
    --soft: #F4F7FA;
    --soft-2: #EEF3F8;
    --blue: #0066FF;
    --blue-600: #0052CC;
    --blue-50: #EEF4FF;
    --blue-100: #DCE8FF;
    --teal: #0A7C66;
    --amber: #F5A623;
    --coral: #FF6B2C;
    --green: #00C853;
    --night: #0B1220;
    --night-2: #142034;
    --night-3: #1C2B45;
    --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-s: 0 1px 2px rgba(16, 22, 33, 0.06), 0 4px 12px -4px rgba(16, 22, 33, 0.08);
    --shadow: 0 18px 40px -18px rgba(16, 34, 66, 0.24), 0 4px 10px -4px rgba(16, 34, 66, 0.08);
    --shadow-l: 0 50px 90px -40px rgba(16, 34, 66, 0.34), 0 20px 40px -24px rgba(16, 34, 66, 0.18);
    --nav-h: 72px;
    --gutter: clamp(20px, 4.4vw, 56px);
    --max: 1344px;
    --section-y: clamp(88px, 11vw, 152px);
}

* { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--surface);
    overflow-x: clip;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }
:focus-visible { outline: 3px solid rgba(0, 102, 255, 0.45); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(0, 102, 255, 0.16); }
.skip-link {
    position: fixed;
    left: 16px; top: -60px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 10px;
    color: #fff;
    background: var(--ink);
    font-weight: 700;
    text-decoration: none;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container {
    width: 100%;
    max-width: calc(var(--max) + var(--gutter) * 2);
    margin: 0 auto;
    padding-inline: var(--gutter);
}

/* Type */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}
.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.12);
}
.section-head { max-width: 760px; }
.section-title {
    margin-top: 18px;
    font-size: clamp(34px, 4.1vw, 58px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.045em;
    text-wrap: balance;
}
.section-lead {
    margin-top: 20px;
    color: var(--muted);
    font-size: clamp(17px, 1.35vw, 19px);
    line-height: 1.62;
    text-wrap: pretty;
}
.accent { color: var(--blue); }

/* Buttons */
.button {
    --button-bg: var(--blue);
    --button-fg: #fff;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--button-fg);
    background: var(--button-bg);
    font: 700 15px/1.2 var(--font);
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.button svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.button:hover svg { transform: translateX(3px); }
.button.primary {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 10px 24px -10px rgba(0, 102, 255, 0.7);
}
.button.primary:hover {
    --button-bg: var(--blue-600);
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 16px 30px -12px rgba(0, 102, 255, 0.75);
}
.button.primary:active { transform: translateY(0); }
.button.secondary {
    --button-bg: #fff;
    --button-fg: var(--ink);
    border-color: var(--line-2);
    box-shadow: var(--shadow-s);
}
.button.secondary:hover { border-color: #BCC9D9; transform: translateY(-1px); }
.button.on-dark {
    --button-bg: rgba(255, 255, 255, 0.08);
    --button-fg: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}
.button.on-dark:hover { --button-bg: rgba(255, 255, 255, 0.14); transform: translateY(-1px); }
.button.light {
    --button-bg: #fff;
    --button-fg: var(--blue-600);
    box-shadow: 0 14px 30px -14px rgba(3, 20, 60, 0.6);
}
.button.light:hover { transform: translateY(-1px); }
.button:disabled { opacity: .6; cursor: progress; transform: none; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.text-link {
    color: var(--ink);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(16, 22, 33, 0.25);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
    transition: text-decoration-color .2s;
}
.text-link:hover { text-decoration-color: var(--blue); }

/* Navigation */
.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.nav.scrolled {
    border-bottom-color: rgba(16, 22, 33, 0.07);
    box-shadow: 0 10px 30px -24px rgba(16, 22, 33, 0.4);
}
.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.035em;
    text-decoration: none;
}
.brand img { width: 36px; height: auto; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.nav-links a {
    padding: 9px 13px;
    border-radius: 10px;
    color: var(--ink-2);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(16, 22, 33, 0.05); }
.nav-links a[aria-current="true"] { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-login {
    padding: 9px 12px;
    color: var(--ink-2);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
}
.nav-login:hover { color: var(--blue); }
.nav-cta.button { min-height: 42px; padding: 0 17px; font-size: 14px; border-radius: 11px; }
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: 4px;
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: currentColor;
    transition: transform .3s var(--ease), opacity .2s;
}
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero and story each hold a slot for the one 3D stage; the page script moves it
   between them while the comparison section fills the screen. */
.experience {
    position: relative;
    isolation: isolate;
    padding-top: var(--nav-h);
}
.experience::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: min(1100px, 130svh);
    z-index: -1;
    background:
        radial-gradient(640px circle at 82% 6%, rgba(245, 166, 35, 0.14), transparent 62%),
        radial-gradient(900px circle at 8% 0%, rgba(0, 102, 255, 0.07), transparent 58%);
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent);
    mask-image: linear-gradient(to bottom, #000 45%, transparent);
    pointer-events: none;
}
.experience-grid {
    --stage-h: clamp(520px, calc(100svh - var(--nav-h) - 40px), 900px);
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    column-gap: clamp(40px, 3.6vw, 72px);
    align-items: start;
}
.hero-copy {
    grid-column: 1;
    grid-row: 1;
    min-height: calc(var(--stage-h) + 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0 48px;
}
.hero-copy h1 {
    margin-top: 22px;
    font-size: clamp(42px, 4.75vw, 72px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.052em;
    text-wrap: balance;
}
.hero-text {
    max-width: 540px;
    margin-top: 26px;
    color: var(--muted);
    font-size: clamp(17px, 1.3vw, 19.5px);
    line-height: 1.62;
    text-wrap: pretty;
}
.hero-text strong { color: var(--ink); font-weight: 700; }
.hero-actions { margin-top: 34px; }
.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 18px; height: 18px; flex: none; color: var(--teal); }
.hero-reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: hero-in .9s var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 90ms + 80ms);
}
@keyframes hero-in { to { opacity: 1; transform: none; } }

.stage-col {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    padding-top: 20px;
}
/* The two places for the one 3D stage: beside the hero and beside the story steps. */
.stage-slot { position: relative; height: var(--stage-h); }
.product-stage {
    position: relative;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
    /* Frameless: the model stands on the page, lit softly from below. */
    background: radial-gradient(58% 46% at 50% 58%, rgba(0, 102, 255, 0.05), transparent 72%);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.intro-pending .product-stage { opacity: 0; transform: translateY(24px) scale(.985); }
/* Without the page script the model still appears. */
.intro-pending:not(.intro-managed) .product-stage { animation: stage-fallback .6s var(--ease) 3s forwards; }
@keyframes stage-fallback { to { opacity: 1; transform: none; } }
.product-shell,
.hero-visual,
.hero-configurator-wrap,
.hero-configurator-scene {
    position: absolute;
    inset: 0;
}
.product-shell { z-index: 1; }
/* The neighbourhood fades out in an oval, not a box. The renderer publishes how much
   context is visible (1 = opening shot, 0 = house only), so the vignette opens up
   exactly as the camera moves in and never clips the house during the story. */
.hero-configurator-scene canvas {
    --vignette-open: calc(1 - var(--scene-context, 1));
    --vignette: radial-gradient(ellipse calc(52% + 30% * var(--vignette-open)) calc(50% + 30% * var(--vignette-open)) at 50% 54%,
        #000 calc(55% + 45% * var(--vignette-open)), transparent 100%);
    -webkit-mask-image: var(--vignette), linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: var(--vignette), linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}
.hero-visual[data-roof-story-state="loading"]::after {
    content: "3D-Modell wird geladen …";
    position: absolute;
    left: 50%;
    top: 56%;
    transform: translate(-50%, -50%);
    color: var(--muted-2);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.005em;
    animation: loading-pulse 1.6s ease-in-out infinite;
}
@keyframes loading-pulse { 50% { opacity: .45; } }
.roof-story-unavailable {
    position: absolute;
    inset: 42% 12% auto;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    text-align: center;
}

/* Opening animation: the address is typed into a search field, then the model rises. */
.hero-search-intro {
    position: absolute;
    left: 0;
    right: 0;
    top: 38%;
    z-index: 12;
    width: min(460px, calc(100% - 64px));
    margin: 0 auto;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}
.hero-search-card { display: grid; gap: 8px; }
.hero-search-label {
    color: var(--blue);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero-search-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 9px 9px 9px 14px;
    border: 1px solid rgba(0, 102, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 30px 70px -30px rgba(16, 34, 66, 0.45), 0 8px 20px -12px rgba(16, 34, 66, 0.18);
}
.hero-search-icon,
.hero-search-go { display: grid; place-items: center; border-radius: 11px; }
.hero-search-icon { width: 36px; height: 36px; color: var(--blue); background: var(--blue-50); }
.hero-search-go { width: 48px; height: 48px; color: #fff; background: var(--blue); box-shadow: 0 12px 26px -10px rgba(0, 102, 255, 0.7); }
.hero-search-icon svg,
.hero-search-go svg { width: 19px; height: 19px; }
.hero-search-value {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: clamp(17px, 1.5vw, 21px);
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.hero-search-text { overflow: hidden; }
.hero-search-caret {
    width: 2px;
    height: 1.15em;
    margin-left: 2px;
    border-radius: 2px;
    background: var(--blue);
    animation: caret .78s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.hero-search-cursor {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    opacity: 0;
    color: var(--night);
    filter: drop-shadow(0 10px 22px rgba(16, 22, 33, 0.28));
}
.hero-search-cursor svg { display: block; width: 100%; height: 100%; }
.roof-story-context-credit {
    position: absolute;
    right: 18px;
    bottom: 14px;
    z-index: 9;
    color: #6B7C8C;
    font-size: 10px;
    line-height: 1.4;
    transition: opacity .3s;
}
.roof-story-context-credit a { color: inherit; text-underline-offset: 2px; }
.product-stage.is-story .roof-story-context-credit { opacity: 0; pointer-events: none; }

/* Per-mode overlays: status chip at the top, caption or phases at the bottom. */
.roof-story-panel {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .36s var(--ease), visibility .36s;
}
.product-stage[data-story-mode="data"] [data-roof-story-panel="data"],
.product-stage[data-story-mode="obstacles"] [data-roof-story-panel="obstacles"],
.product-stage[data-story-mode="potential"] [data-roof-story-panel="potential"],
.product-stage[data-story-mode="lead"] [data-roof-story-panel="lead"] { opacity: 1; visibility: visible; }
.roof-story-heading {
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 9px;
    height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    color: #fff;
    background: rgba(16, 22, 33, 0.86);
    box-shadow: 0 12px 28px -16px rgba(16, 22, 33, 0.6);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .38s var(--ease), transform .5s var(--ease);
}
.roof-story-heading::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: #3DDC97;
    box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.2);
}
.roof-story-heading > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.roof-story-heading > strong { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.roof-story-heading s { opacity: .55; }
.roof-story-heading em { font-style: normal; color: #FFB44D; }
.roof-story-panel[data-active="true"] > .roof-story-heading { opacity: 1; transform: none; transition-delay: .1s; }
.roof-story-caption,
.roof-story-chapters {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(214, 223, 234, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px -20px rgba(16, 34, 66, 0.45);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s, transform .5s var(--ease);
}
.roof-story-caption {
    padding: 11px 14px;
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 700;
}
.roof-story-caption span { margin-left: auto; color: var(--muted-2); font-weight: 500; }
.roof-story-chapters span {
    position: relative;
    flex: 1;
    padding: 9px 8px;
    border-radius: 9px;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    transition: color .3s, background-color .3s;
}
.roof-story-chapters span[data-active="true"] { color: var(--blue); background: var(--blue-50); }
.roof-story-chapters span[data-active="true"]::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue);
}
.roof-story-panel[data-active="true"] .roof-story-caption,
.roof-story-panel[data-active="true"] .roof-story-chapters { opacity: 1; transform: none; }

.hot-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #B3400F;
    background: #FFF0E8;
    font-size: 11.5px;
    font-weight: 800;
}
.hot-tag svg { width: 12px; height: 12px; }

/* Story player: four steps beside the one 3D stage. It plays by itself while it is on
   screen, every step can be chosen, and the section stays about one screen tall. */
.story-section {
    --story-pad: clamp(56px, 6vw, 96px);
    padding-block: var(--story-pad) var(--section-y);
    /* Anchors land on the heading, so heading and player fit on one screen. */
    scroll-margin-top: calc(var(--nav-h) + 24px - var(--story-pad));
}
.story-section::before { content: none; }
.story-head {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    column-gap: clamp(40px, 3.6vw, 72px);
    align-items: end;
    margin-bottom: clamp(28px, 3vw, 44px);
}
.story-head .section-title { font-size: clamp(34px, 3.4vw, 50px); }
.story-head .section-lead { max-width: 540px; margin: 0 0 4px; }
.story-player {
    --player-h: clamp(460px, calc(100svh - var(--nav-h) - 230px), 760px);
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    column-gap: clamp(40px, 3.6vw, 72px);
    align-items: stretch;
}
.story-copy {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    min-height: var(--player-h);
}
.story-player .stage-col { padding-top: 0; }
/* The model is as tall as the steps beside it, never shorter than the player. */
.story-player .stage-slot { height: 100%; min-height: var(--player-h); }
/* Step bar: number, name and a progress line that fills while the step plays. */
.story-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}
.story-bar button {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 7px;
    justify-items: start;
    padding: 0;
    border: 0;
    color: var(--muted-2);
    background: none;
    text-align: left;
    cursor: pointer;
}
.story-bar b { font: 700 11.5px/1 var(--mono); letter-spacing: 0.06em; }
.story-bar span { color: var(--muted); font-size: 14px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; transition: color .25s; }
.story-bar i { position: relative; width: 100%; height: 3px; margin-top: 4px; overflow: hidden; border-radius: 3px; background: var(--line); }
.story-bar i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--blue);
    transform: scaleX(var(--step-progress, 0));
    transform-origin: left;
}
.story-bar button:hover span { color: var(--ink); }
.story-bar button[aria-current="step"] { color: var(--blue); }
.story-bar button[aria-current="step"] span { color: var(--ink); }
/* All steps share one cell: switching crossfades and never changes the height. */
.story-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.story-step { grid-area: 1 / 1; }
.story-step-inner {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s linear .3s;
}
.story-step.is-active .story-step-inner {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .45s var(--ease) .1s, transform .6s var(--ease) .1s, visibility 0s;
}
/* Without the player script every step stays readable, one below the other. */
.story-player:not([data-player-state]) .story-steps { gap: 36px; }
.story-player:not([data-player-state]) .story-step { grid-area: auto; }
.story-player:not([data-player-state]) .story-step-inner { opacity: 1; visibility: visible; transform: none; }
.story-step h3 {
    max-width: 520px;
    font-size: clamp(24px, 2.1vw, 32px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
.story-step h3 s { color: var(--muted-2); text-decoration-thickness: 3px; text-decoration-color: rgba(255, 107, 44, 0.7); }
.story-step h3 em { font-style: normal; color: var(--coral); }
.story-step-inner > p:not(.story-benefit):not(.story-note) {
    max-width: 520px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 16.5px;
    line-height: 1.6;
}
.story-benefit {
    display: flex;
    gap: 12px;
    max-width: 520px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid var(--blue-100);
    border-radius: 14px;
    color: var(--ink-2);
    background: linear-gradient(180deg, #F6F9FF, #EEF4FF);
    font-size: 14.5px;
    line-height: 1.5;
}
.story-benefit svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--blue); }
.story-benefit b { color: var(--blue-600); }
.story-phases {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 520px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.story-phases li {
    padding: 6px 11px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    color: var(--muted);
    background: #fff;
    font-size: 12.5px;
    font-weight: 700;
    transition: color .3s, border-color .3s, background-color .3s;
}
.story-phases li[data-active="true"] { color: var(--blue); border-color: rgba(0, 102, 255, 0.35); background: var(--blue-50); }
.story-note { max-width: 520px; margin-top: 12px; color: var(--muted-2); font-size: 12px; line-height: 1.55; }
.story-step h3.story-lead-equation { line-height: 1.12; }
.story-equation {
    display: grid;
    gap: 6px;
    max-width: 520px;
    margin: 16px 0 0;
}
.story-equation > div {
    display: grid;
    grid-template-columns: 124px 1fr;
    gap: 14px;
    align-items: baseline;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .3s, background-color .3s;
}
.story-equation dt { color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: -0.01em; }
.story-equation dd { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.story-equation > div[data-active="true"] { border-color: rgba(0, 102, 255, 0.35); background: var(--blue-50); }
.story-equation > div[data-active="true"] dt { color: var(--blue-600); }
.story-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 28px;
}
.story-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    justify-content: center;
    /* One width for all three labels, so the row never re-wraps mid-story. */
    min-width: 158px;
    min-height: 50px;
    padding: 0 18px 0 15px;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    color: var(--ink);
    background: #fff;
    font: 700 15px/1 var(--font);
    cursor: pointer;
    transition: border-color .25s, transform .25s var(--ease);
}
.story-toggle:hover { border-color: #BCC9D9; transform: translateY(-1px); }
.story-toggle svg { display: none; width: 18px; height: 18px; flex: none; color: var(--blue); }
.story-toggle[data-state="playing"] [data-icon="pause"],
.story-toggle[data-state="paused"] [data-icon="play"],
.story-toggle[data-state="finished"] [data-icon="replay"] { display: block; }
.story-cta-short { display: none; }
/* A chosen step fades the model out and back in instead of cutting hard. */
.product-stage .product-shell,
.product-stage .roof-annotations { transition: opacity .17s ease; }
.product-stage.is-cutting .product-shell,
.product-stage.is-cutting .roof-annotations { opacity: 0; }
.anchor-alias { position: absolute; width: 0; height: 0; overflow: hidden; }
.nav-links-login { display: none; }

/* Comparison */
.compare {
    position: relative;
    isolation: isolate;
    padding-block: var(--section-y);
    color: #fff;
    background: var(--night);
    overflow: hidden;
}
.compare::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(700px circle at 78% 18%, rgba(0, 102, 255, 0.28), transparent 60%),
        radial-gradient(520px circle at 12% 90%, rgba(245, 166, 35, 0.12), transparent 60%);
}
.compare .eyebrow { color: #6EA8FF; }
.compare .eyebrow::before { box-shadow: 0 0 0 4px rgba(110, 168, 255, 0.18); }
.compare .section-lead { color: #A7B3C7; }
.compare-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(18px, 2.4vw, 36px);
    margin-top: clamp(48px, 6vw, 80px);
}
.compare-card {
    position: relative;
    border-radius: 24px;
    color: var(--ink);
}
.compare-card-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.compare-card.form-card .compare-card-label { color: #8C98AD; }
.compare-card.lead-card .compare-card-label { color: #6EA8FF; }
.form-mock {
    padding: 26px;
    border-radius: 22px;
    background: #E9EDF2;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
    transform: rotate(-1.2deg);
}
.form-mock-title { color: #4E5A6B; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.form-mock-field { margin-top: 14px; }
.form-mock-field span { display: block; color: #6B7686; font-size: 12px; font-weight: 700; }
.form-mock-field div {
    margin-top: 6px;
    padding: 11px 13px;
    border: 1px solid #CDD4DD;
    border-radius: 9px;
    color: #5D6878;
    background: #F6F7F9;
    font-size: 14.5px;
}
.form-mock-field.guess div { color: #8A5A2B; font-style: italic; }
.form-mock-field.guess div::after { content: "?"; margin-left: 2px; color: #C0803F; font-weight: 800; font-style: normal; }
.form-mock-field.message div { min-height: 64px; }
.compare-verdict {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding: 0 4px;
    font-size: 14px;
    line-height: 1.5;
}
.compare-verdict svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.form-card .compare-verdict { color: #9AA6BA; }
.form-card .compare-verdict svg { color: #FF8A5C; }
.lead-card .compare-verdict { color: #C9D6EA; }
.lead-card .compare-verdict svg { color: #3DDC97; }
.compare-vs {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
}
.lead-mail {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 40px 90px -30px rgba(0, 40, 120, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.lead-mail-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #FAFCFF, #F3F7FC);
}
.lead-mail-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 12px;
    color: #fff;
    background: var(--blue);
}
.lead-mail-icon svg { width: 20px; height: 20px; }
.lead-mail-head div strong { display: block; font-size: 15px; letter-spacing: -0.015em; }
.lead-mail-head div span { display: block; color: var(--muted-2); font-size: 12.5px; }
.lead-mail-head .hot-tag { margin-left: auto; white-space: nowrap; }
/* The enquiry carries the planned roof as a 3D image and the aerial photo. */
.lead-media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 22px 18px;
    border-bottom: 1px solid var(--line);
}
.lead-media-item { margin: 0; }
.lead-media-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #EEF3F8;
}
.lead-media-item figcaption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    font-size: 12.5px;
}
.lead-media-item figcaption b { color: var(--ink); font-weight: 750; letter-spacing: -0.01em; }
.lead-media-item figcaption span { color: var(--muted-2); font-size: 11.5px; }
.lead-mail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin: 0;
    border-bottom: 1px solid var(--line);
    background: var(--line);
}
.lead-row { padding: 13px 22px; background: #fff; }
.lead-row.wide { grid-column: 1 / -1; }
.lead-row dt {
    color: var(--muted-2);
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.lead-row dd { margin: 4px 0 0; color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: -0.015em; }
.lead-row dd small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.lead-mail-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px;
    background: #FAFBFD;
}
.lead-mail-foot a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 10px;
    color: #fff;
    background: var(--blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.lead-mail-foot a svg { width: 15px; height: 15px; }
.lead-mail-foot small { color: var(--muted-2); font-size: 11.5px; }
.compare-next { margin-top: clamp(40px, 5vw, 64px); text-align: center; }
.compare-next .button:hover svg { transform: translateY(3px); }
.outcomes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: clamp(56px, 7vw, 96px);
}
.outcome {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}
.outcome svg { width: 26px; height: 26px; color: #6EA8FF; }
.outcome h3 { margin-top: 18px; font-size: 20px; font-weight: 800; letter-spacing: -0.025em; }
.outcome p { margin-top: 8px; color: #A7B3C7; font-size: 15.5px; line-height: 1.6; }

/* Customer area */
.section { padding-block: var(--section-y); }
.section.soft { background: var(--soft); }
.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
}
.feature-list {
    display: grid;
    gap: 4px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}
.feature-list li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--blue);
    background: #fff;
    box-shadow: var(--shadow-s);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-list h3 { font-size: 16.5px; font-weight: 800; letter-spacing: -0.02em; }
.feature-list p { margin-top: 3px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.workspace-visual { position: relative; padding: 0 0 12% 6%; }
.shot {
    margin: 0;
    overflow: hidden;
    border: 1px solid #D7E0EB;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-l);
}
.shot img { width: 100%; height: auto; }
.shot.secondary {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46%;
    border-radius: 16px;
    box-shadow: 0 40px 80px -30px rgba(16, 34, 66, 0.45);
}

/* Design + demo request */
.design {
    position: relative;
    isolation: isolate;
    padding-block: var(--section-y);
    color: #fff;
    background: var(--night);
    overflow: hidden;
}
.design::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(760px circle at 18% 12%, rgba(0, 102, 255, 0.3), transparent 60%),
        radial-gradient(600px circle at 90% 80%, rgba(10, 124, 102, 0.22), transparent 60%);
}
.design .eyebrow { color: #6EA8FF; }
.design .eyebrow::before { box-shadow: 0 0 0 4px rgba(110, 168, 255, 0.18); }
.design .section-lead { color: #A7B3C7; }
.design-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    align-items: start;
    gap: clamp(32px, 4.5vw, 72px);
    margin-top: clamp(40px, 5vw, 64px);
}
.design-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}
.design-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 12px;
    border: 0;
    border-radius: 11px;
    color: #A7B3C7;
    background: transparent;
    font: 700 14px/1.25 var(--font);
    text-align: left;
    cursor: pointer;
    transition: background-color .25s, color .25s;
}
.design-tab b {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    font-family: var(--mono);
    font-size: 12px;
}
.design-tab:hover { color: #fff; }
.design-tab[aria-selected="true"] { color: var(--ink); background: #fff; }
.design-tab[aria-selected="true"] b { background: var(--blue); }
.design-preview {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: #0F1A2C;
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8);
}
.design-preview-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 42px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #8D9AB0;
    font-size: 12px;
    font-weight: 600;
}
.design-preview-dots { display: inline-flex; gap: 6px; }
.design-preview-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.design-preview-media { position: relative; aspect-ratio: 16 / 10; background: #E9EFF6; }
#design-preview-image { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: opacity .3s; }
.design-preview-media.is-swapping #design-preview-image { opacity: .2; }
.design-panels { margin-top: 18px; min-height: 52px; }
.design-panel p { color: #A7B3C7; font-size: 15.5px; line-height: 1.6; }
.design-panel[hidden] { display: none; }
.design-panel strong { color: #fff; }

.demo-card {
    position: relative;
    padding: clamp(24px, 2.6vw, 34px);
    border-radius: 24px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.demo-card > h3 { font-size: clamp(24px, 2.1vw, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -0.035em; }
.demo-card > p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.demo-card .copy-emphasis { color: var(--ink); font-weight: 800; }
.instant-highlight { color: var(--blue); }
.demo-form { display: grid; gap: 14px; margin-top: 24px; }
.demo-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-field { display: grid; gap: 6px; min-width: 0; }
.demo-field label { color: var(--ink-2); font-size: 13px; font-weight: 700; }
.demo-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line-2);
    border-radius: 11px;
    color: var(--ink);
    background: #fff;
    font: 500 16px/1.2 var(--font);
    transition: border-color .2s, box-shadow .2s;
}
.demo-field input::placeholder { color: #9AA5B4; }
.demo-field input:hover { border-color: #BCC9D9; }
.demo-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.14); }
.demo-captcha-note { color: var(--muted-2); font-size: 12.5px; line-height: 1.45; }
.demo-captcha { display: none; width: 100%; min-height: 68px; overflow: hidden; }
.demo-captcha.active { display: block; }
.demo-mail-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
    cursor: pointer;
}
.demo-mail-consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.demo-mail-consent:has(input:focus-visible) { outline: 2px solid rgba(0, 102, 255, 0.3); outline-offset: 4px; border-radius: 4px; }
.demo-status-row { display: flex; min-width: 0; }
.demo-form-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid rgba(0, 102, 255, 0.18);
    border-radius: 999px;
    color: var(--blue);
    background: rgba(0, 102, 255, 0.08);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.3;
}
.demo-form-status:empty { display: none; }
.demo-form-status.is-error { color: #A33B24; border-color: rgba(255, 107, 44, 0.34); background: rgba(255, 107, 44, 0.1); }
.demo-form-status.is-success { color: #064B3D; border-color: rgba(10, 124, 102, 0.28); background: rgba(10, 124, 102, 0.1); }
.demo-form-footer { display: grid; gap: 12px; margin-top: 2px; }
.demo-form-footer .button { width: 100%; }
.demo-form-footer .text-link { justify-self: center; font-size: 13.5px; color: var(--muted); }
.demo-progress { display: none; gap: 8px; }
.demo-progress.active { display: grid; }
.demo-progress-track { position: relative; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(16, 22, 33, 0.08); }
.demo-progress-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--teal)); transition: width .42s ease; }
.demo-progress-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.demo-progress-meta span:first-child { color: var(--ink-2); font-weight: 700; }
.demo-success {
    display: none;
    align-content: center;
    justify-items: start;
    gap: 14px;
    min-height: 420px;
}
.demo-success:focus { outline: none; }
.demo-card.is-success > h3,
.demo-card.is-success > p,
.demo-card.is-success .demo-form > :not(.demo-success) { display: none !important; }
.demo-card.is-success .demo-form { margin-top: 0; }
.demo-card.is-success .demo-success { display: grid; }
.demo-success-mark {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    background: var(--teal);
    box-shadow: 0 18px 40px -10px rgba(10, 124, 102, 0.5);
    font-size: 26px;
    font-weight: 800;
}
.demo-success-kicker { color: var(--teal); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.demo-success h3 { font-size: clamp(28px, 2.6vw, 38px); font-weight: 800; line-height: 1.08; letter-spacing: -0.04em; }
.demo-success-copy { color: var(--muted); font-size: 15px; }
.demo-success-link-block { width: 100%; display: grid; gap: 4px; padding: 12px 0; border-block: 1px solid var(--line); }
.demo-success-link-label { color: var(--muted-2); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.demo-success-url { color: var(--ink); font-family: var(--mono); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; text-underline-offset: 4px; }
.demo-success-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.demo-success-reset {
    padding: 0;
    border: 0;
    color: var(--muted);
    background: transparent;
    font: 700 14px var(--font);
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

/* Devices */
.devices-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    align-items: center;
    gap: clamp(32px, 6vw, 96px);
}
.device-stage { position: relative; min-height: 520px; display: grid; place-items: center; }
.device-stack { position: relative; width: min(760px, 100%); min-height: 480px; perspective: 1400px; }
.device-shot {
    position: absolute;
    margin: 0;
    filter: drop-shadow(0 26px 44px rgba(16, 22, 33, 0.2));
}
.device-frame, .device-capture { display: block; width: 100%; }
.device-frame { position: relative; z-index: 2; height: auto; pointer-events: none; }
.device-capture { position: absolute; z-index: 1; height: 100%; object-fit: cover; object-position: center; background: #DDEBFA; }
.device-shot.notebook { left: 0; top: 24%; width: 66%; transform: rotateX(3deg) rotateY(-7deg) rotateZ(-1deg); z-index: 2; }
.device-shot.notebook .device-capture { left: 12.1%; top: 7.35%; width: 75.8%; height: 81%; border-radius: 2px; }
.device-shot.tablet { right: 16%; top: 9%; width: 30%; transform: rotateX(2deg) rotateY(10deg) rotateZ(3deg); z-index: 4; }
.device-shot.tablet .device-capture { left: 4.8%; top: 6.1%; width: 90.1%; height: 86.8%; }
.device-shot.phone { right: 17%; bottom: 8%; width: 13%; min-width: 92px; transform: rotateX(2deg) rotateY(8deg) rotateZ(-2deg); z-index: 5; }
.device-shot.phone .device-capture { left: 4.4%; top: 1.9%; width: 91.2%; height: 96%; border-radius: 10% / 5%; }
.check-list { display: grid; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; color: var(--ink-2); font-size: 16px; font-weight: 600; }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--teal); }

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}
.faq-aside { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq-contact {
    display: grid;
    gap: 6px;
    margin-top: 32px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--soft);
    font-size: 15px;
}
.faq-contact strong { font-size: 16px; letter-spacing: -0.015em; }
.faq-contact span { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 4px;
    font-size: clamp(17px, 1.4vw, 19.5px);
    font-weight: 750;
    letter-spacing: -0.02em;
    list-style: none;
    cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 10px;
    background:
        linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
        linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat,
        var(--soft);
    transition: transform .3s var(--ease), background-color .2s;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
    background:
        linear-gradient(#fff, #fff) center / 12px 2px no-repeat,
        linear-gradient(#fff, #fff) center / 2px 12px no-repeat,
        var(--blue);
}
.faq-item summary:hover { color: var(--blue); }
.faq-answer { padding: 0 60px 26px 4px; color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.faq-answer p + p { margin-top: 10px; }
.faq-answer strong { color: var(--ink); }

/* Closing call to action */
.closing { padding-block: clamp(40px, 6vw, 72px) var(--section-y); }
.closing-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(40px, 6vw, 88px);
    border-radius: 32px;
    color: #fff;
    background: linear-gradient(135deg, #0A5AE0 0%, #0066FF 45%, #2E83FF 100%);
    box-shadow: 0 50px 100px -50px rgba(0, 70, 190, 0.8);
}
.closing-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(560px circle at 88% 0%, rgba(245, 166, 35, 0.42), transparent 60%);
}
.closing-card .eyebrow { color: #fff; }
.closing-card .eyebrow::before { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22); }
.closing-card h2 {
    max-width: 820px;
    margin-top: 18px;
    font-size: clamp(34px, 4.4vw, 62px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.05em;
    text-wrap: balance;
}
.closing-card p { max-width: 620px; margin-top: 20px; color: rgba(255, 255, 255, 0.84); font-size: clamp(17px, 1.3vw, 19px); }
.closing-card .button-row { margin-top: 34px; }
.closing-contact { margin-top: 26px; color: rgba(255, 255, 255, 0.8); font-size: 14.5px; }
.closing-contact a { color: #fff; font-weight: 700; text-underline-offset: 4px; }

/* Footer */
.footer { padding: 56px 0 40px; color: #A7B3C7; background: var(--night); font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px; }
.footer .brand { color: #fff; }
.footer-claim { max-width: 340px; margin-top: 14px; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { color: #D8E0EC; font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #7F8BA0;
    font-size: 12.5px;
}
.footer-bottom a { color: inherit; }

/* Scroll reveal */
/* Hidden only once the reveal script runs; without it every section stays visible. */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--reveal-delay, 0) * 1ms); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* Short laptop screens: keep the complete hero above the fold. */
@media (min-width: 1081px) and (max-width: 1380px) {
    .hero-actions .button { padding: 0 18px; font-size: 14.5px; }
}
@media (min-width: 1081px) and (max-height: 820px) {
    .hero-copy h1 { font-size: clamp(40px, 4.1vw, 58px); }
    .hero-text { margin-top: 20px; font-size: 17px; }
    .hero-actions { margin-top: 26px; }
    .hero-proof { margin-top: 22px; }
}

/* Tablet and below: one column, the model above its copy. */
@media (max-width: 1080px) {
    :root { --nav-h: 64px; }
    .nav-links { display: none; }
    .nav-actions { margin-left: auto; }
    .nav-toggle { display: block; }
    .nav.is-open .nav-links {
        position: absolute;
        inset: var(--nav-h) 0 auto;
        display: grid;
        gap: 2px;
        padding: 12px var(--gutter) 20px;
        border-bottom: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 30px 50px -30px rgba(16, 22, 33, 0.35);
    }
    .nav.is-open .nav-links a { padding: 14px 8px; font-size: 17px; border-radius: 12px; }
    .nav.is-open .nav-links .nav-links-login { display: block; margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0; color: var(--blue); }
    .nav.is-open { background: #fff; }

    .experience-grid {
        --stage-h: clamp(260px, 42svh, 460px);
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-copy { grid-column: 1; min-height: 0; padding: 40px 0 36px; }
    .hero-copy h1 { font-size: clamp(38px, 7.2vw, 60px); }
    .stage-col {
        grid-column: 1;
        grid-row: 2;
        margin-inline: calc(var(--gutter) * -1);
        padding: 0;
        background: #fff;
    }
    .hero-search-intro { top: 22px; width: calc(100% - 32px); }
    .story-head { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
    /* Phones and tablets: model on top, then the step bar and the running step. */
    .story-player { --player-h: clamp(260px, 42svh, 460px); grid-template-columns: minmax(0, 1fr); }
    .story-player .stage-col { grid-row: 1; }
    .story-copy { grid-column: 1; grid-row: 2; min-height: 0; padding-top: 14px; }
    .story-bar { gap: 10px; margin-bottom: 18px; }
    .story-step h3 { font-size: clamp(24px, 4.6vw, 30px); }
    .story-step-inner > p:not(.story-benefit):not(.story-note) { font-size: 16px; }
    .story-controls { padding-top: 22px; }

    .compare-grid { grid-template-columns: minmax(0, 1fr); }
    .compare-vs { justify-self: center; }
    .form-mock { transform: none; }
    .outcomes { grid-template-columns: minmax(0, 1fr); }
    .workspace-grid, .design-grid, .devices-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
    .design-form-col { order: -1; }
    .faq-aside { position: static; }
    .device-stage { min-height: 420px; }
}

@media (max-width: 620px) {
    body { font-size: 16px; }
    .nav-cta.button { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
    .nav-login { display: none; }
    .brand { font-size: 18px; }
    .brand img { width: 32px; }
    .hero-copy { padding: 30px 0 28px; }
    .hero-copy h1 { font-size: clamp(36px, 10.4vw, 46px); line-height: 1.02; }
    .hero-text { margin-top: 18px; font-size: 16.5px; }
    .hero-actions { margin-top: 26px; }
    .hero-actions .button { width: 100%; }
    .hero-proof { margin-top: 22px; font-size: 13.5px; }
    .hero-search-row { grid-template-columns: 32px minmax(0, 1fr) 42px; gap: 10px; min-height: 58px; padding: 8px 8px 8px 12px; }
    .hero-search-icon { width: 32px; height: 32px; }
    .hero-search-go { width: 42px; height: 42px; }
    .hero-search-value { font-size: 16px; }
    .roof-story-panel { padding: 12px; }
    .roof-story-heading { height: 42px; padding: 0 12px; }
    .roof-story-heading > strong { font-size: 12px; }
    .roof-story-caption { display: none; }
    .roof-story-chapters span { padding: 7px 4px; font-size: 11px; }
    .roof-story-context-credit { right: 12px; bottom: 10px; }
    .section-title { font-size: clamp(31px, 8.6vw, 40px); }
    .story-step h3 { font-size: 24px; }
    .story-step-inner > p:not(.story-benefit):not(.story-note) { font-size: 15px; line-height: 1.55; }
    .story-phases, .story-equation { display: none; }
    .story-benefit { font-size: 13.5px; }
    .story-note { font-size: 11.5px; margin-top: 10px; }
    /* Phones: the play control shrinks to its icon so the CTA keeps the row. */
    .story-controls { flex-wrap: nowrap; }
    .story-controls .button { flex: 1 1 auto; justify-content: center; padding-inline: 16px; }
    .story-toggle { flex: none; min-width: 50px; width: 50px; padding: 0; }
    .story-toggle [data-story-toggle-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    /* Only the numbers fit side by side; the running step names itself below. */
    .story-bar span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .lead-mail-body { grid-template-columns: minmax(0, 1fr); }
    .lead-row:nth-child(odd) { border-right: 0; }
    .lead-mail-head { flex-wrap: wrap; padding: 16px; }
    .lead-media { gap: 10px; padding: 14px 16px; }
    .lead-media-item figcaption { display: block; }
    .lead-media-item figcaption span { display: block; margin-top: 2px; }
    .lead-mail-head .hot-tag { margin-left: 52px; }
    .lead-row { padding: 12px 16px; }
    .lead-mail-foot { flex-direction: column; align-items: stretch; padding: 14px 16px; }
    .lead-mail-foot a { justify-content: center; }
    .form-mock { padding: 20px; }
    .demo-field-row { grid-template-columns: minmax(0, 1fr); }
    .design-tabs { grid-template-columns: minmax(0, 1fr); }
    .device-stage { min-height: 320px; overflow: hidden; }
    .device-stack { min-height: 300px; }
    .device-shot.notebook { width: 74%; top: 22%; }
    .device-shot.tablet { width: 34%; top: 4%; right: 8%; }
    .device-shot.phone { width: 22%; right: 14%; bottom: 3%; min-width: 70px; }
    .faq-answer { padding-right: 8px; }
    .closing-card { border-radius: 24px; }
    .closing-card .button { width: 100%; }
    .shot.secondary { width: 58%; }
}

/* Short phones: model, step and installer benefit fit on one screen. */
@media (max-width: 620px) and (max-height: 760px) {
    .story-step-inner > p:not(.story-benefit):not(.story-note) { display: none; }
    .story-step h3 { font-size: 22px; }
}
/* Short desktop windows: tighter steps so the player fits beside the model. */
@media (min-width: 1081px) and (max-height: 820px) {
    .story-bar { margin-bottom: 20px; }
    .story-step h3 { font-size: 24px; }
    .story-step-inner > p:not(.story-benefit):not(.story-note) { margin-top: 10px; font-size: 15.5px; }
    .story-benefit { margin-top: 12px; padding: 10px 12px; font-size: 14px; }
    .story-note { display: none; }
    .story-equation > div { padding: 7px 12px; }
    .story-controls { padding-top: 20px; }
}

/* Small phones: the short call to action keeps the play control beside it. */
@media (max-width: 420px) {
    .story-cta-full { display: none; }
    .story-cta-short { display: inline; }
}
@media (max-width: 380px) {
    .eyebrow { font-size: 10.5px; letter-spacing: 0.05em; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
    .hero-reveal, .product-stage, [data-reveal] { opacity: 1; transform: none; }
}
