/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

button, a.btn-primary, a.nav-cta, .plan-cta, .auth-btn, .btn-manage {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

button:focus, button:focus-visible,
a:focus, a:focus-visible {
  outline: none !important;
  box-shadow: none;
}

:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #9ca3af;
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --accent-light: #dcfce7;
  --accent-tag: #15803d;
  --accent-glow: rgba(34, 197, 94, 0.25);
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Header ── */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(249, 250, 251, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-mark { width: 32px; height: 32px; }

.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.logo-accent { color: var(--accent); }

/* ── Nav Tabs ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-tab {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-tab:hover {
  color: var(--text);
  background: var(--border-light);
}

.nav-tab.active {
  color: var(--text);
  font-weight: 600;
  background: var(--border-light);
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}

.nav-cta:hover { background: var(--accent-hover); }

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-login {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

.nav-login:hover {
  background: var(--border-light);
}

.nav-tab.disabled {
  color: var(--text-3);
  cursor: default;
  pointer-events: none;
}

.nav-cta-disabled {
  background: var(--border);
  color: var(--text-3);
  cursor: default;
  pointer-events: none;
}

.btn-primary.btn-disabled {
  background: var(--border);
  color: var(--text-3);
  cursor: default;
  pointer-events: none;
}

/* ── Hero ── */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 100dvh;
}

.hero-copy {
  max-width: 500px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
  color: var(--text);
}

.text-accent { color: var(--accent); }

.hero-sub {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-3);
  margin-bottom: 28px;
}

.hero-hit {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.hero-hit:last-of-type {
  margin-bottom: 28px;
}

.inline-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-light);
  color: var(--accent-tag);
  font-weight: 600;
  padding: 2px 8px 2px 6px;
  border-radius: 100px;
  font-size: inherit;
  line-height: inherit;
  white-space: nowrap;
  vertical-align: baseline;
  margin: 0 1px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 8px;
}

.btn-primary:focus,
.btn-primary:focus-visible {
  outline: none !important;
  box-shadow: none;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.97); box-shadow: none; }

/* ── Status Dot ── */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent-glow);
  animation: pulse 3s ease-in-out infinite;
}

.dot-off {
  background: var(--danger);
}

.dot-off::after {
  background: rgba(239, 68, 68, 0.15);
  animation: none;
}

/* Slack "away" grey pill */
.inline-status-away {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e5e7eb;
  color: #9ca3af;
  font-weight: inherit;
  padding: 2px 12px 2px 10px;
  border-radius: 100px;
  font-size: inherit;
  line-height: inherit;
  white-space: nowrap;
  vertical-align: baseline;
}

.dot-away {
  background: #9ca3af;
}

.dot-away::after {
  animation: none;
  opacity: 0;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%      { transform: scale(1.8); opacity: 0; }
}

/* ── Calculator Widget ── */
.hero-calc {
  display: flex;
  align-items: flex-start;
  padding-top: 12px;
}

.calc-widget {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.03);
}

.calc-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calc-divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

/* ── Tier Selector ── */
.tier-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.tier-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 6px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}

.tier-btn:hover {
  border-color: var(--accent);
}

.tier-btn.active {
  border-color: var(--accent);
  background: var(--accent-light);
}

.tier-cards {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.tier-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tier-btn.active .tier-cards { color: var(--accent-tag); }
.tier-btn.active .tier-label { color: var(--accent-tag); }

/* ── Result ── */
.calc-tier-name {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}

.calc-price-hero {
  display: flex;
  align-items: baseline;
  margin-bottom: 6px;
}

.calc-dollar {
  font-size: 1.3rem;
  font-weight: 700;
  position: relative;
  top: -0.55em;
}

.calc-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.calc-period {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  margin-left: 3px;
}

.calc-covers {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 14px;
  line-height: 1.5;
}

.calc-covers strong {
  color: var(--text);
}

.text-accent {
  color: var(--accent);
}

/* ── Billing Toggle ── */
.billing-toggle {
  display: flex;
  gap: 8px;
}

.billing-btn {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.billing-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.billing-btn.active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent-tag);
  font-weight: 600;
}

.billing-btn.active .discount-badge {
  background: var(--accent);
  color: #fff;
}

.discount-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--accent-light);
  color: var(--accent-tag);
  letter-spacing: 0.01em;
}

/* ── Micro-charge note ── */
.calc-micro {
  font-size: 0.8rem;
  color: var(--text-3);
  text-align: center;
}

/* ── Pricing Section ── */
.pricing-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

.pricing-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 28px;
  width: 100%;
  text-align: center;
}

.pricing-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.pricing-subtitle {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* ── Billing Switch ── */
.billing-switch {
  display: inline-flex;
  gap: 4px;
  background: var(--border-light);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 36px;
}

.billing-opt {
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font);
  color: var(--text-2);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.billing-opt.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ── Plan Grid ── */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.plan-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
  border-color: var(--text-3);
}

.plan-card.popular {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 30px rgba(34, 197, 94, 0.08);
}

.plan-popular-tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.plan-name {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  margin-bottom: 12px;
}

