/* ============================================================
   Viral Video Format Generator — Global Design System
   Dark premium theme with electric violet accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg-base:        #080812;
  --bg-surface:     #0f0f1e;
  --bg-card:        #13132a;
  --bg-card-hover:  #1a1a35;
  --border:         rgba(139, 92, 246, 0.18);
  --border-hover:   rgba(139, 92, 246, 0.45);
  --accent:         #8b5cf6;
  --accent-bright:  #a78bfa;
  --accent-glow:    rgba(139, 92, 246, 0.35);
  --accent2:        #06b6d4;
  --text-primary:   #f1f0ff;
  --text-secondary: #94a3b8;
  --text-muted:     #475569;
  --success:        #10b981;
  --error:          #f43f5e;
  --warning:        #f59e0b;

  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --shadow-btn:  0 4px 20px rgba(139, 92, 246, 0.4);

  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Background animated gradient orbs ─────────────────────── */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.18;
}
body::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  top: -200px; left: -200px;
  animation: orb1 18s ease-in-out infinite alternate;
}
body::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  bottom: -150px; right: -150px;
  animation: orb2 22s ease-in-out infinite alternate;
}

@keyframes orb1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(120px, 80px) scale(1.2); } }
@keyframes orb2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-80px, -60px) scale(1.15); } }

/* ── Layout ─────────────────────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

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

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

/* ── Navigation / Header ─────────────────────────────────────── */
.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(8, 8, 18, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.logo-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  -webkit-text-fill-color: #fff;
  vertical-align: middle;
}

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 80px 24px 48px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent-bright);
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease both;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.65;
  animation: fadeInUp 0.7s ease 0.2s both;
}

/* ── Progress Bar ────────────────────────────────────────── */
.progress-section {
  padding: 0 24px 32px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-bright);
}

.progress-track {
  height: 4px;
  background: rgba(139, 92, 246, 0.12);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px var(--accent-glow);
}

.step-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  transition: var(--transition);
}
.step-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  transform: scale(1.3);
}
.step-dot.done {
  background: var(--accent-bright);
}

/* ── Question Cards ──────────────────────────────────────── */
.question-form {
  padding: 0 24px 80px;
}

.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 20px;
  transition: var(--transition);
  display: none;
  animation: questionIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-card.active {
  display: block;
}

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

.question-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.question-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.question-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ── Inputs ───────────────────────────────────────────────── */
.input {
  width: 100%;
  background: rgba(15, 15, 30, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 14px 18px;
  transition: var(--transition);
  outline: none;
}

.input:focus {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.06);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.input::placeholder { color: var(--text-muted); }

textarea.input {
  resize: vertical;
  min-height: 100px;
}

/* ── Radio / Select Pills ─────────────────────────────────── */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-option {
  position: relative;
}

.pill-option input[type="radio"],
.pill-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.pill-option label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.04);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.pill-option input:checked + label {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-bright);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.2);
}

.pill-option label:hover {
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--text-primary);
}

.pill-icon { font-size: 16px; }

/* ── Navigation Buttons ───────────────────────────────────── */
.form-nav {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  justify-content: space-between;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 13px 24px;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.55);
}

.btn--secondary {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--text-secondary);
}
.btn--secondary:hover {
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.12);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  padding-left: 0;
}
.btn--ghost:hover { color: var(--text-secondary); }

.btn--large {
  padding: 16px 32px;
  font-size: 17px;
  border-radius: var(--radius-lg);
}

.btn--full { width: 100%; }

.btn--danger {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #f43f5e;
}
.btn--danger:hover {
  background: rgba(244, 63, 94, 0.2);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.btn-arrow {
  transition: transform var(--transition);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── Generate CTA Section ─────────────────────────────────── */
.generate-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  margin: 0 24px 40px;
  display: none;
  animation: questionIn 0.4s ease;
}
.generate-section.active { display: block; }

.generate-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.generate-section p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 15px;
}

.newsletter-inline {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.newsletter-inline .input { flex: 1; }

/* ── Loading Overlay ──────────────────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 18, 0.9);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  display: none;
}
.loading-overlay.active { display: flex; }

.loading-spinner {
  width: 56px; height: 56px;
  border: 3px solid rgba(139, 92, 246, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.loading-sub {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  max-width: 320px;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.loading-step.visible { opacity: 1; color: var(--text-secondary); }
.loading-step.done { color: var(--success); }

.loading-step-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ── Format Cards (Results) ───────────────────────────────── */
.results-header {
  text-align: center;
  padding: 60px 24px 40px;
}

.results-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.results-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 24px 20px;
}

.format-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cardIn 0.5s ease both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.format-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.format-card--refined {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 32px rgba(6, 182, 212, 0.15);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 4px;
}

.card-badge--a { background: rgba(139, 92, 246, 0.15); color: var(--accent-bright); border: 1px solid rgba(139, 92, 246, 0.25); }
.card-badge--b { background: rgba(6, 182, 212, 0.12); color: var(--accent2); border: 1px solid rgba(6, 182, 212, 0.25); }
.card-badge--new { background: rgba(16, 185, 129, 0.12); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.25); }

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.card-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card-value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.card-value strong {
  color: var(--text-primary);
  font-weight: 600;
}

.card-hook {
  background: rgba(139, 92, 246, 0.07);
  border-left: 2px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}

.card-levers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-lever {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-lever::before {
  content: '⚡';
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 2px;
}

.card-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent2);
}

.card-cta {
  margin-top: auto;
  padding-top: 8px;
}

