/* ============================================================
   DashAdvisr — Signup / Pricing Page
   Edition picker, pricing cards, comparison table, FAQ
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink:          #0d1117;
  --ink-soft:     #444c56;
  --ink-muted:    #8b95a1;
  --bg:           #F0F4F8;
  --surface:      #ffffff;
  --accent:       #2563EB;
  --accent-deep:  #1D4ED8;
  --accent-soft:  #DBEAFE;
  --accent-glow:  rgba(37,99,235,0.18);
  --green:        #059669;
  --green-soft:   #d1fae5;
  --amber:        #d97706;
  --red:          #dc2626;
  --border:       rgba(37,99,235,0.08);
  --radius:       16px;
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: var(--theme-nav-bg, rgba(248,250,252,0.90));
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--theme-nav-border, rgba(37,99,235,0.10));
}
.logo {
  font-family: 'Instrument Serif', serif; font-size: 22px;
  color: var(--ink); letter-spacing: -0.3px; text-decoration: none;
}
.logo span { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.btn-login {
  color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 9px 18px; border-radius: 100px; border: 1px solid var(--border);
  transition: all 0.2s;
}
.btn-login:hover { color: var(--ink); border-color: rgba(0,0,0,0.2); }

/* ── HERO ─────────────────────────────────────────────────── */
.su-hero {
  text-align: center;
  padding: 140px 24px 40px;
  position: relative;
}
.su-hero::after {
  content: ''; position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse at 30% 40%, rgba(37,99,235,0.10) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 60%, rgba(37,99,235,0.05) 0%, transparent 60%);
  pointer-events: none; z-index: -1;
}
.su-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); border: 1px solid rgba(37,99,235,0.25);
  border-radius: 100px; padding: 6px 16px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 28px;
  animation: fadeUp 0.5s ease both;
}
.su-hero-badge .dot {
  width: 6px; height: 6px; background: var(--green);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.8); } }

.su-hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(42px, 5vw, 64px); line-height: 1.1; letter-spacing: -2px;
  color: var(--ink); margin-bottom: 20px;
  animation: fadeUp 0.5s 0.1s ease both;
}
.su-hero h1 em { font-style: italic; color: var(--accent); }
.su-hero-sub {
  font-size: clamp(15px, 1.8vw, 18px); color: var(--ink-soft);
  max-width: 520px; margin: 0 auto; line-height: 1.6;
  animation: fadeUp 0.5s 0.2s ease both;
}


/* ── SECTIONS ─────────────────────────────────────────────── */
.su-section {
  max-width: 960px; margin: 0 auto; padding: 40px 24px;
}
.su-section-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--accent); margin-bottom: 16px;
  text-align: center;
}
.su-section h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -1px;
  color: var(--ink); text-align: center; margin-bottom: 32px;
}