.plan-card.popular .plan-name {
  color: var(--accent-tag);
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 6px;
}

.plan-dollar {
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
  top: -0.5em;
}

.plan-amount {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-period {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  margin-left: 2px;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 20px;
}

.plan-cta {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}

.plan-cta:hover {
  border-color: var(--accent);
  color: var(--accent-tag);
}

.plan-cta-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.plan-cta-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.plan-cta:disabled {
  opacity: 0.6;
  cursor: wait;
}

.plan-micro {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ── Pricing Page ── */
.pricing-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pricing-header {
  text-align: center;
  max-width: 540px;
  margin-bottom: 36px;
}

.pricing-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.pricing-header p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.6;
}

.pricing-widget {
  width: 100%;
  max-width: 520px;
}

/* ── Why Section ── */
.why-section {
  border-top: 1px solid var(--border);
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

.why-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 28px;
  width: 100%;
}

.why-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  text-align: center;
}

.why-intro {
  text-align: center;
  color: var(--text-2);
  font-size: 0.95rem;
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.why-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  margin-bottom: 16px;
}

.why-icon svg { width: 20px; height: 20px; }

.why-icon-accent {
  background: var(--accent-light);
  color: var(--accent-tag);
}

.why-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.why-card p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Strategy Section ── */
.strategy-section {
  border-top: 1px solid var(--border);
  background: var(--surface);
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

.strategy-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 28px;
  width: 100%;
}

.strategy-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  text-align: center;
}

.strategy-intro {
  text-align: center;
  color: var(--text-2);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.strategy-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.strategy-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.strategy-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.strategy-card p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── How Section ── */
.how-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

.how-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

.how-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 36px;
}

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

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-2);
}

.step-icon svg { width: 20px; height: 20px; }

.step-icon-accent {
  background: var(--accent-light);
  color: var(--accent-tag);
}

.step-text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.step-text p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* ── Card Stack Visual ── */
.how-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-stack {
  position: relative;
  width: 300px;
  height: 300px;
}

.cc-card {
  position: absolute;
  width: 260px;
  height: 155px;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cc-1 {
  background: linear-gradient(135deg, #1e293b, #334155);
  top: 0; left: 20px; z-index: 3;
  transform: rotate(-3deg);
}

.cc-2 {
  background: linear-gradient(135deg, #1e3a5f, #475569);
  top: 35px; left: 40px; z-index: 2;
  transform: rotate(2deg);
}

.cc-3 {
  background: linear-gradient(135deg, #64748b, #94a3b8);
  top: 70px; left: 10px; z-index: 1;
  transform: rotate(-1deg);
}

.cc-stripe {
  height: 20px;
  margin: -18px -18px 0;
  border-radius: 12px 12px 0 0;
  background: rgba(255,255,255,0.06);
}

.cc-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  justify-content: flex-end;
  padding-bottom: 2px;
}

.cc-line {
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.12);
  width: 65%;
}

.cc-line.short { width: 35%; }

.cc-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.cc-status.active { color: #86efac; }
.cc-status.off { color: #fca5a5; }

.cc-inactive { opacity: 0.65; }

.card-stack:hover .cc-1 { transform: rotate(-5deg) translateY(-6px); }
.card-stack:hover .cc-2 { transform: rotate(3deg) translateX(6px); }
.card-stack:hover .cc-3 { transform: rotate(0deg) translateY(6px); }

/* ── Legal Pages ── */
.legal-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 100px 28px 80px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.legal-updated {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 40px;
}

.legal-page section {
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.legal-page h3 {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 18px 0 8px;
  color: var(--text);
}

.legal-page p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 10px;
}

.legal-page ul {
  list-style: none;
  padding: 0;
  margin-bottom: 10px;
}

.legal-page li {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
  padding: 4px 0 4px 18px;
  position: relative;
}

.legal-page li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

.legal-page a {
  color: var(--accent-tag);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  color: var(--accent);
}

/* ── Cookie Table ── */
.cookie-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 12px 0 20px;
  font-size: 0.8rem;
}

.cookie-row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr 0.8fr;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-2);
}

.cookie-row:last-child { border-bottom: none; }

.cookie-header {
  background: var(--border-light);
  font-weight: 600;
  color: var(--text);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Cookie Consent Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-2);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner p {
  margin: 0;
  max-width: 600px;
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.15s;
}

.cookie-btn-accept {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.cookie-btn-accept:hover { background: var(--accent-hover); }

.cookie-btn-reject {
  background: var(--surface);
  color: var(--text-2);
}

.cookie-btn-reject:hover {
  border-color: var(--text-3);
  color: var(--text);
}

@media (max-width: 560px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 18px 20px;
  }

  .cookie-table .cookie-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Auth Pages ── */
.auth-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 28px 40px;
}

.auth-card {
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.auth-sub {
  font-size: 0.92rem;
  color: var(--text-2);
  margin-bottom: 28px;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form input {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s;
}

.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-success {
  padding: 20px 0;
}

.auth-success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--accent);
}

.auth-success-icon svg { width: 48px; height: 48px; }

.auth-success h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-success p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}

