/*
===========================================
© 2017 - present LMS Building & Constructions
All rights reserved.
This application and its contents are 
protected by copyright law.
Unauthorised copying or reproduction 
is strictly prohibited.
===========================================
*/

/* ──────────────────────────────────────────────────────────────────────────
 * LMS Deck Builder — STYLES
 * Written by hand. No framework, no build tools.
 * Edit colours, fonts, spacing directly in the :root variables below.
 * ────────────────────────────────────────────────────────────────────────── */
:root {
  /* Brand colours */
  --lms-blue:    #E4BC76;   /* Accent blue */
  --steel:       #002f45;   /* Deep Steel Blue — primary */
  --ink:         #002f45;   /* Main text */
  --ink-soft:    #374151;   /* Secondary text */
  --ink-softer:  #6B7280;   /* Quiet text */
  --surface:     #FAFAF9;   /* Off-white section background */
  --line:        #E8EBEF;   /* Hairline border colour */
  --success:     #059669;   /* Green for confirmations */

  /* Layout */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --strip-h: 0px;                  /* app-strip header removed; 0 keeps layout math intact */
  --dock-pad-x: 24px;              /* horizontal padding of the scrolling options; shared by the pinned footer bleed */
  --viewer-h-mobile: calc((100vh  - var(--strip-h)) * 0.34);  /* 3D = 34%, options = 66% on mobile */
  --viewer-h-mobile: calc((100svh - var(--strip-h)) * 0.34);  /* svh: stable height, no jump as the mobile toolbar shows/hides */

  /* Shadows (Stripe-style) */
  --shadow-card:    0 1px 2px rgba(17,24,39,.04), 0 4px 12px rgba(17,24,39,.05);
  --shadow-card-lg: 0 2px 4px rgba(17,24,39,.04), 0 12px 32px rgba(17,24,39,.08);
  --shadow-float:   0 1px 2px rgba(17,24,39,.06), 0 24px 48px -12px rgba(17,24,39,.18);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.5;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11";
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Accessibility: visible keyboard focus + respect reduced motion */
:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ── Layout containers ──────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 720px; }
.centered { text-align: center; }

