@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&display=swap");


/**
 * my3droom.com — Pricing Page Styles
 * BEM blocks: .pricing, .pricing-card, .pricing-toggle, .pricing-table
 *
 * Design system: linen #F5F0E8 surface, aged brass #8B6914 accents,
 * Cormorant Garamond display, sharp edges, no border-radius beyond --radius-sm,
 * no gradients, no shadows.
 *
 * All values reference variables.css tokens. No hardcoded colors.
 * Import order: variables first, then pricing-specific rules.
 *
 * Body scrollable resets and footer styles are inherited from hero.css,
 * which is also included in pricing.html. Do not duplicate them here.
 */
/* ============================================
   my3droom.com — Design Token System
   "Come Visit. Stay a While."
   ============================================ */
:root {
  /* SURFACES */
  --color-surface-primary: #f5f0e8; /* warm linen — hero scroll background */
  --color-surface-secondary: #ede6d6; /* card backgrounds, section alternates */
  --color-surface-tertiary: #e0d5c0; /* subtle borders, dividers */

  /* TEXT */
  --color-text-primary: #2c2c2c; /* warm charcoal — never pure black */
  --color-text-secondary: #6b6560; /* warm gray — captions, metadata */
  --color-text-tertiary: #9b9390; /* very muted warm gray — FX lines, fine print */
  --color-text-inverse: #f5f0e8; /* linen — text on dark backgrounds */

  /* ACCENT — BRASS */
  --color-accent-brass: #8b6914; /* aged brass — borders, icon strokes, dividers */
  --color-accent-brass-light: #b8922a; /* hover states, active states */
  --color-accent-brass-subtle: #d4b896; /* very light — tag backgrounds, subtle fills */

  /* ACCENT — SAGE (use very sparingly — max one use per screen) */
  --color-accent-sage: #7a8c7e;

  /* GALLERY INTERIOR — dark world, unchanged */
  --color-gallery-bg: #0a0a0a;
  --color-gallery-surface: #1a1a1a;
  --color-gallery-text: #e8e0d0;

  /* SEMANTIC */
  --color-success: #5a7a5a;
  --color-error: #8b2020;

  /* TYPOGRAPHY */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Courier New", monospace;

  /* TYPE SCALE */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-hero: 3.5rem;
  --text-hero-mobile: 2rem;

  /* SPACING */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* TOPBAR */
  --topbar-height: 56px;
  --topbar-height-mobile: 48px;

  /* BORDERS & RADIUS */
  --radius-sm: 1px;
  --radius-md: 2px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --border-fine: 1px solid var(--color-accent-brass);

  /* SHADOWS */
  --shadow-subtle: 0 1px 3px rgba(44, 44, 44, 0.08);
  --shadow-card: 0 4px 12px rgba(44, 44, 44, 0.12);
  --shadow-float: 0 8px 24px rgba(44, 44, 44, 0.16);

  /* TRANSITIONS */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* HERO SCROLL */
  --hero-fade-height: 120px;
}
/* =============================================================================
   Page Layout
   Full-width linen surface. Max-width centered content.
   Top padding accounts for the fixed topbar + generous breathing room.
   ============================================================================= */
.pricing {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--topbar-height) + var(--space-4xl)) var(--space-xl) var(--space-4xl);
}
/* =============================================================================
   Page Header
   Display font headline matching hero design language.
   ============================================================================= */
.pricing__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.pricing__headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-sm);
}
.pricing__subheadline {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin: 0;
}
/* Meta row — centered inside header, below subheadline */
.pricing__header-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}
/* Entire meta row hidden when USD is active — currency selector has no value for USD-only visitors */
.pricing--usd .pricing__header-meta {
  display: none;
}
.pricing__header-usd-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  letter-spacing: 0.03em;
}
.pricing__currency-select {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-surface-tertiary);
  padding: 2px var(--space-sm);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}
.pricing__currency-select:hover,
.pricing__currency-select:focus {
  border-color: var(--color-accent-brass-subtle);
}
@media (max-width: 600px) {
  .pricing__headline {
    font-size: var(--text-3xl);
  }
}
/* =============================================================================
   Tier Cards Grid
   Four columns on desktop, two on tablet, one on mobile.
   Pro card (--popular) gets brass border treatment.
   ============================================================================= */
.pricing__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-4xl);
  align-items: stretch;
}
@media (max-width: 1000px) {
  .pricing__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .pricing__cards {
    grid-template-columns: 1fr;
  }
}
/* =============================================================================
   Pricing Card
   ============================================================================= */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-surface-tertiary);
  padding: var(--space-xl);
  gap: var(--space-md);
  cursor: pointer;
}
.pricing-card--popular {
  border-color: var(--color-accent-brass);
  background: var(--color-surface-primary);
  /* Visually lifted by 1px border weight against non-popular cards */
}
/* Selected state — applied on card click, cosmetic only */
.pricing-card--selected {
  border: 2px solid var(--color-accent-brass);
  background: var(--color-surface-primary);
}
/* Slot wraps each card + the floating badge above it.
   All slots get the same padding-top so cards are equal height
   whether or not a badge is present. */
