/* Presell landing v2 — navy/teal site tokens (from apps/editor/app/globals.css).
   Only /v2 and /v2b load this file; the live pages keep their own styles until
   the brand switch is approved. */

:root {
  --navy-deep: #17394f;
  --navy: #1f4d6e;
  --teal: #2f8a84;
  --teal-ink: #256e69;
  --teal-ink-hover: #1d5a56;
  --teal-wash: #e3f0ee;
  --paper: #f8f7f3;
  --mist: #eef3f5;
  --white: #ffffff;
  --line: #d6e0e5;
  --muted: #4b5f6e;
  --gold: #c9a24b;
  --gold-ink: #7d5f17;
  --glass: rgba(16, 38, 54, 0.82);
  --grid: rgba(31, 77, 110, 0.07);
  --grid-major: rgba(31, 77, 110, 0.11);
  --max: 1200px;
  --gutter: 24px;
  --head-h: 68px;
  --display: 'Barlow', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-deep);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--navy-deep);
  margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--white); padding: 10px 14px; }
.skip:focus { left: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  font: 600 16px/1 var(--body);
  text-decoration: none; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary { background: var(--teal-ink); color: var(--white); }
.btn-primary:hover { background: var(--teal-ink-hover); }
.btn-quiet { background: var(--white); color: var(--navy-deep); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--navy); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-on-navy { background: var(--white); color: var(--navy-deep); }
.btn-on-navy:hover { background: var(--mist); }

/* ---------- header ---------- */
.v2-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 247, 243, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.v2-head .bar { height: var(--head-h); display: flex; align-items: center; gap: 28px; }
.v2-brand { display: inline-flex; flex-shrink: 0; }
.v2-nav { display: flex; gap: 4px; margin-left: 8px; }
.v2-nav a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 8px;
}
.v2-nav a:hover { color: var(--navy-deep); background: var(--mist); }
.v2-head .actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.v2-head .signin { color: var(--navy-deep); font-weight: 500; font-size: 15px; text-decoration: none; padding: 8px 4px; }
.v2-head .phone {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; white-space: nowrap;
  color: var(--navy-deep); font-weight: 500; font-size: 15px; text-decoration: none; padding: 8px 4px;
  font-variant-numeric: tabular-nums;
}
.v2-head .phone svg { width: 16px; height: 16px; flex-shrink: 0; }
.v2-head .btn { min-height: 42px; font-size: 15px; padding: 0 18px; }
.menu-btn {
  display: none; margin-left: 4px; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  color: var(--navy-deep); cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn svg { width: 20px; height: 20px; }
.mob-menu { display: none; border-top: 1px solid var(--line); padding: 8px var(--gutter) 18px; }
.mob-menu.open { display: block; }
.mob-menu a { display: block; padding: 12px 0; color: var(--navy-deep); text-decoration: none; font-weight: 500; font-size: 17px; border-bottom: 1px solid var(--line); }
.mob-menu a:last-child { border-bottom: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 72px;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 66px); line-height: 1.02; letter-spacing: -0.02em; }
.hero h1 .ln { display: block; }
.hero .sub { margin-top: 22px; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .terms { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.hero .terms s { color: var(--muted); }
.hero .terms strong { color: var(--navy-deep); font-weight: 600; }

/* the tour frame — drawn like a plan sheet: a dimension line over the top edge */
.tour { position: relative; }
.dim {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 12px; color: var(--navy); font: 500 13.5px/1.2 var(--body);
}
.dim::before, .dim::after {
  content: ""; flex: 1; height: 9px;
  border-left: 1px solid var(--navy); border-right: 1px solid var(--navy);
  background: linear-gradient(var(--navy), var(--navy)) center / 100% 1px no-repeat;
}
.dim::before { border-right: 0; }
.dim::after { border-left: 0; }
.tour-frame {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 14px; background: var(--navy-deep);
  box-shadow: 0 1px 0 var(--white) inset, 0 40px 80px -42px rgba(23, 57, 79, 0.55);
  outline: 1px solid rgba(23, 57, 79, 0.18); outline-offset: 6px;
}
.tour-frame img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease; }
.tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .5s ease; }
.tour-frame.ready iframe { opacity: 1; }
.tour-frame.ready img.poster, .tour-frame.ready .tour-open, .tour-frame.ready .price-chip { opacity: 0; pointer-events: none; }
.tour-open {
  position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 22%;
  text-decoration: none; color: var(--white);
  background: linear-gradient(180deg, rgba(16, 38, 54, 0) 45%, rgba(16, 38, 54, 0.55) 100%);
  transition: opacity .4s ease;
}
.tour-open .pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 600 16px/1 var(--body); border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
}
.tour-open:hover .pill { background: rgba(16, 38, 54, 0.92); }
.tour-open .pill svg { width: 18px; height: 18px; }
.tour-frame.loading .pill .t::after { content: "…"; }
.full-link {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border-radius: 8px; background: var(--glass); color: var(--white);
  font: 600 13px/1 var(--body); text-decoration: none;
}
.full-link:hover { background: rgba(16, 38, 54, 0.95); }
.reel-frame { aspect-ratio: 16 / 9; }
.reel-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour-open { pointer-events: none; }
#walk .tour-frame { aspect-ratio: 16 / 9; }
/* the tour sized to the window with the how-to panel beside it, like /login */
.walk-row { display: flex; align-items: stretch; gap: 24px; margin-top: 36px; }
.walk-row .tour { flex: 0 0 auto; width: min(calc(100% - 19.5rem), calc(72vh * 16 / 9)); }
.walk-tips {
  flex: 1 1 18rem; display: flex; flex-direction: column; min-width: 0; contain: size; overflow: auto;
  padding: 14px 16px 12px; border-radius: 14px; background: var(--navy-deep); color: var(--white);
}
.walk-tips h3 { font-size: 16px; color: var(--white); }
.walk-tips ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; justify-content: space-between; flex: 1; gap: 6px; }
.walk-tips li { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; line-height: 1.35; color: #b9cad4; }
.walk-tips li strong { display: block; font-weight: 600; font-size: 14px; color: var(--white); margin-bottom: 1px; }
.walk-tips .ico {
  flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 9px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.walk-tips .ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.walk-tips .hw { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 12.5px; line-height: 1.45; color: #9fb3bf; }
@media (max-width: 899px) {
  .walk-row { flex-direction: column; }
  .walk-row .tour { width: 100%; }
  .walk-tips { contain: none; overflow: visible; }
  .walk-tips ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* dark-glass price chip over the poster: real Legacy demo-home numbers */
.price-chip {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  width: max-content; max-width: calc(100% - 28px);
  padding: 12px 14px 12px; border-radius: 12px;
  background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--white); border: 1px solid rgba(255, 255, 255, 0.16);
  transition: opacity .4s ease;
}
.price-chip .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.price-chip .lbl { font-size: 12.5px; color: #c9d6de; }
.price-chip .total { font: 600 26px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.price-chip .delta { font-size: 12.5px; color: #c9d6de; font-variant-numeric: tabular-nums; }
.pkgs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.pkgs button {
  font: 500 12.5px/1 var(--body); color: #e6eef2; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; padding: 7px 9px; cursor: pointer;
}
.pkgs button[aria-pressed="true"] { background: var(--white); color: var(--navy-deep); border-color: var(--white); }
.tour-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* ---------- section scaffolding ---------- */
.sec { padding: 96px 0; }
.sec-mist { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-white { background: var(--white); }
.sec h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; }
.sec .lead { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 40em; }
.kicker { font: 600 15px/1.3 var(--display); color: var(--teal-ink); margin-bottom: 10px; }

/* ---------- what you'll get: counted-up stats ---------- */
.gets { text-align: center; }
.gets h2 { max-width: 22em; margin: 0 auto; }
.gets-sub { max-width: 34em; margin: 14px auto 0; font: 500 clamp(18px, 1.7vw, 22px)/1.4 var(--display); color: var(--muted); }
/* A section's subhead: the line under its heading, smaller than the heading. */
.sec-sub { max-width: 36em; margin-top: 12px; font: 500 clamp(18px, 1.7vw, 22px)/1.4 var(--display); color: var(--muted); }
.gets-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1040px; margin: 44px auto 0; text-align: center; }
.gets-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.get { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 30px 22px 26px; box-shadow: 0 24px 48px -40px rgba(23, 57, 79, 0.55); }
.get .ico { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--teal-ink); box-shadow: 0 10px 24px -10px rgba(37, 110, 105, 0.7); }
.get .ico svg { width: 30px; height: 30px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.get .num { margin-top: 18px; font: 700 52px/1 var(--display); color: var(--navy-deep); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.get h3 { margin-top: 12px; font-size: 20px; line-height: 1.25; }
.get p:not(.num) { margin-top: 10px; font-size: 15px; color: var(--muted); }
.gets-fn { margin: 28px auto 0; padding-left: 20px; max-width: 90ch; text-align: left; font-size: 13px; color: var(--muted); }
.gets-fn li + li { margin-top: 4px; }

/* ---------- feature rows (buyers / builders) ---------- */
.feat-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 48px; }
.feat-head .lead { margin-top: 0; }
.buyer-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 24px; align-items: start; }
.shot {
  margin: 0; border-radius: 14px; overflow: hidden; background: var(--white);
  border: 1px solid var(--line);
}
.shot img { width: 100%; height: auto; }
.shot figcaption { padding: 16px 18px 18px; }
.shot figcaption h3 { font-size: 20px; line-height: 1.25; }
.shot figcaption p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.pair { display: grid; grid-template-columns: 1fr 1fr; }
.pair img { aspect-ratio: 16 / 10; object-fit: cover; }
.ui-stack { display: grid; gap: 24px; }
.ui-panel { display: grid; place-items: center; padding: 24px; background: #2a2d30; }
.ui-panel img { width: auto; max-width: 100%; max-height: 360px; border-radius: 10px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); }

.builder-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.builder-list .wide { grid-column: 1 / -1; }
.builder-list .ui-panel { background: var(--mist); }
.builder-list .ui-panel img { max-height: none; border-radius: 8px; box-shadow: 0 16px 36px -22px rgba(23, 57, 79, 0.5); }
.text-card { border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 24px; }
.text-card h3 { font-size: 20px; line-height: 1.25; }
.text-card p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.ai-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px;
  font: 600 13px/1 var(--body); color: var(--gold-ink);
}
.ai-tag svg { width: 15px; height: 15px; fill: var(--gold); }

/* ---------- how it works (a real sequence, so numbered) ---------- */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--navy); }
.steps li { counter-increment: step; padding: 22px 28px 0 0; position: relative; }
.steps li::before {
  content: counter(step); display: block; font: 600 44px/1 var(--display); color: var(--teal);
  margin-bottom: 12px;
}
.steps li::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--navy); }
.steps h3 { font-size: 22px; line-height: 1.2; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.claim-slot {
  margin-top: 40px; padding: 14px 18px; border: 2px dashed var(--gold); border-radius: 10px;
  background: #fbf6e9; color: var(--gold-ink); font-size: 15px;
}
.claim-slot strong { color: var(--navy-deep); }
.claim {
  margin-top: 40px; padding-left: 18px; border-left: 4px solid var(--teal);
  font: 600 26px/1.25 var(--display); color: var(--navy-deep); text-wrap: balance;
}

/* ---------- FAQ ---------- */
.faq { margin-top: 32px; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font: 600 19px/1.35 var(--display); color: var(--navy-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 26px/1 var(--body); color: var(--teal-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 0 22px; color: var(--muted); font-size: 16px; max-width: 64ch; }

/* ---------- final CTA + footer ---------- */
.final { background: var(--navy-deep); color: var(--white); padding: 88px 0; }
.final h2 { color: var(--white); font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; max-width: 16ch; }
.final p { color: #cbd9e1; font-size: 18px; margin-top: 14px; }
.final .ctas { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 30px; }
.final .ctas a.text { color: var(--white); font-weight: 500; }
.final .contact { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 28px; color: #cbd9e1; font-size: 15px; }
.final .contact a { color: var(--white); }
.v2-foot { background: #10293a; color: #a9bcc8; padding: 40px 0 96px; font-size: 14px; }
.v2-foot .row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.v2-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.v2-foot a { color: #dce6ec; text-decoration: none; }
.v2-foot a:hover { text-decoration: underline; }

/* ---------- phone sticky bar ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
  gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(248, 247, 243, 0.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform: translateY(110%); transition: transform .25s ease;
}
.dock .btn { flex: 1; min-height: 50px; padding: 0 10px; font-size: 15.5px; }
.dock.show { transform: none; }

/* ---------- one orchestrated load moment: the hero only ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .copy > *:nth-child(2) { animation-delay: .06s; }
  .hero .copy > *:nth-child(3) { animation-delay: .12s; }
  .hero .copy > *:nth-child(4) { animation-delay: .18s; }
  .hero .tour { animation: rise .9s .1s cubic-bezier(.2, .7, .2, 1) both; }
  .dim::before, .dim::after { animation: draw .9s .35s cubic-bezier(.2, .7, .2, 1) both; transform-origin: center; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tour-frame img.poster, .tour-frame iframe { transition: none; }
}

/* ---------- responsive ---------- */
/* the full nav plus the number only fit from 1181px; just below, the phone is an icon */
@media (min-width: 1021px) and (max-width: 1180px) {
  .v2-head .phone-num { display: none; }
}
@media (max-width: 1020px) {
  .v2-nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 899px) {
  :root { --gutter: 16px; --head-h: 60px; }
  .v2-head .signin { display: none; }
  .v2-head .actions .btn { display: none; }
  .v2-head .phone {
    justify-content: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  }
  .v2-head .phone svg { width: 20px; height: 20px; }
  .v2-head .phone-num { display: none; }
  .hero { padding: 16px 0 44px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero .tour { order: -1; }
  .dim { display: none; }
  .tour-open { align-items: center; padding-top: 0; }
  .tour-frame { aspect-ratio: auto; height: 45vh; min-height: 240px; max-height: 420px; outline: 0; border-radius: 12px; }
  .price-chip, .full-link { display: none; }
  .tour-note { display: none; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 44px); }
  .hero .sub { font-size: 17px; margin-top: 14px; }
  .hero .ctas { margin-top: 22px; }
  .hero .ctas .btn-primary { width: 100%; min-height: 56px; }
  .hero .ctas .btn-quiet { display: none; }
  .sec { padding: 64px 0; }
  .feat-head, .buyer-grid, .builder-list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feat-head { margin-bottom: 28px; }
  .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--navy); margin-top: 32px; }
  .steps li { padding: 0 0 28px 24px; }
  .steps li::before { font-size: 34px; margin-bottom: 6px; }
  .steps li::after { top: 6px; left: -5px; }
  .final { padding: 64px 0; }
  .dock { display: flex; }
}
@media (max-width: 360px) {
  .v2-brand svg { width: 112px; height: auto; }
  .dock .btn { font-size: 14.5px; }
}
.builder-list .shot:not(.wide) .ui-panel img { max-height: 380px; }
.builder-list .ui-panel img.narrow { max-width: min(100%, 720px); }
@media (max-width: 899px) {
  .ui-panel img { max-height: 300px; }
}
@media (max-width: 899px) {
  .ui-panel { padding: 16px; }
  .ui-panel img { max-height: 260px; }
}

/* ---------- shared bits: footnotes, rolling-out tag ---------- */
sup a { color: var(--teal-ink); text-decoration: none; font-weight: 600; padding: 0 2px; }
.fn { margin-top: 18px; font-size: 13px; color: var(--muted); max-width: 90ch; }
.fine { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.soon {
  display: inline-block; margin-left: 6px; vertical-align: middle;
  font: 600 11.5px/1 var(--body); color: var(--gold-ink); background: #fbf6e9;
  border: 1px solid #ecdcae; padding: 4px 7px; border-radius: 999px; white-space: nowrap;
}
.text-card .note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.hero .kicker { margin-bottom: 14px; }

/* ---------- audience page hero media ---------- */
.hero-media { margin: 0; border-radius: 14px; overflow: hidden; background: var(--mist); border: 1px solid var(--line); box-shadow: 0 40px 80px -48px rgba(23, 57, 79, 0.5); }
.hero-media img { width: 100%; height: auto; }
.hero-media:not(.photo) { padding: 20px; }
.hero-media:not(.photo) img { border-radius: 8px; }

/* ---------- replaces the stack ---------- */
.stack { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.stack-tools { list-style: none; margin: 0; padding: 8px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.stack-tools li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.stack-tools li .p { color: var(--muted); font-variant-numeric: tabular-nums; text-decoration: line-through; text-decoration-color: rgba(75, 95, 110, 0.5); }
.stack-tools li.sum { border-bottom: 0; font-weight: 600; }
.stack-tools li.sum .p { color: var(--navy-deep); font: 600 22px/1 var(--display); }
.stack-tools li.per-home { border-top: 1px dashed var(--line); border-bottom: 0; color: var(--muted); }
.stack-us { background: var(--navy-deep); color: #dbe6ec; border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.stack-us .kicker { color: #8fd3cc; margin: 0; }
.stack-us .amt { font: 600 52px/1 var(--display); color: var(--white); }
.stack-us .amt small { font-size: 17px; font-weight: 500; color: #b7c8d2; margin-left: 4px; }
.stack-us p { font-size: 15.5px; }
.stack-us .btn { margin-top: auto; align-self: flex-start; }

/* ---------- every way you build ---------- */
.build-types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.build-types li { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.build-types li:first-child { border-color: var(--teal); box-shadow: inset 0 3px 0 var(--teal); }
.build-types svg { width: 44px; height: 44px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--navy); margin-bottom: 12px; }
.build-types h3 { font-size: 18px; line-height: 1.25; }
.build-types p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }

/* ---------- three tiers teaser ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tier {
  display: flex; flex-direction: column; gap: 8px; padding: 26px; text-decoration: none; color: var(--navy-deep);
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.tier:hover { border-color: var(--navy); }
.tier.featured { border-color: var(--teal-ink); box-shadow: 0 30px 60px -44px rgba(23, 57, 79, 0.6), inset 0 3px 0 var(--teal-ink); }
.tier .zoom { width: 44px; height: 44px; fill: none; stroke: var(--line); stroke-width: 2; }
.tier .zoom .in { fill: var(--teal-wash); stroke: var(--teal); }
.tier .zoom .on { stroke: var(--teal-ink); stroke-width: 3; }
.tier .z { font: 600 14px/1.2 var(--display); color: var(--teal-ink); }
.tier h3 { font-size: 26px; }
.tier .amt { font: 600 40px/1 var(--display); }
.tier .amt small { font-size: 16px; font-weight: 500; color: var(--muted); }
.tier .amt s { font-size: 18px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.tier p { font-size: 15.5px; color: var(--muted); }
.tier .seats { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.tier-addon {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; padding: 18px 22px;
  border: 1px dashed var(--teal); border-radius: 16px; background: var(--white); color: var(--navy-deep); text-decoration: none;
}
.tier-addon:hover { border-style: solid; }
.tier-addon p { flex: 1 1 320px; font-size: 15.5px; color: var(--muted); }
.tier-addon p strong { color: var(--navy-deep); font-weight: 600; }
.tiers-foot { margin-top: 22px; font-size: 14.5px; color: var(--muted); max-width: 80ch; }

@media (max-width: 1020px) {
  .build-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .gets-grid, .gets-grid.two { grid-template-columns: minmax(0, 1fr); max-width: 520px; gap: 12px; margin-top: 28px; }
  .get { padding: 22px 14px 18px; }
  .get .ico { width: 48px; height: 48px; }
  .get .ico svg { width: 24px; height: 24px; }
  .get .num { margin-top: 12px; font-size: 40px; }
  .get h3 { font-size: 17px; }
  .get p:not(.num) { font-size: 14px; }
  .stack, .tiers { grid-template-columns: minmax(0, 1fr); }
  .stack-tools { padding: 4px 16px; }
  .stack-us .amt { font-size: 44px; }
  .build-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .build-types li { padding: 16px; }
  .page-hero .hero-media { order: -1; }
  .tier .amt { font-size: 36px; }
}
@media (max-width: 480px) {
  .build-types { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- build types: handover to the architect or engineer ---------- */
.handover { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.handover h3 { font-size: 20px; line-height: 1.25; }
.handover p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.handover ul { margin: 0; padding-left: 20px; font-size: 15.5px; }
.handover li + li { margin-top: 8px; }
@media (max-width: 899px) {
  .handover { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px; }
}

/* /v2's three-line headline is longer than the others */
@media (min-width: 900px) {
  .hero-grid.copy-wide { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; }
}
.hero h1.h1-long { font-size: clamp(36px, 3.7vw, 52px); line-height: 1.05; }
.hero h1.h1-long .ln { text-wrap: balance; }
.hero h1.h1-long .ln + .ln { margin-top: 6px; color: var(--navy); }
@media (max-width: 899px) {
  .hero h1.h1-long { font-size: clamp(30px, 8.4vw, 40px); }
}

/* ---------- done for you ---------- */
.dfy-band { background: var(--navy-deep); color: #dbe6ec; }
.dfy-band h2 { color: var(--white); font-size: clamp(34px, 4.4vw, 52px); }
.dfy-band .kicker { color: #8fd3cc; }
.dfy-band .lead { color: #c6d5de; font-size: 18px; margin-top: 16px; max-width: 58ch; }
.dfy-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.dfy-copy .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-onnavy { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.btn-onnavy:hover { border-color: var(--white); }
.dfy-price { background: var(--white); color: var(--navy-deep); border-radius: 16px; padding: 32px; }
.dfy-price .from { font-size: 14px; color: var(--muted); }
.dfy-price .offer { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--gold); color: var(--navy-deep); font: 600 13px/1 var(--body); }
.dfy-price .amt s { font-size: 28px; font-weight: 500; color: var(--muted); margin-left: 10px; }
.dfy-price .amt { font: 600 72px/1 var(--display); margin-top: 4px; font-variant-numeric: tabular-nums; }
.dfy-price .note { color: var(--muted); font-size: 15.5px; margin-top: 8px; }
.dfy-facts { list-style: none; margin: 22px 0 0; padding: 0; }
.dfy-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.dfy-facts strong { font-variant-numeric: tabular-nums; text-align: right; }
.dfy-facts li.vs { color: var(--muted); }
.dfy-facts li.vs strong { font-weight: 500; text-decoration: line-through; text-decoration-color: rgba(75, 95, 110, 0.5); }
@media (max-width: 899px) {
  .dfy-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .dfy-price { padding: 24px; }
  .dfy-price .amt { font-size: 56px; }
  .dfy-copy .ctas .btn { width: 100%; }
  .claim { font-size: 22px; }
}

@media (max-width: 899px) {
  .reel-frame { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  #walk .tour-frame { aspect-ratio: auto; height: 70vh; max-height: 560px; margin-top: 24px; }
  #walk .tour-note { display: block; }
}

.v2-nav a { white-space: nowrap; }

/* ---------- how-to films (presell-howto.js) ---------- */
.howto { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 32px; }
.howto-box {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px;
  background: var(--navy-deep); box-shadow: 0 24px 60px -24px rgba(23, 57, 79, 0.45);
}
.howto-mount, .howto-mount iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.howto-cover { position: absolute; inset: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.howto-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.howto-play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(255, 255, 255, 0.94); color: var(--navy-deep); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform .2s, opacity .25s;
}
.howto-play svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.howto-cover:hover .howto-play { transform: scale(1.06); }
.howto-len {
  position: absolute; left: 14px; bottom: 14px; padding: 5px 10px; border-radius: 999px;
  background: var(--glass); color: var(--white); font: 600 13px/1 var(--body); font-variant-numeric: tabular-nums;
  transition: opacity .25s;
}
.howto.is-playing .howto-cover img,
.howto.is-playing .howto-play,
.howto.is-started .howto-len { opacity: 0; }
.howto-bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
  padding: 26px 14px 10px; color: var(--white);
  background: linear-gradient(transparent, rgba(16, 38, 54, 0.85));
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.howto.is-started .howto-bar { opacity: 1; pointer-events: auto; }
.howto.is-started.is-playing .howto-bar { opacity: 0; }
.howto.is-started.is-playing .howto-box:hover .howto-bar,
.howto.is-started.is-playing .howto-box:focus-within .howto-bar { opacity: 1; }
.howto-bar button {
  flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer;
}
.howto-bar button:hover { background: rgba(255, 255, 255, 0.14); }
.howto-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.howto-toggle .i-pause, .howto.is-playing .howto-toggle .i-play { display: none; }
.howto.is-playing .howto-toggle .i-pause { display: block; }
.howto-full svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.howto-track { position: relative; flex: 1; height: 20px; cursor: pointer; }
.howto-track::before, .howto-fill { content: ''; position: absolute; left: 0; top: 7px; height: 6px; border-radius: 3px; }
.howto-track::before { right: 0; background: rgba(255, 255, 255, 0.28); }
.howto-fill { width: 0; background: var(--gold); }
.howto-time { flex: none; font: 500 13px/1 var(--body); font-variant-numeric: tabular-nums; }

.howto-steps { display: flex; flex-direction: column; min-height: 0; contain: size; }
.howto-steps h3 { font-size: 21px; line-height: 1.2; }
.howto-steps > p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.howto-steps ol {
  flex: 1; min-height: 0; overflow-y: auto; margin: 14px 0 0; padding: 0 4px 32px 0; list-style: none;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 40px), transparent);
}
.howto-steps li + li { margin-top: 2px; }
.howto-steps ol button {
  width: 100%; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; text-align: left;
  font: 500 15px/1.35 var(--body); color: var(--navy-deep); cursor: pointer;
}
.howto-steps ol button:hover { background: var(--mist); }
.howto-steps .t {
  padding: 4px 0; border-radius: 6px; text-align: center; background: var(--teal-wash);
  font: 600 13px/1 var(--body); font-variant-numeric: tabular-nums; color: var(--teal-ink);
}
.howto-steps ol button[aria-current] { background: var(--teal-wash); }
.howto-steps ol button[aria-current] .t { background: var(--teal-ink); color: var(--white); }

.howto-head { padding: 72px 0 8px; }
.howto-head h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; max-width: 16em; }
.howto-sec { padding: 64px 0; }
.howto-sec h2 { margin-bottom: 28px; font-size: clamp(26px, 2.8vw, 34px); }

@media (max-width: 899px) {
  .howto { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .howto-steps { contain: none; }
  .howto-steps ol { overflow: visible; padding-bottom: 0; -webkit-mask-image: none; mask-image: none; }
  .howto-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .howto-box { border-radius: 12px; }
  .howto-head { padding: 40px 0 0; }
  .howto-sec { padding: 44px 0; }
}
