/* ==========================================================================
   TouringBase — promotional website design system
   Authored by Fable 5. Dark stage-lit aesthetic: near-black canvas,
   aurora gradient accents (violet → pink → amber), glass cards, big type.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a14;
  --bg-elev: #12121f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f2f8;
  --text-muted: #a0a0b8;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --amber: #f59e0b;
  --grad: linear-gradient(100deg, var(--violet), var(--pink) 55%, var(--amber));
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1140px;
  --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.25);
  --ease-pop: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; border-radius: var(--radius); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text-muted); }
ul { padding-left: 1.2em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 56px 0; }
.center { text-align: center; }
.lead { font-size: 1.2rem; max-width: 46em; }
.center .lead { margin-inline: auto; }
.small-print { font-size: 0.82rem; color: var(--text-muted); opacity: 0.75; }

/* ---------- Aurora background ---------- */
.bg-aurora {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  pointer-events: none;
}
.bg-aurora span {
  position: absolute; border-radius: 50%;
  filter: blur(110px); opacity: 0.32;
  animation: blob-drift 26s var(--ease-pop) infinite alternate;
}
.bg-aurora span:nth-child(1) {
  width: 520px; height: 520px; top: -160px; left: -120px;
  background: var(--violet);
}
.bg-aurora span:nth-child(2) {
  width: 460px; height: 460px; top: 20%; right: -160px;
  background: var(--pink); animation-delay: -8s; animation-duration: 32s;
}
.bg-aurora span:nth-child(3) {
  width: 420px; height: 420px; bottom: -180px; left: 30%;
  background: var(--amber); opacity: 0.18; animation-delay: -16s; animation-duration: 38s;
}
@keyframes blob-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, 40px) scale(1.15); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 20, 0.72);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; gap: 32px;
  height: 68px;
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.logo-accent {
  background: var(--grad); background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-shift 6s ease infinite;
}
.site-nav { display: flex; gap: 26px; margin-inline: auto; }
.site-nav a {
  font-size: 0.95rem; color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease-pop), box-shadow 0.25s, border-color 0.25s, background 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--grad); background-size: 200% 200%;
  color: #0b0714;
  animation: grad-shift 6s ease infinite;
  box-shadow: 0 4px 24px rgba(236, 72, 153, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 36px rgba(236, 72, 153, 0.5); }
.btn-ghost {
  border-color: var(--border-strong); color: var(--text);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--text-muted); background: var(--surface-strong); }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }

@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Hero ---------- */
.hero { padding: 110px 0 70px; position: relative; }
.hero .container {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-block; font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
  color: var(--pink); text-transform: uppercase;
  border: 1px solid rgba(236, 72, 153, 0.35); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 22px;
  background: rgba(236, 72, 153, 0.08);
}
.hero-title { margin-bottom: 0.4em; }
.gradient-text {
  background: var(--grad); background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-shift 6s ease infinite;
}
.hero-sub { font-size: 1.18rem; max-width: 34em; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 14px; }
.hero-note { font-size: 0.88rem; color: var(--text-muted); }
.hero-media { position: relative; }
.img-glow { position: relative; border-radius: var(--radius-lg); }
.img-glow::before {
  content: ""; position: absolute; inset: -3px; z-index: -1;
  background: var(--grad); background-size: 200% 200%;
  border-radius: inherit; filter: blur(26px); opacity: 0.55;
  animation: grad-shift 6s ease infinite;
}
.img-glow img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* Equalizer bars */
.equalizer { display: inline-flex; gap: 5px; align-items: flex-end; height: 34px; margin-top: 34px; }
.equalizer span {
  width: 6px; border-radius: 3px;
  background: var(--grad); background-size: 100% 300%;
  animation: eq-bounce 1.1s ease-in-out infinite alternate;
}
.equalizer span:nth-child(1) { animation-delay: 0s;    height: 40%; }
.equalizer span:nth-child(2) { animation-delay: -0.5s; height: 90%; }
.equalizer span:nth-child(3) { animation-delay: -0.2s; height: 60%; }
.equalizer span:nth-child(4) { animation-delay: -0.8s; height: 100%; }
.equalizer span:nth-child(5) { animation-delay: -0.35s; height: 55%; }
.equalizer span:nth-child(6) { animation-delay: -0.65s; height: 85%; }
.equalizer span:nth-child(7) { animation-delay: -0.15s; height: 45%; }
@keyframes eq-bounce {
  from { transform: scaleY(0.35); }
  to   { transform: scaleY(1); }
}

