/* ==========================================================================
   Arc Weaver Tavern — SaaS Monetization Landing Page & Web Funnel Styles
   ========================================================================== */

:root {
  --bg-dark: #070a12;
  --bg-subtle: #0b1120;
  --surface: #0f172a;
  --surface-card: #131d34;
  --surface-card-hover: #182440;
  --surface-border: #1e293b;
  --surface-border-bright: #334155;

  --gold-50: #fefce8;
  --gold-200: #fef08a;
  --gold-300: #fde047;
  --gold-400: #facc15;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309;
  --gold-border: rgba(245, 158, 11, 0.35);
  --gold-glow: rgba(245, 158, 11, 0.2);

  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-ruby: #ef4444;
  --accent-purple: #a855f7;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --font-serif: 'Cinzel', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.15);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(245, 158, 11, 0.12), transparent 70%),
    radial-gradient(circle at 10% 25%, rgba(56, 189, 248, 0.04), transparent 45%),
    radial-gradient(circle at 90% 70%, rgba(239, 68, 68, 0.04), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(168, 85, 247, 0.04), transparent 50%);
  background-attachment: fixed;
}

/* ==========================================================================
   Typography & Common Elements
   ========================================================================== */

h1, h2, h3, h4, .brand-title {
  font-family: var(--font-serif);
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-200) 40%, var(--gold-500) 80%, var(--gold-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 0%, #bae6fd 40%, var(--accent-cyan) 80%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-300);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #1a1001;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
  background: rgba(19, 29, 52, 0.8);
  color: var(--text-main);
  border-color: var(--surface-border-bright);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--surface-card-hover);
  border-color: var(--gold-border);
  color: var(--gold-200);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(7, 10, 18, 0.82);
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.nav-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
  background: #000;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.nav-brand-sub {
  font-size: 0.7rem;
  color: var(--gold-400);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--gold-300);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.hero {
  padding: 80px 0 60px;
  position: relative;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-300);
  margin-bottom: 24px;
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2); }
  100% { box-shadow: 0 0 20px 4px rgba(245, 158, 11, 0.25); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero-guarantee span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Interactive Voice Referee Simulator (The Hero Demo Hook)
   ========================================================================== */

.demo-showcase {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--surface-border-bright);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), var(--shadow-glow);
  overflow: hidden;
  position: relative;
}

.demo-header {
  background: rgba(15, 23, 42, 0.95);
  padding: 16px 24px;
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.pulse-indicator {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.demo-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

@media (max-width: 860px) {
  .demo-body {
    grid-template-columns: 1fr;
  }
}

.demo-controls-panel {
  padding: 28px;
  background: rgba(11, 17, 32, 0.6);
  border-right: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.demo-controls-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-300);
  letter-spacing: 1px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.voice-chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.voice-chip-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-align: left;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.voice-chip-btn:hover {
  border-color: var(--gold-border);
  background: var(--surface-card-hover);
  transform: translateX(4px);
}

.voice-chip-btn.active {
  border-color: var(--gold-400);
  background: rgba(245, 158, 11, 0.12);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.voice-chip-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.voice-chip-text {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--gold-200);
}

.voice-chip-sub {
  font-size: 0.725rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.custom-voice-input-box {
  display: flex;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 6px;
}

.custom-voice-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 8px 12px;
  font-size: 0.85rem;
  outline: none;
}

.custom-voice-input-box input::placeholder {
  color: var(--text-dim);
}

/* Demo HUD Panel */
.demo-hud-panel {
  padding: 28px;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hud-roster-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.hud-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hud-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  position: relative;
  transition: var(--transition);
}

.hud-card.active-turn {
  border-color: var(--gold-border);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
}

.hud-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.hud-name {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-role-pill {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
}

.role-pc {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.role-hostile {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-ruby);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.hud-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.hud-hp-bar {
  width: 100%;
  height: 8px;
  background: #1e293b;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
}

.hud-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

.hud-hp-fill.danger {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.hud-conditions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.condition-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: fadeIn 0.3s ease;
}

.demo-console {
  background: #060911;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  min-height: 84px;
  color: var(--gold-300);
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}

.console-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--gold-400);
  vertical-align: middle;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   The Problem vs The Solution Grid
   ========================================================================== */

.problem-solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .problem-solution-grid {
    grid-template-columns: 1fr;
  }
}

.pain-box {
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.pain-title {
  color: var(--accent-ruby);
  font-size: 1.35rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gain-box {
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.05);
}

.gain-title {
  color: var(--accent-emerald);
  font-size: 1.35rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.comparison-list .icon-bad {
  color: var(--accent-ruby);
  font-weight: 800;
  font-size: 1.1rem;
}

.comparison-list .icon-good {
  color: var(--accent-emerald);
  font-weight: 800;
  font-size: 1.1rem;
}

/* ==========================================================================
   Feature Cards Grid
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
  color: var(--gold-300);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Table Time Saved ROI Calculator
   ========================================================================== */

.calculator-wrapper {
  background: var(--surface-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .calculator-wrapper {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 32px;
  }
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-control {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.calc-val-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold-300);
  background: rgba(245, 158, 11, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-border);
}

.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--surface-border-bright);
  outline: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-400);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
  border: 2px solid #fff;
  transition: transform 0.15s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-result-box {
  background: rgba(11, 17, 32, 0.85);
  border: 1px solid var(--surface-border-bright);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.calc-result-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.08), transparent 70%);
  pointer-events: none;
}

.calc-big-metric {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold-300);
  line-height: 1;
  margin-bottom: 8px;
}

