/* ==========================================================================
   Rent Your Own Virtual Museum — Pricing
   Design tokens
   ========================================================================== */

:root {
  --bg: #0a0908;
  --bg-raised: #100e0b;
  --panel: rgba(238, 227, 197, 0.03);
  --panel-featured: rgba(238, 227, 197, 0.045);
  --border: rgba(201, 168, 90, 0.16);
  --border-strong: rgba(201, 168, 90, 0.4);

  --gold: #c9a24b;
  --gold-bright: #e9d38f;
  --gold-dim: rgba(201, 162, 75, 0.35);

  --ink: #ece4d3;
  --ink-soft: #cfc6b3;
  --ink-muted: #8c8272;

  --font-display: "Cinzel", serif;
  --font-body: "Inter", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   Ambient background
   ========================================================================== */

.backgroundGlow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201, 162, 75, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 30% at 85% 60%, rgba(201, 162, 75, 0.04), transparent 60%);
}

.grainOverlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

section {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Fade-in on scroll
   ========================================================================== */

.fadeInSection {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.fadeInSection.isVisible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 120px 24px 70px;
  text-align: center;
}

.heroInner {
  max-width: 720px;
  margin: 0 auto;
}

.heroEyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.15;
}

.heroText {
  margin-top: 24px;
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Billing toggle */

.billingToggle {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.billingLabel {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.4s var(--ease);
  cursor: default;
}

.billingLabel.active {
  color: var(--gold-bright);
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: rgba(238, 227, 197, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: background 0.4s var(--ease);
}

.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 4px;
  top: 4px;
  background: var(--gold-bright);
  border-radius: 50%;
  transition: transform 0.4s var(--ease);
  box-shadow: 0 0 10px rgba(233, 211, 143, 0.5);
}

.switch input:checked + .slider {
  background: rgba(201, 162, 75, 0.22);
}

.switch input:checked + .slider::before {
  transform: translateX(24px);
}

.saveText {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.saveText strong {
  color: var(--gold);
  font-weight: 500;
}

/* ==========================================================================
   Journey — floor-plan timeline (signature element)
   ========================================================================== */

.journey {
  padding: 40px 24px 100px;
}

.journeyInner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.journeyEyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 56px;
}

.journeyLine {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}

.journeyLine::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim) 15%, var(--gold-dim) 85%, transparent);
}

.journeyRoom {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
}

.roomMarker {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold-bright);
  letter-spacing: 0;
}

.roomLabel {
  margin-top: 24px;
}

.roomLabel h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.roomLabel p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  max-width: 190px;
}

/* ==========================================================================
   Pricing cards
   ========================================================================== */

.pricingCards {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.planCard {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 44px 34px 38px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.planCard:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.planCard.featured {
  background: var(--panel-featured);
  border: 1px solid var(--border-strong);
  transform: translateY(-14px);
  box-shadow: 0 30px 60px -30px rgba(201, 162, 75, 0.25);
  padding-top: 52px;
}

.planCard.featured:hover {
  transform: translateY(-20px);
}

.planCard.comingSoon {
  opacity: 0.72;
}

.planCard.comingSoon:hover {
  opacity: 0.9;
  transform: none;
}

.popularBadge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  padding: 7px 18px;
  border-radius: 999px;
  white-space: nowrap;
}

.planHeader {
  text-align: center;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.planHeader h2 {
  font-size: 22px;
  font-weight: 500;
}

.price {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--gold-bright);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
}

.currency {
  font-size: 22px;
  color: var(--gold);
}

.price.isAnimating span:not(.currency) {
  display: inline-block;
}

.priceSub {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.priceNote {
  margin-top: 8px;
  min-height: 18px;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.priceNote.isShown {
  opacity: 1;
  transform: translateY(0);
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.features li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(238, 227, 197, 0.06);
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 300;
}

.features li:last-child {
  border-bottom: none;
}

.features li strong {
  color: var(--ink);
  font-weight: 500;
}

.planButton {
  margin-top: 32px;
  display: block;
  text-align: center;
  padding: 15px 20px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  color: var(--gold-bright);
  background: transparent;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.planButton:hover {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 8px 24px -8px rgba(201, 162, 75, 0.5);
}

.featuredButton {
  background: var(--gold);
  color: var(--bg);
}

.featuredButton:hover {
  background: var(--gold-bright);
}

.planButton.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.coming {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

/* ==========================================================================
   Why a virtual museum
   ========================================================================== */

.whyMuseum {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
}

.sectionInner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.whyMuseum h2 {
  font-size: 28px;
}

.whyMuseum p {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 300;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.faq > h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
}

.faqItem {
  border-bottom: 1px solid var(--border);
}

.faqQuestion {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  padding: 22px 30px 22px 0;
  cursor: pointer;
  position: relative;
}

.faqQuestion::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 18px;
  font-weight: 300;
  transition: transform 0.4s var(--ease);
}

.faqItem.isOpen .faqQuestion::after {
  transform: translateY(-50%) rotate(45deg);
}

.faqAnswer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}

.faqAnswer p {
  padding: 0 30px 22px 0;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-muted);
}

/* ==========================================================================
   Bottom CTA
   ========================================================================== */

.bottomCTA {
  text-align: center;
  padding: 90px 24px 120px;
}

.bottomCTA h2 {
  font-size: 32px;
}

.bottomCTA p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.bigButton {
  margin-top: 34px;
  display: inline-block;
  padding: 17px 42px;
  border: 1px solid var(--border-strong);
  color: var(--gold-bright);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.bigButton:hover {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 10px 30px -10px rgba(201, 162, 75, 0.5);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .pricingCards {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .planCard.featured {
    transform: none;
    order: -1;
  }

  .planCard.featured:hover {
    transform: translateY(-4px);
  }

  .journeyLine {
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
    padding-left: 22px;
  }

  .journeyLine::before {
    top: 0;
    bottom: 0;
    left: 21px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--gold-dim) 10%, var(--gold-dim) 90%, transparent);
  }

  .journeyRoom {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 0;
  }

  .roomLabel {
    margin-top: 0;
    margin-left: 22px;
  }

  .roomLabel p {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 90px 20px 50px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .heroText {
    font-size: 15px;
  }

  .billingToggle {
    gap: 12px;
  }

  .planCard {
    padding: 36px 24px 30px;
  }

  .price {
    font-size: 36px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Keyboard focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible + .slider {
  outline: 1px solid var(--gold-bright);
  outline-offset: 3px;
}
