/* ==========================================================================
   FloorView AI (floorviewai.com) — Flagship Architectural Studio Design System
   100% Unified with Mobile App (com.floorviewai.app) • 4 Live Themes • WCAG AAA
   ========================================================================== */

:root,
[data-theme="forest"] {
  --bg: #F5F2EB;
  --surface: #FFFFFF;
  --surface-muted: #ECE7DD;
  --text: #141A17;
  --text-muted: #525E58;
  --border: #D8D1C5;
  --border-strong: #2E6B4F;
  --primary: #23533D;
  --primary-hover: #193E2D;
  --primary-soft: #E3F2EA;
  --accent-pill: #D4EFE0;
  --accent-text: #1B4332;
  --hero-grad: linear-gradient(135deg, #132E22 0%, #23533D 60%, #2E6B4F 100%);
  --shadow-sm: 0 4px 14px rgba(20, 26, 23, 0.06);
  --shadow-md: 0 14px 34px rgba(20, 26, 23, 0.09);
  --shadow-lg: 0 24px 56px rgba(20, 26, 23, 0.14);
}

[data-theme="ocean"] {
  --bg: #EFF4F8;
  --surface: #FFFFFF;
  --surface-muted: #E2ECF5;
  --text: #0F172A;
  --text-muted: #475569;
  --border: #CBD5E1;
  --border-strong: #1E5F8A;
  --primary: #164E78;
  --primary-hover: #0F3859;
  --primary-soft: #E0F2FE;
  --accent-pill: #DBEAFE;
  --accent-text: #1E3A8A;
  --hero-grad: linear-gradient(135deg, #0C253B 0%, #164E78 60%, #1E5F8A 100%);
}

[data-theme="clay"] {
  --bg: #FAF4EE;
  --surface: #FFFFFF;
  --surface-muted: #F2E7DC;
  --text: #27160E;
  --text-muted: #664D3E;
  --border: #E0CFC1;
  --border-strong: #9A3412;
  --primary: #8C2D12;
  --primary-hover: #69200B;
  --primary-soft: #FFEDD5;
  --accent-pill: #FED7AA;
  --accent-text: #7C2D12;
  --hero-grad: linear-gradient(135deg, #3D1306 0%, #7C2D12 60%, #9A3412 100%);
}

[data-theme="royal"] {
  --bg: #F5F2FA;
  --surface: #FFFFFF;
  --surface-muted: #EAE3F5;
  --text: #1A102B;
  --text-muted: #56476E;
  --border: #D5CBE3;
  --border-strong: #5B21B6;
  --primary: #4C1D95;
  --primary-hover: #3B1575;
  --primary-soft: #F3E8FF;
  --accent-pill: #E9D5FF;
  --accent-text: #4C1D95;
  --hero-grad: linear-gradient(135deg, #240B47 0%, #4C1D95 60%, #6D28D9 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

body {
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Smart ASO Top App Bar
   ========================================================================== */
.aso-top-banner {
  background: var(--hero-grad);
  color: #FFFFFF;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
}

.aso-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.aso-app-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aso-app-icon {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.aso-app-title {
  font-weight: 800;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.aso-badge-pill {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.aso-app-sub {
  font-size: 12px;
  opacity: 0.88;
}

.aso-app-sub code {
  background: rgba(0, 0, 0, 0.22);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 11px;
}

.aso-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-aso-open,
.btn-aso-apk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-aso-open {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.btn-aso-apk {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.btn-aso-open:hover,
.btn-aso-apk:hover {
  transform: translateY(-1px);
}

/* ==========================================================================
   Sticky Navigation Header, Header Theme Switcher & Premium Mobile/Tab Drawer
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(17, 24, 20, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand-logo img {
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-name {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: 19px;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-tag {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
  margin: 0 auto;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.header-right-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--surface-muted);
  padding: 3.5px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.theme-pill.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.theme-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

/* Hamburger Drawer Toggle Button (Hidden on Desktop, Visible on Tablet & Mobile) */
.drawer-toggle-btn {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 99px;
  background: var(--primary);
  color: #FFFFFF;
  border: 1px solid var(--primary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--primary-glow);
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.drawer-toggle-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.drawer-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3.5px;
  width: 15px;
}

.drawer-bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
}

.drawer-toggle-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Premium Mobile & Tablet Slide-Out Navigation Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 280;
  background: rgba(10, 14, 12, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(370px, 90vw);
  z-index: 290;
  background: var(--surface);
  color: var(--text);
  border-left: 1.5px solid var(--border-strong);
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 18px;
  overflow-y: auto;
  transform: translateX(104%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-brand img {
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.drawer-brand strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
}

.drawer-brand span {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.drawer-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-theme-box {
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.drawer-section-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.drawer-theme-switcher {
  width: 100%;
  justify-content: space-between;
  background: var(--surface);
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 14px 0;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s ease;
}

.drawer-nav-item:hover,
.drawer-nav-item.active {
  background: var(--primary-soft);
  border-color: var(--border-strong);
}

.drawer-nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.drawer-nav-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
}

.drawer-nav-item small {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
}

.drawer-legal-links {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.drawer-legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
}

.drawer-legal-grid a {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
}

.drawer-legal-grid a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.drawer-footer-cta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-apk-btn,
.drawer-open-btn {
  width: 100%;
  justify-content: center;
  padding: 11px 14px;
  font-size: 13px;
}

/* Tablet & Mobile Responsive Header Breakpoint (<= 1120px) */
@media (max-width: 1120px) {
  .nav-links {
    display: none !important;
  }

  .drawer-toggle-btn {
    display: inline-flex;
  }

  .header-inner {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 8px 0;
  }

  .brand-logo {
    gap: 7px;
  }

  .brand-logo img {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 15.5px;
  }

  .brand-tag {
    display: none;
  }

  .header-right-actions {
    gap: 6px;
  }

  .header-theme-switcher {
    padding: 2.5px;
    gap: 2px;
  }

  .header-theme-switcher .theme-pill {
    padding: 4px 7px;
    font-size: 10.5px;
    gap: 3.5px;
  }

  .header-theme-switcher .theme-dot {
    width: 6.5px;
    height: 6.5px;
  }

  .drawer-toggle-btn {
    padding: 6px 10px;
    gap: 5px;
  }

  .drawer-toggle-label {
    display: none;
  }
}

/* ==========================================================================
   Hero & Interactive 60fps AI Floor Visualizer
   ========================================================================== */
.hero-section {
  padding: 28px 0 44px;
}

.hero-top {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 26px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--primary-soft);
  border: 1px solid var(--border-strong);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
}

.hero-h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.13;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-h1 .accent {
  color: var(--primary);
}

.hero-sub {
  font-size: clamp(15px, 1.8vw, 17.5px);
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1.48fr 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 1024px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
}

.visualizer-card {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.viz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
}

.viz-room-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.viz-room-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.viz-room-title {
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-v5-pill {
  background: var(--accent-pill);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
}

.viz-room-sub {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.viz-room-sub .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
}

.viz-zoom-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.zoom-btn {
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  background: var(--surface-muted);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.14s ease;
}

.zoom-btn:hover,
.zoom-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

/* Viewport-Locked Split + 4K Zoom Stage */
.viz-canvas-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 540px;
  background: #101412;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: ew-resize;
}

.viz-canvas-stage.is-zoomed {
  cursor: grab;
}

.viz-canvas-stage.is-zoomed:active {
  cursor: grabbing;
}

.viz-zoom-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  will-change: transform;
}

.viz-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.viz-floor-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: background-color 0.25s ease, opacity 0.25s ease;
}

.viz-before-clip {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.viz-top-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.viz-badge {
  pointer-events: auto;
  background: rgba(15, 20, 18, 0.76);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.viz-badge.interactive {
  cursor: pointer;
}

.viz-badge.interactive:hover {
  background: var(--primary);
}

.split-percent-pill {
  position: absolute;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  background: rgba(15, 20, 18, 0.82);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.split-divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2.5px;
  background: #FFFFFF;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.55);
  z-index: 7;
  transform: translateX(-50%);
}

.split-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--primary);
  border: 3px solid var(--primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 900;
  cursor: ew-resize;
  transition: transform 0.12s ease;
}

.split-handle-knob:hover,
.split-handle-knob.dragging {
  transform: translate(-50%, -50%) scale(1.1);
}

.viz-bottom-bar {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.viz-lighting-pill {
  background: rgba(15, 20, 18, 0.78);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  padding: 7px 13px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.viz-mode-tabs {
  display: inline-flex;
  background: rgba(15, 20, 18, 0.82);
  padding: 4px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.viz-mode-tab {
  padding: 5px 13px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: none;
  cursor: pointer;
}

.viz-mode-tab.active {
  background: var(--primary);
  color: #FFFFFF;
}

.viz-presets-bar {
  padding: 12px 16px;
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.room-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.room-pill {
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.14s ease;
}

.room-pill:hover,
.room-pill.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

/* Studio Right Sidebar */
.studio-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.upload-dropzone {
  display: block;
  border: 2px dashed var(--border-strong);
  background: var(--primary-soft);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.upload-dropzone:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.upload-dropzone-icon {
  font-size: 26px;
  margin-bottom: 4px;
}

.upload-dropzone-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--primary);
}

.upload-dropzone-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.active-mat-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.active-mat-swatch {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.18);
}

.active-mat-swatch span {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 0;
}

.active-mat-name {
  font-size: 18px;
  font-weight: 800;
}

.price-pill {
  background: var(--accent-pill);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
}

.active-mat-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 4px 0 8px;
}

.active-mat-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.spec-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--primary);
}

.mini-swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mini-swatch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 4px;
  border-radius: 12px;
  background: var(--surface-muted);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.14s ease;
}

.mini-swatch-btn:hover,
.mini-swatch-btn.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.mini-swatch-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
}

.mini-swatch-label {
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  color: var(--text);
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  background: var(--primary-soft);
}

/* ==========================================================================
   Centered Glassy Section Title Pill (Matches Mobile App GlassSectionTitleButton)
   ========================================================================== */
.section {
  padding: 52px 0;
}

.glass-title-wrap {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 30px;
}

.glass-title-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.glass-title-pill h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  color: var(--text);
}

.section-sub {
  font-size: 15.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Section 2: 16 PBR Material Swatch Catalog
   ========================================================================== */
.category-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cat-filter-btn {
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-filter-btn:hover,
.cat-filter-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

.catalog-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.catalog-card:hover,
.catalog-card.active {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.catalog-swatch-banner {
  height: 84px;
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Section 3: 30-Second Room Cost Estimator
   ========================================================================== */
.calc-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 920px) {
  .calc-wrapper {
    grid-template-columns: 1fr;
  }
}

.calc-controls-card,
.calc-result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.sqft-preset-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}

@media (max-width: 600px) {
  .sqft-preset-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sqft-preset-btn {
  padding: 12px 10px;
  border-radius: 14px;
  background: var(--surface-muted);
  border: 1.5px solid var(--border);
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.sqft-preset-btn span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.sqft-preset-btn.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.sqft-adjust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 10px;
}

.sqft-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sqft-step-btn {
  padding: 7px 13px;
  border-radius: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-weight: 800;
  cursor: pointer;
}

.sqft-live-badge {
  background: var(--accent-pill);
  color: var(--accent-text);
  padding: 6px 14px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 14px;
}

.sqft-range-input {
  width: 100%;
  accent-color: var(--primary);
  height: 8px;
  margin: 8px 0;
  cursor: pointer;
}

.calc-total-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.calc-total-range {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--text);
  margin: 4px 0;
}

.calc-midpoint {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.calc-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.calc-breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--surface-muted);
  font-size: 13.5px;
}

.calc-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Section 4: Competitor Comparison Matrix
   ========================================================================== */
.matrix-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.matrix-table th,
.matrix-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.matrix-table th {
  background: var(--surface-muted);
  font-weight: 800;
}

.matrix-table .highlight-col {
  background: var(--primary-soft);
  font-weight: 700;
}

.check-yes {
  color: #047857;
  font-weight: 800;
}

.check-no {
  color: #B91C1C;
  font-weight: 700;
}

/* ==========================================================================
   Section 5: ASO Hub & QR Code Scanner
   ========================================================================== */
.aso-hub-card {
  background: var(--hero-grad);
  color: #FFFFFF;
  border-radius: 28px;
  padding: 38px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 860px) {
  .aso-hub-card {
    grid-template-columns: 1fr;
    padding: 26px;
  }
}

.aso-store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #FFFFFF;
  color: #111827;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.store-badge-btn small {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #4B5563;
}

.store-badge-btn strong {
  font-size: 14px;
  font-weight: 800;
}

.qr-box {
  background: #FFFFFF;
  color: #111827;
  border-radius: 22px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.qr-box svg {
  width: 136px;
  height: 136px;
}

/* ==========================================================================
   Section 6 & 7: FAQ Accordion & Semantic SEO Silo Directory
   ========================================================================== */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
}

.faq-item summary {
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

.faq-body {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.silo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  margin: 0 auto;
}

.silo-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.silo-col:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.silo-col h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.silo-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.silo-col a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.silo-col a:hover {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .silo-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 760px;
    margin: 0 auto;
  }

  .silo-col {
    text-align: center;
    align-items: center;
  }

  .silo-col ul {
    align-items: center;
  }
}

@media (max-width: 560px) {
  .silo-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
}

/* Fullscreen 4K Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 14, 12, 0.94);
  display: none;
  flex-direction: column;
  padding: 20px;
  color: #FFFFFF;
}

.lightbox-backdrop.open {
  display: flex;
}

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
}

.lightbox-stage {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Centered Auto-Responsive Footer & Middle Menu Bar (Desktop, Tablet & Mobile) */
.site-footer {
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  max-width: 1040px;
  margin: 0 auto;
}

.footer-brand-line {
  text-align: center;
  line-height: 1.6;
  max-width: 860px;
  margin: 0 auto;
}

.footer-brand-line code {
  background: var(--surface);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 12px;
}

.footer-menu-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  margin: 0 auto;
  padding: 10px 22px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.footer-menu-link {
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.footer-menu-link.primary-link {
  color: var(--primary);
  font-weight: 800;
}

.footer-menu-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-dot {
  color: var(--text-muted);
  opacity: 0.55;
  user-select: none;
}

@media (max-width: 768px) {
  .footer-menu-bar {
    border-radius: 20px;
    padding: 12px 16px;
    gap: 8px 10px;
    width: 100%;
    max-width: 520px;
  }
}


/* ==========================================================================
   Force-Install Mobile App Conversion Gate Modal (Zero Web API Cost)
   ========================================================================== */
.app-gate-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(10, 14, 12, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.app-gate-backdrop.open {
  display: flex;
}

.app-gate-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border-strong);
  border-radius: 26px;
  padding: 28px 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.app-gate-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.app-gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 99px;
  background: var(--primary-soft);
  border: 1px solid var(--border-strong);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.app-gate-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.app-gate-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.55;
}

.app-gate-photo-preview {
  position: relative;
  width: 100%;
  height: 168px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1.5px solid var(--border-strong);
  background: #111;
}

.app-gate-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) brightness(0.75);
}

.app-gate-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 13px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.app-gate-perks {
  text-align: left;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 18px;
}

.app-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-gate-primary-btn,
.app-gate-secondary-btn {
  width: 100%;
  padding: 14px 18px;
  font-size: 14px;
}

.app-gate-footer {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}


/* ==========================================================================
   SEO Breadcrumb Bar & Google Featured Snippet / AEO Summary Card
   ========================================================================== */
.seo-breadcrumb {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.seo-breadcrumb ol {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 5px 14px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.seo-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
}

.seo-breadcrumb a:hover {
  text-decoration: underline;
}

.snippet-article-card {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 24px;
  padding: 26px 28px;
  box-shadow: var(--shadow-md);
}

.snippet-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.snippet-article-card h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  margin-bottom: 10px;
}

.snippet-direct-answer {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface-muted);
  padding: 16px 18px;
  border-radius: 14px;
  border-left: 4px solid var(--primary);
}