/* ── EDITION PICKER ───────────────────────────────────────── */
.edition-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  max-width: 860px; margin: 0 auto;
}
.edition-card {
  border: 2px solid var(--border); border-radius: 16px;
  padding: 20px 14px; text-align: center; cursor: pointer;
  transition: all 0.2s; background: var(--surface);
  font-family: 'Inter', sans-serif;
}
.edition-card:hover {
  border-color: var(--accent-soft); background: #F0F4F8;
}
.edition-card.selected {
  border-color: var(--accent);
  background: rgba(37,99,235,0.04);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.edition-icon { font-size: 28px; margin-bottom: 6px; }
.edition-name { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.edition-desc { font-size: 11px; color: var(--ink-muted); line-height: 1.4; }

/* ── LEGACY SEATS TICKER ─────────────────────────────────── */
.legacy-seats-ticker {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #1a2332 0%, #1D4ED8 100%);
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0.3px;
  padding: 12px 24px; border-radius: 100px;
  max-width: 480px; margin: 0 auto 28px;
  animation: fadeUp 0.5s ease both;
}
.legacy-seats-ticker .ticker-dot {
  width: 8px; height: 8px; background: #f59e0b;
  border-radius: 50%; flex-shrink: 0;
  animation: pulse 1.5s infinite;
}
#legacy-seats-count {
  font-size: 18px; font-weight: 800; color: #f59e0b;
}

/* ── FOUNDER NOTE ────────────────────────────────────────── */
.founder-note {
  max-width: 560px; margin: 32px auto 0;
  text-align: center; font-size: 13px; line-height: 1.6;
  color: var(--ink-muted); font-style: italic;
}
.founder-note em {
  font-style: normal; font-weight: 600; color: var(--ink-soft);
}

/* ── PRICING CARDS ────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 960px; margin: 0 auto;
}
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 28px;
  display: flex; flex-direction: column;
  position: relative; transition: transform 0.2s, box-shadow 0.2s;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.07);
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(37,99,235,0.12);
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; padding: 5px 16px; border-radius: 100px;
  white-space: nowrap;
}
.price-tier {
  font-size: 16px; font-weight: 700; color: var(--ink);
  margin-bottom: 12px; margin-top: 4px;
}
.price-amount {
  display: flex; align-items: baseline; gap: 2px; margin-bottom: 12px;
}
.price-dollar {
  font-size: 22px; font-weight: 600; color: var(--ink);
  align-self: flex-start; margin-top: 6px;
}
.price-num {
  font-family: 'Instrument Serif', serif;
  font-size: 52px; line-height: 1; letter-spacing: -2px; color: var(--ink);
}
.price-period {
  font-size: 13px; color: var(--ink-muted); margin-left: 4px;
}
.beta-price-badge {
  display: inline-block;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 4px 12px; border-radius: 100px;
  margin-bottom: 12px;
}
.price-desc {
  font-size: 13px; color: var(--ink-soft); line-height: 1.5;
  margin-bottom: 20px;
}
.price-features {
  list-style: none; flex: 1; margin-bottom: 24px;
}
.price-features li {
  font-size: 13px; color: var(--ink-soft); padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex; align-items: center; gap: 8px;
}
.price-features li::before {
  content: '✓'; font-size: 12px; font-weight: 700; color: var(--green);
  flex-shrink: 0;
}
.price-features li:first-child { padding-top: 0; }
.price-features li:last-child { border-bottom: none; }

.btn-choose {
  display: block; width: 100%;
  background: var(--surface); color: var(--accent);
  border: 2px solid var(--accent); border-radius: 12px;
  padding: 14px; font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.btn-choose:hover {
  background: var(--accent-soft); transform: translateY(-1px);
}
.btn-choose-featured {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-choose-featured:hover {
  background: var(--accent-deep); border-color: var(--accent-deep);
}

/* ── COMPARISON TABLE ─────────────────────────────────────── */
.su-compare { padding-top: 60px; }
.compare-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border-radius: 16px;
  overflow: hidden; border: 1px solid var(--border);
}
.compare-table th, .compare-table td {
  padding: 14px 20px; text-align: center;
  font-size: 13px; border-bottom: 1px solid rgba(0,0,0,0.04);
}
.compare-table th {
  background: #f8fafc; font-weight: 700; color: var(--ink);
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
}
.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left; font-weight: 500; color: var(--ink-soft);
}
.compare-table .col-featured {
  background: rgba(37,99,235,0.03);
}
.compare-table th.col-featured {
  background: rgba(37,99,235,0.08); color: var(--accent);
}
.compare-table tbody tr:last-child td { border-bottom: none; }

