/* ===== CSS Variables & Reset ===== */
:root {
  --bg: #f8f9fc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --success: #10b981;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 10px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 40px -10px rgba(15, 23, 42, 0.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; min-height: 100px; }
label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--text); }
.req { color: #ef4444; }
.mt-2 { margin-top: 0.5rem; }
.hidden { display: none !important; }

/* ===== Layout ===== */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 640px; }
.section { padding: 5rem 0; }
.section-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.section-sub { text-align: center; color: var(--text-secondary); max-width: 480px; margin: 0 auto 3rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary svg {
  transition: transform 0.25s ease;
}
.btn-primary:hover svg {
  transform: translateX(3px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); background: var(--surface); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ===== Nav ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  white-space: nowrap;
}
.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}
.logo-text span { color: var(--accent); }
.footer .logo-icon { width: 28px; height: 28px; border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-shrink: 0;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }

/* ===== Landing / Hero ===== */
.landing {
  background: linear-gradient(180deg, #f0f4ff 0%, var(--bg) 60%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem 5rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}
.hero-visual-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-bottom: 2.5rem;
}
.hero-visual {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.25), 0 0 0 1px rgba(255,255,255,0.1);
  object-fit: cover;
  aspect-ratio: 16/10;
}
.hero-visual-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.18), transparent 65%);
  z-index: -1;
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}
.gradient-text {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: 4rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 800px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow);
  text-align: left;
}
.stat strong { display: block; font-size: 0.9rem; margin-bottom: 0.25rem; }
.stat span { font-size: 0.8rem; color: var(--text-muted); }

/* ===== Features ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease, background 0.3s ease;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-3deg);
  background: #e0e7ff;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== How ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== Form ===== */
.form-section { padding: 3rem 0 5rem; min-height: 80vh; }
.back-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition);
}
.back-link:hover { color: var(--text); }
.form-title { font-size: 1.85rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.35rem; }
.form-sub { color: var(--text-secondary); margin-bottom: 2.5rem; }
.brand-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md); }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.3s ease; }
.form-group { margin-bottom: 1.5rem; }
.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.step-indicator { display: flex; gap: 0.5rem; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background var(--transition);
}
.dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ===== Loading ===== */
.loading-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
}
.loader-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
}
.loader-visual {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.75rem;
}
.loader-ring {
  width: 72px; height: 72px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.loader-orb {
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  background: linear-gradient(135deg, #4f46e5, #a855f7);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
  animation: orbPulse 1.4s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.loader-card h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.loader-card p { color: var(--text-secondary); margin-bottom: 1.75rem; font-size: 0.95rem; }
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1.75rem;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  width: 0%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.progress-steps {
  list-style: none;
  text-align: left;
  font-size: 0.9rem;
}
.progress-steps li {
  padding: 0.4rem 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.progress-steps li::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.progress-steps li.active { color: var(--text); font-weight: 500; }
.progress-steps li.active::before { background: var(--accent); }
.progress-steps li.done { color: var(--success); }
.progress-steps li.done::before { background: var(--success); }

/* ===== Results ===== */
.results-section { padding-bottom: 5rem; }
.results-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 0;
  margin-bottom: 2.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
  /* Prevent horizontal overflow from long brand names / tabs */
  overflow-x: hidden;
}
.results-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.results-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.results-top h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.results-top p { color: var(--text-secondary); font-size: 0.95rem; }
.results-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.results-tabs {
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  padding-bottom: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}
.results-tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  padding: 0.85rem 1.15rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.tab-panel { display: none; animation: fadeIn 0.35s ease; }
.tab-panel.active { display: block; }

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card.full { grid-column: 1 / -1; }
.card h3 { font-size: 1.05rem; margin-bottom: 1rem; font-weight: 600; }
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}
.card-header h3 { margin-bottom: 0; }
.prose { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }
.prose p { margin-bottom: 0.85rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 0.85rem; }
.prose li { margin-bottom: 0.35rem; }
.prose strong { color: var(--text); }

/* Palette */
.palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.swatch {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.swatch-color {
  height: 80px;
  width: 100%;
}
.swatch-info {
  padding: 0.75rem;
  background: var(--surface);
  font-size: 0.8rem;
}
.swatch-info strong { display: block; margin-bottom: 0.15rem; }
.swatch-info span { color: var(--text-muted); font-family: ui-monospace, monospace; font-size: 0.75rem; }

/* Typography */
.type-preview { }
.type-pair { margin-bottom: 1.5rem; }
.type-pair:last-child { margin-bottom: 0; }
.type-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.35rem; }
.type-sample-heading { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; letter-spacing: -0.02em; }
.type-sample-body { font-size: 1rem; color: var(--text-secondary); }
.type-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }

/* Icons */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.icon-item {
  aspect-ratio: 1;
  background: var(--bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.icon-item svg { width: 36px; height: 36px; }

/* Logos */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.logo-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow var(--transition);
}
.logo-card:hover { box-shadow: var(--shadow-md); }
.logo-preview {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.logo-preview svg { max-width: 90%; max-height: 90%; }
.logo-card h4 { font-size: 0.9rem; margin-bottom: 0.25rem; }
.logo-card p { font-size: 0.8rem; color: var(--text-muted); }

/* Marketing actions */
.action-list { list-style: none; }
.action-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.action-list li:last-child { border-bottom: none; }
.action-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}
.schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.schedule-item {
  background: var(--bg);
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid var(--border);
}
.schedule-item strong { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; }
.schedule-item span { font-size: 0.85rem; color: var(--text-secondary); }

/* Websites */
.website-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.website-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
}
.website-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.website-preview {
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  height: 160px;
}
.preview-bar {
  height: 24px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}
.preview-bar span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}
.preview-content {
  height: calc(100% - 24px);
  padding: 12px;
  font-size: 0.65rem;
  overflow: hidden;
}
.website-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.website-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.25rem; flex: 1; }