.pricing-card__slot {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 32px;
}
.pricing-card__slot .pricing-card {
  flex: 1;
}
.pricing-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-brass);
  border: 1px solid var(--color-accent-brass-subtle);
  padding: 2px var(--space-sm);
  white-space: nowrap;
  background: var(--color-surface-background);
}
/* Current plan badge — stronger visual weight than mostPopular: filled brass background */
.pricing-card__badge--current {
  color: var(--color-text-inverse);
  background: var(--color-accent-brass);
  border-color: var(--color-accent-brass);
}
.pricing-card__header {
  display: block;
}
.pricing-card__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  margin: 0;
}
.pricing-card__desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}
/* Price block — amount + period label on one line, local equiv below */
.pricing-card__price-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  border-top: var(--border-fine);
  padding-top: var(--space-md);
}
/* =============================================================================
   Per-Card Billing Toggle — Acrylic sliding control
   A visible-border container with an absolutely-positioned highlight div
   that slides between annual (top) and monthly (bottom) via JS inline styles.
   Both options remain visible at all times; inactive option is dimmed.
   ============================================================================= */
/* Billing section — wraps the toggle; provides top separator matching free plan's .pricing-card__price-block */
.pricing-card__billing-section {
  border-top: var(--border-fine);
  padding-top: var(--space-md);
}
.pricing-card__billing-toggle {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-tertiary); /* darker track — makes active state pop */
  border: 2px solid var(--color-accent-brass-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}
/* Sliding highlight — lighter pill on darker track = iOS segmented control look */
.pricing-card__billing-slider {
  position: absolute;
  left: 0;
  width: 100%;
  background: var(--color-surface-primary); /* lighter than track = clearly active */
  border-left: 2px solid var(--color-accent-brass);
  transition:
    top 0.2s ease,
    height 0.2s ease;
  z-index: 0;
  pointer-events: none;
}
.pricing-card__billing-option {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center; /* center price content horizontally */
  text-align: center;
  gap: var(--space-xs);
  padding: 10px 12px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.pricing-card__billing-option + .pricing-card__billing-option {
  border-top: 1px solid rgba(0, 0, 0, 0.08); /* subtle separator within track */
}
.pricing-card__billing-option--active {
  opacity: 1;
}
.pricing-card__billing-option--inactive {
  opacity: 0.75;
}
.pricing-card__billing-option--inactive:hover {
  opacity: 0.7;
}
/* Label row: "ANNUAL" text + "2 months free" badge side by side */
.pricing-card__billing-label-row {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.pricing-card__billing-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
/* "2 months free" green badge */
.pricing-card__billing-badge {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-success);
  border: 1px solid var(--color-success);
  padding: 1px var(--space-xs);
  white-space: nowrap;
  line-height: 1.4;
}
/* Annual total line: "billed as USD 90/yr" */
.pricing-card__price-annual-total {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  letter-spacing: 0.02em;
}
/* FX equivalent line: "(≈ EUR 6/mo)" — hidden by default, shown via .pricing--fx-visible */
.pricing-card__price-fx {
  display: none;
  font-family: var(--font-body);
  font-size: 0.6875rem; /* ~11px */
  font-style: italic;
  color: var(--color-text-tertiary);
  line-height: 1.3;
}
.pricing--fx-visible .pricing-card__price-fx {
  display: block;
}
/* Explicit USD mode — guarantee FX lines and disclaimer are hidden */
.pricing--usd .pricing-card__price-fx {
  display: none;
}
/* Price row — currency code, number, and period label — all baseline-aligned */
.pricing-card__price-main {
  display: flex;
  align-items: flex-end;
  gap: 1px;
}
/* USD footnote: "(Actual value in USD: 90/yr)" — small italic, shown for non-USD currencies */
.pricing-card__price-usd-footnote {
  font-family: var(--font-body);
  font-size: 0.6875rem; /* ~11px */
  font-style: italic;
  color: var(--color-text-tertiary);
  line-height: 1.3;
}
/* Currency code prefix — small, aligns at baseline left of hero number */
.price-currency {
  font-family: var(--font-body);
  font-size: 0.6875rem; /* ~11px */
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
  align-self: flex-end;
  padding-bottom: 3px; /* matches .pricing-card__price-period visual balance */
  line-height: 1;
}
/* Approximate symbol (≈) — small, baseline-aligned, muted; precedes FX price amounts */
.price-approx {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-tertiary);
  align-self: flex-end;
  padding-bottom: 4px;
  line-height: 1;
}
/* Numeric amount — hero serif, large, dominant */
.price-amount {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1;
}
/* Free plan "Free" label — same visual weight as paid amounts */
.pricing-card__price-amount {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1;
}
/* /mo and /yr — unit label, baseline-aligned with hero number */
.pricing-card__price-period {
  font-family: var(--font-body);
  font-size: 0.6875rem; /* ~11px */
  color: var(--color-text-tertiary);
  line-height: 1;
  align-self: flex-end;
  padding-bottom: 3px; /* slight lift from baseline for visual balance */
}
.pricing-card__galleries {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent-brass);
  letter-spacing: 0.04em;
}
/* Features list — breathing room between items */
.pricing-card__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm); /* 0.5rem — doubled from xs for readability */
  flex: 1; /* push CTA to bottom */
}
.pricing-card__perk {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding-left: var(--space-md);
  position: relative;
}
.pricing-card__perk::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--color-accent-brass-subtle);
}
/* CTA button — placeholder (href="#", Stripe wired in future sprint) */
.pricing-card__cta {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-surface-primary);
  background: var(--color-text-primary);
  border: 1px solid var(--color-text-primary);
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-md);
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}
.pricing-card--popular .pricing-card__cta {
  background: var(--color-accent-brass);
  border-color: var(--color-accent-brass);
  color: var(--color-text-inverse);
}
.pricing-card__cta:hover {
  background: var(--color-accent-brass-light);
  border-color: var(--color-accent-brass-light);
  color: var(--color-text-inverse);
}
/* Disabled CTA — current plan state: muted appearance, no interaction */
.pricing-card__cta--current {
  background: var(--color-surface-tertiary);
  border-color: var(--color-surface-tertiary);
  color: var(--color-text-tertiary);
  cursor: default;
  pointer-events: none;
}
.pricing-card__cta--current:hover {
  background: var(--color-surface-tertiary);
  border-color: var(--color-surface-tertiary);
  color: var(--color-text-tertiary);
}
/* =============================================================================
   Feature Comparison Table
   ============================================================================= */