/* ── Card Skeleton Loading ─────────────────────────────────── */
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skeleton {
  background: linear-gradient(90deg, rgba(139,92,246,0.06) 0%, rgba(139,92,246,0.12) 50%, rgba(139,92,246,0.06) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: var(--radius-sm);
}

.skeleton--title { height: 28px; width: 65%; }
.skeleton--text { height: 14px; width: 100%; }
.skeleton--text-short { height: 14px; width: 75%; }
.skeleton--badge { height: 22px; width: 60px; border-radius: 100px; }

@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── Concern Form ─────────────────────────────────────────── */
.concern-section {
  padding: 0 24px 40px;
}

.concern-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.concern-box h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.concern-box p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

.concern-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.concern-tag {
  position: relative;
}
.concern-tag input { position: absolute; opacity: 0; }
.concern-tag label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  background: rgba(139, 92, 246, 0.04);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.concern-tag input:checked + label {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-bright);
}
.concern-tag label:hover {
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--text-primary);
}

.concern-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.concern-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.concern-selector-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

/* ── Refined Card Area ──────────────────────────────────────── */
.refined-section {
  padding: 8px 24px 32px;
}

.refined-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--success);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.refined-label::before {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(16, 185, 129, 0.2);
}
.refined-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(16, 185, 129, 0.2);
}

/* ── Success Modal ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 18, 0.85);
  backdrop-filter: blur(16px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  display: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 540px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), var(--shadow-glow);
  animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-card-hover); }

.modal-emoji {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.modal h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-chosen-name {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--text-secondary);
}

.modal-chosen-name strong {
  display: block;
  font-size: 18px;
  color: var(--accent-bright);
  margin-bottom: 4px;
  font-family: 'Space Grotesk', sans-serif;
}

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

.newsletter-form-row {
  display: flex;
  gap: 10px;
}

.newsletter-form-row .input { flex: 1; }

.newsletter-success {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--success);
  font-size: 14px;
  font-weight: 600;
  display: none;
}
.newsletter-success.active { display: flex; }

/* ── Tips Strip ──────────────────────────────────────────── */
.tips-section {
  padding: 40px 24px 60px;
}

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

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

.tip-icon { font-size: 24px; margin-bottom: 12px; }

.tip-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.tip-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Section Titles ──────────────────────────────────────── */
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.section-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── Toasts ──────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  max-width: 340px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast--success { border-color: rgba(16, 185, 129, 0.4); color: var(--success); }
.toast--error   { border-color: rgba(244, 63, 94, 0.4); color: var(--error); }

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

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.animate-in {
  animation: fadeInUp 0.6s ease both;
}

/* ── Divider ─────────────────────────────────────────────── */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer a { color: var(--accent-bright); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

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

  .question-card {
    padding: 24px 20px;
  }

  .generate-section {
    padding: 28px 24px;
    margin: 0 16px 32px;
  }

  .concern-box {
    padding: 24px 20px;
  }

  .modal {
    padding: 36px 24px;
  }

  .newsletter-form-row {
    flex-direction: column;
  }

  .form-nav {
    flex-direction: column-reverse;
  }

  .concern-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    padding: 48px 24px 32px;
  }

  .concern-selector {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .pill-group { gap: 8px; }
  .pill-option label { padding: 9px 14px; font-size: 13px; }
}

/* ============================================================
   Day-14 Motivation Strip
   ============================================================ */
.day14-strip {
  margin-bottom: 24px;
}
.day14-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(251,191,36,0.06), rgba(251,146,60,0.06));
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 16px;
  padding: 20px 24px;
}
.day14-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.day14-content {
  flex: 1;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}
.day14-content strong {
  color: #fbbf24;
}
.day14-badge {
  flex-shrink: 0;
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.3);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .day14-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ============================================================
   3-Step Action Plan
   ============================================================ */
.action-plan {
  margin-top: 40px;
  margin-bottom: 40px;
}
.action-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}
.action-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  transition: border-color 0.2s;
}
.action-step:hover {
  border-color: rgba(139,92,246,0.4);
}
.action-step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(139,92,246,0.3);
}
.action-step-body h4 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}
.action-step-body p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}
.action-step-body em {
  color: #a78bfa;
  font-style: italic;
}

/* Email Results Box */
.email-results-box {
  margin-top: 32px;
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(6,182,212,0.05));
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 16px;
  padding: 24px;
}
.email-results-inner { display: flex; flex-direction: column; gap: 16px; }
.email-results-title { color: var(--text-primary); font-size: 16px; }
.email-results-desc { color: var(--text-secondary); font-size: 13px; line-height: 1.6; margin: 4px 0 0; }
.email-results-row {
  display: flex;
  gap: 10px;
}
.email-results-row .input {
  flex: 1;
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
}
.email-results-success {
  color: #10b981;
  font-size: 14px;
  font-weight: 600;
}
@media (max-width: 480px) {
  .email-results-row { flex-direction: column; }
}

/* ============================================================
   Language Toggle
   ============================================================ */
.lang-toggle {
  display: flex;
  gap: 4px;
  align-items: center;
}
.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.lang-btn.active {
  background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.5);
  color: #a78bfa;
}
.lang-btn:hover:not(.active) {
  border-color: rgba(139,92,246,0.3);
  color: var(--text-secondary);
}

/* ============================================================
   AI Disclaimer + Consultancy Box
   ============================================================ */
.disclaimer-box {
  margin-top: 32px;
  margin-bottom: 8px;
}
.disclaimer-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(251,191,36,0.04);
  border: 1px solid rgba(251,191,36,0.18);
  border-radius: 14px;
  padding: 20px 24px;
}
.disclaimer-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.disclaimer-text {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}
.disclaimer-text a {
  color: #a78bfa;
  text-decoration: underline;
  font-weight: 600;
}
.disclaimer-text a:hover {
  color: #c4b5fd;
}