/* ---------- Marquee ticker ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--border);
  padding: 16px 0; background: rgba(255, 255, 255, 0.02);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-block;
  animation: marquee 36s linear infinite;
  font-family: var(--font-display); font-weight: 500;
  letter-spacing: 0.22em; font-size: 0.85rem; color: var(--text-muted);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Cards & grids ---------- */
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 44px;
}
.card, .feature-card, .audience-card, .plan-card, .math-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.35s var(--ease-pop), border-color 0.35s, box-shadow 0.35s, background 0.35s;
}
.card:hover, .feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
  box-shadow: var(--shadow-glow);
}
.feature-icon {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; font-size: 1.5rem;
  border-radius: 14px; margin-bottom: 16px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.feature-card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Split / audience sections ---------- */
.split-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  align-items: stretch; margin-top: 44px;
}
.split-section.split-media { align-items: center; gap: 56px; }
.split-section.split-media img { aspect-ratio: 3 / 2; object-fit: cover; }
.audience-card { display: flex; flex-direction: column; padding: 40px; }
.audience-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.audience-card ul { list-style: none; padding: 0; margin: 18px 0 26px; }
.audience-card li {
  padding: 8px 0 8px 30px; position: relative; color: var(--text);
  border-bottom: 1px dashed var(--border);
}
.audience-card li::before {
  content: "✦"; position: absolute; left: 4px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.audience-card .btn { align-self: flex-start; margin-top: auto; }

.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li { padding: 9px 0 9px 34px; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  width: 24px; height: 24px; display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700; border-radius: 50%;
  background: rgba(236, 72, 153, 0.16); color: var(--pink);
  border: 1px solid rgba(236, 72, 153, 0.35);
}

/* ---------- Founder note ---------- */
.founder-note {
  max-width: 820px; margin: 0 auto; padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
}
.founder-note::before {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: var(--grad); background-size: 200% 200%;
  border-radius: inherit; filter: blur(30px); opacity: 0.22;
  animation: grad-shift 6s ease infinite;
}
.founder-quote-mark {
  font-family: var(--font-display); font-weight: 700;
  font-size: 4.5rem; line-height: 1; flex-shrink: 0;
  background: var(--grad); background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-shift 6s ease infinite;
}
.founder-note blockquote {
  margin: 0 0 20px; font-family: var(--font-display); font-weight: 500;
  font-size: 1.2rem; line-height: 1.5; color: var(--text);
}
.founder-attribution { display: flex; align-items: center; gap: 14px; }
.founder-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; border: 2px solid var(--border-strong);
}
.founder-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text); }
.founder-title { font-size: 0.85rem; color: var(--text-muted); margin: 2px 0 0; }

@media (max-width: 720px) {
  .founder-note { grid-template-columns: 1fr; padding: 34px 26px; text-align: left; }
  .founder-quote-mark { font-size: 3.2rem; }
}