.auth-error {
  background: var(--danger-light);
  color: #b91c1c;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

.auth-note {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-top: 16px;
}

.success-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
}

.success-check svg { width: 56px; height: 56px; }

/* ── Dashboard ── */
.dash-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 28px 60px;
}

.dash-loading {
  text-align: center;
  padding: 120px 0;
  color: var(--text-3);
  font-size: 0.95rem;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 16px;
}

.dash-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.dash-plan {
  font-size: 0.88rem;
  color: var(--text-2);
}

.dash-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-outline {
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
}

.btn-outline:focus,
.btn-outline:focus-visible {
  outline: none !important;
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--text-3);
  background: var(--bg);
}

/* ── Card Usage Bar ── */
.card-usage {
  margin-bottom: 24px;
}

.card-usage-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 8px;
  font-weight: 500;
}

.card-usage-upgrade a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.card-usage-upgrade a:hover {
  text-decoration: underline;
}

.card-usage-bar {
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}

.card-usage-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.4s ease;
  min-width: 0;
}

.card-usage-fill.usage-warn {
  background: #f59e0b;
}

.card-usage-fill.usage-full {
  background: var(--danger);
}

/* ── Card List ── */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}

.dash-card:hover {
  border-color: var(--text-3);
}

.dash-card-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.dash-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  flex-shrink: 0;
}

.dash-card-icon svg { width: 20px; height: 20px; }

.dash-card-brand {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.dash-card-number {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 1px;
}

.dash-card-meta {
  font-size: 0.78rem;
  color: var(--text-3);
}

.dash-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.charge-day-inline {
  font-size: 0.78rem;
  padding: 4px 8px;
}

.btn-danger-sm {
  padding: 6px 12px;
  border: 1px solid var(--danger);
  border-radius: 6px;
  background: transparent;
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
  outline: none;
  box-shadow: none;
}

.btn-danger-sm:focus,
.btn-danger-sm:focus-visible {
  outline: none !important;
  box-shadow: none;
}

.btn-danger-sm:hover {
  background: var(--danger);
  color: #fff;
}

/* ── Empty State ── */
.dash-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
}

.dash-empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--text-3);
}

.dash-empty-icon svg { width: 48px; height: 48px; }

.dash-empty h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.dash-empty p {
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 20px;
}

/* ── Modal ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.modal-content {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  width: calc(100% - 40px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-content h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 24px;
  line-height: 1.5;
}

.stripe-element {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.stripe-element.StripeElement--focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.charge-day-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 20px;
}

.label-optional {
  font-weight: 400;
  color: var(--text-3);
}

.settings-input {
  display: block;
  margin-top: 6px;
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  outline: none;
  box-sizing: border-box;
}

.settings-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.charge-day-label select {
  display: block;
  margin-top: 6px;
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ── Activity Select (shared) ── */
.activity-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font);
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  outline: none;
}

.activity-select:focus {
  border-color: var(--accent);
}

/* ── Nav Tab Active ── */
.nav-tab-active {
  color: var(--accent) !important;
  font-weight: 600;
}

/* ── Settings Page ── */
.settings-section {
  margin-bottom: 32px;
}

.settings-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 10px;
}

/* Plan overview card */
.settings-plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.settings-plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

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

.settings-plan-name {
  font-size: 1rem;
  font-weight: 700;
}

.settings-plan-status {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 3px 10px;
  border-radius: 20px;
}

.settings-plan-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: none;
}

.settings-plan-stat {
  padding: 20px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.settings-plan-stat:last-child {
  border-right: none;
}

.settings-plan-stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.settings-plan-stat-label {
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Settings rows */
.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-label {
  font-size: 0.85rem;
  color: var(--text-2);
}

.settings-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.settings-value a {
  color: var(--accent);
  text-decoration: none;
}

.settings-value a:hover {
  text-decoration: underline;
}

/* ── Responsive Dashboard ── */
@media (max-width: 640px) {
  .dash-header {
    flex-direction: column;
  }

  .dash-actions {
    width: 100%;
  }

  .dash-actions .btn-outline,
  .dash-actions .btn-primary {
    flex: 1;
  }

  .dash-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dash-card-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left .logo-text {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.footer-left p {
  font-size: 0.75rem;
  color: var(--text-3);
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-right a {
  font-size: 0.82rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-right a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero,
  .how-section,
  .why-section,
  .strategy-section {
    min-height: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 80px;
  }

  .hero-visual { order: -1; }

  .hero-copy {
    padding-top: 16px;
    max-width: 100%;
    text-align: center;
  }

  .btn-primary { width: 100%; text-align: center; }

  .tier-selector {
    grid-template-columns: repeat(3, 1fr);
  }

  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .why-grid,
  .strategy-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .how-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .how-visual { order: -1; }

  .card-stack { width: 260px; height: 260px; }
  .cc-card { width: 225px; height: 135px; }

  .pricing-page { min-height: auto; padding-top: 80px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 1.85rem; }
  .hero-sub { font-size: 0.92rem; }

  .calc-widget { padding: 22px 16px; }
  .calc-amount { font-size: 2.4rem; }

  .tier-selector {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .billing-toggle {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}
