/* MST Energy home, v2. Built from the designer's Paper file "Home, Desktop, B (Lights on)"
   (MST Design System v1.1). Values at 1440 wide are the artboard's own; smaller screens use the
   design system's breakpoints (1200 / 900 / 600). */

@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/inter-600-arrows.woff2") format("woff2"); unicode-range: U+2192, U+20A6; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/poppins-700-mst.woff2") format("woff2"); unicode-range: U+004D, U+0053, U+0054; }

:root {
  --surface: #FDF8F3; --surface-raised: #FFFFFF; --surface-tint: #E8DDD0; --surface-inverse: #2C1810;
  --ink: #2C1810; --ink-muted: #5C4033; --ink-subtle: #7A6652; --ink-inverse: #FDF8F3; --ink-inverse-muted: #D5D1CF;
  --line: #E8DDD0; --line-strong: #807470; --focus: #2C1810;
  --brand: #F5B731; --brand-deep: #D4A017; --on-brand: #2C1810;
  --action: #C0392B; --action-hover: #A53125; --on-action: #FFFFFF;
  --success-ink: #3D6B35; --success-bg: #E7EFDF; --warning-ink: #7A5300; --warning-bg: #FDF1D6;
  --danger-ink: #C0392B; --danger-bg: #F9EBEA; --info-ink: #2C1810; --info-bg: #EAE8E7;
  --gold-80: #F7C55A; --gold-60: #F9D483; --gold-40: #FBE2AD; --gold-20: #FDF1D6; --gold-10: #FEF8EA;
  --red-10: #F9EBEA; --dark-80: #564640; --dark-60: #807470; --dark-40: #ABA39F; --dark-20: #D5D1CF; --dark-10: #EAE8E7;
  --pattern-dark: #3F2C24; --pattern-gold: #DBA22D;
  --display: "Outfit", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px;
  --gutter: 96px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: only light;
}

*, *::before, *::after { box-sizing: border-box; }
/* Nothing may widen the page: the viewport clips sideways, and so does the body (clip, not hidden, so pinned panels still work). */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }

/* Type */
.label { font: 600 12px/16px var(--body); letter-spacing: .08em; text-transform: uppercase; }
.h-xl { font: 700 68px/70px var(--display); letter-spacing: -.04em; }
.h-section { font: 700 48px/54px var(--display); letter-spacing: -.035em; }

/* Buttons (05 Components: Inter SemiBold, 6px radius) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding-inline: 22px;
  border-radius: var(--radius-sm); font: 600 15px/18px var(--body); white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--action); color: var(--on-action); }
@media (hover: hover) { .btn-red:hover { background: var(--action-hover); } }
.btn-dark { background: var(--surface-inverse); color: var(--ink-inverse); }
@media (hover: hover) { .btn-dark:hover { background: var(--dark-80); } }
.btn-gold { background: var(--brand); color: var(--on-brand); }
@media (hover: hover) { .btn-gold:hover { background: var(--brand-deep); } }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
@media (hover: hover) { .btn-line:hover { background: var(--ink); color: var(--ink-inverse); } }
.btn-lg { height: 54px; padding-inline: 28px; font-size: 16px; }
.btn-lg.btn-line { padding-inline: 26px; }
.link { font: 600 16px/20px var(--body); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) { .link:hover { text-decoration-thickness: 2px; } }

/* ---------- Nav ---------- */
.nav { position: relative; z-index: 5; height: 88px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: flex-end; gap: 4px; }
.logo svg { width: 60px; height: 40px; }
.logo span { padding-bottom: 10px; font: 700 21px/16px "Poppins", var(--body); color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a { font: 500 15px/18px var(--body); color: var(--ink); }
@media (hover: hover) { .nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.nav-links .nav-cta { display: none; }
.menu-btn { display: none; height: 40px; padding-inline: 14px; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); font: 600 15px/18px var(--body); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 815px; background: var(--gold-20); overflow: hidden; }
.hero .wrap { position: relative; height: 100%; }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-top: 48px; text-align: center; }
.hero h1 { color: var(--ink); }
.hero h1 span { display: block; }
.hero h1 .red { color: var(--action); }
.hero-sub { width: 640px; max-width: 100%; font: 400 18px/28px var(--body); color: var(--ink-muted); }
.hero-btns { position: relative; z-index: 2; display: flex; gap: 12px; padding-top: 8px; }
/* The stage keeps the picture and card where the artboard has them, relative to the page centre. */
.stage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.stage > * { pointer-events: auto; }
/* At 1440 this is the artboard's box (left 20, top 345, 759 x 395). On narrower desktops it scales down from its right edge and its
   ground line, so the house never slides off the left or into the button. It takes no clicks: it is only a picture. */
