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

:root {
  --gold: #B8955A;
  --gold-pale: #F0E8D8;
  --ink: #1C1C1E;
  --slate: #6B7280;
  --bg: #F8F6F1;
  --card: #FFFFFF;
  --rule: #EDEAE3;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  padding: 0 1rem 4rem;
}

.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 0 0;
}

/* --- Navbar --- */

.navbar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
}

.navbar a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--slate);
  text-decoration: none;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  transition: all 0.18s ease;
}

.navbar a:hover {
  color: var(--ink);
  background: var(--rule);
}

.navbar a.active {
  color: var(--gold);
  background: var(--gold-pale);
}

/* --- Header --- */

.header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.header h1 em {
  font-style: italic;
  color: var(--gold);
}

.header p {
  color: var(--slate);
  font-size: 15px;
  max-width: 440px;
  margin: 0 auto;
  font-weight: 300;
}

/* --- Tiers --- */

.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.tier {
  background: var(--card);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tier.featured {
  background: #FDFCF9;
}

.tier.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
}

.tier-badge-slot {
  height: 22px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
}

.tier-badge {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  padding: 3px 10px;
  border-radius: 20px;
}

.tier-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.tier-tagline {
  font-size: 13px;
  color: var(--slate);
  font-weight: 300;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.price-main {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.price-main span {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--slate);
}

.price-monthly {
  font-size: 12.5px;
  color: var(--slate);
  font-weight: 300;
  margin-bottom: 0.25rem;
}

.price-note {
  font-size: 11.5px;
  color: var(--slate);
  font-weight: 300;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

/* --- Features --- */

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

.features li {
  font-size: 13.5px;
  font-weight: 300;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

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

.features li::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 2px;
}

/* --- CTA --- */

.cta {
  margin-top: 1.75rem;
}

.btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}

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

.btn-gold:hover {
  background: #A8843A;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

/* --- Downpayment Notice --- */

.dp-notice {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1rem 2rem;
  margin-bottom: 3rem;
  font-size: 13px;
  color: var(--slate);
  font-weight: 300;
}

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

/* --- Add-ons --- */

.section-label {
  text-align: center;
  margin-bottom: 2rem;
}

.section-label h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.4rem;
}

.section-label p {
  font-size: 13.5px;
  color: var(--slate);
  font-weight: 300;
}

.addons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 3rem;
}

.addon {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
}

.addon-icon {
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.addon-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.addon-desc {
  font-size: 12.5px;
  color: var(--slate);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.addon-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold);
}

.addon-price small {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--slate);
}

/* --- Footer --- */

.footer-note {
  text-align: center;
  font-size: 13px;
  color: var(--slate);
  font-weight: 300;
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
}

.footer-note a {
  color: var(--gold);
  text-decoration: none;
}

.footer-note a:hover {
  text-decoration: underline;
}

/* --- Responsive --- */

@media (max-width: 640px) {
  body {
    padding: 0 0.75rem 3rem;
  }

  .page {
    padding: 1.5rem 0 0;
  }

  .tiers {
    grid-template-columns: 1fr;
  }

  .tier.featured::before {
    width: 100%;
    height: 3px;
    top: 0;
    left: 0;
  }

  .tier {
    padding: 1.75rem 1.5rem;
  }

  .addons {
    grid-template-columns: 1fr 1fr;
  }

  .dp-notice {
    padding: 1rem 1.25rem;
  }
}

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

/* --- Keyframes --- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Scroll-triggered base state --- */

.animate {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Reduced motion --- */

@media (prefers-reduced-motion: reduce) {
  .animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}