.calc-sub-metric {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.calc-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  border-top: 1px solid var(--surface-border);
  padding-top: 20px;
}

.calc-stat-item h4 {
  font-size: 1.25rem;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.calc-stat-item span {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Pricing Matrix & Monetization Section
   ========================================================================== */

.pricing-switch-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.pricing-toggle-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
}

.pricing-toggle-label.active {
  color: var(--text-main);
}

.switch-pill {
  position: relative;
  width: 58px;
  height: 30px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border-bright);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.switch-pill-handle {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
  transition: var(--transition);
}

.switch-pill.annual .switch-pill-handle {
  transform: translateX(26px);
}

.savings-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

.pricing-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--surface-border-bright);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, var(--surface-card) 40%);
  border-color: var(--gold-500);
  box-shadow: 0 20px 40px -15px rgba(245, 158, 11, 0.25), 0 0 20px rgba(245, 158, 11, 0.15);
  transform: scale(1.04);
}

.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-6px);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #1a1001;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.pricing-tier-name {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.pricing-tier-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  min-height: 42px;
  margin-bottom: 24px;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
}

.pricing-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pricing-amount {
  font-family: var(--font-serif);
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1;
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.4;
}

.pricing-features-list .check {
  color: var(--gold-400);
  font-weight: 800;
  font-size: 1rem;
}

.pricing-features-list .check-faint {
  color: var(--text-dim);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
}

.stars {
  color: var(--gold-400);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.quote-text {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 20px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid var(--gold-border);
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.775rem;
  color: var(--text-dim);
}

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

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

details.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: var(--transition);
}

details.faq-item[open] {
  border-color: var(--gold-border);
  background: var(--surface-card-hover);
}

summary.faq-question {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

summary.faq-question::-webkit-details-marker {
  display: none;
}

summary.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold-400);
  font-weight: 400;
  transition: transform 0.2s ease;
}

details.faq-item[open] summary.faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* ==========================================================================
   Final Conversion Banner CTA
   ========================================================================== */

.final-cta {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  text-align: center;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.final-cta h2 {
  font-size: 2.75rem;
  margin-bottom: 16px;
}

.final-cta p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 36px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--surface-border);
  padding: 56px 0 36px;
  background: #04060c;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

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

.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--gold-300);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
}

/* ==========================================================================
   Checkout / Trial Modal Dialog (Native <dialog>)
   ========================================================================== */

dialog.checkout-dialog {
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text-main);
  padding: 0;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(245, 158, 11, 0.2);
  margin: auto;
}

dialog.checkout-dialog::backdrop {
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(8px);
}

.modal-header {
  padding: 24px 28px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.35rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input, .form-select {
  background: var(--surface-card);
  border: 1px solid var(--surface-border-bright);
  color: #fff;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.promo-row {
  display: flex;
  gap: 8px;
}

.checkout-summary {
  background: rgba(11, 17, 32, 0.7);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-total {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-300);
}

.modal-footer {
  padding: 20px 28px 28px;
}

/* Toast Message */
.funnel-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface-card);
  border: 1px solid var(--gold-border);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px rgba(245, 158, 11, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideUp 0.3s ease;
}

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

/* ==========================================================================
   Community Support & Tip Jar Callout (Decoupled & Minimal)
   ========================================================================== */
.support-tip-jar-callout.hidden,
.support-tip-jar-callout[hidden] {
  display: none !important;
}

.support-tip-jar-callout {
  margin: 20px auto 0 auto;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
}

.support-tip-jar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.support-tip-jar-text {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.support-tip-jar-tag {
  display: inline-block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-300);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-full);
  padding: 2px 8px;
  margin-right: 4px;
}

.support-badge-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.support-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
}

.support-badge-link:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--gold-400);
  color: var(--gold-300);
  transform: translateY(-1px);
}

/* Early Access & Waitlist Enhancements */
.planned-tier-pill {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-300);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-full);
}

.waitlist-privacy-note {
  margin: 12px 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-dim);
  text-align: center;
}

.waitlist-privacy-note a {
  color: var(--gold-400);
  text-decoration: underline;
}

.waitlist-status-msg {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.45;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

.waitlist-status-msg.error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fecaca;
}