/* ── Typography helpers ─────────────────────────────────────────────────── */
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-softer); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.15;
  color: var(--ink);
}
.section-subtitle { font-size: 17px; color: var(--ink-softer); margin-top: 12px; max-width: 560px; line-height: 1.5; }
.section-intro { margin-bottom: 52px; max-width: 620px; }
.section-intro.centered { margin-left: auto; margin-right: auto; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; font-weight: 500; font-size: 15px;
  transition: all 0.2s ease; white-space: nowrap;
}
.btn-dark-pill {
  height: 38px; padding: 0 18px; border-radius: var(--radius-pill);
  background: var(--ink); color: #fff;
}
.btn-dark-pill:hover { background: #000; }
.btn-primary-pill {
  height: 56px; padding: 0 28px; border-radius: var(--radius-pill);
  background: var(--ink); color: #fff; font-size: 16px;
  box-shadow: var(--shadow-card);
}
.btn-primary-pill:hover { background: #000; box-shadow: var(--shadow-card-lg); }
.btn-white-pill {
  height: 56px; padding: 0 32px; border-radius: var(--radius-pill);
  background: #fff; color: var(--ink); font-weight: 600; font-size: 16px;
  box-shadow: var(--shadow-card-lg);
}
.btn-white-pill:hover { background: rgba(255,255,255,0.9); }
.btn-steel-pill {
  height: 56px; padding: 0 28px; border-radius: var(--radius-pill);
  background: var(--steel); color: #fff; font-weight: 600; font-size: 16px;
  box-shadow: var(--shadow-card-lg); width: 100%;
}
.btn-steel-pill:hover { box-shadow: var(--shadow-float); }
.btn-steel-pill:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost {
  height: 48px; padding: 0 20px; border-radius: var(--radius-pill);
  background: #fff; color: var(--ink-softer); border: 1px solid var(--line);
  font-weight: 500; font-size: 14px;
}
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-next {
  flex: 1; height: 48px; border-radius: var(--radius-pill);
  background: var(--steel); color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-card);
}
.btn-next:hover { box-shadow: var(--shadow-card-lg); }
/* Final "See the price" CTA — gold with steel text */
.btn-next.btn-price { background: #E4BC76; color: #002F45; }
.btn-next.btn-price:hover { filter: brightness(1.03); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-row { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { height: 36px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-phone { font-size: 14px; color: var(--ink-softer); transition: color 0.2s; }
.nav-phone:hover { color: var(--ink); }
@media (max-width: 560px) { .nav-phone { display: none; } }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: 80px 0 96px; }
@media (min-width: 640px) { .hero { padding: 112px 0 128px; } }
@media (min-width: 1024px) { .hero { padding: 144px 0 160px; } }

.hero-headline {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.02;
  color: var(--ink); max-width: 18ch;
}
.hero-subhead {
  margin-top: 24px; font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6; color: var(--ink-softer); max-width: 56ch;
}
.hero-cta-row {
  margin-top: 40px;
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
@media (min-width: 640px) { .hero-cta-row { flex-direction: row; align-items: center; } }
.hero-cta-sub { font-size: 14px; color: var(--ink-softer); }

.hero-stat-line {
  margin-top: 64px; font-size: 14px; color: var(--ink-softer);
  display: flex; flex-wrap: wrap; gap: 8px 24px;
}
.hero-stat-line span {
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-stat-line span::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(55,65,81,0.4);
}

/* ── App strip (slim header) ────────────────────────────────────────────── */
/* App-strip header removed — the builder stage now fills the full height.
   (--strip-h is kept at 0 so the 100vh/sticky-offset math below still resolves.) */

/* ── Info drawer (holds the pitch) ──────────────────────────────────────── */
.info-drawer { position: fixed; inset: 0; z-index: 90; }
.info-drawer[hidden] { display: none; }
.info-drawer-backdrop {
  position: absolute; inset: 0; background: rgba(11,18,32,0.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: drawerFade 0.25s ease;
}
.info-drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(440px, 92vw); background: #fff;
  box-shadow: var(--shadow-float); padding: 56px 32px 32px;
  overflow-y: auto; animation: drawerSlide 0.3s cubic-bezier(0.22,1,0.36,1);
}
.info-drawer-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 0; font-size: 22px; color: var(--ink-softer);
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.info-drawer-close:hover { background: var(--line); color: var(--ink); }
.info-drawer-title {
  font-size: clamp(26px, 4vw, 34px); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.06; color: var(--ink); max-width: 16ch;
}
.info-drawer-sub { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--ink-softer); }
.info-drawer-bullets { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.info-drawer .hero-stat-line { margin-top: 28px; }
.info-drawer .btn-primary-pill { margin-top: 28px; width: 100%; }
.value-bullet { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.value-bullet svg { flex-shrink: 0; margin-top: 2px; }
@keyframes drawerFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drawerSlide { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* ── Builder section (the "stage") ──────────────────────────────────────── */
.builder-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.builder-stage { position: relative; }

/* Viewer card — holds the 3D canvas; overlays float on top */
.viewer-card { position: relative; background: #dcf0ff; overflow: hidden; }
/* touch-action:none — the viewer owns its touches so a two-finger pan/zoom is
   never stolen by the browser as a page scroll. One finger is gated to no-op in
   deck-viewer.js; the page scrolls from the controls area below the viewer. */
.viewer-canvas { position: relative; width: 100%; background: #dcf0ff; touch-action: none; }
.viewer-canvas canvas { width: 100% !important; height: 100% !important; display: block; touch-action: none; }
.viewer-loading {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  gap: 10px; color: var(--ink-softer); font-size: 14px;
}
.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(0,47,68,0.15);
  border-top-color: var(--steel); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* WebGL fallback (no 3D preview) */
.viewer-fallback {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; text-align: center;
  padding: 32px; background: var(--surface);
}
.viewer-fallback strong { font-size: 16px; color: var(--ink); font-weight: 600; }
.viewer-fallback span { font-size: 14px; color: var(--ink-softer); max-width: 340px; line-height: 1.5; }

/* Floating hint chip (top-right of stage) */
.viewer-chip {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  background: rgba(0,47,68,0.42);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.92); font-size: 12px; font-weight: 500;
  padding: 6px 12px; border-radius: var(--radius-pill); pointer-events: none;
  transition: opacity 0.35s ease;
}
/* Hint text tracks the interaction gate: two fingers on touch, Ctrl on desktop */
.viewer-chip .chip-desktop { display: none; }
@media (min-width: 1100px) {
  .viewer-chip .chip-mobile { display: none; }
  .viewer-chip .chip-desktop { display: inline; }
}
/* Spec readout as a frosted pill (bottom-left of stage) */
.viewer-footer {
  position: absolute; left: 16px; bottom: 16px; z-index: 3;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 14px; font-size: 13px; color: var(--ink);
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.6); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card); max-width: calc(100% - 32px);
}
.viewer-footer .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lms-blue); display: inline-block; }
.viewer-footer .sep { width: 1px; height: 12px; background: rgba(0,47,68,0.15); display: inline-block; }
.viewer-footer #viewer-material, .viewer-footer #viewer-extras { color: var(--ink-softer); }

/* Stage tools (share / start over) — top-left of the deck stage */
.viewer-tools { position: absolute; top: 16px; left: 16px; z-index: 3; display: flex; gap: 8px; }
.viewer-tool {
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.6); border-radius: var(--radius-pill);
  padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-card); transition: background 0.15s;
}
.viewer-tool:hover { background: #fff; }

/* ── Control dock ───────────────────────────────────────────────────────── */
.builder-dock {
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line);
}
.dock-handle {
  display: none; align-items: center; justify-content: center;
  width: 100%; height: 34px; background: none; border: 0; flex-shrink: 0;
}
.dock-handle-grip { display: block; width: 40px; height: 4px; border-radius: var(--radius-pill); background: #CBD5E1; transition: background 0.2s; }
.dock-handle:hover .dock-handle-grip { background: #94A3B8; }
/* Cards inside the dock are flush — the dock itself is the card. Flex columns
   all the way down so a short step's pinned Back/Next (margin-top:auto) still
   sits at the bottom of the panel instead of floating mid-screen. */
/* Cards inside the dock are flush — the dock itself is the card. */
.builder-dock .card { border: 0; box-shadow: none; background: transparent; padding: 0; }
.builder-dock .wizard-panel { min-height: 0; }

/* ===== Mobile (< 1100px): contained one-screen layout — 3D viewer on top,
   steps header fixed, options scroll, Back/Next pinned. Nothing runs off-screen. */
@media (max-width: 1099px) {
  :root { --dock-pad-x: 16px; }
  .builder-section { height: calc(100vh - var(--strip-h)); height: calc(100svh - var(--strip-h)); }
  .builder-stage {
    display: flex; flex-direction: column;
    height: calc(100vh - var(--strip-h)); height: calc(100svh - var(--strip-h));
  }
  .viewer-card {
    position: relative; flex: 0 0 var(--viewer-h-mobile);
    box-shadow: 0 12px 26px -14px rgba(17,24,39,0.32);
  }
  .viewer-canvas { height: 100%; }
  .builder-dock {
    flex: 1 1 auto; min-height: 0;
    display: flex; flex-direction: column;
    border: 0; padding: 0;
  }
  /* Steps header — fixed at the top of the options panel */
  .builder-dock .stepper {
    flex-shrink: 0;
    background: rgba(255,255,255,0.96);
    padding: 12px var(--dock-pad-x);
    border-bottom: 1px solid var(--line);
  }
  /* Options — the only thing that scrolls */
  .dock-scroll {
    flex: 1 1 auto; min-height: 0; overflow-y: auto;
    padding: 16px var(--dock-pad-x) 0;
    -webkit-overflow-scrolling: touch;
  }
}

/* ===== Desktop (>= 1100px): control panel on the LEFT, deck stage on the right ===== */
@media (min-width: 1100px) {
  .builder-section { min-height: calc(100vh - var(--strip-h)); min-height: calc(100dvh - var(--strip-h)); }
  .builder-stage {
    display: flex; flex-direction: row; align-items: stretch;
    height: calc(100vh - var(--strip-h)); height: calc(100dvh - var(--strip-h));
  }

  /* Left control panel — 30% of the viewport (deck stage gets the other 70%) */
  .builder-dock {
    order: 1; position: relative; flex: 0 0 30%; width: 30%; height: 100%;
    display: flex; flex-direction: column;
    border: 0; border-right: 1px solid var(--line);
    background: rgba(255,255,255,0.97);
    padding: 0;
  }
  /* Keep the controls readable if the 30% panel gets wide on a large monitor */
  .dock-scroll > * { max-width: 560px; margin-left: auto; margin-right: auto; }
  .dock-handle { display: none; }
  .builder-dock .stepper {
    flex-shrink: 0; padding: 22px var(--dock-pad-x) 14px; border-bottom: 1px solid var(--line);
  }
  .dock-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 20px var(--dock-pad-x) 0; }

  /* Right deck stage */
  .viewer-card { order: 2; position: relative; flex: 1 1 auto; height: 100%; background: transparent; }
  .viewer-canvas { height: 100%; }
}

/* ── Stepper ────────────────────────────────────────────────────────────── */
.builder-right { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1100px) { .builder-right { order: 2; } }

.stepper { display: flex; flex-direction: column; gap: 8px; }
.stepper-labels { display: flex; align-items: center; justify-content: space-between; }
.step-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: -0.02em;
  background: none; border: 0; color: rgba(55,65,81,0.4); transition: color 0.2s;
}
.step-label[data-state="done"] { color: var(--ink-softer); cursor: pointer; }
.step-label[data-state="done"]:hover { color: var(--ink); }
.step-label[data-state="current"] { color: var(--ink); }
.step-circle {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #9CA3AF;
  border: 1px solid #D1D5DB; transition: all 0.2s;
}
.step-label[data-state="done"] .step-circle,
.step-label[data-state="current"] .step-circle {
  background: var(--steel); color: #fff; border-color: var(--steel);
}
.stepper-bar { height: 4px; background: var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.stepper-bar-fill {
  height: 100%; background: var(--steel); width: 0%;
  border-radius: var(--radius-pill);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 640px) { .step-label span:last-child { display: none; } }

/* ── Wizard panel ───────────────────────────────────────────────────────── */
.wizard-panel { position: relative; min-height: 400px; }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 28px;
  box-shadow: var(--shadow-card);
}
.card-header { margin-bottom: 20px; }
.card-title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.card-subtitle { font-size: 14px; color: var(--ink-softer); margin-top: 4px; line-height: 1.5; }
/* Persistent Back / Next bar — a real footer pinned at the bottom of the dock
   (sibling of the scrolling options), so it always sits at the bottom of the
   section on every step, desktop and mobile. */
.dock-footer {
  flex-shrink: 0;
  display: flex; gap: 8px; align-items: center;
  padding: 14px var(--dock-pad-x) calc(14px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 18px -14px rgba(17,24,39,0.25);
}
.dock-footer:empty { display: none; }
/* Legacy in-card action bars (no longer used by the wizard flow). */
.card-actions, .micro-nav { display: flex; gap: 8px; margin-top: 20px; }

/* Sub-section divider label inside a combined desktop window (e.g. "Shape" /
   "Size" within one panel). */
.group-label { margin: 22px 0 10px; }
.group-label:first-child { margin-top: 0; }
.group-label .field-label { text-transform: uppercase; letter-spacing: 0.05em; font-size: 11px; font-weight: 700; color: var(--ink-softer); }

/* "Start from scratch" sits above the preset grid on the Shop the look window. */
.preset-scratch-row { display: flex; justify-content: flex-end; margin-bottom: 14px; }

/* Mobile "Shop the look" — text-only preset cards (no thumbnails) so the
   gallery fits on one screen. */
.preset-tile-compact { padding: 12px 14px; gap: 4px; }
.preset-tile-compact .preset-blurb { display: none; }

/* ── Micro-step (mobile gamified sub-questions for Step 1) ───────────────── */
.micro-dots {
  display: flex; gap: 6px; justify-content: center;
  margin-bottom: 20px;
}
.micro-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); transition: all 0.2s ease;
}
.micro-dot.active { background: var(--steel); width: 22px; border-radius: var(--radius-pill); }
.micro-dot.done   { background: var(--lms-blue); }

.micro-group-header { margin-bottom: 14px; }
.micro-group-sub { font-size: 13px; color: var(--ink-softer); margin-top: 2px; line-height: 1.5; }

/* .micro-nav shares the pinned-footer styles defined with .card-actions above. */

/* One micro-question at a time on every screen — keeps the dock compact
   and the flow guided (no wall of options) for the 25–55 audience. */
.micro-group { display: none; }
.micro-group.is-active { display: block; animation: microFadeIn 0.25s ease; }
.desktop-only { display: none; }

@media (max-width: 1099px) {
  /* ── Tighten wizard content so the deck + one question read cleanly ── */
  .section-intro { margin-bottom: 20px; }
  .section-title { font-size: 22px; }
  .section-subtitle { font-size: 14px; margin-top: 6px; }

  .viewer-footer { left: 10px; bottom: 10px; padding: 6px 12px; font-size: 12px; gap: 8px; }
  /* The 3 tool buttons can't share the top row with the zoom hint on a phone,
     so let the tools wrap (top-left, never overflowing off-screen) and move the
     zoom hint down to the bottom-right, opposite the dims pill (bottom-left). */
  .viewer-tools { top: 10px; left: 10px; right: 10px; gap: 6px; flex-wrap: wrap; }
  .viewer-tool { padding: 4px 10px; font-size: 11px; }
  /* Zoom hint is a centred first-use overlay (below the tools, over the sky). It
     fades away the moment the user first touches the 3D view (JS adds
     .hint-dismissed), so it never permanently competes for space on a phone. */
  .viewer-chip {
    top: 54px; left: 50%; right: auto; bottom: auto; transform: translateX(-50%);
    padding: 6px 14px; font-size: 12px;
  }
  .viewer-chip.hint-dismissed { opacity: 0; }

  .card { padding: 16px; }
  .card-header { margin-bottom: 12px; }
  .card-title { font-size: 16px; }
  .card-subtitle { font-size: 13px; }

  .micro-dots { margin-bottom: 12px; }
  .micro-group-header { margin-bottom: 8px; }
  .micro-group-sub { font-size: 12px; }

  .field-label { margin-bottom: 6px; font-size: 10px; }
  .shape-row, .wall-row { gap: 6px; }
  .opt-tile { padding: 8px; gap: 4px; }
  .opt-tile-label { font-size: 11px; }
  .wall-tile { padding: 8px; }
  .wall-tile-title { font-size: 13px; }
  .wall-tile-desc { font-size: 10px; }
  .corner-tile { padding: 6px; font-size: 11px; }

  .slider-group { margin-bottom: 4px; }
  .slider-row { margin-bottom: 4px; }
  .slider-ends { margin-top: 2px; }

  .readout-box { margin-top: 10px !important; padding: 10px 14px; }

  .micro-nav { margin-top: 12px; }
  .wizard-panel { min-height: 0; }
}
@keyframes microFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Shape picker */
.shape-row, .wall-row { display: grid; gap: 8px; }
.shape-row { grid-template-columns: repeat(3, 1fr); }
.wall-row { grid-template-columns: repeat(2, 1fr); }
.field-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-softer);
  display: block; margin-bottom: 10px;
}
.opt-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: #fff;
  transition: all 0.15s;
}
.opt-tile.active {
  border-color: var(--steel); background: #F8FAFC;
  box-shadow: 0 0 0 1px var(--steel);
  animation: tilePop 0.2s ease;
}
.opt-tile svg { color: #9CA3AF; transition: color 0.15s; }
.opt-tile.active svg { color: var(--steel); }
.opt-tile-label { font-size: 12px; font-weight: 600; color: var(--ink); }

.wall-tile {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 12px; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: #fff; text-align: left;
  transition: all 0.15s;
}
.wall-tile.active {
  border-color: var(--steel); background: #F8FAFC;
  box-shadow: 0 0 0 1px var(--steel);
  animation: tilePop 0.2s ease;
}
.wall-tile-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.wall-tile-desc { font-size: 11px; color: var(--ink-softer); }

/* Corner picker (L-shape) */
.corner-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.corner-tile {
  font-size: 12px; font-weight: 500;
  padding: 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; color: var(--ink-softer);
  transition: all 0.15s;
}
.corner-tile.active {
  background: var(--steel); color: #fff; border-color: var(--steel);
  animation: tilePop 0.2s ease;
}
@keyframes tilePop {
  0%   { transform: scale(0.97); }
  60%  { transform: scale(1.015); }
  100% { transform: scale(1); }
}

/* Slider */
.slider-group { margin-bottom: 8px; }
.slider-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 8px;
}
.slider-value { font-size: 22px; font-weight: 600; color: var(--steel); font-variant-numeric: tabular-nums; display: inline-flex; align-items: baseline; }
.slider-value .unit { font-size: 14px; color: var(--ink-softer); font-weight: 400; margin-left: 2px; }
/* Tap-to-type dimension field (looks like the number, but editable) */
.slider-value-input {
  width: 4.4ch; text-align: right; border: 0; background: transparent;
  font: inherit; font-size: 22px; font-weight: 600; color: var(--steel);
  font-variant-numeric: tabular-nums; padding: 0; -moz-appearance: textfield;
}
.slider-value-input::-webkit-outer-spin-button,
.slider-value-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.slider-value-input:focus { outline: none; box-shadow: 0 2px 0 var(--steel); }
.slider-range {
  width: 100%; height: 6px; border-radius: var(--radius-pill);
  background: var(--line); appearance: none; outline: none;
  accent-color: var(--steel); cursor: pointer;
}
.slider-range::-webkit-slider-thumb {
  appearance: none; width: 20px; height: 20px;
  background: var(--steel); border: 3px solid #fff;
  border-radius: 50%; box-shadow: var(--shadow-card);
}
.slider-range::-moz-range-thumb {
  width: 18px; height: 18px; background: var(--steel);
  border: 3px solid #fff; border-radius: 50%;
}
.slider-ends {
  display: flex; justify-content: space-between;
  font-size: 10px; color: rgba(55,65,81,0.6); margin-top: 4px;
}
/* Number stepper (− value +). On desktop the drag bar is the control, so the
   +/− buttons stay hidden; on mobile the bar is hidden and the stepper — big,
   tappable, and type-able — takes over so mobile users don't fight a slider. */
