/* ============================================================
   Apex Indoor Golf — shared stylesheet
   Design system: "performance tech meets a private club".
   Deep navy bands alternate with white; fairway green for CTAs
   and data highlights; warm amber for Apex credit badges.
   Mobile first. All colors are custom properties.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #0b1d33;          /* dominant deep navy */
  --ink-2: #112a4a;        /* raised surfaces on navy */
  --ink-3: #183a63;        /* borders / hover on navy */
  --white: #ffffff;
  --paper: #f3f6fa;        /* alternate light section */
  --paper-2: #e9eef5;
  --text: #15233a;
  --muted: #5b6b80;
  --muted-on-dark: #a9b8cc;
  --line: #dbe2ec;
  --line-dark: rgba(255, 255, 255, 0.14);

  --fairway: #19a95e;      /* accent: CTAs, data highlights */
  --fairway-dark: #12894a;
  --fairway-light: #e4f6ec;
  --fairway-glow: rgba(25, 169, 94, 0.35);

  --amber: #f0a93a;        /* secondary accent: Apex credit */
  --amber-dark: #b97a12;
  --amber-light: #fdf1da;

  --danger: #d64545;
  --danger-light: #fbe7e7;

  --font-head: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(11, 29, 51, 0.10);
  --shadow-lg: 0 20px 50px rgba(11, 29, 51, 0.18);

  --gutter: 16px;
  --container: 1200px;
  --header-h: 68px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--fairway-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--fairway); }
button { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: inherit;
}
h1 { font-size: clamp(2.2rem, 7vw, 4.4rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
.num, .price, td.num, .tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--amber); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 8px; }

[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: 56px 0; position: relative; }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark a { color: #8fe0b4; }
.section-alt { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head p { color: var(--muted-on-dark); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fairway-dark);
}
.section-dark .eyebrow { color: var(--fairway); }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.section-dark .lead { color: var(--muted-on-dark); }
.grid { display: grid; gap: 20px; }
/* Grid/flex items default to min-width:auto, which lets wide children (tab rows,
   number inputs, tables) push a column past the viewport on phones. */
.grid > *, .builder-layout > *, .contact-grid > *, .product-layout > *, .room-visual > *,
.fit-panel > *, .room-fit-teaser > *, .hero .container > *, .form .dims > *, .form .row-2 > *, .form .row-3 > * { min-width: 0; }
.tabs { max-width: calc(100% + 2 * var(--gutter)); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Angled dividers (clip-path) */
/* --ang is nudged by js/app.js on scroll for a slight parallax on the angle */
.angle-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--ang, 48px)), 0 100%); padding-bottom: 96px; }
.angle-top { clip-path: polygon(0 var(--ang, 48px), 100% 0, 100% 100%, 0 100%); padding-top: 96px; }
.angle-both { clip-path: polygon(0 var(--ang, 48px), 100% 0, 100% calc(100% - var(--ang, 48px)), 0 100%); padding-top: 96px; padding-bottom: 96px; }
.pull-up { margin-top: -48px; }
.pull-down { margin-bottom: -48px; }
@media (min-width: 960px) {
  .angle-bottom, .angle-top, .angle-both { padding-top: 112px; }
  .angle-bottom { padding-top: 72px; }
}

/* Background patterns */
.bg-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.5px);
  background-size: 22px 22px;
}
.bg-yardage {
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 120px);
}
.bg-dots-light {
  background-image: radial-gradient(rgba(11, 29, 51, 0.10) 1px, transparent 1.5px);
  background-size: 22px 22px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink); color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; min-height: 44px; }
.brand svg { height: 34px; width: auto; }
.brand .brand-name { font-family: var(--font-head); font-weight: 900; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1; }
.brand .brand-name span { color: var(--fairway); }
.nav { display: none; align-items: center; gap: 4px; }
.nav a {
  color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 10px 12px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent;
}
.nav a:hover { background: var(--ink-2); color: var(--white); }
.nav a[aria-current="page"] { color: var(--fairway); }
.header-cta, .site-header .header-cta { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 44px; height: 44px; background: transparent; border: 1px solid var(--line-dark); border-radius: 8px; color: var(--white); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-nav {
  display: none; background: var(--ink); border-top: 1px solid var(--line-dark); padding: 8px var(--gutter) 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: flex; align-items: center; min-height: 48px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 1.05rem;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-nav a[aria-current="page"] { color: var(--fairway); }
.mobile-nav .btn { margin-top: 14px; width: 100%; justify-content: center; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .header-cta, .site-header .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--fairway); color: var(--ink); border-color: var(--fairway); }
.btn-primary:hover { color: var(--ink); box-shadow: 0 10px 30px var(--fairway-glow); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); --btn-fill: var(--ink); }
.btn-outline:hover { color: var(--white); }
.section-dark .btn-outline, .hero .btn-outline, .page-hero .btn-outline, .summary-panel .btn-outline, .btn-outline-light { color: var(--white); border-color: rgba(255, 255, 255, 0.6); --btn-fill: var(--white); }
.section-dark .btn-outline:hover, .hero .btn-outline:hover, .page-hero .btn-outline:hover, .summary-panel .btn-outline:hover, .btn-outline-light:hover { color: var(--ink); border-color: var(--white); }
.section-dark .btn-ghost, .hero .btn-ghost, .page-hero .btn-ghost { color: var(--white); border-color: var(--line-dark); --btn-fill: rgba(255, 255, 255, 0.10); }
.section-dark .btn-ghost:hover, .hero .btn-ghost:hover, .page-hero .btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); --btn-fill: var(--paper-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 0.85rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; line-height: 1; white-space: nowrap;
}
.badge-credit { background: var(--amber-light); color: var(--amber-dark); border: 1px solid #f3d9a4; }
.section-dark .badge-credit { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.badge-group { background: var(--paper-2); color: var(--ink); }
.section-dark .badge-group { background: var(--ink-3); color: var(--white); }
.badge-green { background: var(--fairway-light); color: var(--fairway-dark); }
.badge-tier { background: var(--ink); color: var(--white); }
.badge-map { background: var(--paper-2); color: var(--muted); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c7d1de; }
.section-dark .card { background: var(--ink-2); border-color: var(--line-dark); color: var(--white); }
.section-dark .card:hover { border-color: var(--ink-3); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--fairway-dark); }
.section-dark .card h3 a:hover { color: var(--fairway); }
.card .muted { color: var(--muted); }
.section-dark .card .muted { color: var(--muted-on-dark); }

/* Path cards (home) */
.path-card { display: flex; flex-direction: column; gap: 10px; min-height: 100%; }
.path-card .path-num { font-family: var(--font-head); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--fairway); }
.path-card ul { margin: 0 0 8px; padding-left: 1.1em; color: var(--muted); }
.path-card .btn { margin-top: auto; align-self: flex-start; }
.path-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: var(--fairway-light); opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease; transform: scale(0.6);
}
.path-card:hover::after { opacity: 1; transform: scale(1); }
.path-card > * { position: relative; z-index: 1; }