/* ---------- Stats band ---------- */
.stats-band {
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 60px 0;
}
.stats-band .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center;
}
.stat-number {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { margin-top: 10px; font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px;
  max-width: 880px; margin: 48px auto 0;
  align-items: stretch;
}
.plan-card { display: flex; flex-direction: column; padding: 38px; position: relative; }
.plan-featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow-glow);
}
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #0b0714;
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; padding: 5px 14px; border-radius: 999px;
  white-space: nowrap;
}
.plan-price {
  font-family: var(--font-display); font-weight: 700;
  font-size: 3.2rem; line-height: 1; margin: 14px 0 4px;
}
.plan-price small { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.plan-cap {
  display: inline-block; font-size: 0.85rem; font-weight: 600;
  color: var(--amber); background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.plan-card .check-list { margin-bottom: 28px; }
.plan-card .btn { margin-top: auto; }

.pricing-note {
  max-width: 760px; margin: 36px auto 0; padding: 22px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.08);
  text-align: center;
}
.pricing-note p { margin: 0; color: var(--text); }

/* Comparison table */
.table-wrap { overflow-x: auto; margin-top: 44px; border-radius: var(--radius); border: 1px solid var(--border); }
.compare-table {
  width: 100%; border-collapse: collapse; min-width: 620px;
  background: var(--surface); font-size: 0.95rem;
}
.compare-table th, .compare-table td {
  padding: 14px 20px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  font-family: var(--font-display); font-size: 1rem;
  background: rgba(255, 255, 255, 0.04);
}
.compare-table thead th:nth-child(3) {
  background: linear-gradient(100deg, rgba(139,92,246,0.18), rgba(236,72,153,0.18));
}
.compare-table td:nth-child(2), .compare-table td:nth-child(3),
.compare-table th:nth-child(2), .compare-table th:nth-child(3) { text-align: center; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr { transition: background 0.2s; }
.compare-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.tick { color: var(--pink); font-weight: 700; }
.dash { color: var(--text-muted); opacity: 0.5; }

/* Cost comparison bars */
.math-card { padding: 40px; margin-top: 44px; }
.cost-bar-row { margin: 22px 0; }
.cost-bar-label { font-size: 0.9rem; margin-bottom: 8px; color: var(--text); }
.cost-bar {
  height: 30px; border-radius: 8px; position: relative; overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.cost-bar-fill {
  position: absolute; inset: 0 auto 0 0; border-radius: 8px;
  width: 0; transition: width 1.4s var(--ease-pop);
}
.is-visible .cost-bar-fill { width: var(--bar-width, 100%); }
.cost-bar-fill.bar-bad { background: rgba(160, 160, 184, 0.4); }
.cost-bar-fill.bar-good { background: var(--grad); }

/* ---------- FAQ ---------- */
.faq-group { max-width: 780px; margin: 0 auto 48px; }
.faq-group h2 { font-size: 1.4rem; margin: 40px 0 18px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); margin-bottom: 12px;
  transition: border-color 0.25s, background 0.25s;
}
.faq-item[open] { border-color: rgba(139, 92, 246, 0.45); background: var(--surface-strong); }
.faq-item summary {
  cursor: pointer; padding: 18px 52px 18px 22px; list-style: none;
  font-family: var(--font-display); font-weight: 600; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  translate: 0 -50%; font-size: 1.4rem; color: var(--pink);
  transition: rotate 0.3s var(--ease-pop);
}
.faq-item[open] summary::after { rotate: 45deg; }
.faq-item p { padding: 0 22px 18px; margin: 0; }

/* ---------- Forms (contact) ---------- */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block; font-size: 0.85rem; font-weight: 600;
  font-family: var(--font-display); margin-bottom: 7px;
}
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  color: var(--text); font: inherit; font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}
.form-field textarea { min-height: 130px; resize: vertical; }

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center; padding: 110px 24px;
  position: relative; overflow: hidden;
}
.cta-final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 70% at 50% 100%,
    rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.12) 50%, transparent 80%);
}
.cta-final .btn { margin: 8px 6px 0; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 90px 0 30px; text-align: center; }
.page-hero .lead { margin-inline: auto; }

/* ---------- Legal ---------- */
.legal-body { max-width: 720px; margin: 0 auto; }
.legal-body h2 { font-size: 1.3rem; margin-top: 40px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 64px 0 32px; margin-top: 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-grid h4 {
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.2s; }
.footer-grid a:hover { color: var(--text); }
.footer-tagline { font-size: 0.95rem; max-width: 26em; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-muted); text-align: center;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s var(--ease-pop), transform 0.7s var(--ease-pop);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .is-visible .cost-bar-fill { width: var(--bar-width, 100%); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats-band .container { grid-template-columns: 1fr 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .site-nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10, 10, 20, 0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
  }
  .site-nav a { padding: 12px 0; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-header.nav-open .site-nav { display: flex; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
    margin-left: auto;
  }
  .nav-toggle span {
    width: 22px; height: 2px; background: var(--text); border-radius: 2px;
    transition: transform 0.3s var(--ease-pop), opacity 0.3s;
  }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header .container { gap: 16px; }
  .nav-actions { margin-left: 0; }
  .nav-actions .btn-ghost { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-band .container { grid-template-columns: 1fr 1fr; gap: 40px 16px; }
}