.num-stepper { display: inline-flex; align-items: center; gap: 10px; }
.step-btn {
  display: none;
  width: 36px; height: 36px; flex: 0 0 36px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--steel);
  font-size: 22px; line-height: 1; font-weight: 500;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, background .15s ease;
}
.step-btn:active { transform: scale(.9); background: var(--surface); }
@media (max-width: 1099px) {
  .slider-range, .slider-ends { display: none; }
  .slider-row { align-items: center; }
  /* Larger, thumb-friendly stepper on touch (44px = Apple/WCAG min target) */
  .step-btn { display: inline-flex; width: 44px; height: 44px; flex: 0 0 44px; font-size: 26px; }
  .slider-value { font-size: 24px; }
  .slider-value-input { width: 3.6ch; text-align: center; font-size: 24px; }
}

/* Cutout group */
.cutout-group {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius-md); padding: 16px;
  display: flex; flex-direction: column; gap: 16px;
}

/* Area readout */
.readout-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.readout-label { font-size: 14px; color: var(--ink-softer); }
.readout-value { font-size: 20px; font-weight: 600; color: var(--steel); font-variant-numeric: tabular-nums; }

/* Material / extras list */
.item-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: #fff;
  transition: all 0.15s; text-align: left; width: 100%;
}
.item-row.active {
  border-color: var(--steel); background: #F8FAFC;
  box-shadow: 0 0 0 1px var(--steel);
}
.item-swatch { width: 44px; height: 44px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.05); flex-shrink: 0; }
.item-body { flex: 1; min-width: 0; }
.item-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.item-desc { font-size: 12px; color: var(--ink-softer); margin-top: 2px; line-height: 1.4; }