/* Product cards */
.product-card { display: flex; flex-direction: column; padding: 0; }
.product-card .pc-media { position: relative; padding: 10px 10px 0; overflow: hidden; }
.product-card .pc-media-link { display: block; border-radius: 10px; overflow: hidden; }
.product-card .pc-media .stage { border-radius: 10px; }
.product-card .pc-badges { position: absolute; left: 20px; top: 20px; right: 20px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 4; pointer-events: none; }
.product-card .pc-body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .pc-brand { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.product-card h3 { font-size: 1.15rem; margin: 0; }
.product-card .pc-desc { color: var(--muted); font-size: 0.93rem; margin: 0; }
.product-card .pc-reqs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.product-card .pc-reqs span { display: inline-flex; align-items: center; gap: 4px; }
.product-card .pc-reqs svg { width: 14px; height: 14px; }
.product-card .pc-price { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.product-card .pc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.product-card .pc-actions .btn { flex: 1 1 auto; }
.section-dark .product-card .pc-brand, .section-dark .product-card .pc-desc, .section-dark .product-card .pc-reqs { color: var(--muted-on-dark); }

/* Price display */
.price { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); }
.section-dark .price { color: var(--white); }
.price-compare { font-size: 0.95rem; color: var(--muted); text-decoration: line-through; }
.price-note { font-size: 0.82rem; color: var(--muted); }
.section-dark .price-compare, .section-dark .price-note { color: var(--muted-on-dark); }
.price-small { font-size: 1.1rem; }

/* Horizontal scroll row (mobile) */
.scroll-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 16px; margin: 0 calc(-1 * var(--gutter)); -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.scroll-row > * { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; }
@media (min-width: 960px) {
  .scroll-row { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; }
  .scroll-row > * { flex: initial; }
}

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 1; display: grid; gap: 32px; padding-top: 56px; padding-bottom: 80px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--fairway); }
.hero .lead { max-width: 560px; font-size: 1.15rem; }
.hero .promise { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 18px 0 26px; color: var(--muted-on-dark); font-size: 0.95rem; }
.hero .promise span { display: inline-flex; align-items: center; gap: 6px; }
.hero .promise svg { width: 16px; height: 16px; color: var(--fairway); }
.hero-art { position: relative; min-height: 260px; }
.hero-art svg { width: 100%; height: auto; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
@media (min-width: 960px) {
  .hero .container { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 72px; padding-bottom: 120px; }
}

/* Ball flight animation (CSS/SVG only) */
.flight-path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw-flight 2.4s ease-out 0.4s forwards; }
.flight-ball { transform: translate(740px, 230px); } /* fallback: ball at landing spot */
@supports (offset-path: path("M0 0L1 1")) {
  .flight-ball { transform: none; offset-path: path("M60 300 C 260 40, 520 20, 740 230"); offset-distance: 0%; animation: fly-ball 2.4s ease-out 0.4s forwards; }
}
.flight-marker { opacity: 0; animation: pop 0.4s ease-out 2.7s forwards; }
@keyframes draw-flight { to { stroke-dashoffset: 0; } }
@keyframes fly-ball { to { offset-distance: 100%; } }
@keyframes pop { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .flight-path { stroke-dashoffset: 0; animation: none; }
  .flight-ball { offset-distance: 100%; animation: none; }
  .flight-marker { opacity: 1; animation: none; }
}

/* ---------- Stat tiles ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat {
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 18px 16px;
  position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--fairway); }
.stat .stat-value { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.stat .stat-value small { font-size: 0.5em; font-weight: 700; color: var(--fairway); margin-left: 2px; }
.stat .stat-label { color: var(--muted-on-dark); font-size: 0.9rem; margin-top: 6px; }
.section:not(.section-dark) .stat { background: var(--white); border-color: var(--line); }
.section:not(.section-dark) .stat .stat-value { color: var(--ink); }
.section:not(.section-dark) .stat .stat-label { color: var(--muted); }
@media (min-width: 960px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Steps (How buying works) ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; padding: 22px 22px 22px 70px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 20px; top: 20px; font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; color: var(--fairway);
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Feature list with check icons */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--fairway);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat, linear-gradient(#000 0 0);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.checklist-simple li::before { -webkit-mask: none; mask: none; background: var(--fairway); border-radius: 50%; width: 8px; height: 8px; flex-basis: 8px; margin-top: 9px; }

/* ---------- Why Apex ---------- */
.why { display: grid; gap: 16px; }
.why-item { padding: 20px; border-left: 3px solid var(--fairway); background: var(--ink-2); border-radius: 0 var(--radius) var(--radius) 0; }
.why-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.why-item p { margin: 0; color: var(--muted-on-dark); font-size: 0.95rem; }
@media (min-width: 720px) { .why { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ (details/summary) ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; font-family: var(--font-head); font-size: 1rem; position: relative; min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-head); font-size: 1.4rem; color: var(--fairway); transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-body { padding: 0 18px 18px; color: var(--muted); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--fairway); color: var(--ink); }
.cta-band .container { display: grid; gap: 18px; padding-top: 48px; padding-bottom: 48px; }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; font-weight: 500; }
.cta-band .btn-outline { color: var(--ink); border-color: var(--ink); --btn-fill: var(--ink); }
.cta-band .btn-outline:hover { color: var(--white); }
.cta-band .btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); --btn-fill: var(--ink-3); }
.cta-band .btn-dark:hover { color: var(--white); }
@media (min-width: 960px) { .cta-band .container { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); border-top: 1px solid var(--line-dark); font-size: 0.93rem; }
.site-footer .container { padding-top: 48px; padding-bottom: 32px; display: grid; gap: 28px; }
.site-footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--fairway); }
.site-footer .footer-brand p { max-width: 320px; }
.site-footer .footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 0.82rem; }
.site-footer address { font-style: normal; line-height: 1.5; }
@media (min-width: 720px) { .site-footer .container { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .site-footer .footer-bottom { grid-column: 1 / -1; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--ink); color: var(--white); padding: 40px 0 56px; position: relative; }
.page-hero h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); margin-bottom: 10px; }
.page-hero p { color: var(--muted-on-dark); max-width: 640px; margin: 0; font-size: 1.05rem; }
.page-hero .breadcrumb { font-size: 0.85rem; margin-bottom: 14px; color: var(--muted-on-dark); }
.page-hero .breadcrumb a { color: var(--muted-on-dark); }

