:root {
  --ink: #1c2422;
  --ink-soft: #3d4a46;
  --paper: #e8efe9;
  --mist: #c5d5cc;
  --clinic: #7fa896;
  --clinic-deep: #3f6b58;
  --steel: #6d7c86;
  --warm: #f3ebe0;
  --panel: rgba(244, 248, 245, 0.92);
  --shadow: 0 18px 50px rgba(28, 36, 34, 0.18);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Sora", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #9bb5a8;
  color: var(--ink);
  font-family: var(--font-ui);
}

.app-nav {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 3vw, 2rem);
  background: rgba(244, 248, 245, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28, 36, 34, 0.08);
}

.nav-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-left: 0.5rem;
}

.nav-tab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}

.nav-tab.is-active {
  background: var(--clinic-deep);
  color: #f7fbf8;
}

.nav-quote {
  margin-left: auto;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  padding-top: 3.4rem;
}

.view {
  position: absolute;
  inset: 3.4rem 0 0;
}

.view[hidden] {
  display: none !important;
}

.view-demo {
  overflow: hidden;
}

.view-panel {
  overflow: auto;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(160deg, #d7e4db 0%, #b7c7bc 48%, #9bb5a8 100%);
}

.panel-shell {
  width: min(1080px, calc(100% - 2rem));
  margin: 1.25rem auto 2.5rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clinic-deep);
}

.panel-header h2,
.quote-dialog h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.panel-lede {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 0.95rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.stat,
.dash-block,
.price-card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.stat {
  padding: 1rem 1.1rem;
}

.stat-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.stat-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 650;
  line-height: 1;
}

.stat-value-sm {
  font-size: 1.35rem;
}

.dash-grid,
.price-grid {
  display: grid;
  gap: 0.85rem;
}

.dash-grid {
  grid-template-columns: 1.4fr 1fr;
}

.dash-block {
  padding: 1.1rem 1.15rem 1.2rem;
}

.dash-block h3,
.price-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.quote-list,
.check-list,
.price-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.quote-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(28, 36, 34, 0.08);
}

.quote-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.quote-clinic {
  margin: 0 0 0.2rem;
  font-weight: 600;
}

.quote-meta,
.quote-when,
.quote-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.quote-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: right;
}

.quote-model {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clinic-deep);
}

.check-list li,
.price-points li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.check-list li::before,
.price-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--clinic-deep);
}

.price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  padding: 1.2rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.price-card.featured {
  background: linear-gradient(165deg, rgba(247, 251, 248, 0.96), rgba(210, 226, 216, 0.92));
}

.price-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clinic-deep);
}

.price-amount {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.price-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.price-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.quote-modal[hidden] {
  display: none;
}

.quote-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 36, 34, 0.45);
}

.quote-dialog {
  position: relative;
  z-index: 1;
  width: min(28rem, 100%);
  padding: 1.35rem 1.3rem 1.4rem;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: panel-in 240ms ease both;
}

.quote-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.quote-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid rgba(28, 36, 34, 0.14);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
}

.quote-form textarea {
  resize: vertical;
}

.quote-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.quote-success {
  margin: 0;
  font-size: 0.85rem;
  color: var(--clinic-deep);
  font-weight: 600;
}

.view-demo #scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}

#scene.is-dragging {
  cursor: grabbing;
}

.atmosphere {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 72% 38%, transparent 0%, rgba(28, 36, 34, 0.18) 100%),
    linear-gradient(180deg, rgba(243, 235, 224, 0.12) 0%, transparent 42%, rgba(28, 36, 34, 0.22) 100%);
  z-index: 1;
}

.hero-copy {
  position: absolute;
  z-index: 3;
  left: clamp(1.25rem, 4vw, 3.5rem);
  top: clamp(0.75rem, 3vh, 2rem);
  max-width: min(26rem, 88vw);
  animation: rise-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.view-demo .brand {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
}

.brand {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-copy h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 18ch;
}

.lede {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.model-picker {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 22rem;
}

.model-picker-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.model-picker-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.model-option {
  appearance: none;
  border: 1px solid rgba(28, 36, 34, 0.12);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: rgba(247, 251, 248, 0.72);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.model-option:hover {
  background: rgba(247, 251, 248, 0.95);
  color: var(--ink);
}

.model-option.is-active {
  background: var(--clinic-deep);
  border-color: var(--clinic-deep);
  color: #f7fbf8;
}

.model-option:disabled {
  opacity: 0.55;
  cursor: wait;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--clinic-deep);
  color: #f7fbf8;
}

.btn.primary:hover {
  background: #335747;
}

.btn.ghost {
  background: rgba(247, 251, 248, 0.72);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn.ghost:hover {
  background: rgba(247, 251, 248, 0.92);
}

.hint {
  position: absolute;
  z-index: 3;
  right: clamp(1rem, 3vw, 2rem);
  bottom: 5.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(247, 251, 248, 0.78);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  color: var(--ink-soft);
  animation: fade-hint 4.5s ease 1.2s both;
}

.hotspots {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.hotspot-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f7fbf8;
  border: 2px solid var(--clinic-deep);
  box-shadow: 0 0 0 0 rgba(63, 107, 88, 0.45);
  animation: pulse 2.2s ease-out infinite;
}

.hotspot-label {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(247, 251, 248, 0.9);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0;
  translate: -6px 0;
  transition: opacity 180ms ease, translate 180ms ease;
  pointer-events: none;
}

.hotspot:hover .hotspot-label,
.hotspot:focus-visible .hotspot-label,
.hotspot.is-open .hotspot-label {
  opacity: 1;
  translate: 0 0;
}

.claim-panel {
  position: absolute;
  z-index: 5;
  left: clamp(1.25rem, 4vw, 3.5rem);
  bottom: clamp(4.5rem, 10vh, 6.5rem);
  width: min(22rem, calc(100vw - 2.5rem));
  padding: 1.1rem 1.2rem 1.15rem;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  animation: panel-in 280ms ease both;
}

.claim-panel[hidden] {
  display: none;
}

.claim-close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}

.claim-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clinic-deep);
  font-weight: 600;
}

.claim-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 500;
}

.chrome {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  font-size: 0.72rem;
  color: rgba(247, 251, 248, 0.78);
  background: linear-gradient(180deg, transparent, rgba(28, 36, 34, 0.45));
}

.chrome p {
  margin: 0;
}

.chrome .note {
  text-align: right;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-hint {
  0%,
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(63, 107, 88, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(63, 107, 88, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(63, 107, 88, 0);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .dash-grid,
  .price-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-nav {
    flex-wrap: wrap;
  }

  .nav-quote {
    margin-left: 0;
  }

  .panel-header {
    flex-direction: column;
  }

  .hero-copy {
    max-width: 92vw;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .lede {
    max-width: 40ch;
  }

  .hint {
    left: 1rem;
    right: auto;
    bottom: 4.6rem;
  }

  .chrome {
    flex-direction: column;
    gap: 0.2rem;
  }

  .chrome .note {
    text-align: left;
  }

  .hotspot-label {
    display: none;
  }
}