.pricing__table-section {
  margin-top: var(--space-4xl);
  border-top: var(--border-fine);
  padding-top: var(--space-3xl);
}
.pricing__table-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-xl);
  text-align: center;
}
.pricing__table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: var(--text-sm);
}
.pricing-table th,
.pricing-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  border-bottom: 1px solid var(--color-surface-tertiary);
  vertical-align: middle;
}
.pricing-table thead th {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  padding-bottom: var(--space-md);
}
.pricing-table__feature-col {
  text-align: left;
  width: 32%;
}
.pricing-table__tier-col--popular {
  color: var(--color-accent-brass);
  border-left: 1px solid var(--color-accent-brass-subtle);
  border-right: 1px solid var(--color-accent-brass-subtle);
  background: var(--color-surface-primary);
}
/* "Most Popular" label row above the tier name row */
.pricing-table__popular-row th {
  padding-bottom: 0;
  border-bottom: none;
}
.pricing-table__popular-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-brass);
  border-top: 2px solid var(--color-accent-brass);
  padding-top: var(--space-xs);
}
/* Pro column body cells — subtle background stripe */
.pricing-table__value--popular {
  background: var(--color-surface-primary);
  border-left: 1px solid var(--color-accent-brass-subtle);
  border-right: 1px solid var(--color-accent-brass-subtle);
}
.pricing-table__feature-label {
  text-align: left;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}
.pricing-table__value {
  color: var(--color-text-primary);
}
/* Checkmark — included feature */
.pricing-table__check {
  color: var(--color-accent-brass);
  font-size: var(--text-lg);
  font-weight: 600;
}
/* Checkmark — coming soon (slightly muted brass) */
.pricing-table__check--soon {
  color: var(--color-accent-brass-subtle);
}
.pricing-table__check--soon sup {
  font-size: var(--text-xs);
  vertical-align: super;
  line-height: 0;
}
/* Text value (e.g. "Default only") */
.pricing-table__text {
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
}
/* Not included — em dash */
.pricing-table__none {
  color: var(--color-surface-tertiary);
}
@media (max-width: 600px) {
  .pricing-table thead th,
  .pricing-table td {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
  }

  .pricing__table-heading {
    font-size: var(--text-xl);
  }
}
/* =============================================================================
   FX Disclaimer
   Hidden when USD selected; shown when any other currency is active.
   ============================================================================= */
.pricing__fx-disclaimer {
  font-family: var(--font-body);
  font-size: 0.6875rem; /* ~11px */
  color: var(--color-text-tertiary);
  text-align: center;
  margin: var(--space-md) 0 0;
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.pricing__fx-disclaimer--hidden {
  display: none;
}
/* =============================================================================
   Footnote
   ============================================================================= */
.pricing__footnote {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  text-align: center;
  margin: var(--space-2xl) 0 0;
  letter-spacing: 0.02em;
}