/* ---------- Tabs / filters ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: thin; }
.tab {
  flex: 0 0 auto; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; cursor: pointer; white-space: nowrap;
}
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tab .count { opacity: 0.6; margin-left: 4px; font-weight: 600; }
.filters { display: grid; gap: 12px; margin: 18px 0 24px; padding: 16px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.filters label { display: grid; gap: 4px; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.filters select, .filters input { min-height: 44px; }
.filters .filters-actions { display: flex; align-items: end; gap: 8px; }
@media (min-width: 720px) { .filters { grid-template-columns: repeat(5, 1fr); } }
.result-count { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.empty-state { padding: 40px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- Forms ---------- */
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--fairway); box-shadow: 0 0 0 3px var(--fairway-glow); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; flex: 0 0 20px; accent-color: var(--fairway); }
.form { display: grid; gap: 16px; }
.form .field { display: grid; gap: 6px; }
.form label { font-weight: 600; font-size: 0.92rem; }
.form .hint { font-size: 0.82rem; color: var(--muted); }
.form .error { font-size: 0.82rem; color: var(--danger); display: none; }
.form .field.has-error .error { display: block; }
.form .row-2 { display: grid; gap: 16px; }
.form .row-3 { display: grid; gap: 16px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 0.92rem; }
.form .check input { margin-top: 3px; }
.form .dims { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.form .dims input { text-align: center; }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 500; display: none; }
.form-status.is-success { display: block; background: var(--fairway-light); color: var(--fairway-dark); border: 1px solid #b9e6cb; }
.form-status.is-error { display: block; background: var(--danger-light); color: var(--danger); border: 1px solid #f1c2c2; }
.items-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.items-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--paper); border-radius: 6px; font-size: 0.92rem; }
.items-list li button { background: none; border: 0; color: var(--muted); cursor: pointer; min-width: 44px; min-height: 32px; }
.items-list li button:hover { color: var(--danger); }
@media (min-width: 640px) { .form .row-2 { grid-template-columns: 1fr 1fr; } .form .row-3 { grid-template-columns: 1fr 1fr 1fr; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .form-card { padding: 32px; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper); font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
th.row-head { background: var(--paper); font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; width: 180px; position: sticky; left: 0; }
.spec-table { min-width: 0; }
.spec-table th { width: 40%; background: transparent; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); }

/* ---------- Product page ---------- */
.product-layout { display: grid; gap: 28px; }
/* gallery: see "Product gallery + lightbox" further down */
.price-block { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: var(--white); }
.price-block .price { font-size: 2.2rem; }
.price-block .price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-block .note-box { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--paper); font-size: 0.88rem; color: var(--muted); }
.price-block .note-box.amber { background: var(--amber-light); color: var(--amber-dark); }
.price-block .btn-row { margin-top: 18px; }
.product-tabs { margin-top: 8px; }
.product-section { padding: 28px 0; border-top: 1px solid var(--line); }
.product-section h2 { font-size: 1.5rem; }
.room-visual { display: grid; gap: 20px; align-items: start; }
.room-visual svg { width: 100%; height: auto; border-radius: var(--radius); background: var(--ink); }
.req-list { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.req { background: var(--paper); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.req .req-val { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--ink); }
.req .req-label { font-size: 0.78rem; color: var(--muted); }
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--ink); color: var(--white);
  padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25); padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.sticky-cta .price { color: var(--white); font-size: 1.2rem; }
.sticky-cta .sc-name { font-size: 0.78rem; color: var(--muted-on-dark); }
body.has-sticky-cta { padding-bottom: 76px; }
@media (min-width: 960px) {
  .product-layout { grid-template-columns: 1.1fr 0.9fr; }
  .room-visual { grid-template-columns: 1.2fr 1fr; }
  .sticky-cta { display: none; }
  body.has-sticky-cta { padding-bottom: 0; }
}