/* ── Shop the Look presets (Step 1) ─────────────────────────────────────── */
.preset-card { margin-bottom: 16px; }
.preset-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.preset-scratch {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 700; color: var(--steel);
  background: var(--lms-blue); border: 1px solid var(--lms-blue);
  box-shadow: var(--shadow-card);
  transition: filter .15s ease, transform .05s ease, box-shadow .15s ease;
}
.preset-scratch:hover { filter: brightness(1.06); box-shadow: var(--shadow-card-lg); }
.preset-scratch:active { transform: translateY(1px); }
.preset-scratch:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
.preset-scratch svg { color: var(--steel); }
@media (max-width: 420px) { .preset-scratch { font-size: 12.5px; padding: 9px 13px; } }
.preset-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.preset-tile {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  gap: 8px; padding: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.preset-tile:hover { border-color: var(--lms-blue); box-shadow: var(--shadow-card); }
.preset-tile:active { transform: translateY(1px); }
.preset-tile:focus-visible { outline: 2px solid var(--lms-blue); outline-offset: 2px; }
.preset-thumb {
  position: relative;
  width: 100%; aspect-ratio: 34 / 24; display: block;
  background: var(--surface); border-radius: 8px; padding: 8px;
}
.preset-size {
  display: inline-block; align-self: flex-start; margin-top: 3px;
  padding: 1px 8px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 600; line-height: 1.6;
  color: var(--steel); background: var(--surface); border: 1px solid var(--line);
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.preset-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 8px;
}
.preset-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.preset-blurb { font-size: 11.5px; color: var(--ink-softer); line-height: 1.4; }
/* Keep the preset gallery 2×2 even on narrow screens. */

/* ── Deck pattern picker (Step 2) ───────────────────────────────────────── */
.pattern-block { margin-top: 22px; }
.pattern-head { margin-bottom: 12px; }
.pattern-title { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.pattern-sub { font-size: 12.5px; color: var(--ink-softer); line-height: 1.4; }
.pattern-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pattern-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px 8px; text-align: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.pattern-tile:hover { border-color: var(--lms-blue); }
.pattern-tile:active { transform: translateY(1px); }
.pattern-tile:focus-visible { outline: 2px solid var(--lms-blue); outline-offset: 2px; }
.pattern-tile.active { border-color: var(--steel); box-shadow: inset 0 0 0 1px var(--steel); }
.pattern-icon { width: 44px; height: 40px; color: var(--ink-soft); }
.pattern-icon svg { width: 100%; height: 100%; }
.pattern-tile.active .pattern-icon { color: var(--steel); }
.pattern-name { font-size: 11.5px; font-weight: 600; color: var(--ink); line-height: 1.2; }
@media (max-width: 380px) { .pattern-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Wall paint swatches (backyard scene) ───────────────────────────────── */
.paint-row { display: flex; flex-wrap: wrap; gap: 8px; }
.paint-swatch {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .12); box-shadow: var(--shadow-card);
  transition: transform .05s ease, box-shadow .15s ease;
}
.paint-swatch:hover { transform: translateY(-1px); }
.paint-swatch:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
.paint-swatch.active { box-shadow: 0 0 0 2px var(--steel); border-color: var(--steel); }
.item-check {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--steel); flex-shrink: 0;
}

/* Add-on inline hint / compliance nudge */
.addon-hint {
  margin: 8px 2px 0; padding: 8px 12px;
  background: rgba(228,188,118,0.14); border: 1px solid rgba(228,188,118,0.5);
  border-radius: var(--radius-sm);
  font-size: 12px; line-height: 1.45; color: var(--ink-soft);
}
.addon-hint.warn {
  background: rgba(5,150,105,0.08); border-color: rgba(5,150,105,0.35); color: #065f46;
}
/* Inline note next to an add-on name (e.g. balustrade height rule) */
.addon-hint-inline {
  margin-top: 4px; font-size: 11px; line-height: 1.35;
  color: #8a6d3b; font-weight: 500;
}

/* Quantity controls */
.qty-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.qty-btn {
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 14px; font-weight: 500; border: 1px solid var(--line);
  background: #fff; color: var(--ink-softer); transition: all 0.15s;
}
.qty-btn:hover:not(:disabled) { background: var(--surface); }
.qty-btn.plus { background: var(--steel); color: #fff; border-color: var(--steel); }
.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-value { width: 32px; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

.each-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 16px; transition: all 0.15s;
  border: 1px solid #D1D5DB; background: #fff; color: #9CA3AF;
}
.each-btn.active { background: var(--steel); color: #fff; border-color: var(--steel); }

/* ── Touch targets: bump the most-tapped controls to 44px on mobile ────────
   Placed after the base rules above so these mobile overrides win on source
   order (media queries add no specificity). 44px = Apple/WCAG min target. */
@media (max-width: 1099px) {
  .qty-btn { width: 44px; height: 44px; font-size: 18px; }
  .qty-value { width: 40px; font-size: 16px; }
  .each-btn { width: 44px; height: 44px; font-size: 18px; }
  .paint-row { gap: 10px; }
  .paint-swatch { width: 44px; height: 44px; }
}

/* Form fields */
.field { margin-bottom: 12px; }
.field-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.field-optional { font-size: 10px; color: rgba(55,65,81,0.6); letter-spacing: 0.1em; text-transform: uppercase; }
.field-input {
  width: 100%; height: 48px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: #fff; font-size: 14px; color: var(--ink);
  font-family: inherit; transition: all 0.2s;
}
.field-input:focus {
  outline: none; border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(0,47,68,0.08);
}
.field-input::placeholder { color: rgba(55,65,81,0.4); }

.summary-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 16px;
  display: flex; flex-direction: column; gap: 8px; font-size: 14px;
}
.summary-row { display: flex; align-items: center; justify-content: space-between; }
.summary-row .label { color: var(--ink-softer); }
.summary-row .value { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

.final-footer-note { font-size: 12px; color: var(--ink-softer); text-align: center; line-height: 1.5; }

/* ── Info sections ──────────────────────────────────────────────────────── */
/* ── Guide CTA (light-blue band under the builder) ──────────────────────── */
.guide-cta { padding: 72px 0; background: #dcf0ff; }
@media (min-width: 640px) { .guide-cta { padding: 112px 0; } }
.guide-cta-card {
  display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center;
}
@media (min-width: 860px) {
  .guide-cta-card { grid-template-columns: 1.15fr 1fr; gap: 56px; }
}
.guide-cta-media { display: flex; justify-content: center; }
.guide-cta-media img {
  width: 100%; height: auto; max-width: 620px;
  border-radius: var(--radius-lg);           /* soften the mockup's white backing into a card */
  box-shadow: var(--shadow-float);
}
.guide-cta-title {
  font-size: clamp(26px, 3.5vw, 34px); font-weight: 600;
  letter-spacing: -0.025em; line-height: 1.15; color: var(--ink); margin-top: 4px;
}
.guide-cta-text {
  font-size: 17px; color: var(--ink-soft); line-height: 1.6;
  margin-top: 16px; max-width: 460px;
}
.guide-cta-btn { margin-top: 28px; }
/* Logo fallback: a brand logo isn't a wide device mockup, so drop the card
   shadow/rounding and cap its size so it reads as a logo, not a screenshot. */
.guide-cta.is-logo .guide-cta-media img {
  max-width: 320px; box-shadow: none; border-radius: 0; background: transparent;
}
@media (max-width: 859px) {
  .guide-cta-body { text-align: center; }
  .guide-cta-text { margin-left: auto; margin-right: auto; }
}

/* ── Intro / headline hero (band above the builder, toggleable) ─────────── */
.intro-hero { padding: 64px 0 48px; background: #fff; text-align: center; }
@media (min-width: 640px) { .intro-hero { padding: 88px 0 64px; } }
.intro-hero-title {
  font-size: clamp(30px, 5vw, 52px); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.08; color: var(--ink); margin-top: 6px;
}
.intro-hero-sub {
  font-size: 17px; color: var(--ink-soft); line-height: 1.6;
  margin: 18px auto 0; max-width: 620px;
}
.intro-hero-stat {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-softer); margin-top: 18px; text-transform: uppercase;
}
.intro-hero .btn-primary-pill { margin-top: 28px; }

.info-section { padding: 80px 0; }
@media (min-width: 640px) { .info-section { padding: 128px 0; } }
.info-section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.card-grid { display: grid; gap: 24px; }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}

.step-num { font-size: 14px; font-weight: 600; color: var(--lms-blue); font-variant-numeric: tabular-nums; margin-bottom: 16px; }
.info-card-title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 10px; }
.info-card-body { font-size: 14px; color: var(--ink-softer); line-height: 1.6; }

.content-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 28px;
  box-shadow: var(--shadow-card);
}

.testimonial { display: flex; flex-direction: column; height: 100%; }
.testimonial-quote {
  font-size: 15px; color: var(--ink); line-height: 1.6; flex: 1;
}
.testimonial-meta { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.testimonial-location { font-size: 12px; color: var(--ink-softer); margin-top: 2px; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: 0; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 20px 0; width: 100%;
  background: none; border: 0; text-align: left;
  font-size: 16px; font-weight: 600; color: var(--ink);
}
.faq-toggle { font-size: 20px; color: var(--ink-softer); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 40px 24px 0; color: var(--ink-softer); line-height: 1.6; }

/* ── Final CTA ──────────────────────────────────────────────────────────── */
.final-cta { padding: 96px 0; background: var(--steel); }
@media (min-width: 640px) { .final-cta { padding: 144px 0; } }
.final-cta-headline {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600; letter-spacing: -0.025em; color: #fff;
}
.final-cta-subhead {
  margin: 20px auto 0; max-width: 40ch;
  font-size: 18px; color: rgba(255,255,255,0.7);
}
.final-cta .btn-white-pill { margin-top: 40px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: #fff; padding: 48px 0; border-top: 1px solid var(--line); }
.footer-row {
  display: flex; flex-direction: column; gap: 24px;
  align-items: flex-start; justify-content: space-between;
}
@media (min-width: 640px) { .footer-row { flex-direction: row; align-items: center; } }
.footer-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-logo { height: 28px; }
.footer-divider { width: 1px; height: 24px; background: var(--line); }
.footer-tagline { font-size: 14px; color: var(--ink-softer); }
.footer-right { display: flex; gap: 24px; font-size: 14px; color: var(--ink-softer); }
.footer-link:hover { color: var(--ink); }

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11,18,32,0.7); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; z-index: 1;
  background: #fff; border-radius: var(--radius-lg);
  max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 32px; box-shadow: var(--shadow-float);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface); border: 0; font-size: 20px; color: var(--ink-softer);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; color: var(--ink); }