/* Downloads */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.dl-icon {
  width: 48px; height: 48px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.75rem;
  margin: 0 auto 1rem;
}
.download-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.download-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.25rem; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
  background: var(--surface);
}
.footer-inner { text-align: center; }
.footer-inner p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }

/* ===== Responsive ===== */

/* Tablet and below */
@media (max-width: 900px) {
  .nav {
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }
  .logo {
    font-size: 1.2rem;
    flex-shrink: 0;
  }
  .nav-links {
    gap: 0.75rem;
    flex-shrink: 0;
  }
  .nav-links a:not(.btn) {
    display: none;
  }
  .nav-links .btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .hero {
    padding: 2.5rem 1.25rem 4rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .panel-grid {
    grid-template-columns: 1fr;
  }
  .website-options {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .results-header {
    padding-top: 1.25rem;
  }
  .results-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .results-actions {
    width: 100%;
  }
  .results-actions .btn {
    flex: 1;
  }
  .results-tabs {
    gap: 0;
  }
  .tab {
    padding: 0.75rem 0.9rem;
    font-size: 0.85rem;
  }
}

/* Large phones / small tablets */
@media (max-width: 700px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 1rem 0.85rem;
  }
  .stat strong {
    font-size: 0.85rem;
  }
  .stat span {
    font-size: 0.75rem;
  }
  .card {
    padding: 1.35rem;
  }
  .brand-form {
    padding: 1.5rem;
  }
  .logo-grid {
    grid-template-columns: 1fr;
  }
  .schedule {
    grid-template-columns: 1fr;
  }
}

/* Mobile phones */
@media (max-width: 600px) {
  .nav {
    padding: 0.9rem 1rem;
  }
  .logo {
    font-size: 1.1rem;
    letter-spacing: -0.02em;
  }
  .nav-links .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  .hero {
    padding: 2rem 1rem 3.5rem;
  }
  .hero-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1.15rem;
  }
  .hero h1 {
    font-size: 2.1rem;
    line-height: 1.15;
  }
  .hero-sub {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .section {
    padding: 3.5rem 0;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .container {
    padding: 0 1rem;
  }
  .container.narrow {
    padding: 0 1rem;
  }

  .form-section {
    padding: 1.75rem 0 3.5rem;
  }
  .form-title {
    font-size: 1.5rem;
  }
  .form-sub {
    margin-bottom: 1.75rem;
  }
  .brand-form {
    padding: 1.25rem;
    border-radius: 14px;
  }
  .form-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
  }
  .form-nav .btn {
    flex: 1 1 auto;
    min-width: 0;
  }
  .step-indicator {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: 0.25rem;
  }

  .results-top h1 {
    font-size: 1.4rem;
  }
  .results-actions {
    flex-direction: column;
  }
  .results-actions .btn {
    width: 100%;
  }
  .tab {
    padding: 0.7rem 0.8rem;
    font-size: 0.8rem;
  }
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .card-header .btn {
    width: 100%;
  }

  .palette {
    grid-template-columns: repeat(2, 1fr);
  }
  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .download-card {
    padding: 1.35rem;
  }
  .website-card {
    padding: 1.25rem;
  }
  .loader-card {
    padding: 2rem 1.25rem;
  }
  .prompt-card pre {
    font-size: 0.75rem;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .logo {
    font-size: 1rem;
  }
  .nav-links .btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }
  .hero h1 {
    font-size: 1.85rem;
  }
  .palette {
    grid-template-columns: 1fr;
  }
}

/* AI Prompts */
.ai-prompts { display: flex; flex-direction: column; gap: 1rem; }
.prompt-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.prompt-card h4 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.prompt-card pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0.75rem 0;
  line-height: 1.5;
}
.prompt-card .btn { margin-top: 0.5rem; }

/* Captions */
.caption-list { display: flex; flex-direction: column; gap: 1rem; }
.caption-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.caption-item strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


/* ===== Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* Feature cards stagger feel */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #c7d2fe;
}

/* Subtle floating decoration on landing */
.landing::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.12), transparent 70%);
  top: -80px;
  right: -100px;
  pointer-events: none;
  animation: floatY 10s ease-in-out infinite;
}
.landing {
  position: relative;
  overflow: hidden;
}

/* Results success entrance */
.results-section.animate-in .card {
  animation: fadeIn 0.5s ease both;
}
.results-section.animate-in .card:nth-child(1) { animation-delay: 0.05s; }
.results-section.animate-in .card:nth-child(2) { animation-delay: 0.1s; }
.results-section.animate-in .card:nth-child(3) { animation-delay: 0.15s; }
.results-section.animate-in .card:nth-child(4) { animation-delay: 0.2s; }

/* Swatch hover */
.swatch {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}
.swatch:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
}

/* Logo card polish */
.logo-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo-card:hover {
  transform: translateY(-4px);
}

/* Chip active feedback */
.chip {
  transition: all 0.2s ease;
}
.chip:active {
  transform: scale(0.96);
}

/* Better focus rings */
.btn:focus-visible, .chip:focus-visible, .tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .hero-visual-wrap { max-width: 100%; margin-bottom: 1.75rem; }
  .hero-visual { border-radius: 14px; }
  .logo-icon { width: 28px; height: 28px; border-radius: 7px; }
  .logo { font-size: 1.05rem; gap: 0.45rem; }
}