/* ---------- Builder ---------- */
.builder-layout { display: grid; gap: 28px; }
.builder-step { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: var(--white); margin-bottom: 20px; }
.builder-step .step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.builder-step .step-num {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800;
}
.builder-step.is-done .step-num { background: var(--fairway); color: var(--ink); }
.builder-step h2 { font-size: 1.3rem; margin: 0; }
.builder-step .step-sub { color: var(--muted); font-size: 0.92rem; margin: 0 0 14px; }
.option-grid { display: grid; gap: 10px; }
.option {
  display: grid; grid-template-columns: 24px 1fr; gap: 8px 12px; align-items: start; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--white); cursor: pointer; text-align: left; width: 100%; transition: border-color 0.15s ease, background 0.15s ease;
}
.option:hover { border-color: var(--ink); }
.option[aria-pressed="true"], .option[aria-checked="true"] { border-color: var(--fairway); background: var(--fairway-light); }
.option .opt-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); margin-top: 2px; position: relative; }
.option[aria-pressed="true"] .opt-radio, .option[aria-checked="true"] .opt-radio { border-color: var(--fairway); }
.option[aria-pressed="true"] .opt-radio::after, .option[aria-checked="true"] .opt-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--fairway); }
.option.is-checkbox .opt-radio { border-radius: 5px; }
.option.is-checkbox[aria-pressed="true"] .opt-radio::after { border-radius: 2px; }
.option .opt-name { font-weight: 700; }
.option .opt-desc { font-size: 0.85rem; color: var(--muted); display: block; }
.option .opt-fit { font-size: 0.78rem; margin-top: 4px; display: inline-flex; gap: 6px; align-items: center; }
.option .opt-fit.ok { color: var(--fairway-dark); }
.option .opt-fit.warn { color: var(--amber-dark); }
.option .opt-fit.bad { color: var(--danger); }
.option .opt-price { font-family: var(--font-head); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; grid-column: 2; }
@media (min-width: 640px) {
  .option { grid-template-columns: 24px 1fr auto; }
  .option .opt-price { grid-column: auto; }
}
.option.is-unfit { opacity: 0.55; }
.option.is-unfit:hover { border-color: var(--line); }
@media (min-width: 720px) { .option-grid { grid-template-columns: 1fr 1fr; } }
.fit-panel { display: grid; gap: 16px; }
.fit-result { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.95rem; border: 1px solid var(--line); }
.fit-result.ok { background: var(--fairway-light); border-color: #b9e6cb; color: var(--fairway-dark); }
.fit-result.warn { background: var(--amber-light); border-color: #f3d9a4; color: var(--amber-dark); }
.fit-result.bad { background: var(--danger-light); border-color: #f1c2c2; color: var(--danger); }
.fit-result ul { margin: 8px 0 0; padding-left: 1.1em; }
.room-svg { width: 100%; height: auto; border-radius: var(--radius); background: var(--ink); }
@media (min-width: 720px) { .fit-panel { grid-template-columns: 1fr 1fr; } }

.summary-panel {
  background: var(--ink); color: var(--white); border-radius: var(--radius-lg); padding: 22px;
}
.summary-panel h2 { font-size: 1.2rem; margin-bottom: 12px; }
.summary-panel .sum-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.summary-panel .sum-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; border-bottom: 1px solid var(--line-dark); padding-bottom: 8px; }
.summary-panel .sum-list li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary-panel .sum-list li.is-empty { color: var(--muted-on-dark); }
.summary-panel .sum-list li.is-empty span { white-space: normal; }
.summary-panel .sum-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; }
.summary-panel .sum-note { color: var(--muted-on-dark); font-size: 0.8rem; margin: 6px 0 14px; }
.summary-panel .sum-credit { background: var(--amber); color: var(--ink); padding: 8px 10px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.summary-panel .btn-link { background: none; border: 0; color: var(--muted-on-dark); text-decoration: underline; cursor: pointer; padding: 8px 0; font-size: 0.85rem; min-height: 44px; }
/* Mobile bottom sheet */
.summary-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: var(--ink); color: var(--white);
  border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35); max-height: 80vh; overflow: auto;
  transform: translateY(calc(100% - 64px)); transition: transform 0.25s ease; padding-bottom: env(safe-area-inset-bottom);
}
.summary-sheet.open { transform: translateY(0); }
.summary-sheet .sheet-handle {
  width: 100%; background: transparent; border: 0; color: var(--white); min-height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--gutter); cursor: pointer; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
}
.summary-sheet .sheet-handle .chev { transition: transform 0.25s ease; }
.summary-sheet.open .sheet-handle .chev { transform: rotate(180deg); }
.summary-sheet .summary-panel { border-radius: 0; padding-top: 0; }
body.has-sheet { padding-bottom: 80px; }
@media (min-width: 960px) {
  .builder-layout { grid-template-columns: 1fr 360px; align-items: start; }
  .summary-sheet { position: sticky; top: calc(var(--header-h) + 16px); transform: none; box-shadow: none; border-radius: var(--radius-lg); max-height: none; overflow: visible; background: transparent; }
  .summary-sheet .sheet-handle { display: none; }
  .summary-sheet .summary-panel { border-radius: var(--radius-lg); padding-top: 22px; }
  body.has-sheet { padding-bottom: 0; }
}

/* ---------- Compare ---------- */
.compare-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 92; background: var(--ink); color: var(--white);
  padding: 10px var(--gutter); display: none; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.compare-bar.show { display: flex; }
.compare-bar .cb-items { display: flex; gap: 6px; flex-wrap: wrap; font-size: 0.82rem; }
.compare-bar .cb-items span { background: var(--ink-3); padding: 4px 8px; border-radius: 6px; }
.compare-bar .cb-items button { background: none; border: 0; color: var(--muted-on-dark); cursor: pointer; margin-left: 4px; }
body.has-compare-bar { padding-bottom: 76px; }
.compare-table th.col-head { background: var(--ink); color: var(--white); vertical-align: top; }
.compare-table th.col-head h3 { font-size: 1rem; margin: 0 0 4px; }
.compare-table th.col-head .price { color: var(--white); font-size: 1.1rem; }
.compare-table th.col-head button { background: none; border: 1px solid var(--line-dark); color: var(--muted-on-dark); border-radius: 6px; padding: 4px 8px; cursor: pointer; font-size: 0.75rem; margin-top: 6px; }
.compare-table td.highlight { background: var(--fairway-light); font-weight: 600; }
.compare-pick { display: grid; gap: 10px; }
@media (min-width: 720px) { .compare-pick { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); z-index: 200;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow-lg);
  opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease; max-width: calc(100vw - 32px); font-size: 0.92rem; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast a { color: var(--fairway); font-weight: 700; pointer-events: auto; }