.modal-subtitle { color: var(--ink-softer); margin-top: 8px; font-size: 14px; line-height: 1.6; }
.modal-summary {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 16px; margin: 20px 0;
  font-size: 14px;
}
.modal-summary .summary-row { padding: 4px 0; }

.ghl-form-container {
  margin-top: 12px; border: 1px solid var(--line);
  border-radius: var(--radius-md); overflow: hidden;
  min-height: 80px;
}
.ghl-form-container iframe { width: 100%; border: 0; display: block; }
.ghl-placeholder {
  padding: 40px 24px; text-align: center; background: var(--surface);
  color: var(--ink-softer); font-size: 14px;
}
.ghl-placeholder p { margin-bottom: 8px; }
.ghl-placeholder .small { font-size: 12px; line-height: 1.6; }
.ghl-placeholder code {
  background: #fff; padding: 2px 6px; border-radius: 4px;
  font-family: "SF Mono", Menlo, monospace; font-size: 12px; color: var(--ink);
}

/* ── Tabular numbers utility ────────────────────────────────────────────── */
.tabular { font-variant-numeric: tabular-nums; }

/* LMS Copyright Notice */
.copyright-text {
  text-align: center;
  margin: 5px 0;
  padding: 0 10px;
  font-family: inherit;
  font-size: 12px;
}