.scene { position: absolute; right: calc(50% - 59px); bottom: 75px; width: min(759px, calc(50% + 39px)); aspect-ratio: 759 / 395; pointer-events: none; }
@supports not (aspect-ratio: 1) { .scene { height: 395px; } }
.scene img { -webkit-user-drag: none; -webkit-user-select: none; user-select: none; }
.scene-layer { position: absolute; top: 0; right: 0; bottom: 0; left: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.scene-layer[data-hidden] { opacity: 0; transform: translateY(10px); pointer-events: none; }
.scene img, .scene svg { width: 100%; height: 100%; }
.house { isolation: isolate; }
.house .dark { position: absolute; top: 0; right: 0; bottom: 0; left: 0; mix-blend-mode: multiply; }
.house .dark polygon { fill: #3B2F3F; opacity: 0; transition: opacity .45s var(--ease); }
.house .sheen { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.house .sheen polygon { fill: url(#sheen); opacity: 0; transition: opacity .45s var(--ease); }
.house .glow { position: absolute; top: 0; right: 0; bottom: 0; left: 0; mix-blend-mode: screen; }
.house .glow g { opacity: 0; transition: opacity .5s var(--ease); }
.house [data-room].off polygon { opacity: 1; }
.house .glow g.on { opacity: 1; }
.flats .lit { transition: opacity .45s var(--ease); }
.flats [data-flat].off .lit { opacity: 0; }
.flats .meter-dot { animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.card { position: absolute; left: calc(50% + 187px); top: 350px; width: 400px; display: flex; flex-direction: column; gap: 20px;
  padding: 24px; border-radius: 24px; background: var(--surface); }
.seg { display: flex; gap: 2px; height: 40px; padding: 3px; border-radius: 12px; background: var(--dark-10); }
.seg button { flex: 1 1 0; display: flex; align-items: center; justify-content: center; border-radius: 9px;
  font: 600 14px/18px var(--body); color: var(--ink-subtle); transition: background-color .2s var(--ease), color .2s var(--ease); }
.seg button[aria-selected="true"] { background: var(--surface-raised); color: var(--ink); }
@media (hover: hover) { .seg button:hover:not([aria-selected="true"]) { color: var(--ink); } }
.usage { display: flex; flex-direction: column; gap: 8px; }
.bars { height: 56px; display: flex; align-items: flex-end; gap: 4px; }
.bars i { flex: 1 1 0; border-radius: 3px; background: var(--dark-20); height: var(--h); transition: height .5s var(--ease), background-color .3s var(--ease); }
.bars i.g { background: var(--gold-60); }
.bars i.now { background: var(--brand); }
.axis { display: flex; justify-content: space-between; font: 400 12px/16px var(--body); color: var(--ink-subtle); }
.panel { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.panel[hidden] { display: none; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; }
.panel-head h2 { font: 600 18px/24px var(--display); color: var(--ink); }
.panel-head p { font: 500 13px/16px var(--body); color: var(--ink-muted); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; text-align: left;
  background: var(--surface-raised); border: 1.5px solid var(--gold-60); transition: background-color .25s var(--ease), border-color .25s var(--ease); }
@media (hover: hover) { .tile:hover { border-color: var(--brand); } }
.tile .ic { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); transition: background-color .25s var(--ease); }
.tile .ic svg { width: 16px; height: 16px; }
.tile .ic path { stroke: var(--ink); transition: stroke .25s var(--ease); }
.tile b { display: block; font: 600 14px/18px var(--body); color: var(--ink); }
.tile small { display: block; font: 500 12px/16px var(--body); color: var(--success-ink); }
.tile[aria-pressed="false"] { background: var(--dark-10); border-color: var(--dark-10); }
.tile[aria-pressed="false"] .ic { background: var(--dark-20); }
.tile[aria-pressed="false"] .ic path { stroke: var(--line-strong); }
.tile[aria-pressed="false"] b { color: var(--ink-muted); }
.tile[aria-pressed="false"] small { color: var(--ink-subtle); }
@media (hover: hover) { .tile[aria-pressed="false"]:hover { border-color: var(--dark-20); } }
.all { height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: var(--radius-sm);
  background: var(--surface-inverse); color: var(--ink-inverse); font: 600 15px/18px var(--body); transition: background-color .18s var(--ease); }
@media (hover: hover) { .all:hover { background: var(--dark-80); } }
.all svg { width: 18px; height: 18px; }
/* "Tap me" bip (site.js): a quick press and one gold ring, played on each control in turn until the visitor's first tap. */
.tile.bip, .all.bip { animation: bip 1.1s var(--ease); }
.tile.bip .ic { animation: bipIc 1.1s var(--ease); }
@keyframes bip {
  0% { box-shadow: 0 0 0 0 rgba(245, 183, 49, .8); transform: scale(1); }
  16% { transform: scale(.965); }
  34% { transform: scale(1); }
  100% { box-shadow: 0 0 0 12px rgba(245, 183, 49, 0); transform: scale(1); }
}
@keyframes bipIc { 16% { transform: scale(.88); } 40% { transform: scale(1.08); } 60% { transform: scale(1); } }

/* ---------- One day (grid, backup, off) ---------- */
.day { display: flex; flex-direction: column; gap: 64px; padding-top: 64px; padding-bottom: 64px; }
.day-title { display: flex; flex-direction: column; gap: 16px; }
.day-title .label { color: var(--action); }
.day h2 { font: 700 56px/60px var(--display); letter-spacing: -.035em; }
.day-body { display: flex; flex-direction: column; gap: 64px; }
.tl { position: relative; height: 300px; }
.tl-bar { position: absolute; left: 0; right: 0; top: 120px; height: 56px; display: flex; gap: 3px; }
.tl-bar i { flex: var(--g) 1 0; background: var(--dark-20); }
.tl-bar i.n { background: var(--surface-inverse); }
.tl-bar i.gen { background: var(--brand); }
.tl-bar i:first-child { border-radius: 8px 0 0 8px; }
.tl-bar i:last-child { border-radius: 0 8px 8px 0; }
.tl-fill { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; gap: 3px; }
.tl-mark { position: absolute; left: var(--x); width: 2px; height: 36px; background: var(--ink); }
.tl-mark.up { top: 84px; }
.tl-mark.down { top: 176px; }
.tl-note { position: absolute; left: var(--x); display: flex; flex-direction: column; gap: 2px; }
.tl-note.up { top: 20px; }
.tl-note.down { top: 218px; }
.tl-note time { font: 600 14px/20px var(--body); color: var(--action); }
.tl-note span { font: 600 19px/26px var(--display); color: var(--ink); }
.tl-key { position: absolute; left: 0; top: 182px; display: flex; gap: 18px; }
.tl-key span { display: flex; align-items: center; gap: 6px; font: 400 13px/18px var(--body); color: var(--ink-muted); }
.tl-key i { width: 10px; height: 10px; border-radius: 3px; background: var(--dark-20); }
.tl-key i.n { background: var(--surface-inverse); }
.tl-key i.gen { background: var(--brand); }
.tl-head { position: absolute; top: 112px; width: 2px; height: 72px; margin-left: -1px; background: var(--action); opacity: 0; pointer-events: none; }
.tl-tip { position: absolute; top: 74px; transform: translateX(-50%); padding: 6px 10px; border-radius: 8px; background: var(--surface-inverse);
  color: var(--ink-inverse); font: 600 12px/16px var(--body); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.tl-tip b { color: var(--brand); font-weight: 600; }
.tl-notes::before, .tl-notes::after { display: none; }
.tl .tl-tip.show { opacity: 1; }
.tl-hit { position: absolute; left: 0; right: 0; top: 110px; height: 76px; cursor: crosshair; }
.compare { display: flex; gap: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.compare > div { flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; }
.compare .label { line-height: 16px; color: var(--ink-subtle); }
.compare .with .label { color: var(--action); }
.compare p:not(.label) { font: 600 22px/30px var(--display); color: var(--ink-muted); }
.compare .with p:not(.label) { color: var(--ink); }

/* ---------- Two modes ---------- */
.modes { display: flex; }
.mode { flex: 1 1 0; display: flex; flex-direction: column; justify-content: space-between; gap: 56px; }
.mode.landlord { padding: 96px 72px 88px max(var(--gutter), calc(50vw - 624px)); background: var(--surface-inverse); }
.mode.home { padding: 96px max(var(--gutter), calc(50vw - 624px)) 88px 72px; background: var(--brand); }
.mode > div:first-child { display: flex; flex-direction: column; gap: 24px; }
.mode .label { color: var(--brand); }
.mode.home .label { color: var(--on-brand); }
.mode h2 { font: 700 40px/46px var(--display); letter-spacing: -.03em; color: var(--ink-inverse); }
.mode.home h2 { color: var(--on-brand); }
.mode-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mode-foot strong { font: 600 19px/26px var(--display); color: var(--ink-inverse); }
.mode.home .mode-foot strong { color: var(--on-brand); }

/* ---------- Power Control ---------- */
.pc { border-top: 1px solid #000; }
.pc .wrap { display: flex; flex-direction: column; align-items: center; gap: 72px; padding-top: 64px; padding-bottom: 64px; }
.pc-head { width: 920px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.pc-eyebrow { display: flex; align-items: center; gap: 10px; }
.pc-eyebrow .label { color: var(--action); }
.badge-new { height: 20px; display: inline-flex; align-items: center; padding-inline: 8px; border-radius: 999px; background: var(--brand);
  font: 600 11px/16px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--on-brand); }
.pc-head h2 { width: 720px; max-width: 100%; }
.pc-head > p { width: 620px; max-width: 100%; font: 400 16px/26px var(--body); color: var(--ink-muted); }
.pc-body { width: 1248px; max-width: 100%; display: flex; align-items: center; justify-content: space-between; }
.pc-col { width: 340px; display: flex; flex-direction: column; gap: 64px; }
.pc-col.left { text-align: right; align-items: flex-end; }
.callout { display: flex; flex-direction: column; gap: 10px; text-align: inherit; align-items: inherit; border-radius: 10px; padding: 8px; margin: -8px;
  transition: background-color .2s var(--ease); }
@media (hover: hover) { .callout:hover { background: var(--gold-10); } }
.callout.is-on { background: var(--gold-10); }
.callout-desc { display: none; }
.callout .n { font: 600 14px/18px var(--body); color: var(--action); }
.callout h3 { font: 600 21px/28px var(--display); color: var(--ink); }
.callout p { font: 400 16px/24px var(--body); color: var(--ink-muted); }

.phone { position: relative; width: 332px; height: 684px; flex: none; display: flex; padding: 10px; border-radius: 56px; background: #1E100A;
  box-shadow: 0 0 0 2px #4A362C, 0 30px 60px -20px rgba(44, 24, 16, .35); }
.phone .btn-side { position: absolute; width: 3px; background: #4A362C; }
.screen { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; border-radius: 46px; overflow: hidden; background: var(--surface); }
.sb { height: 46px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 28px 0 34px; }
.sb time { font: 600 15px/18px var(--body); letter-spacing: -.01em; }
.sb .island { width: 92px; height: 26px; border-radius: 999px; background: #1E100A; }
.sb .icons { display: flex; align-items: center; gap: 5px; }
.sw { width: 40px; height: 24px; flex: none; display: flex; justify-content: flex-start; padding: 2px; border-radius: 999px; background: var(--dark-20); transition: background-color .25s var(--ease); }
.sw i { width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.sw[aria-checked="true"] { background: var(--success-ink); }
.sw[aria-checked="true"] i { transform: translateX(16px); }
.sw.lock { align-items: center; justify-content: center; padding: 0; background: var(--gold-20); cursor: not-allowed; }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.home-ind { height: 18px; display: flex; align-items: center; justify-content: center; }
.home-ind i { width: 120px; height: 5px; border-radius: 999px; background: var(--ink); }

/* ---------- MST AI ---------- */
.ai { background: var(--surface-inverse); }
.ai .wrap { display: flex; flex-direction: column; gap: 64px; padding-top: 64px; padding-bottom: 64px; }
.ai-title { width: 820px; max-width: 100%; display: flex; flex-direction: column; gap: 20px; }
.ai-title .label { color: var(--brand); }
.ai-title h2 { color: var(--ink-inverse); }
.ai-title h2 span { color: var(--brand); }
.ai-cards { display: flex; gap: 20px; }
.predict { flex: 1.5 1 0; display: flex; flex-direction: column; gap: 28px; padding: 36px; border-radius: 28px; background: var(--pattern-dark); }
.predict .k, .plan .k { font: 600 13px/16px var(--body); letter-spacing: .08em; text-transform: uppercase; }
.predict .k { color: var(--ink-inverse-muted); }
.predict h3 { margin-top: 6px; font: 600 28px/34px var(--display); letter-spacing: -.02em; color: var(--ink-inverse); }
.predict h3 span { color: var(--brand); }
.pbars { position: relative; height: 140px; display: flex; align-items: flex-end; gap: 6px; }
.pbars i { flex: 1 1 0; height: var(--h); border-radius: 4px; background: var(--dark-80); transform-origin: bottom; transition: background-color .2s var(--ease), filter .2s; }
.pbars i.g { background: var(--gold-60); }
.pbars i.b { background: var(--brand); }
@media (hover: hover) { .pbars i:hover { filter: brightness(1.18); } }
.pbars i.hot { filter: brightness(1.18); }
.ptip { position: absolute; bottom: 100%; margin-bottom: 8px; transform: translateX(-50%); padding: 6px 10px; border-radius: 8px; background: var(--surface);
  color: var(--ink); font: 600 12px/16px var(--body); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.ptip.show { opacity: 1; }
.paxis { display: flex; justify-content: space-between; font: 400 13px/16px var(--body); color: var(--ink-inverse-muted); }
.plan { flex: 1 1 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 36px; border-radius: 28px; background: var(--surface); }
.plan .k { color: var(--action); }
.plan h3 { margin-top: 8px; font: 600 22px/30px var(--display); color: var(--ink); }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); font: 400 14px/20px var(--body); color: var(--ink-muted); }
.plan li:last-child { border-bottom: 1px solid var(--line); }
.plan li b { font-weight: 600; color: var(--ink); }
.plan li .ess { font-weight: 500; color: var(--warning-ink); }
.plan li .tick { display: inline-block; width: 0; overflow: hidden; vertical-align: -2px; color: var(--success-ink); transition: width .3s var(--ease); }
.plan.approved li .tick { width: 18px; }
.plan-foot { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.plan-foot .btn { height: 46px; }
.done { display: none; flex: 1 1 0; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px; border-radius: 10px; background: var(--success-bg);
  font: 400 14px/20px var(--body); color: var(--success-ink); }
.done b { font-weight: 600; }
.done button { margin-left: auto; font: 600 14px/20px var(--body); text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.plan.approved .btn { display: none; }
.plan.approved .done { display: flex; animation: pop .35s var(--ease); }

/* ---------- How it works ---------- */
.how { display: flex; flex-direction: column; gap: 56px; padding-top: 64px; padding-bottom: 64px; }
.how-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; }
.how-head > div { display: flex; flex-direction: column; gap: 16px; }
.how-head .label { color: var(--action); }
.how-head .link { margin-bottom: 10px; }
.steps-wrap { display: flex; flex-direction: column; gap: 28px; }
.pulse { width: 100%; height: auto; overflow: visible; }
.steps { display: flex; }
.step { width: 25%; display: flex; flex-direction: column; gap: 10px; padding-right: 40px; }
.step:last-child { padding-right: 0; }
.step .k { font: 600 13px/16px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-subtle); }
.step .k.opt { color: var(--warning-ink); }
.step h3 { font: 600 21px/28px var(--display); color: var(--ink); }
.step p { font: 400 16px/24px var(--body); color: var(--ink-muted); }
.step .dot { display: none; }

/* ---------- Call to action ---------- */
.cta { padding-top: 64px; background: var(--brand); }
.cta-copy { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 32px var(--gutter) 32px; text-align: center; }
.cta h2 { color: var(--on-brand); }
.cta h2 span { display: block; }
.cta p { font: 400 18px/28px var(--body); color: var(--on-brand); }
.cta-btns { display: flex; gap: 12px; padding-top: 8px; }
.cta-btns .btn { height: 56px; padding-inline: 30px; font-size: 16px; }
.cta-btns .btn-line { padding-inline: 26px; border-color: var(--on-brand); }
.cta-btns .btn-line svg { width: 18px; height: 18px; }
@media (hover: hover) { .cta-btns .btn-line:hover svg path { stroke: var(--ink-inverse); } }
.estate-wrap { height: 220px; overflow: hidden; }
.estate { width: 100%; height: 220px; }
.estate path { fill: var(--pattern-gold); }
.estate path[stroke] { fill: var(--brand); }
.estate .win { fill: var(--ink); opacity: 0; transition: opacity .9s var(--ease); }
.estate .win.on { opacity: 1; }

/* ---------- Footer ---------- */
.foot { background: var(--surface-inverse); }
.foot .wrap { display: flex; flex-direction: column; gap: 48px; padding-top: 72px; padding-bottom: 40px; }
.foot-top { display: flex; justify-content: space-between; gap: 64px; }
.foot-brand { width: 320px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.foot .logo span { color: #fff; }
.foot-brand p { font: 400 15px/22px var(--body); color: var(--ink-inverse-muted); }
.foot-cols { display: flex; gap: 72px; }
.foot-cols div { display: flex; flex-direction: column; gap: 12px; }
.foot-cols h2 { font: 600 12px/22px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.foot-cols a { font: 400 15px/22px var(--body); color: var(--ink-inverse-muted); }
@media (hover: hover) { .foot-cols a:hover { color: var(--ink-inverse); text-decoration: underline; text-underline-offset: 3px; } }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--pattern-dark);
  font: 400 13px/18px var(--body); color: var(--ink-inverse-muted); }
.foot-bottom span:last-child { font-weight: 500; }
.foot :focus-visible { outline-color: var(--brand); }

/* ---------- Pricing: build your setup, request a quote ----------
   Not in the designer's file. Built from the design system's own parts: section head, the hero tiles,
   the phone's switches and tabs, the AI section's dark card. */
.quote { border-top: 1px solid var(--line); }
.quote .wrap { display: flex; flex-direction: column; gap: 32px; padding-top: 64px; padding-bottom: 88px; }
.quote-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; }
.quote-head > div { display: flex; flex-direction: column; gap: 16px; }
.quote-head .label { color: var(--action); }
.quote-head > p { width: 470px; max-width: 100%; margin-bottom: 6px; font: 400 16px/26px var(--body); color: var(--ink-muted); }
.offer { display: flex; align-items: center; gap: 28px; padding: 20px 28px; border-radius: var(--radius-lg); background: var(--brand); color: var(--on-brand); }
.offer .label { flex: none; }
.offer-main { flex: 1 1 auto; font: 600 24px/30px var(--display); letter-spacing: -.015em; }
.offer-side { flex: none; font: 600 15px/20px var(--body); }

.q { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 28px; background: var(--surface-raised); }
.q-main { display: flex; flex-direction: column; gap: 28px; min-height: 600px; padding: 36px 40px 40px; }
.q-top { display: flex; align-items: center; gap: 16px; min-height: 24px; }
.q-back { display: inline-flex; align-items: center; gap: 4px; margin-left: -4px; font: 600 14px/20px var(--body); color: var(--ink); }
.q-back[hidden] { display: none; }
.q-back svg { width: 16px; height: 16px; }
@media (hover: hover) { .q-back:hover { text-decoration: underline; text-underline-offset: 3px; } }
.q-progress { flex: 1 1 0; height: 4px; border-radius: 999px; background: var(--surface-tint); overflow: hidden; }
.q-progress i { display: block; width: var(--p, 25%); height: 100%; border-radius: 999px; background: var(--brand); transition: width .5s var(--ease); }
.q-count { font: 600 12px/16px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-subtle); }
.q-steps { flex: 1 1 auto; display: flex; flex-direction: column; margin: 0; }
.q-step { flex: 1 1 auto; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.q-step[hidden] { display: none; }
.q-q { font: 600 30px/36px var(--display); letter-spacing: -.02em; color: var(--ink); outline: none; }
.q-qwrap { display: flex; flex-direction: column; gap: 6px; }
.q-hint { font: 400 15px/22px var(--body); color: var(--ink-muted); }

/* Two-way choices */
.q-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.q-choice { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 24px; border: 1.5px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); text-align: left;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease); }
@media (hover: hover) { .q-choice:hover { border-color: var(--ink); } }
.q-choice:active { transform: scale(.985); }
.q-choice[aria-pressed="true"] { border-color: var(--ink); background: var(--gold-10); }
.q-art { width: 84px; height: 64px; }
.q-art svg { width: 100%; height: 100%; }
.q-art .w { fill: var(--dark-60); transition: fill .3s var(--ease); }
.q-art .w:nth-of-type(3) { transition-delay: .05s; }
.q-art .w:nth-of-type(4) { transition-delay: .1s; }
.q-art .w:nth-of-type(5) { transition-delay: .15s; }
.q-art .w:nth-of-type(6) { transition-delay: .2s; }
.q-art .w:nth-of-type(7) { transition-delay: .25s; }
@media (hover: hover) { .q-choice:hover .q-art .w { fill: var(--brand); } }
.q-choice[aria-pressed="true"] .q-art .w { fill: var(--brand); }
.q-ctext { display: flex; flex-direction: column; gap: 6px; padding-right: 8px; }
.q-ctext small { font: 600 12px/16px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--action); }
.q-ctext b { font: 600 22px/28px var(--display); letter-spacing: -.01em; color: var(--ink); }
.q-ctext > span { font: 400 15px/22px var(--body); color: var(--ink-muted); }
.q-check { position: absolute; right: 18px; top: 18px; width: 24px; height: 24px; border: 1.5px solid var(--dark-20); border-radius: 50%; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.q-check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--ink-inverse); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.q-choice[aria-pressed="true"] .q-check { background: var(--ink); border-color: var(--ink); }
.q-choice[aria-pressed="true"] .q-check::after { transform: rotate(45deg) scale(1); }

/* Ruled rows: number steppers and switches */
.q-rows { display: flex; flex-direction: column; }
.q-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
.q-row:last-child { border-bottom: 1px solid var(--line); }
.q-row > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.q-row b { font: 600 19px/26px var(--display); color: var(--ink); }
.q-row > div:first-child span { font: 400 14px/20px var(--body); color: var(--ink-muted); }
.q-num { flex: none; display: flex; align-items: center; gap: 4px; }
.q-num button { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); border-radius: var(--radius-md);
  font: 500 24px/1 var(--body); color: var(--ink); transition: background-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease); }
@media (hover: hover) { .q-num button:hover:not(:disabled) { background: var(--ink); color: var(--ink-inverse); } }
.q-num button:active:not(:disabled) { transform: scale(.94); }
.q-num button:disabled { border-color: var(--dark-20); color: var(--dark-40); cursor: default; }
.q-num input { width: 72px; height: 48px; padding: 0; border: 0; border-radius: 8px; background: none; text-align: center; font: 700 34px/48px var(--display); letter-spacing: -.02em;
  color: var(--ink); font-variant-numeric: tabular-nums; }
.q-num input:focus { outline: 2px solid var(--focus); outline-offset: 0; }
.q-num.tick input { animation: qTick .28s var(--ease); }
@keyframes qTick { from { transform: translateY(6px); opacity: .3; } to { transform: none; opacity: 1; } }
.q-block.new { animation: qUp .4s var(--ease) both; }
.q-del { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; margin-left: -4px; border-radius: 8px; color: var(--ink-subtle); transition: background-color .15s var(--ease), color .15s var(--ease); }
.q-del svg { width: 16px; height: 16px; }
@media (hover: hover) { .q-del:hover { background: var(--danger-bg); color: var(--danger-ink); } }
.q-block > div:first-child { flex: 1 1 auto; }
.q-add { align-self: flex-start; height: 44px; padding-inline: 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); font: 600 15px/18px var(--body); color: var(--ink); transition: border-color .15s var(--ease), background-color .15s var(--ease); }
@media (hover: hover) { .q-add:hover { border-color: var(--ink); background: var(--gold-10); } }
.q-add:disabled { border-style: solid; border-color: var(--line); font-weight: 400; color: var(--ink-muted); cursor: default; }
.q-picks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.q-picks > span { margin-right: 6px; font: 400 14px/20px var(--body); color: var(--ink-muted); }
.q-picks button { min-width: 48px; height: 40px; padding-inline: 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-raised);
  font: 600 15px/18px var(--body); color: var(--ink); transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
@media (hover: hover) { .q-picks button:hover { border-color: var(--ink); } }
.q-picks button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--ink-inverse); }

/* Appliance tiles (the hero's light tiles, with a count) */
.q-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.q-app { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer;
  transition: border-color .25s var(--ease), background-color .25s var(--ease); }
@media (hover: hover) { .q-app:hover { border-color: var(--line-strong); } }
.q-app.on { border-color: var(--gold-60); background: var(--surface-raised); }
.q-app-main { display: flex; align-items: center; gap: 10px; padding: 10px 12px 2px; text-align: left; border-radius: 12px 12px 0 0; }
.q-app .ic { width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--dark-10); transition: background-color .25s var(--ease); }
.q-app .ic svg, .qv-chip svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.q-app.on .ic { background: var(--brand); }
.q-app.on .ic svg { stroke: var(--ink); }
.q-app.bump .ic { animation: qBump .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes qBump { 40% { transform: scale(1.2); } }
.q-app b { font: 600 14px/18px var(--body); color: var(--ink); }
.q-app-count { height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 8px 8px 12px; }
.q-app-add { font: 500 12px/16px var(--body); color: var(--ink-subtle); }
.q-app-count button { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); border-radius: 8px;
  font: 500 19px/1 var(--body); color: var(--ink); transition: background-color .15s var(--ease), color .15s var(--ease); }
@media (hover: hover) { .q-app-count button:hover { background: var(--ink); color: var(--ink-inverse); } }
.q-app-count output { min-width: 26px; text-align: center; font: 700 19px/24px var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.q-app:not(.on) .q-app-count button, .q-app:not(.on) .q-app-count output { display: none; }
.q-app.on .q-app-add { display: none; }

/* Fields */
.q-fields { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.q-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.q-f[hidden] { display: none; }
.q-f.wide { grid-column: 1 / -1; }
.q-f > span { font: 600 13px/18px var(--body); color: var(--ink); }
.q-f em { font-style: normal; font-weight: 400; color: var(--ink-subtle); }
.q-f input, .q-f textarea { width: 100%; height: 48px; margin: 0; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-raised);
  font: 400 16px/24px var(--body); color: var(--ink); -webkit-appearance: none; appearance: none; }
.q-f textarea { height: auto; min-height: 92px; padding: 11px 14px; resize: vertical; }
.q-f input::placeholder, .q-f textarea::placeholder { color: var(--dark-40); }
.q-f input:focus, .q-f textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.q-f.bad input { border-color: var(--action); }
.q-f .msg { font: 500 13px/18px var(--body); color: var(--action); }
.q-hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.q-error { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--danger-bg); font: 500 14px/20px var(--body); color: var(--danger-ink); }
.q-error[hidden] { display: none; }
.q-error a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.q-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: auto; padding-top: 8px; }
.q-nav .btn[disabled] { opacity: .6; cursor: default; }
.q-skip { font: 600 15px/20px var(--body); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; color: var(--ink); }
.q-fine { font: 400 14px/20px var(--body); color: var(--ink-muted); }
.q-done { gap: 16px; }
.q-tick { width: 56px; height: 56px; }
.q-thanks { font: 400 17px/26px var(--body); color: var(--ink-muted); }
.q-ref { font: 400 15px/22px var(--body); color: var(--ink-muted); }
.q-ref b { font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.q-next { margin: 4px 0 0; padding: 0; list-style: none; }
.q-next li { padding-block: 12px; border-top: 1px solid var(--line); font: 400 15px/22px var(--body); color: var(--ink-muted); }
.q-next li:last-child { border-bottom: 1px solid var(--line); }
.q-nojs { font: 400 16px/26px var(--body); color: var(--ink-muted); }
.q-nojs a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* The setup, drawn as they choose */
.q-side { display: flex; flex-direction: column; gap: 18px; padding: 36px; border-radius: 0 27px 27px 0; background: var(--surface-inverse); color: var(--ink-inverse); }
.q-side .label { color: var(--brand); }
.q-visual { position: relative; height: 250px; flex: none; display: flex; align-items: flex-end; justify-content: center; padding: 16px 16px 0; border-radius: var(--radius-lg); background: var(--pattern-dark); overflow: hidden; }
.q-visual > svg { width: 100%; height: 100%; }
.q-caption { min-height: 28px; font: 600 21px/28px var(--display); letter-spacing: -.01em; color: var(--ink-inverse); }
.q-sum { display: flex; flex-direction: column; margin: 0; }
.q-sum div { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px; border-top: 1px solid var(--pattern-dark); font: 400 14px/20px var(--body); }
.q-sum dt { flex: none; color: var(--ink-inverse-muted); }
.q-sum dd { margin: 0; font-weight: 600; text-align: right; color: var(--ink-inverse); }
.q-offer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--pattern-dark); font: 400 14px/20px var(--body); color: var(--ink-inverse-muted); }
.q-offer b { font-weight: 600; color: var(--brand); }
.qv-body { fill: var(--dark-80); }
.qv-roof { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.qv-win { fill: var(--brand); transform-box: fill-box; transform-origin: center; }
.qv-win.dim { fill: var(--dark-60); }
.qv-win.new, .qv-chip.new { animation: qPop .45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: var(--d, 0ms); }
@keyframes qPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.qv-ring { fill: none; stroke: var(--surface); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.qv-ring.go { animation: qRing .9s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes qRing { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.9); } }
.qv-ground { stroke: var(--dark-60); stroke-width: 2; stroke-linecap: round; }
.qv-meter { fill: var(--surface); }
.qv-meter-dot { fill: var(--brand); }
.qv-key { fill: var(--surface-inverse); }
.qv-more { fill: var(--ink-inverse-muted); font: 600 11px/1 var(--body); }
.qv-home { width: 100%; height: 100%; display: flex; flex-direction: column; padding-inline: 5%; }
.qv-roofline { flex: none; width: 100%; height: 58px; }
.qv-room { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px 12px; margin-inline: 7%; padding: 10px 12px; border-radius: 3px 3px 0 0; background: var(--dark-80); }
.qv-chip { position: relative; width: 42px; height: 42px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); }
.qv-chip svg { stroke: var(--ink); }
.qv-chip em { position: absolute; right: -7px; top: -6px; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 10px; background: var(--surface); font: 700 12px/20px var(--body); font-style: normal; text-align: center; color: var(--ink); }
.qv-chip.dim { background: var(--dark-60); }
.qv-empty { align-self: center; max-width: 210px; font: 400 14px/20px var(--body); text-align: center; color: var(--ink-inverse-muted); }
.qv-tags { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }

/* A step coming in */
.js .q-step.enter > * { animation: qUp .5s var(--ease) both; }
.js .q-step.enter > :nth-child(2) { animation-delay: .06s; }
.js .q-step.enter > :nth-child(3) { animation-delay: .12s; }
.js .q-step.enter > :nth-child(4) { animation-delay: .18s; }
.js .q-step.enter > :nth-child(5) { animation-delay: .24s; }
.js .q-step.enter.back > * { animation-name: qDown; }
@keyframes qUp { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes qDown { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }

/* ---------- Motion on entry (only when the script runs; every animation ends on the designed frame) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .pbars:not(.in) i { transform: scaleY(.04); }
.js .pbars i { transition: transform .7s var(--ease), background-color .2s, filter .2s; transition-delay: calc(var(--i) * 40ms); }
.js .bars:not(.in) i { height: 6%; }
.js .tl:not(.in) .tl-bar { clip-path: inset(0 100% 0 0); }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 120px; height: 56px; border-radius: 8px; background: var(--dark-10); transition: opacity .6s var(--ease); }
.tl.played::before, html:not(.js) .tl::before { opacity: 0; }
.js .tl:not(.in) .tl-mark, .js .tl:not(.in) .tl-note { opacity: 0; }
.js .tl .tl-mark, .js .tl .tl-note { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.js .tl .tl-note.wait, .js .tl .tl-mark.wait { opacity: 0; transform: translateY(4px); }
.js .pulse .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.js .pulse.in .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease); }
.js .pulse .dash { opacity: 0; transition: opacity .5s var(--ease) .7s; }
.js .pulse.in .dash { opacity: 1; }
.js .pulse circle { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.js .pulse.in circle { transform: scale(1); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.js .pulse.in circle:nth-of-type(2) { transition-delay: .45s; }
.js .pulse.in circle:nth-of-type(3) { transition-delay: .9s; }
.js .pulse.in circle:nth-of-type(4) { transition-delay: 1.35s; }
.js .steps .step { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .steps.in .step { opacity: 1; transform: none; }
.js .steps.in .step:nth-child(2) { transition-delay: .45s; }
.js .steps.in .step:nth-child(3) { transition-delay: .9s; }
.js .steps.in .step:nth-child(4) { transition-delay: 1.35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .steps .step, .js .tl .tl-note.wait, .js .tl .tl-mark.wait { opacity: 1 !important; transform: none !important; }
  .js .pulse .draw { stroke-dashoffset: 0 !important; }
  .js .pulse .dash, .js .pulse circle { opacity: 1 !important; transform: none !important; }
}

/* ---------- 1200 and below ---------- */
@media (max-width: 1240px) {
  :root { --gutter: 48px; }
  .pc-col { width: 290px; }
  .mode.landlord { padding-left: var(--gutter); padding-right: 48px; }
  .mode.home { padding-right: var(--gutter); padding-left: 48px; }
  .q-main { padding: 32px 32px 36px; }
  .q-side { padding: 32px 28px; }
  /* The hero stacks: copy, then the picture and the card side by side. (Floating them needs 1241 or more, or the card runs off the right.) */
  .hero { height: auto; }
  .hero .wrap { padding-bottom: 64px; }
  .stage { position: relative; top: auto; right: auto; bottom: auto; left: auto; display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 40px; pointer-events: auto; }
  .scene { position: relative; right: auto; bottom: auto; width: auto; max-width: 560px; min-width: 0; height: auto; aspect-ratio: 759 / 395; flex: 1 1 0; }
  .card { position: relative; left: auto; top: auto; flex: none; }
}
@media (max-width: 1120px) {
  /* Power Control: the four callouts become a row of choices above the phone, so a tap and its result are seen together */
  .pc-body { flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 10px; }
  .pc-col { display: contents; }
  .callout { order: 1; width: calc(25% - 7.5px); margin: 0; padding: 12px 14px; gap: 2px; align-items: flex-start; justify-content: flex-start; text-align: left; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface-raised); }
  .callout.is-on { border-color: var(--brand); background: var(--gold-10); }
  .callout h3 { font-size: 17px; line-height: 23px; }
  .callout p { display: none; }
  .callout-desc { order: 2; display: block; width: 100%; min-height: 48px; padding-top: 8px; font: 400 16px/24px var(--body); text-align: center; color: var(--ink-muted); }
  .phone { order: 3; align-self: center; margin-top: 12px; }
  .q-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 900 and below ---------- */
@media (max-width: 900px) {
  :root { --gutter: 32px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav.open .nav-links { display: flex; position: absolute; top: 76px; right: 0; flex-direction: column; align-items: stretch; gap: 0; min-width: 240px;
    padding: 8px; border-radius: var(--radius-md); background: var(--surface-raised); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(44, 24, 16, .35); }
  .nav.open .nav-links a { padding: 12px 14px; border-radius: 8px; }
  @media (hover: hover) { .nav.open .nav-links a:hover { background: var(--gold-10); text-decoration: none; } }
  .nav.open .nav-links .nav-cta { display: flex; justify-content: center; margin-top: 6px; border-radius: var(--radius-sm); background: var(--action); font-weight: 600; color: var(--on-action); }
  .h-xl { font-size: 52px; line-height: 56px; }
  .h-section, .day h2 { font-size: 40px; line-height: 46px; }
  .h-xl, .h-section, .mode h2, .q-q, .predict h3, .plan h3 { text-wrap: balance; }
  .stage { flex-direction: column; gap: 8px; }
  .scene { width: min(640px, 100%); max-width: none; flex: none; }
  .card { width: min(440px, 100%); }

  /* One day: the timeline stands upright, midnight at the top, each note beside its own hour */
  .tl { height: 520px; margin-bottom: 44px; }
  .tl-bar { left: 0; right: auto; top: 0; width: 56px; height: 520px; flex-direction: column; }
  .tl-bar i:first-child { border-radius: 8px 8px 0 0; }
  .tl-bar i:last-child { border-radius: 0 0 8px 8px; }
  .tl::before { left: 0; right: auto; top: 0; width: 56px; height: 520px; }
  .js .tl:not(.in) .tl-bar { clip-path: inset(0 0 100% 0); }
  .tl-mark.up, .tl-mark.down { left: 56px; top: var(--x); width: 18px; height: 2px; margin-top: -1px; }
  .tl-note.up, .tl-note.down { left: 86px; right: 0; top: var(--x); margin-top: -10px; }
  .tl-notes::before, .tl-notes::after { display: block; content: "12 AM"; position: absolute; left: 86px; font: 400 13px/18px var(--body); color: var(--ink-subtle); }
  .tl-notes::before { top: -2px; }
  .tl-notes::after { bottom: -2px; }
  .tl-key { top: calc(100% + 16px); flex-wrap: wrap; }
  .tl-hit { left: 0; right: auto; top: 0; width: 56px; height: 520px; cursor: pointer; }
  .tl-head { left: -4px; top: 0; width: 64px; height: 2px; margin: -1px 0 0; }
  .tl-tip { left: 86px; top: 26px; transform: none; padding: 0; border-radius: 0; background: none; font: 500 15px/20px var(--body); white-space: normal; color: var(--ink-muted); }
  .tl-tip .t { display: block; font: 600 30px/36px var(--display); letter-spacing: -.02em; color: var(--ink); }
  .tl-tip .sep { display: none; }
  .tl-tip b { color: var(--ink-muted); }
  .compare { flex-direction: column; gap: 28px; }
  .modes { flex-direction: column; }
  .mode.landlord, .mode.home { padding: 64px var(--gutter); }
  .callout { width: calc(50% - 5px); }
  .callout-desc { text-align: left; }
  .ai-cards { flex-direction: column; }
  .how-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .pulse { display: none; }
  .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .step { width: auto; padding-right: 0; }
  .step .dot { display: block; width: 20px; height: 20px; margin-bottom: 4px; border-radius: 50%; border: 5px solid var(--action); background: var(--surface); }
  .step .dot.gold { border-color: var(--brand); }

  /* Pricing: the picture goes on top and stays in view while they choose */
  .quote-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .quote-head > p { width: auto; margin-bottom: 0; }
  .offer { flex-wrap: wrap; gap: 4px 20px; padding: 18px 20px; }
  .offer .label { width: 100%; }
  .offer-main { font-size: 21px; line-height: 27px; }
  .q { display: flex; flex-direction: column; }
  .q-main { min-height: 0; gap: 22px; padding: 24px 24px 28px; }
  .q-side { order: -1; gap: 10px; padding: 14px 16px 12px; border-radius: 27px 27px 0 0; }
  .q-side .label, .q-sum, .q-offer { display: none; }
  .q-visual { height: 136px; padding: 12px 12px 0; border-radius: 14px; }
  .qv-roofline { height: 26px; }
  .qv-room { gap: 8px 10px; padding: 6px 10px; }
  .qv-chip { width: 34px; height: 34px; }
  .qv-chip svg { width: 17px; height: 17px; }
  .qv-chip em { right: -6px; top: -5px; min-width: 17px; height: 17px; padding-inline: 4px; font-size: 11px; line-height: 17px; }
  .q-caption { min-height: 22px; font-size: 16px; line-height: 22px; }
  .q[data-step="size"] .q-side, .q[data-step="access"] .q-side, .q[data-step="appliances"] .q-side, .q[data-step="wants"] .q-side { position: sticky; top: 0; z-index: 3; }
  .q[data-step="contact"] .q-sum, .q[data-step="done"] .q-sum { display: flex; }
  .q[data-step="type"] .q-side, .q[data-step="contact"] .q-visual { display: none; }
  .q[data-step="done"] .q-visual { height: 96px; }
  .q[data-step="contact"] .q-side { padding-top: 18px; }
  .foot-top { flex-direction: column; gap: 40px; }
  .foot-cols { flex-wrap: wrap; gap: 40px 56px; }
}

/* ---------- 600 and below ---------- */
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .nav { height: 72px; }
  .nav.open .nav-links { top: 64px; }
  .h-xl { font-size: 40px; line-height: 44px; letter-spacing: -.035em; }
  .h-section, .day h2 { font-size: 34px; line-height: 40px; }
  .hero-copy { gap: 20px; padding-top: 24px; }
  .hero-sub { font-size: 16px; line-height: 26px; }
  .hero-btns, .cta-btns { flex-direction: column; align-self: stretch; }
  .hero-btns .btn, .cta-btns .btn { width: 100%; }
  .hero .wrap { padding-bottom: 40px; }
  /* The picture moves inside the card, between the mode switch and the tiles, so a tap and the house are on screen together. */
  .stage { align-items: stretch; gap: 14px; margin-top: 32px; padding: 16px; border-radius: 20px; background: var(--surface); }
  .card { display: contents; }
  .seg { order: 1; }
  .scene { order: 2; width: 100%; }
  .panel { order: 3; padding-top: 0; border-top: 0; }
  .usage { order: 4; padding-top: 14px; border-top: 1px solid var(--line); }
  .tile { padding: 9px 10px; gap: 8px; }
  .tile .ic { width: 28px; height: 28px; }
  .day, .day-body { gap: 40px; }
  .day { padding-top: 48px; padding-bottom: 48px; }
  .tl-note span { font-size: 17px; line-height: 24px; }
  .compare p:not(.label) { font-size: 19px; line-height: 27px; }
  .mode h2 { font-size: 30px; line-height: 36px; }
  .mode-foot { flex-direction: column; align-items: flex-start; }
  .mode.landlord, .mode.home { gap: 40px; padding-block: 56px; }
  .pc .wrap { gap: 36px; padding-top: 48px; padding-bottom: 48px; }
  .pc-head > p { font-size: 16px; }
  .callout { padding: 10px 12px; }
  .callout h3 { font-size: 15px; line-height: 20px; }
  .callout-desc { min-height: 72px; font-size: 15px; }
  .phone { transform: scale(.94); margin-block: -14px -20px; }
  .ai .wrap, .how { gap: 40px; padding-top: 48px; padding-bottom: 48px; }
  .predict, .plan { padding: 22px; border-radius: 22px; }
  .predict h3 { font-size: 23px; line-height: 30px; }
  .pbars { gap: 4px; height: 120px; }
  .plan-foot { flex-wrap: wrap; }
  .done { flex-wrap: wrap; }
  /* How it works: the steps hang on one upright line, dotted where the step is optional */
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { position: relative; gap: 6px; padding: 0 0 30px 38px; }
  .step:last-child { padding-bottom: 0; }
  .step .dot { position: absolute; left: 0; top: -1px; margin: 0; }
  .step::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: 2px; width: 2px; background: var(--ink); }
  .step:nth-child(2)::before { width: 0; background: none; border-left: 2px dotted var(--dark-40); }
  .step:last-child::before { display: none; }
  .quote .wrap { gap: 20px; padding-top: 48px; padding-bottom: 56px; }
  .offer { border-radius: 16px; }
  .q { border-radius: 22px; }
  .q-side { border-radius: 21px 21px 0 0; }
  .q-main { padding: 20px 16px 24px; }
  .q-q { font-size: 24px; line-height: 30px; }
  .q-step { gap: 20px; }
  .q-choices { grid-template-columns: 1fr; gap: 10px; }
  .q-choice { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px; }
  .q-art { width: 56px; height: 43px; flex: none; }
  .q-ctext { padding-right: 30px; }
  .q-ctext b { font-size: 19px; line-height: 24px; }
  .q-check { right: 14px; top: 14px; }
  .q-row { padding-block: 14px; }
  .q-row b { font-size: 17px; line-height: 24px; }
  .q-num input { width: 58px; font-size: 30px; }
  .q-block { gap: 10px; }
  .q-block > div:first-child span { display: none; }
  .q-add { align-self: stretch; }
  .q-picks > span { width: 100%; margin: 0 0 2px; }
  .q-apps { gap: 8px; }
  .q-app-main { padding: 10px 10px 2px; gap: 8px; }
  .q-app b { font-size: 13px; }
  .q-app-count { padding: 0 8px 8px 10px; }
  .q-fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .q-nav .btn { width: 100%; }
  .cta { padding-top: 40px; }
  .cta-copy { gap: 20px; }
  .cta p { font-size: 16px; line-height: 26px; }
  .estate-wrap, .estate { height: 150px; }
  .foot .wrap { padding-top: 56px; }
  .foot-bottom { flex-direction: column; }
}
@media (max-width: 380px) {
  .h-xl { font-size: 36px; line-height: 40px; }
  .phone { transform: scale(.88); margin-block: -34px -40px; }
  .q-num button { width: 44px; height: 44px; }
}
@media (max-width: 340px) {
  .tiles { grid-template-columns: 1fr; }
  .q-apps { grid-template-columns: minmax(0, 1fr); }
  .phone { transform: scale(.8); margin-block: -62px -68px; }
}