/* ---------- Prose (legal, about) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h2.mt-0, .prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5em; }
.prose p, .prose li { color: var(--text); }
.prose .note { background: var(--amber-light); border-left: 3px solid var(--amber); padding: 12px 16px; border-radius: 0 8px 8px 0; color: var(--amber-dark); font-size: 0.92rem; }
.callout { background: var(--paper); border-left: 3px solid var(--fairway); padding: 14px 18px; border-radius: 0 8px 8px 0; }
.callout p:last-child { margin: 0; }

/* ---------- Misc ---------- */
.muted { color: var(--muted); }
.section-dark .muted { color: var(--muted-on-dark); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.icon { width: 20px; height: 20px; }
.room-fit-teaser { display: grid; gap: 24px; align-items: center; }
.room-fit-teaser .mini-form { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.room-fit-teaser .mini-form label { display: grid; gap: 4px; font-size: 0.8rem; color: var(--muted-on-dark); font-weight: 600; }
.room-fit-teaser .mini-form input { text-align: center; background: var(--ink-2); color: var(--white); border-color: var(--line-dark); }
@media (min-width: 960px) { .room-fit-teaser { grid-template-columns: 1fr 1fr; } }
.notfound { text-align: center; padding: 80px 0; }
.notfound .big { font-family: var(--font-head); font-weight: 900; font-size: clamp(5rem, 20vw, 10rem); line-height: 1; color: var(--fairway); }
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; } }
.contact-card { background: var(--ink); color: var(--white); border-radius: var(--radius-lg); padding: 24px; }
.contact-card h3 { font-size: 1.1rem; }
.contact-card a { color: var(--fairway); }
.contact-card address { font-style: normal; color: var(--muted-on-dark); }
.contact-card dl { margin: 0; display: grid; gap: 10px; }
.contact-card dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-on-dark); }
.contact-card dd { margin: 0; }
.related { padding-top: 8px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: var(--paper-2); border-radius: 999px; padding: 6px 12px; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.section-dark .pill { background: var(--ink-3); color: var(--white); }
.noscript-note { background: var(--amber-light); color: var(--amber-dark); padding: 12px var(--gutter); text-align: center; }

/* ============================================================
   v2 — motion & premium layer
   Everything below is additive. Motion uses transform/opacity only
   and is disabled under prefers-reduced-motion.
   ============================================================ */
:root {
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --glow-green: 0 0 0 1px rgba(25, 169, 94, 0.35), 0 12px 40px rgba(25, 169, 94, 0.25);
}

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 300; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; background: linear-gradient(90deg, var(--fairway), #8fe0b4);
  transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 12px rgba(25, 169, 94, 0.7);
}

/* ---------- Header: glass + animated nav underline ---------- */
.site-header { background: rgba(11, 29, 51, 0.88); -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px); transition: box-shadow 0.3s ease, background 0.3s ease; }
body.is-scrolled .site-header { background: rgba(11, 29, 51, 0.94); box-shadow: 0 10px 30px rgba(3, 10, 20, 0.35); }
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--fairway);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.35s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.brand svg { transition: transform 0.5s var(--ease-out); }
.brand:hover svg { transform: rotate(-8deg) scale(1.06); }

/* ---------- Buttons: animated fills, sheen, magnet ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease; }
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--btn-fill, rgba(255, 255, 255, 0.22));
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.45s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: 0 50%; }
.btn-primary { --btn-fill: linear-gradient(90deg, #2fd17f, #1fbf6b); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: skewX(-20deg);
  transition: left 0.7s var(--ease-out);
}
.btn-primary:hover::after { left: 125%; }
.btn[disabled]::before, .btn.is-disabled::before, .btn[disabled]::after, .btn.is-disabled::after { display: none; }
.btn.is-magnet { transition: transform 0.18s ease-out, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.btn.is-added, .pc-quick.is-added { animation: added-pop 0.6s var(--ease-out); }
@keyframes added-pop { 0% { box-shadow: 0 0 0 0 rgba(25, 169, 94, 0.6); } 100% { box-shadow: 0 0 0 14px rgba(25, 169, 94, 0); } }

/* ---------- Scroll reveals (classes added by JS only) ---------- */
.rv { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--rv-d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.card.rv.in { transition: opacity 0.7s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease; transition-delay: var(--rv-d, 0ms), 0ms, 0ms, 0ms; }

/* ---------- Studio stage (product photos) ---------- */
.stage {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate;
  background: radial-gradient(75% 65% at 50% 36%, #ffffff 0%, #f5f7fa 42%, #e5ebf2 100%);
}
.stage::before { /* floor */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%;
  background: linear-gradient(180deg, rgba(214, 223, 234, 0), rgba(209, 219, 231, 0.65));
}
.stage::after { /* contact shadow */
  content: ""; position: absolute; left: 20%; right: 20%; bottom: 9%; height: 9%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 29, 51, 0.30), rgba(11, 29, 51, 0));
}
.stage > img, .stage > svg {
  position: absolute; left: 9%; top: 6%; width: 82%; height: 82%; object-fit: contain; object-position: 50% 60%;
  transition: transform 0.7s var(--ease-out);
}
.stage img.is-white { mix-blend-mode: multiply; filter: brightness(1.03); } /* lifts 249 grey to pure white: no box edge */
.stage img.is-soft {
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent 100%); mask-image: radial-gradient(closest-side, #000 74%, transparent 100%);
}
.stage-photo { background: var(--ink-2); }
.stage-photo::before, .stage-photo::after, .stage-ph::before, .stage-ph::after, .stage-svg::after { display: none; }
.stage-photo > img, .stage-ph > svg { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.stage-svg > img { left: 1%; top: 1%; width: 98%; height: 98%; object-position: 50% 50%; }
.product-card:hover .stage > img { transform: scale(1.06); }

/* Package hero: Apex enclosure illustration + real product photos on a stage */
.pkg-hero .ph-back { left: 4%; top: -2%; width: 92%; height: 90%; object-position: 50% 0%; opacity: 0.96; }
.pkg-hero .ph-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56%;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0) 0%, rgba(241, 245, 249, 0.88) 38%, #edf1f6 100%);
}
.pkg-hero::after { display: none; }
.pkg-hero .ph-item { position: absolute; display: block; }
.pkg-hero .ph-item::before { /* contact shadow, painted before the photo */
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -3%; height: 14%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 29, 51, 0.34), rgba(11, 29, 51, 0));
}
.pkg-hero .ph-item img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transition: transform 0.7s var(--ease-out); }
.pkg-hero .ph-item img.is-white, .pkg-hero .ph-item img.is-soft { mix-blend-mode: multiply; }
.pkg-hero .ph-item img.is-white { filter: brightness(1.03); }
.pkg-hero .ph-lm { left: 7%; bottom: 7%; width: 42%; height: 50%; }
.pkg-hero .ph-proj { right: 5%; bottom: 9%; width: 44%; height: 31%; }
.pkg-hero.is-solo .ph-lm { left: 20%; width: 60%; height: 56%; }
.pkg-hero .ph-note {
  position: absolute; right: 10px; bottom: 8px; font-family: var(--font-body); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #6b7b90; background: rgba(255, 255, 255, 0.75); padding: 3px 8px; border-radius: 999px; line-height: 1.3;
}
.product-card:hover .pkg-hero .ph-lm img { transform: translateY(-4px) scale(1.05); }
.product-card:hover .pkg-hero .ph-proj img { transform: translateY(-2px) scale(1.04); transition-delay: 60ms; }