/* ── Plan-view stair edge picker ─────────────────────────────────────────── */
.stair-picker {
  margin-top: 8px;
  padding: 16px 14px 10px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
}
.stair-plan {
  width: 100%; height: auto; display: block;
  max-height: 260px;
  overflow: visible;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.sp-deck { fill: #EDE6DA; }
/* Pills are rects, styled by FILL only — no stroke, no transform, so nothing can
   scale them into a blob. Colour transition is the only animation. */
.sp-edge { fill: #C4CBD5; transition: fill .26s cubic-bezier(.4, 0, .2, 1), opacity .12s ease; }
.sp-hit { fill: transparent; cursor: pointer; }
.sp-wall { fill: #C4CBD5; opacity: .5; }
.sp-pill.is-selected .sp-edge { fill: var(--lms-blue); }
.sp-pill:active .sp-edge { opacity: .5; }
/* Belt-and-braces: never let a focus ring draw a box around an SVG edge pill
   (guards against the old "gold blob" balloon on click/keyboard focus). */
.stair-plan [tabindex]:focus, .stair-plan [tabindex]:focus-visible,
.sp-pill:focus, .sp-hit:focus { outline: none; }
.sp-caption {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-softer);
  margin: 8px 0 2px;
  font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
  .sp-pill, .sp-pill.is-selected { animation: none; transition: none; }
}