/* ── ADD-ON MODULES ──────────────────────────────────────── */
.addon-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; max-width: 860px; margin: 0 auto;
}
.addon-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 16px; text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.addon-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.addon-icon { font-size: 28px; margin-bottom: 8px; }
.addon-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.addon-price { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.addon-desc { font-size: 11px; color: var(--ink-muted); line-height: 1.4; }

/* ── INTEGRATIONS BY PLAN ────────────────────────────────── */
.int-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 860px; margin: 0 auto;
}
.int-tier {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 24px; position: relative;
}
.int-tier-featured {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(37,99,235,0.10);
}
.int-tier-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; padding: 4px 14px; border-radius: 100px;
  white-space: nowrap;
}
.int-tier-label {
  font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px;
}
.int-tier-count {
  font-family: 'Instrument Serif', serif; font-size: 24px;
  color: var(--accent); margin-bottom: 16px;
}
.int-list {
  list-style: none; padding: 0;
}
.int-list li {
  font-size: 13px; color: var(--ink-soft); padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex; align-items: center; gap: 6px;
}
.int-list li::before {
  content: '✓'; font-size: 11px; font-weight: 700; color: var(--green); flex-shrink: 0;
}
.int-list li:first-child::before { content: ''; }
.int-list li:last-child { border-bottom: none; }

/* ── FAQ ──────────────────────────────────────────────────── */
.su-faq { padding-top: 60px; }
.faq-list { max-width: 640px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: 14px;
  margin-bottom: 10px; background: var(--surface);
  overflow: hidden; transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.faq-item summary {
  padding: 18px 22px; font-size: 14px; font-weight: 600;
  color: var(--ink); cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::after {
  content: '+'; font-size: 18px; font-weight: 300; color: var(--ink-muted);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−'; transform: rotate(0);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  padding: 0 22px 18px; font-size: 13px; color: var(--ink-soft);
  line-height: 1.6;
}

/* ── BOTTOM CTA ───────────────────────────────────────────── */
.su-bottom-cta {
  background: linear-gradient(135deg, #1a2332 0%, #1D4ED8 60%, #2563EB 100%);
  border-radius: 24px; padding: 64px 48px; text-align: center;
  max-width: 960px; margin: 60px auto 80px;
  position: relative; overflow: hidden;
}
.su-bottom-cta::before {
  content: ''; position: absolute; top: -50%; left: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.su-bottom-cta h2 {
  font-family: 'Instrument Serif', serif; font-size: clamp(28px, 3.5vw, 40px);
  color: #fff; letter-spacing: -1px; margin-bottom: 12px;
}
.su-bottom-cta p {
  color: rgba(255,255,255,0.6); font-size: 15px; margin-bottom: 28px;
}
.btn-primary {
  display: inline-block;
  background: #fff; color: var(--ink); border: none;
  padding: 16px 36px; border-radius: 100px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 24px rgba(255,255,255,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(255,255,255,0.3);
}
.su-bottom-signin {
  margin-top: 16px; font-size: 13px; color: rgba(255,255,255,0.4);
}
.su-bottom-signin a {
  color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 500;
}
.su-bottom-signin a:hover { color: #fff; }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
footer .logo { font-size: 18px; }
footer p { font-size: 13px; color: var(--ink-muted); }
footer .footer-links { display: flex; gap: 24px; }
footer .footer-links a {
  font-size: 13px; color: var(--ink-muted); text-decoration: none;
  transition: color 0.2s;
}
footer .footer-links a:hover { color: var(--ink); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  /* Swap full logo for D mark on mobile */
  .logo-full { display: none !important; }
  .logo-mark { display: inline-block !important; }
  .logo { display: flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; }
  /* Shrink nav buttons but keep touch targets >= 44px */
  .nav-right { gap: 6px; }
  .btn-login { font-size: 12px; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; }
  .nav-cta { font-size: 11px; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; }
  .edition-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .price-card.featured { order: -1; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
  .su-bottom-cta { margin: 40px 16px 60px; padding: 48px 24px; }
  .int-grid { grid-template-columns: 1fr; max-width: 400px; }
  .int-tier-featured { order: -1; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 480px) {
  .edition-grid { grid-template-columns: 1fr; }
}