/* ---------- Product cards: tilt, sheen, quick add ---------- */
.product-card { will-change: auto; }
.product-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 45%);
  transition: opacity 0.35s ease;
}
.section-dark .product-card::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(143, 224, 180, 0.16), rgba(255, 255, 255, 0) 45%); }
.product-card.is-tilting { transition: transform 0.12s ease-out, box-shadow 0.3s ease, border-color 0.3s ease; box-shadow: 0 24px 60px rgba(11, 29, 51, 0.20); }
.product-card.is-tilting::after { opacity: 1; }
.pc-quick {
  position: absolute; left: 20px; right: 20px; bottom: 10px; z-index: 6; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; border: 0; border-radius: 10px; cursor: pointer; color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 0.88rem;
  background: rgba(11, 29, 51, 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transform: translateY(calc(100% + 16px)); opacity: 0; transition: transform 0.45s var(--ease-out), opacity 0.3s ease, background 0.2s ease;
}
.pc-quick svg { width: 16px; height: 16px; color: var(--fairway); }
.pc-quick:hover { background: var(--fairway); color: var(--ink); }
.pc-quick:hover svg { color: var(--ink); }
.product-card:hover .pc-quick { transform: translateY(0); opacity: 1; }
@media (hover: none), (pointer: coarse) { .pc-quick { display: none; } }

/* ---------- Home hero ---------- */
.hero { isolation: isolate; }
.hero .container { padding-top: 48px; padding-bottom: 96px; }
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none; width: 900px; height: 900px; right: -300px; top: -360px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(25, 169, 94, 0.22), rgba(25, 169, 94, 0));
}
.hero-floor {
  position: absolute; z-index: 0; left: -30%; right: -30%; bottom: 0; height: 58%; overflow: hidden; pointer-events: none;
  perspective: 420px; perspective-origin: 50% 0%;
  -webkit-mask-image: radial-gradient(60% 90% at 68% 100%, #000 0%, rgba(0,0,0,0.6) 45%, transparent 80%); mask-image: radial-gradient(60% 90% at 68% 100%, #000 0%, rgba(0,0,0,0.6) 45%, transparent 80%);
}
.hero-floor .plane {
  position: absolute; left: 0; right: 0; top: 0; height: 420%; transform-origin: 50% 0%;
  background-image:
    linear-gradient(rgba(25, 169, 94, 0.30) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 100% 90px, 90px 90px;
  transform: rotateX(74deg) translate3d(0, 0, 0);
  animation: yard-move 2.6s linear infinite;
}
@keyframes yard-move { from { transform: rotateX(74deg) translate3d(0, -90px, 0); } to { transform: rotateX(74deg) translate3d(0, 0, 0); } }
.kinetic .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.kinetic .w > span { display: inline-block; transform: translate3d(0, 110%, 0); animation: word-up 0.95s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 85ms + 120ms); }
@keyframes word-up { to { transform: none; } }
.hero-copy .lead, .hero-copy .promise, .hero-copy .btn-row, .hero-copy .eyebrow { animation: fade-up 0.9s var(--ease-out) both; }
.hero-copy .eyebrow { animation-delay: 0.05s; }
.hero-copy .lead { animation-delay: 0.55s; }
.hero-copy .promise { animation-delay: 0.68s; }
.hero-copy .btn-row { animation-delay: 0.8s; }
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }

.hero-art { position: relative; min-height: 0; animation: fade-up 1s var(--ease-out) 0.3s both; }
.hs-scene { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.hs-scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hs-stage { position: absolute; left: 1%; top: 10%; width: 42%; height: 80%; }
.hs-stage .hs-disc {
  position: absolute; left: -6%; right: -6%; bottom: 0; height: 22%; border-radius: 50%;
  background: radial-gradient(closest-side, #f4f7fb 0%, #dfe7f0 70%, #c7d3e1 100%);
  box-shadow: 0 0 0 2px rgba(143, 224, 180, 0.35), 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 60px rgba(25, 169, 94, 0.35);
}
.hs-stage .hs-disc::after {
  content: ""; position: absolute; inset: 18% 14%; border-radius: 50%; border: 1.5px dashed rgba(25, 169, 94, 0.55);
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hs-stage .hs-spot {
  position: absolute; left: -10%; right: -10%; top: -12%; bottom: 8%;
  background: radial-gradient(50% 60% at 50% 55%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}
.hs-stage img { position: absolute; left: 14%; bottom: 9%; width: 72%; height: 86%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.45)); }
.hs-stage .hs-tag {
  position: absolute; left: 50%; bottom: -12%; transform: translateX(-50%); white-space: nowrap;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-on-dark);
}
.hs-screen-glow { filter: blur(10px); opacity: 0.55; }
.hs-ripple { transform-box: fill-box; transform-origin: center; opacity: 0; }
.hs-scene.hit .hs-ripple { animation: ripple 1.1s var(--ease-out) forwards; }
.hs-scene.hit .hs-ripple.r2 { animation-delay: 0.12s; }
.hs-scene.hit .hs-ripple.r3 { animation-delay: 0.24s; }
@keyframes ripple { 0% { opacity: 0.95; transform: scale(0.2); } 100% { opacity: 0; transform: scale(1.6); } }
.hs-flash { opacity: 0; }
.hs-scene.hit .hs-flash { animation: flash 0.6s ease-out; }
@keyframes flash { 0% { opacity: 0.9; } 100% { opacity: 0; } }
.hs-trail-glow { filter: blur(5px); }

.shot-data { margin-top: 18px; }
.shot-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shot-chip {
  position: relative; overflow: hidden; padding: 10px 12px; border-radius: 12px; background: rgba(17, 42, 74, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.shot-chip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--fairway); }
.shot-chip .k { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #8fe0b4; }
.shot-chip .v { display: block; font-family: var(--font-head); font-weight: 900; font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.15; color: var(--white); font-variant-numeric: tabular-nums; }
.shot-chip .v small { font-size: 0.6em; font-weight: 700; color: var(--muted-on-dark); margin-left: 3px; }
.shot-caption { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.78rem; color: var(--muted-on-dark); }
.shot-caption::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(240, 169, 58, 0.25); }
@media (min-width: 640px) { .shot-chips { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) {
  .hero .container { grid-template-columns: 1fr 1.05fr; padding-top: 64px; padding-bottom: 128px; gap: 40px; }
}

/* ---------- Brand marquee ---------- */
.marquee-band { padding: 26px 0 8px; background: var(--white); }
.marquee-label { text-align: center; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.marquee {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.marquee li {
  display: flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap;
  font-family: var(--font-head); font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -0.02em; color: var(--ink); line-height: 1.2;
}
.marquee li:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.marquee li::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--fairway); flex: 0 0 10px; }
.marquee li:hover { color: var(--fairway); -webkit-text-stroke-color: var(--fairway); }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Snap rail (launch monitors) ---------- */
.rail-ctrls { display: flex; align-items: center; gap: 10px; }
.rail-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out), opacity 0.2s;
}
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn:hover:not([disabled]) { background: var(--ink); color: var(--white); border-color: var(--ink); transform: scale(1.06); }
.rail-btn[disabled] { opacity: 0.35; cursor: default; }
.rail {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter) 28px; scroll-padding-left: var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 min(80vw, 300px); scroll-snap-align: start; }
.rail.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.rail.is-dragging * { pointer-events: none; }
.rail-progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: -10px; }
.rail-progress span { display: block; height: 100%; background: var(--fairway); transform-origin: 0 50%; transform: scaleX(0.2); transition: transform 0.2s linear; }
@media (min-width: 960px) { .rail > * { flex-basis: calc((100% - 60px) / 3.6); } }

