/* ==========================================================================
   Casa Alcove landing page
   Shape system: panels 32px, cards 20px, inputs 14px, buttons and chips pill.
   The arch (semicircular top, square base) is the brand shape and the only
   exception, used for imagery and decorative outlines.
   ========================================================================== */

@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* Phosphor Icons (MIT), Light weight, subset to the 33 icons this site uses.
   To add an icon: re-run the subset with the full font from @phosphor-icons/web. */
@font-face {
  font-family: "Phosphor-Light";
  src: url("../vendor/phosphor/Phosphor-Light-subset.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
.ph-light {
  font-family: "Phosphor-Light" !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.ph-light.ph-armchair:before { content: "\e012"; }
.ph-light.ph-arrow-right:before { content: "\e06c"; }
.ph-light.ph-arrows-left-right:before { content: "\e0a0"; }
.ph-light.ph-battery-full:before { content: "\e0c0"; }
.ph-light.ph-calendar-blank:before { content: "\e10a"; }
.ph-light.ph-camera:before { content: "\e10e"; }
.ph-light.ph-caret-down:before { content: "\e136"; }
.ph-light.ph-cell-signal-full:before { content: "\e142"; }
.ph-light.ph-check:before { content: "\e182"; }
.ph-light.ph-check-circle:before { content: "\e184"; }
.ph-light.ph-credit-card:before { content: "\e1d2"; }
.ph-light.ph-file-text:before { content: "\e23a"; }
.ph-light.ph-fingerprint:before { content: "\e23e"; }
.ph-light.ph-globe-hemisphere-east:before { content: "\e28a"; }
.ph-light.ph-hand-coins:before { content: "\ea8c"; }
.ph-light.ph-house-line:before { content: "\e2c4"; }
.ph-light.ph-identification-card:before { content: "\e2c8"; }
.ph-light.ph-image:before { content: "\e2ca"; }
.ph-light.ph-key:before { content: "\e2d6"; }
.ph-light.ph-list:before { content: "\e2f0"; }
.ph-light.ph-lock-key:before { content: "\e2fe"; }
.ph-light.ph-moon:before { content: "\e330"; }
.ph-light.ph-plus:before { content: "\e3d4"; }
.ph-light.ph-receipt:before { content: "\e3ec"; }
.ph-light.ph-seal-check:before { content: "\e606"; }
.ph-light.ph-suitcase-rolling:before { content: "\e9b0"; }
.ph-light.ph-sun:before { content: "\e472"; }
.ph-light.ph-user:before { content: "\e4c2"; }
.ph-light.ph-user-circle:before { content: "\e4c4"; }
.ph-light.ph-whatsapp-logo:before { content: "\e5d0"; }
.ph-light.ph-wifi-high:before { content: "\e4ea"; }
.ph-light.ph-wrench:before { content: "\e5d4"; }
.ph-light.ph-x:before { content: "\e4f6"; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --paper: #F6F3EE;
  --paper-2: #EEE9E0;
  --surface: #FBF9F6;
  --ink: #12233F;
  --ink-soft: #33435E;
  --muted: #586276;
  --navy: #14284B;
  --navy-deep: #0E1D38;
  --navy-2: #1C3561;
  --on-navy: #F2EDE4;
  --on-navy-muted: #AEB8C9;
  --gold: #B8945A;
  --gold-soft: #D8BF8C;
  --gold-ink: #85662F;
  --gold-grad: linear-gradient(115deg, #98743E 0%, #D7BC85 38%, #B08848 64%, #E2C994 100%);
  --line: rgba(18, 35, 63, .12);
  --line-strong: rgba(18, 35, 63, .24);
  --danger: #A3261C;
  --btn-bg: #14284B;
  --btn-fg: #F2EDE4;
  --knob: #14284B;
  --shadow-soft: 0 24px 60px -32px rgba(14, 29, 56, .38);
  --shadow-card: 0 40px 80px -40px rgba(14, 29, 56, .45);
  --grain-opacity: .035;
  --grain-blend: multiply;

  /* Chart series, validated for CVD separation on the navy panel surface */
  --c-nightly: #B58D3B;
  --c-monthly: #4777D2;
  --c-annual: #339C6D;

  --radius-panel: 32px;
  --radius-card: 20px;
  --radius-input: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font-sans: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0A1322;
    --paper-2: #101B2F;
    --surface: #111D32;
    --ink: #EEE8DD;
    --ink-soft: #CDD3DD;
    --muted: #9AA4B5;
    --navy: #13233F;
    --navy-deep: #0F1B31;
    --navy-2: #1B2E52;
    --gold: #CDAA6C;
    --gold-soft: #D8BF8C;
    --gold-ink: #D4B67F;
    --line: rgba(238, 232, 221, .10);
    --line-strong: rgba(238, 232, 221, .22);
    --danger: #FF8F84;
    --btn-bg: #EEE8DD;
    --btn-fg: #0E1D38;
    --knob: #EEE8DD;
    --shadow-soft: 0 24px 60px -32px rgba(0, 0, 0, .7);
    --shadow-card: 0 40px 80px -40px rgba(0, 0, 0, .8);
    --grain-opacity: .06;
    --grain-blend: soft-light;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0A1322;
  --paper-2: #101B2F;
  --surface: #111D32;
  --ink: #EEE8DD;
  --ink-soft: #CDD3DD;
  --muted: #9AA4B5;
  --navy: #13233F;
  --navy-deep: #0F1B31;
  --navy-2: #1B2E52;
  --gold: #CDAA6C;
  --gold-soft: #D8BF8C;
  --gold-ink: #D4B67F;
  --line: rgba(238, 232, 221, .10);
  --line-strong: rgba(238, 232, 221, .22);
  --danger: #FF8F84;
  --btn-bg: #EEE8DD;
  --btn-fg: #0E1D38;
  --knob: #EEE8DD;
  --shadow-soft: 0 24px 60px -32px rgba(0, 0, 0, .7);
  --shadow-card: 0 40px 80px -40px rgba(0, 0, 0, .8);
  --grain-opacity: .06;
  --grain-blend: soft-light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  word-spacing: .04em;
  overflow-x: clip;
  transition: background-color .4s ease, color .4s ease;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--gold-soft); color: #0E1D38; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 200;
  padding: .75rem 1rem; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.section { padding-block: clamp(5.5rem, 3.5rem + 5.5vw, 9rem); }
.section-head { max-width: 780px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }

/* ---------- Type ---------- */
.h2 {
  word-spacing: .02em;
  font-size: clamp(2.125rem, 1.35rem + 2.7vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.04;
  text-wrap: balance;
}
.h2--sm { font-size: clamp(1.875rem, 1.3rem + 1.8vw, 2.75rem); }
.h3 { font-size: 1.375rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.lede {
  margin-top: 1.1rem;
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.text-link { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); text-decoration-thickness: 1px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 3.25rem;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: var(--h); padding: 0 1.6rem;
  border-radius: 999px;
  font: 500 .975rem/1 var(--font-sans);
  letter-spacing: -.005em;
  white-space: nowrap;
  transition: transform .5s var(--ease-out), background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn i { font-size: 1.15em; transition: transform .45s var(--ease-out); }
.btn:hover i.ph-arrow-right { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold-grad); opacity: 0;
  transition: opacity .45s ease;
}
.btn--primary:hover::before { opacity: .2; }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn--ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.btn--light { background: #F2EDE4; color: #0E1D38; }
.btn--light:hover { background: #FFFDF8; }
.btn--sm { --h: 2.75rem; padding: 0 1.2rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.3rem; color: var(--ink);
  transition: background-color .25s ease;
}
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }

/* ---------- Brand (traced logo layers as masks so they follow the theme) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; }
.brand__mark { display: block; flex: none; width: 48px; height: auto; aspect-ratio: 462 / 328; color: var(--ink); overflow: visible; }
.brand__mark--sm { width: 26px; }
.brand__mark--lg { width: 132px; }
.brand__word { display: block; width: 138px; height: auto; aspect-ratio: 764 / 88; fill: currentColor; color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 12px 0 auto; z-index: 50;
  pointer-events: none;
  transition: transform .6s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-130%); }
.nav__bar {
  pointer-events: auto;
  width: min(100% - 2 * var(--gutter) + 24px, 1344px);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 .5rem 0 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .45s ease, border-color .45s ease, box-shadow .45s ease;
}
.nav.is-scrolled .nav__bar {
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
          backdrop-filter: blur(18px) saturate(1.4);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.nav__links { display: flex; gap: 2rem; margin-inline: auto; font-size: .95rem; }
.nav__links a { color: var(--ink-soft); position: relative; padding-block: .4rem; transition: color .25s ease; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: .5rem; }
.nav__menu-btn { display: none; }

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: grid; }
  .nav__actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .nav__actions .btn { display: none; }
  .brand__word { width: 118px; }
  .brand__mark { width: 42px; }
}

/* Mobile menu sheet */
.menu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  padding: 1.25rem var(--gutter) 2rem;
  background: var(--paper);
  animation: menu-in .5s var(--ease-out);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }
.menu__top { display: flex; justify-content: space-between; align-items: center; height: var(--nav-h); }
.menu__links { display: grid; gap: .25rem; margin-top: 2rem; }
.menu__links a { font-size: 2.25rem; font-weight: 500; letter-spacing: -.03em; padding-block: .35rem; }
.menu__foot { margin-top: auto; display: flex; align-items: center; gap: 1.5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__stage { position: relative; height: 100dvh; min-height: 640px; overflow: hidden; }
.hero__media {
  position: absolute; inset: 0;
  /* Desktop fallback; JS replaces it with the measured arch */
  clip-path: inset(15vh 6vw 0 57vw round 18.5vw 18.5vw 0 0);
}
.hero__door { position: absolute; inset: 0; transform-origin: 50% 100%; }
@media (min-width: 960px) { .js .hero__door { clip-path: inset(100% 0 0 0); } }
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 47% 50%;
  transform-origin: 50% 60%;
}
.hero__veil {
  position: absolute; inset: 0; opacity: 0;
  background:
    linear-gradient(180deg, rgba(8, 15, 28, .1) 0%, rgba(8, 15, 28, .2) 40%, rgba(8, 15, 28, .82) 100%),
    linear-gradient(90deg, rgba(8, 15, 28, .45) 0%, rgba(8, 15, 28, 0) 70%);
}
.hero__outline {
  position: absolute; display: none; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--gold) 75%, transparent);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.hero__outline.is-ready { display: block; }
.hero__grid {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: center;
  gap: 4vw;
  padding-top: calc(var(--nav-h) + 12px);
}
.hero__copy { max-width: 640px; padding-bottom: 6vh; }
.hero__title {
  margin-top: 0;
  font-size: clamp(2.75rem, 1.1rem + 3.7vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.04em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line + .line { color: var(--gold-ink); }
.hero__sub {
  margin-top: 1.6rem;
  max-width: 31rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero__slot {
  position: relative;
  align-self: end;
  justify-self: end;
  width: min(100%, 37vw);
  height: calc(100dvh - max(15vh, 120px));
  max-height: 880px;
}
.payout-card {
  position: absolute; left: -72px; bottom: 15%;
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem 1.25rem .85rem .85rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.payout-card__icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: #14284B; color: var(--gold-soft); font-size: 1.35rem;
}
.payout-card__body { display: grid; line-height: 1.25; }
.payout-card__label { font-size: .8rem; color: var(--muted); }
.payout-card__value { font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; }
.payout-card__meta { font-size: .78rem; line-height: 1.4; color: var(--muted); }

.hero__manifesto {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding-bottom: clamp(3.5rem, 10vh, 7rem);
  color: #F2EDE4;
  opacity: 0;
  pointer-events: none;
}
.manifesto {
  max-width: 21em;
  font-size: clamp(1.75rem, .9rem + 2.5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.14;
  text-wrap: balance;
}
.manifesto .w { opacity: .2; }
@media (max-width: 959px) { .manifesto .w { opacity: 1; } }

@media (max-width: 959px) {
  .hero__stage { height: auto; min-height: 0; overflow: visible; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + 36px); }
  .hero__grid { order: 1; height: auto; padding-top: 0; grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 0; }
  .hero__slot { display: none; }
  .hero__media {
    order: 2; position: relative; inset: auto;
    width: calc(100% - 2 * var(--gutter)); margin: 2.5rem auto 0;
    aspect-ratio: 4 / 5; max-height: 76svh;
    clip-path: none; border-radius: 999px 999px 0 0; overflow: hidden;
  }
  .hero__outline { display: none !important; }
  .hero__manifesto { order: 3; position: relative; opacity: 1; color: var(--ink); padding-block: 4.5rem 1rem; }
  .hero__veil { display: none; }
}

/* ---------- Services ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.35rem; }
.ticker__track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; flex: none; }
.ticker__list li {
  position: relative;
  padding-inline: 1.9rem;
  font-size: clamp(1.125rem, 1rem + .55vw, 1.5rem);
  letter-spacing: -.02em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.ticker__list li::after {
  content: ""; position: absolute; right: -5px; top: 50%;
  width: 10px; height: 13px; margin-top: -6px;
  border: 1.5px solid var(--gold); border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Panels ---------- */
.panel { position: relative; overflow: hidden; border-radius: var(--radius-panel); }
.panel--navy {
  color: var(--on-navy);
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(184, 148, 90, .14), transparent 55%),
    var(--navy-deep);
  border: 1px solid color-mix(in srgb, var(--on-navy) 6%, transparent);
}

/* ---------- Estimator ---------- */
.estimator {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "controls result" "cta result";
  gap: clamp(2rem, 4.5vw, 4.5rem);
  padding: clamp(1.5rem, 3.4vw, 3.5rem);
}
.estimator__controls { grid-area: controls; padding-top: .25rem; }
.estimator__result { grid-area: result; }
.field-group { border: 0; padding: 0; margin: 0 0 1.9rem; min-width: 0; }
.field-label { padding: 0; margin-bottom: .8rem; font-size: .875rem; font-weight: 500; color: var(--on-navy-muted); }
.field-help { display: flex; gap: .5rem; margin-top: .8rem; font-size: .875rem; line-height: 1.5; color: var(--on-navy-muted); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center;
  height: 2.5rem; padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(242, 237, 228, .2);
  font-size: .925rem;
  color: var(--on-navy);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.chip:hover span { border-color: rgba(242, 237, 228, .45); }
.chip input:checked + span { background: #F2EDE4; color: #0E1D38; border-color: #F2EDE4; }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.chips--light .chip span { border-color: var(--line-strong); color: var(--ink); }
.chips--light .chip:hover span { border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.chips--light .chip input:checked + span { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }

.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 4px; border-radius: 999px;
  background: rgba(242, 237, 228, .05);
  border: 1px solid rgba(242, 237, 228, .14);
}
.segmented label { position: relative; display: block; }
.segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: block; text-align: center;
  padding: .62rem .5rem; border-radius: 999px;
  font-size: .925rem; color: var(--on-navy-muted);
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease;
}
.segmented label:hover span { color: var(--on-navy); }
.segmented input:checked + span { background: #F2EDE4; color: #0E1D38; }
.segmented input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.strategy {
  display: inline-flex; flex-wrap: wrap; gap: .25rem;
  padding: 4px; border-radius: 999px;
  background: rgba(242, 237, 228, .05);
  border: 1px solid rgba(242, 237, 228, .14);
}
.strategy button {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .6rem 1.05rem; border-radius: 999px;
  font-size: .925rem; color: var(--on-navy-muted);
  transition: background-color .25s ease, color .25s ease;
}
.strategy button:hover { color: var(--on-navy); }
.strategy button[aria-selected="true"] { background: rgba(242, 237, 228, .13); color: var(--on-navy); }
.strategy__tag {
  font-size: .75rem; font-weight: 500; line-height: 1;
  color: var(--gold-soft);
  padding: .3rem .55rem; border-radius: 999px;
  border: 1px solid rgba(216, 191, 140, .4);
}

.figure { margin-top: 2rem; }
.figure__label { font-size: .9375rem; color: var(--on-navy-muted); }
.figure__value {
  margin-top: .35rem;
  font-size: clamp(2.75rem, 1.9rem + 3vw, 4.6rem);
  font-weight: 500; letter-spacing: -.045em; line-height: 1.02;
}
.figure__unit { font-size: .42em; letter-spacing: 0; color: var(--on-navy-muted); vertical-align: .62em; margin-right: .15em; }
.figure__delta { margin-top: .55rem; font-size: .95rem; color: var(--on-navy-muted); min-height: 1.6em; }
.figure__delta b { color: var(--gold-soft); font-weight: 500; }

.chart { margin-top: 2.25rem; }
.chart__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .75rem 1.5rem; }
.chart__title { font-size: .9375rem; font-weight: 500; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .8125rem; color: var(--on-navy-muted); }
.legend li { display: inline-flex; align-items: center; gap: .45rem; transition: opacity .35s ease; }
.legend li.is-off { opacity: .38; }
.legend__key { width: 10px; height: 10px; border-radius: 3px; }
.legend__key--nightly { background: var(--c-nightly); }
.legend__key--monthly { background: var(--c-monthly); }
.legend__key--annual { background: var(--c-annual); }

.chart__plot { position: relative; height: 230px; margin-top: 1.4rem; }
.chart__grid { position: absolute; inset: 0 0 28px 54px; }
.chart__grid .gl { position: absolute; left: 0; right: 0; height: 1px; background: rgba(242, 237, 228, .1); }
.chart__grid .gl span {
  position: absolute; right: calc(100% + 10px); top: 0; transform: translateY(-50%);
  font: 400 .7rem/1 var(--font-mono); color: var(--on-navy-muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.chart__bars { position: absolute; inset: 0 0 0 54px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 28px; cursor: default; }
.bar__fill {
  width: min(24px, 62%);
  height: 0;
  border-radius: 4px 4px 0 0;
  background: var(--c-annual);
  transition: height .8s var(--ease-out), background-color .45s ease, opacity .25s ease;
}
.bar__month { position: absolute; bottom: 0; font: 400 .72rem/1 var(--font-mono); color: var(--on-navy-muted); }
.chart__bars.is-hovering .bar:not(.is-hot) .bar__fill { opacity: .45; }
.chart__tip {
  position: absolute; z-index: 2;
  transform: translate(-50%, calc(-100% - 10px));
  padding: .55rem .75rem; border-radius: 10px;
  background: #F2EDE4; color: #0E1D38;
  font-size: .8125rem; line-height: 1.35; white-space: nowrap;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
  pointer-events: none;
}
.chart__tip b { display: block; font-weight: 500; }
.chart__caption { margin-top: 1.1rem; min-height: 3.2em; font-size: .9375rem; line-height: 1.55; color: var(--on-navy-muted); max-width: 60ch; }
.chart__table { margin-top: .5rem; }
.chart__table summary { width: fit-content; cursor: pointer; font-size: .8125rem; color: var(--on-navy-muted); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.chart__table summary::-webkit-details-marker { display: none; }
.chart__table table { width: 100%; margin-top: .8rem; border-collapse: collapse; font-size: .8125rem; color: var(--on-navy-muted); }
.chart__table th { text-align: left; font-weight: 500; color: var(--on-navy); padding: .4rem 0; border-bottom: 1px solid rgba(242, 237, 228, .14); }
.chart__table td { padding: .32rem 0; }
.chart__table th:last-child, .chart__table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.chart__table tfoot td { color: var(--on-navy); border-top: 1px solid rgba(242, 237, 228, .14); padding-top: .5rem; }

.estimator__cta { grid-area: cta; align-self: end; display: grid; justify-items: start; gap: 1rem; padding-top: 2rem; border-top: 1px solid rgba(242, 237, 228, .1); }
.estimator__note { max-width: 44ch; font-size: .8125rem; line-height: 1.5; color: var(--on-navy-muted); }

/* ---------- Journey ---------- */
.journey { position: relative; }
.journey__pin {
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(2rem, 4vh, 3.5rem);
  padding-block: calc(var(--nav-h) + 1.5rem) 2rem;
}
.journey__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.journey__head .lede { max-width: 46ch; }
.journey__progress { position: relative; flex: none; width: 200px; height: 1px; margin-bottom: .8rem; background: var(--line-strong); }
.journey__progress span { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.journey__viewport { overflow: hidden; }
.journey__track {
  display: flex; gap: 1.25rem; width: max-content;
  padding-inline: max(var(--gutter), (100vw - 1320px) / 2);
}
.step {
  flex: none;
  width: clamp(290px, 27vw, 400px);
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.step__media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--paper-2); }
.step__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.step:hover .step__media img { transform: scale(1.04); }
.step--icon .step__media { display: grid; place-items: center; }
.step__arch {
  position: relative;
  width: 116px; height: 148px;
  display: grid; place-items: center;
  border: 1px solid var(--gold); border-bottom: 0;
  border-radius: 999px 999px 0 0;
  font-size: 2.9rem; color: var(--gold-ink);
}
.step__arch::before {
  content: ""; position: absolute; inset: -12px -12px 0;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.step__arch::after { content: ""; position: absolute; left: -26px; right: -26px; bottom: 0; height: 1px; background: var(--gold); }
.step--gold .step__media { background: color-mix(in srgb, var(--gold) 17%, var(--paper)); }
.step--navy .step__media { background: var(--navy-deep); }
.step--navy .step__arch { color: var(--gold-soft); border-color: var(--gold-soft); }
.step--navy .step__arch::after { background: var(--gold-soft); }
.step__body { padding: 1.5rem 1.6rem 1.8rem; }
.step__body p { margin-top: .6rem; font-size: 1rem; line-height: 1.55; color: var(--muted); }

@media (max-width: 959px) {
  .journey__pin { min-height: 0; padding-block: clamp(5rem, 4rem + 6vw, 8rem) 0; }
  .journey__progress { display: none; }
  .journey__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .5rem; }
  .journey__viewport::-webkit-scrollbar { display: none; }
  .journey__track { padding-inline: var(--gutter); }
  .step { width: min(82vw, 380px); scroll-snap-align: center; }
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(330px, auto);
  gap: 1rem;
}
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(1.4rem, 2vw, 2rem);
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
}
.tile__text { position: relative; z-index: 2; max-width: 36ch; }
.tile__text p { margin-top: .55rem; font-size: 1rem; line-height: 1.55; color: var(--muted); }
.tile__text--on-photo { color: #F2EDE4; }
.tile__text--on-photo p { color: rgba(242, 237, 228, .8); }
.tile__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.tile:hover .tile__bg { transform: scale(1.03); }

.tile--app {
  grid-column: 1 / span 5; grid-row: span 2;
  display: flex; flex-direction: column;
  padding-bottom: 0;
  color: var(--on-navy);
  background:
    radial-gradient(90% 60% at 50% 100%, rgba(184, 148, 90, .22), transparent 70%),
    var(--navy-deep);
  border-color: transparent;
}
.tile--app .tile__text p { color: var(--on-navy-muted); }
.tile--photo { grid-column: 6 / span 7; display: flex; flex-direction: column; justify-content: flex-end; border: 0; }
.tile--photo::after, .tile--energy::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.tile--photo::after { background: linear-gradient(180deg, rgba(8, 15, 28, .08) 0%, rgba(8, 15, 28, .2) 35%, rgba(8, 15, 28, .88) 100%); }
.tile--report { grid-column: 6 / span 4; display: flex; flex-direction: column; background: var(--paper-2); }
.tile--report .report { margin-top: auto; }
.tile--compliance { grid-column: 10 / span 3; background: color-mix(in srgb, var(--gold) 15%, var(--paper)); }
.tile--energy {
  grid-column: 1 / -1;
  min-height: 280px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end; gap: 2rem;
  border: 0; color: #F2EDE4;
}
.tile--energy::after { background: linear-gradient(90deg, rgba(8, 15, 28, .9) 0%, rgba(8, 15, 28, .7) 55%, rgba(8, 15, 28, .45) 100%); }

/* Phone (a real, small rendition of the owner app home screen) */
.phone {
  position: relative;
  width: min(300px, 88%);
  height: 560px;
  margin: 2rem auto 0;
  margin-top: auto;
  padding: 10px 10px 0;
  border-radius: 48px 48px 0 0;
  background: #070C16;
  box-shadow: 0 -30px 70px -30px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(255, 255, 255, .09);
}
.tile--app .tile__text { margin-bottom: 2rem; }
.phone__screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 39px 39px 0 0;
  background: #F6F3EE; color: #12233F;
  font-size: 12px; line-height: 1.35;
}
.phone__screen::before {
  content: ""; position: absolute; top: 9px; left: 50%; width: 92px; height: 26px;
  transform: translateX(-50%); border-radius: 999px; background: #070C16;
}
.app__status { display: flex; justify-content: space-between; align-items: center; padding: 13px 26px 0; font-weight: 600; font-size: 12.5px; }
.app__status-icons { display: inline-flex; gap: 4px; font-size: 14px; }
.app__top { display: flex; justify-content: space-between; align-items: center; padding: 20px 18px 0; }
.app__hello { font-size: 16px; font-weight: 500; letter-spacing: -.02em; }
.app__unit { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; color: #586276; font-size: 11.5px; }
.app__avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #14284B; color: #D8BF8C; font-size: 12px; font-weight: 500; }
.app__payout {
  position: relative; overflow: hidden;
  margin: 14px 14px 0; padding: 16px 16px 15px;
  border-radius: 18px;
  background: #14284B; color: #F2EDE4;
}
.app__payout::after {
  content: ""; position: absolute; right: -22px; top: 14px; width: 92px; height: 120px;
  border: 1px solid rgba(216, 191, 140, .4); border-bottom: 0; border-radius: 999px 999px 0 0;
}
.app__payout-label { font-size: 11px; color: #AEB8C9; }
.app__payout-value { margin-top: 4px; font-size: 27px; font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.app__payout-meta { margin-top: 6px; font-size: 10.5px; line-height: 1.3; color: #AEB8C9; }
.app__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 14px 0; }
.app__stats > div { padding: 10px 12px; border-radius: 14px; background: #FDFBF8; border: 1px solid rgba(18, 35, 63, .08); }
.app__stat-label { font-size: 10.5px; color: #586276; }
.app__stat-value { margin-top: 2px; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.app__section { margin: 14px 18px 7px; font-size: 11px; font-weight: 500; color: #586276; }
.app__feed { display: grid; gap: 6px; margin: 0 14px; }
.app__feed li {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 7px 10px 7px 7px; border-radius: 13px;
  background: #FDFBF8; border: 1px solid rgba(18, 35, 63, .07);
}
.app__feed img, .app__feed-icon { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.app__feed-icon { display: grid; place-items: center; background: #EEE9E0; color: #14284B; font-size: 16px; }
.app__feed b { display: block; font-size: 12px; font-weight: 500; }
.app__feed small { display: block; font-size: 10.5px; color: #586276; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__feed .ph-check-circle { font-size: 18px; color: #339C6D; }
.app__tabs {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around;
  padding: 12px 18px 20px;
  background: rgba(246, 243, 238, .94);
  border-top: 1px solid rgba(18, 35, 63, .08);
  font-size: 21px; color: #8D95A5;
}
.app__tabs i:first-child { color: #14284B; }

.job-card {
  position: absolute; top: 1.25rem; right: 1.25rem; z-index: 2;
  width: 250px; padding: 12px;
  border-radius: 16px;
  background: rgba(246, 243, 238, .93);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: #12233F;
  box-shadow: 0 24px 50px -24px rgba(8, 15, 28, .6);
}
.job-card__title { display: flex; align-items: center; gap: .45rem; font-size: .875rem; font-weight: 500; }
.job-card__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.job-card__thumbs img { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 8px; }
.job-card__meta { margin-top: 9px; font-size: .75rem; line-height: 1.3; color: #586276; }

.report { margin-top: 1.4rem; padding: 1.1rem 1.25rem 1.2rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.report__head { display: flex; justify-content: space-between; align-items: center; font-size: .8125rem; font-weight: 500; line-height: 1; color: var(--muted); }
.report__tag { padding: .3rem .55rem; font-size: .75rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); color: var(--gold-ink); }
.report blockquote { margin-top: .9rem; font-size: 1.03rem; line-height: 1.55; color: var(--ink-soft); }

.checks { display: grid; gap: .95rem; margin-top: 1.4rem; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .65rem; font-size: .875rem; line-height: 1.4; color: var(--muted); }
.checks i { margin-top: 1px; font-size: 1.25rem; color: var(--gold-ink); }
.checks b { display: block; font-size: .9375rem; font-weight: 500; color: var(--ink); }

.thermo { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.thermo li { padding-top: .9rem; border-top: 1px solid rgba(242, 237, 228, .28); }
.thermo li:nth-child(3) { border-top-color: var(--gold-soft); }
.thermo__temp { display: block; font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.thermo__temp .deg { font-size: .42em; letter-spacing: 0; vertical-align: .95em; margin-left: .08em; color: rgba(242, 237, 228, .75); }
.thermo__when { display: block; margin-top: .5rem; font-size: .875rem; color: rgba(242, 237, 228, .75); }

@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--app { grid-column: 1; grid-row: span 2; }
  .tile--photo, .tile--report { grid-column: 2; }
  .tile--compliance { grid-column: 1; }
  .tile--energy { grid-column: 2; grid-template-columns: 1fr; align-items: end; }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile--app, .tile--photo, .tile--report, .tile--compliance, .tile--energy { grid-column: 1; grid-row: auto; }
  .tile--photo { min-height: 460px; }
  .tile--energy { min-height: 380px; }
  .phone { height: 520px; }
}

/* ---------- Plans ---------- */
.plans__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.spectrum { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.spectrum__ends { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--muted); padding-inline: .25rem; }
.spectrum__track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.1rem; }
.spectrum__line { position: absolute; top: 10px; left: 16.666%; right: 16.666%; height: 1px; background: var(--line-strong); }
.spectrum__knob {
  position: absolute; top: 0; left: 50%; z-index: 2;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--knob);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 28%, transparent);
  transform: translateX(-50%);
  transition: left .7s var(--ease-out);
  pointer-events: none;
}
.spectrum__stop {
  position: relative;
  padding: 2.4rem .5rem .5rem;
  font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em;
  color: var(--muted);
  transition: color .3s ease;
}
.spectrum__stop:hover, .spectrum__stop[aria-checked="true"] { color: var(--ink); }
.spectrum__dot {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent);
}
.plan { position: relative; min-height: 205px; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.plan__pane { animation: pane-in .6s var(--ease-out); }
@keyframes pane-in { from { opacity: 0; transform: translateY(10px); } }
.plan__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.05rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.plan__pane > p { margin-top: .9rem; max-width: 54ch; color: var(--muted); }
.plan__pane > p.plan__fit { display: flex; align-items: center; gap: .55rem; margin-top: 1.25rem; font-size: .9375rem; color: var(--ink); }
.plan__fit i { font-size: 1.25rem; color: var(--gold-ink); }
.plans__includes { margin-top: 1.75rem; padding: 1rem 1.25rem; border-radius: 14px; background: var(--paper-2); font-size: .9375rem; color: var(--muted); }

.plans__visual { position: relative; padding: 16px 16px 0; }
.plans__visual::before {
  content: ""; position: absolute; inset: 0;
  border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent); border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.plans__visual::after { content: ""; position: absolute; left: -24px; right: -24px; bottom: 0; height: 1px; background: color-mix(in srgb, var(--gold) 70%, transparent); }
.arch-frame { position: relative; aspect-ratio: 4 / 5.3; overflow: hidden; border-radius: 999px 999px 0 0; }
.arch-frame img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 30%; }

/* ---------- Stays ---------- */
.stay-rail { display: flex; gap: 1rem; height: clamp(460px, 64vh, 620px); }
.stay {
  position: relative; flex: 1 1 0; min-width: 0;
  overflow: hidden; isolation: isolate;
  border-radius: var(--radius-card);
  color: #F2EDE4; cursor: pointer;
  transition: flex-grow .8s var(--ease-out);
}
.stay.is-active { flex-grow: 2.7; cursor: default; }
.stay img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease-out); }
.stay.is-active img { transform: scale(1); }
.stay::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 15, 28, 0) 35%, rgba(8, 15, 28, .82) 100%); }
.stay__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.25rem, 2.2vw, 2rem); }
.stay__meta { font-size: .875rem; color: rgba(242, 237, 228, .78); }
.stay__title { margin-top: .3rem; font-size: clamp(1.4rem, 1.1rem + 1vw, 2.2rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.stay__text {
  max-width: 38ch; margin-top: .6rem;
  color: rgba(242, 237, 228, .85); font-size: 1rem; line-height: 1.5;
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s ease, transform .6s var(--ease-out);
}
.stay.is-active .stay__text { opacity: 1; transform: none; transition-delay: .2s; }
.stays__cta { margin-top: 2rem; }

.concierge {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 7rem); align-items: center;
  margin-top: clamp(5rem, 4rem + 4vw, 8.5rem);
}
.chat {
  width: 100%; max-width: 480px;
  border-radius: var(--radius-panel);
  background: var(--navy-deep); color: var(--on-navy);
  border: 1px solid color-mix(in srgb, var(--on-navy) 6%, transparent);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.chat__head { display: flex; align-items: center; gap: .8rem; padding: 1.05rem 1.3rem; border-bottom: 1px solid rgba(242, 237, 228, .1); }
.chat__head b { display: block; font-size: .95rem; font-weight: 500; }
.chat__head small { display: block; font-size: .8rem; color: var(--on-navy-muted); }
.chat__avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #F2EDE4; }
.chat__avatar .brand__mark { color: #14284B; }
.chat__log { display: flex; flex-direction: column; gap: .5rem; padding: 1.3rem 1.3rem .75rem; min-height: 420px; }
.msg { max-width: 82%; padding: .65rem .9rem .5rem; border-radius: 16px; font-size: .9375rem; line-height: 1.42; }
.msg time { display: block; margin-top: .25rem; text-align: right; font: 400 .66rem/1 var(--font-mono); opacity: .6; }
.msg--in { align-self: flex-start; background: rgba(242, 237, 228, .09); border-bottom-left-radius: 6px; }
.msg--out { align-self: flex-end; background: #F2EDE4; color: #12233F; border-bottom-right-radius: 6px; }
.msg--file { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.msg--file time { width: 100%; }
.js .chat.is-armed .msg { opacity: 0; transform: translateY(10px); }
.js .chat.is-armed .msg.is-shown, .chat .msg.is-shown { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s var(--ease-out); }
.chat__typing { display: none; gap: 4px; width: fit-content; margin: 0 1.3rem 1.3rem auto; padding: .75rem .9rem; border-radius: 16px; background: rgba(242, 237, 228, .14); }
.chat__typing.is-on { display: flex; }
.chat__typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--on-navy); opacity: .4; animation: typing 1s infinite ease-in-out; }
.chat__typing span:nth-child(2) { animation-delay: .15s; }
.chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { opacity: 1; transform: translateY(-2px); } }

.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.9rem 2rem; margin-top: 2.5rem; }
.perks li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 1rem; }
.perks i {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 14px; border: 1px solid var(--line);
  background: var(--paper-2); color: var(--gold-ink); font-size: 1.4rem;
}
.perks h4 { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; }
.perks p { margin-top: .25rem; font-size: .9375rem; line-height: 1.5; color: var(--muted); }

/* ---------- Compliance ---------- */
.compliance { padding-top: 0; }
.compliance__panel { padding: clamp(1.75rem, 5.5vw, 5.5rem); }
.compliance__head { position: relative; z-index: 1; max-width: 720px; }
.compliance__head .lede { color: var(--on-navy-muted); }
.compliance__arches { position: absolute; right: -4%; bottom: -1px; width: min(44%, 560px); aspect-ratio: 1 / 1.1; pointer-events: none; }
.compliance__arches span { position: absolute; inset: 0; border: 1px solid rgba(216, 191, 140, .14); border-bottom: 0; border-radius: 999px 999px 0 0; }
.compliance__arches span:nth-child(2) { inset: 44px 44px 0; }
.compliance__arches span:nth-child(3) { inset: 88px 88px 0; border-color: rgba(216, 191, 140, .22); }
.rules { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.5rem, 4.5vw, 4.5rem); }
.rules__group { padding-top: 1.4rem; border-top: 1px solid rgba(216, 191, 140, .38); }
.rules__title { display: flex; align-items: center; gap: .6rem; font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; }
.rules__title i { font-size: 1.45rem; color: var(--gold-soft); }
.rules ul { display: grid; gap: .75rem; margin-top: 1.1rem; }
.rules li { position: relative; padding-left: 1.35rem; font-size: .975rem; line-height: 1.5; color: var(--on-navy-muted); }
.rules li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 7px; height: 9px;
  border: 1px solid var(--gold-soft); border-bottom: 0; border-radius: 999px 999px 0 0;
}

/* ---------- Handover ---------- */
.handover { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: min(100dvh, 900px); color: #F2EDE4; }
.handover__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.handover__media img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; object-position: 50% 45%; }
.handover__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 13, 25, .92) 0%, rgba(7, 13, 25, .72) 42%, rgba(7, 13, 25, .2) 100%),
    linear-gradient(0deg, rgba(7, 13, 25, .5), rgba(7, 13, 25, 0) 40%);
}
.handover__copy { max-width: 580px; padding-block: clamp(6rem, 12vw, 9rem); }
.handover__copy .h2 { margin-top: 0; }
.handover__copy .lede { color: rgba(242, 237, 228, .82); }
.handover__facts { display: grid; gap: .85rem; margin: 2rem 0 2.5rem; }
.handover__facts li { display: flex; align-items: center; gap: .75rem; font-size: 1rem; }
.handover__facts i { font-size: 1.3rem; color: var(--gold-soft); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.faq__intro { position: sticky; top: 120px; }
.faq__intro .btn { margin-top: 2rem; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.55rem 0;
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.3rem); font-weight: 500; letter-spacing: -.015em;
  cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; font-size: 1.3rem; color: var(--gold-ink); transition: transform .45s var(--ease-out); }
.qa.is-open summary i { transform: rotate(45deg); }
.qa__a { overflow: hidden; }
.qa__a p { max-width: 62ch; padding-bottom: 1.6rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact__arch {
  position: relative; overflow: hidden;
  padding: clamp(7.5rem, 15vw, 14rem) clamp(1.25rem, 5vw, 5.5rem) clamp(1.5rem, 5vw, 5.5rem);
  color: var(--on-navy);
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(184, 148, 90, .16), transparent 70%),
    var(--navy-deep);
  border-radius: 50% 50% var(--radius-panel) var(--radius-panel) / clamp(150px, 24vw, 360px) clamp(150px, 24vw, 360px) var(--radius-panel) var(--radius-panel);
}
.contact__arch::before {
  content: ""; position: absolute; inset: 16px 16px 0;
  border: 1px solid rgba(216, 191, 140, .26); border-bottom: 0;
  border-radius: 50% 50% 0 0 / clamp(140px, 23vw, 345px) clamp(140px, 23vw, 345px) 0 0;
  -webkit-mask: linear-gradient(180deg, #000 55%, transparent 95%); mask: linear-gradient(180deg, #000 55%, transparent 95%);
  pointer-events: none;
}
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact__copy .lede { color: var(--on-navy-muted); }
.contact__points { display: grid; gap: .8rem; margin-top: 2rem; }
.contact__points li { display: flex; align-items: center; gap: .65rem; color: var(--on-navy); }
.contact__points i { font-size: 1.1rem; color: var(--gold-soft); }

.lead {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: var(--radius-card);
  background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow-card);
}
.field { display: grid; gap: .5rem; min-width: 0; margin: 0 0 1.15rem; padding: 0; border: 0; }
.field label, .field legend { padding: 0; font-size: .875rem; font-weight: 500; color: var(--ink); }
.field legend { margin-bottom: .6rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.field input, .field select {
  width: 100%; height: 3.1rem; padding: 0 1rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: var(--muted); opacity: .85; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 30%, transparent); }
.field.has-error input { border-color: var(--danger); }
.field__error { font-size: .8125rem; color: var(--danger); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer; }
.select i { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead__legal { margin-top: .9rem; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.lead__done { padding: 1.5rem .25rem; }
.lead__done:focus { outline: none; }
.lead__done-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--gold) 20%, var(--paper)); color: var(--gold-ink); font-size: 1.6rem; }
.lead__done .h3 { margin-top: 1.25rem; }
.lead__done p { margin: .6rem 0 1.25rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding-block: clamp(2rem, 4vw, 3.5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; }
.footer__brand > p { margin-top: 1.25rem; max-width: 30ch; color: var(--muted); }
.footer__contact { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__contact a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer__cols h3 { margin-bottom: .9rem; font-size: .875rem; font-weight: 500; color: var(--muted); }
.footer__cols a { display: block; width: fit-content; padding-block: .3rem; color: var(--ink-soft); transition: color .25s ease; }
.footer__cols a:hover { color: var(--ink); }
.footer__word { display: block; width: 100%; height: auto; aspect-ratio: 764 / 88; margin-top: clamp(3.5rem, 7vw, 6rem); fill: url(#ca-gold-wide); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.footer__bottom a { margin-left: 1.5rem; }
.footer__bottom a:hover { color: var(--ink); }

/* ---------- Secondary pages (privacy, 404) ---------- */
.page { display: flex; flex-direction: column; }
.page-header { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.page-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.page-footer { margin-top: auto; padding-block: 2rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.page-footer a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.legal { max-width: 760px; padding-block: clamp(3.5rem, 8vw, 6rem); }
.legal__updated { margin-top: .75rem; font-size: .9375rem; color: var(--muted); }
.legal h2 { margin-top: 2.5rem; font-size: 1.375rem; font-weight: 500; letter-spacing: -.015em; }
.legal p, .legal li { max-width: 68ch; margin-top: .8rem; color: var(--muted); }
.legal ul { padding-left: 1.25rem; list-style: disc; }
.legal li::marker { color: var(--gold); }
.legal a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.notfound { display: grid; justify-items: start; gap: 1.25rem; padding-block: clamp(3.5rem, 9vw, 7rem); }
.notfound .lede { margin-top: 0; }
.notfound__arch {
  display: grid; place-items: center;
  width: 170px; height: 210px; margin-bottom: 1rem;
  border: 1px solid var(--gold); border-bottom: 0; border-radius: 999px 999px 0 0;
  font-size: 2.6rem; font-weight: 500; letter-spacing: -.03em; color: var(--gold-ink);
}

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1s ease, transform 1.2s var(--ease-out); }

/* ---------- Responsive ---------- */
@media (max-width: 959px) {
  .estimator, .plans__grid, .concierge, .faq__grid, .contact__grid, .footer__top { grid-template-columns: 1fr; }
  .estimator { grid-template-rows: none; grid-template-areas: "controls" "result" "cta"; }
  .plans__visual { width: min(100%, 420px); margin-inline: auto; }
  .chat { margin-inline: auto; }
  .faq__intro { position: static; }
  .rules { grid-template-columns: 1fr; }
  .compliance__arches { width: 80%; opacity: .6; }
  .tile--energy { grid-template-columns: 1fr; }
  .stay-rail { flex-direction: column; height: auto; }
  .stay, .stay.is-active { flex: none; height: 380px; }
  .stay img { transform: none; }
  .stay__text { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .section { padding-block: 5rem; }
  .field-row, .perks { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strategy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .strategy button { justify-content: center; padding: .6rem .3rem; font-size: .85rem; }
  .strategy__tag { display: none; }
  .chart__plot { height: 200px; }
  .chart__grid { left: 44px; }
  .chart__bars { left: 44px; }
  .segmented span { font-size: .85rem; padding-inline: .25rem; }
  .job-card { width: 210px; }
  .stay, .stay.is-active { height: 340px; }
  .chat__log { min-height: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero__door { clip-path: none; }
  .ticker__track { animation: none; }
  .manifesto .w { opacity: 1; }
}