/* ---------- Timeline (How buying works) ---------- */
.timeline { position: relative; }
.tl-line { position: absolute; z-index: 1; left: 35px; top: 30px; bottom: 30px; width: 2px; background: var(--line); border-radius: 2px; pointer-events: none; }
.tl-line span { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, var(--fairway), #8fe0b4); transform-origin: 50% 0; transform: scaleY(var(--tl, 1)); box-shadow: 0 0 10px rgba(25, 169, 94, 0.6); }
.js .tl-line span { transform: scaleY(var(--tl, 0)); }
.timeline .step::before {
  z-index: 2; left: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.85rem; background: var(--white); border: 2px solid var(--line); color: var(--ink);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--ease-out);
}
.timeline .step.is-lit::before, .no-js .timeline .step::before { background: var(--fairway); border-color: var(--fairway); color: var(--ink); box-shadow: 0 0 0 6px var(--fairway-glow); transform: scale(1.05); }
.timeline .step { transition: border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out); }
.timeline .step.is-lit { border-color: #b9e6cb; box-shadow: 0 12px 30px rgba(25, 169, 94, 0.10); }
@media (min-width: 960px) {
  .tl-line { left: 36px; right: 36px; top: 36px; bottom: auto; width: auto; height: 2px; }
  .tl-line span { transform-origin: 0 50%; background: linear-gradient(90deg, var(--fairway), #8fe0b4); transform: scaleX(var(--tl, 1)); }
  .js .tl-line span { transform: scaleX(var(--tl, 0)); }
  .timeline .step { padding: 70px 22px 22px; }
}

/* ---------- Stats / path cards polish ---------- */
.stat { transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease; }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.path-card .path-num { background: linear-gradient(135deg, var(--fairway), #8fe0b4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why-item { transition: transform 0.3s var(--ease-out), background 0.3s ease; }
.why-item:hover { transform: translateX(4px); background: var(--ink-3); }
.page-hero { overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; right: -200px; top: -260px; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(25, 169, 94, 0.20), rgba(25, 169, 94, 0)); pointer-events: none;
}
.tab { transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out); }
.tab:active { transform: scale(0.97); }

/* ---------- Product gallery + lightbox ---------- */
.gallery { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #eef2f6; box-shadow: 0 1px 0 var(--line), 0 24px 60px rgba(11, 29, 51, 0.10); touch-action: pan-y; }
.gallery .g-slides { position: relative; aspect-ratio: 4 / 3; }
.gallery .g-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.55s var(--ease-out), visibility 0s linear 0.55s; }
.gallery .g-slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.55s var(--ease-out), visibility 0s; }
.gallery .g-slide .stage { height: 100%; aspect-ratio: auto; }
.gallery .g-slide.is-active .stage > img { animation: g-zoom 6s ease-out both; }
@keyframes g-zoom { from { transform: scale(1.04); } to { transform: scale(1); } }
.g-btn {
  position: absolute; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 18px rgba(11, 29, 51, 0.18); transition: transform 0.25s var(--ease-out), background 0.2s ease, opacity 0.2s;
}
.g-btn:hover { transform: scale(1.08); background: var(--white); }
.g-btn svg { width: 20px; height: 20px; }
.g-prev { left: 12px; top: 50%; margin-top: -22px; }
.g-next { right: 12px; top: 50%; margin-top: -22px; }
.g-zoom { right: 12px; top: 12px; }
.g-count { position: absolute; z-index: 3; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(11, 29, 51, 0.78); color: var(--white); font-size: 0.78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 8px; scrollbar-width: thin; }
.gallery-thumbs button {
  flex: 0 0 88px; height: 66px; border-radius: 10px; border: 2px solid var(--line); background: #eef2f6; padding: 0; overflow: hidden; cursor: pointer;
  scroll-snap-align: start; transition: border-color 0.2s ease, transform 0.25s var(--ease-out), opacity 0.2s; opacity: 0.75;
}
.gallery-thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--fairway); opacity: 1; box-shadow: 0 0 0 3px var(--fairway-glow); }
.gallery-thumbs .stage { height: 100%; aspect-ratio: auto; }
.gallery-thumbs .pkg-hero .ph-note { display: none; }
.gallery-single .g-btn.g-prev, .gallery-single .g-btn.g-next, .gallery-single .g-count { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; background: rgba(5, 13, 25, 0.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter); color: var(--white); }
.lb-title { font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-title span { color: var(--muted-on-dark); font-weight: 600; margin-left: 8px; font-family: var(--font-body); }
.lb-tools { display: flex; gap: 8px; flex: 0 0 auto; }
.lb-tools button, .lb-nav {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); color: var(--white);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s ease;
}
.lb-tools button:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.16); }
.lb-tools svg, .lb-nav svg { width: 20px; height: 20px; }
.lb-view { position: relative; flex: 1; overflow: hidden; touch-action: none; cursor: zoom-in; }
.lb-view.is-zoomed { cursor: grab; }
.lb-view.is-panning { cursor: grabbing; }
.lb-canvas { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8px var(--gutter) 16px; }
.lb-frame { width: min(100%, calc((100vh - 170px) * 4 / 3)); border-radius: 14px; overflow: hidden; transform-origin: 50% 50%; transition: transform 0.35s var(--ease-out); will-change: transform; }
.lb-view.is-panning .lb-frame { transition: none; }
.lb-frame .stage { width: 100%; }
.lb-frame .stage-photo > img { object-fit: contain; background: #000; }
.lb-nav { position: absolute; z-index: 2; top: 50%; margin-top: -22px; }
.lb-nav.prev { left: 12px; }
.lb-nav.next { right: 12px; }
.lb-hint { text-align: center; color: var(--muted-on-dark); font-size: 0.78rem; padding: 0 var(--gutter) 14px; }
body.lb-open { overflow: hidden; }

/* ---------- Builder: progress + success pulse ---------- */
.build-progress {
  position: sticky; top: var(--header-h); z-index: 40; margin: 0 0 18px; padding: 12px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 16px;
}
.bp-track { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.bp-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--fairway), #8fe0b4); transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.6s var(--ease-out); }
.bp-label { font-family: var(--font-head); font-weight: 800; font-size: 0.9rem; color: var(--ink); }
.bp-steps { display: flex; gap: 6px; }
.bp-steps i { width: 10px; height: 10px; border-radius: 50%; background: var(--paper-2); border: 1.5px solid var(--line); transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out); }
.bp-steps i.on { background: var(--fairway); border-color: var(--fairway); transform: scale(1.15); }
.builder-step { transition: border-color 0.35s ease, box-shadow 0.35s ease; }
.builder-step.is-done { border-color: #b9e6cb; }
.builder-step .step-num { transition: background 0.35s ease, color 0.35s ease, transform 0.35s var(--ease-out); }
.builder-step.is-done .step-num { transform: scale(1.06); }
.option { transition: border-color 0.2s ease, background 0.2s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease; }
.option:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 29, 51, 0.08); }
.option[aria-checked="true"] { box-shadow: 0 0 0 3px var(--fairway-glow); }
.option[aria-checked="true"] .opt-radio::after { animation: dot-in 0.35s var(--ease-out); }
@keyframes dot-in { from { transform: scale(0); } to { transform: scale(1); } }
.is-ticking { animation: tick 0.5s var(--ease-out); display: inline-block; }
@keyframes tick { 0% { transform: translateY(-3px); color: #8fe0b4; } 100% { transform: none; } }
.is-success { animation: success-pulse 1.3s var(--ease-out); }
@keyframes success-pulse {
  0% { box-shadow: 0 0 0 0 rgba(25, 169, 94, 0.65); }
  60% { box-shadow: 0 0 0 18px rgba(25, 169, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 169, 94, 0); }
}
#room-diagram, #teaser-diagram { border-radius: var(--radius); }

/* Safety net: js/app.js adds .intro-done after the entrance has had time to play,
   so the hero is never left mid-animation if frames are throttled. */
.intro-done .kinetic .w > span, .intro-done .hero-copy .lead, .intro-done .hero-copy .promise,
.intro-done .hero-copy .btn-row, .intro-done .hero-copy .eyebrow, .intro-done .hero-art { animation: none; opacity: 1; transform: none; }

/* ---------- Reduced motion: everything static, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; }
  .kinetic .w > span { transform: none; animation: none; }
  .hero-copy .lead, .hero-copy .promise, .hero-copy .btn-row, .hero-copy .eyebrow, .hero-art { animation: none; }
  .hero-floor .plane { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee ul[aria-hidden="true"] { display: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .hs-stage .hs-disc::after { animation: none; }
  .gallery .g-slide.is-active .stage > img { animation: none; }
  .tl-line span, .js .tl-line span { transform: none; }
}
.page-hero .badge-tier, .section-dark .badge-tier { background: var(--ink-3); color: var(--white); }
.lb-nav { background: rgba(11, 29, 51, 0.78); border-color: rgba(255, 255, 255, 0.35); }
.option > span { min-width: 0; }
@media (max-width: 639px) { .option .opt-price { white-space: normal; } }
.steps { list-style: none; padding: 0; margin: 0; }
@media (min-width: 960px) { .rail { margin-right: calc((100vw - 100%) / -2); padding-right: calc((100vw - 100%) / 2); } }
.stage img.is-soft { filter: brightness(1.1); -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 99%); mask-image: radial-gradient(closest-side, #000 58%, transparent 99%); }
