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

:root {
  --primary: #004fbe;
  --primary-dark: #003a8c;
  --primary-light: #3373d1;
  --accent: #0284c7;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #f2f2f2;
  --bg-card: #ffffff;
  --border: rgba(0,0,0,0.09);
  --border-light: rgba(0,0,0,0.13);
  --text: #1a1a1a;
  --text-muted: #555555;
  --text-dim: #999999;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-card: 0 1px 8px rgba(0,0,0,0.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

body > * { flex-shrink: 0; }

body::after {
  content: '';
  position: fixed;
  bottom: -120px;
  right: -120px;
  width: 696px;
  height: 696px;
  background-image: url('https://podetize.com/wp-content/uploads/2021/03/Podetize_icon1.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.09;
  pointer-events: none;
  z-index: -1;
}
body > footer { margin-top: auto; }

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

.hidden { display: none !important; }

/* ── Page Wrapper ──────────────────────────────────────────────────────────── */
.page-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Combined Main Card ────────────────────────────────────────────────────── */
.main-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 8px;
  text-align: center;
}

.form-section {
  padding: 40px 48px;
  text-align: center;
}

/* ── Hero Card ─────────────────────────────────────────────────────────────── */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 48px;
  text-align: center;
  box-shadow: var(--shadow);
}

.hero-logo {
  margin-bottom: 20px;
}
.hero-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.hero-title {
  font-size: clamp(26px, 3.84vw, 41px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 820px;
  margin: 0 auto;
}

/* ── Form Card ─────────────────────────────────────────────────────────────── */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 48px;
  box-shadow: var(--shadow);
}

/* legacy: keep for standalone use if needed */

.form-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 6px;
}

.form-subheading {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.7;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.form-group-full { grid-column: 1 / -1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.required { color: var(--danger); }
.optional { color: var(--text-muted); font-weight: 400; font-size: 12px; }

.niche-hint {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 12px;
}

.form-group input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input::placeholder { color: var(--text-dim); }

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,79,190,0.1);
}

.form-footer {
  text-align: center;
}

.btn-primary {
  padding: 12px 36px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(0,79,190,0.25);
  display: inline-flex;
  align-items: center;
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,79,190,0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  padding: 12px 24px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* ── How It Works ──────────────────────────────────────────────────────────── */
.how-it-works {
  padding: 8px 0 0;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
  color: var(--text);
}

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

.step-card {
  background: #f9f9f9;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
}

.step-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.step-number {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  background: rgba(0,79,190,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}

.step-icon { font-size: 28px; margin-bottom: 12px; display: block; }

.step-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.step-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Loading Card ────────────────────────────────────────────────────────────── */
.loading-overlay {
  padding: 48px 56px;
  text-align: center;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.loading-logo {
  font-size: 48px;
  margin-bottom: 20px;
}

@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 0px rgba(6,182,212,0)); opacity: 0.75; transform: translateY(0); }
  50% { filter: drop-shadow(0 0 18px rgba(6,182,212,1)); opacity: 1; transform: translateY(-8px); }
}

.loading-logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  animation: logo-glow 1.6s ease-in-out infinite;
}

/* Animated ellipsis */
.loading-ellipsis span {
  animation: ellipsis-blink 1.4s infinite;
  opacity: 0;
}
.loading-ellipsis span:nth-child(1) { animation-delay: 0s; }
.loading-ellipsis span:nth-child(2) { animation-delay: 0.2s; }
.loading-ellipsis span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ellipsis-blink {
  0%, 60%, 100% { opacity: 0; }
  30% { opacity: 1; }
}

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

.loading-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.loading-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.progress-steps {
  text-align: left;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.3s;
}

.progress-step.active { color: var(--text); }
.progress-step.done { color: var(--success); }

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #dddddd;
  transition: background 0.3s;
}

.step-dot.pending { background: #dddddd; }

.step-dot.active {
  background: rgb(6,182,212);
  animation: pulse-dot 1.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6,182,212,0.5); }
  50% { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(6,182,212,0); }
}

.progress-step.active span { color: var(--text); font-weight: 600; }

.step-dot.done { background: var(--success); }

.progress-bar-track {
  height: 4px;
  background: #e5e5e5;
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 100px;
  transition: width 0.6s ease;
  width: 0%;
}

/* ── Results Section ────────────────────────────────────────────────────────── */
.results-section {
  padding: 48px 0 80px;
  background: transparent;
}

.results-header {
  text-align: center;
  margin-bottom: 40px;
}

.results-badge {
  display: inline-block;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 14px;
}

.results-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.results-tagline {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 1052px;
  margin: 0 auto 12px;
  line-height: 1.7;
}

.results-url {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 14px;
}

.tagline-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tagline-link:hover { color: var(--primary-dark); }

.results-summary {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Result Blocks */
.result-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease both;
  box-shadow: var(--shadow-card);
}

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

.result-block:nth-child(1) { animation-delay: 0.05s; }
.result-block:nth-child(2) { animation-delay: 0.1s; }
.result-block:nth-child(3) { animation-delay: 0.15s; }
.result-block:nth-child(4) { animation-delay: 0.2s; }

.result-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  cursor: pointer;
  user-select: none;
}

.result-block-chevron {
  margin-left: auto;
  font-size: 24px;
  color: var(--text-primary);
  transition: transform 0.25s ease;
  line-height: 1;
  flex-shrink: 0;
  font-weight: 700;
}

.result-block.collapsed .result-block-chevron {
  transform: rotate(-90deg);
}

.result-block-body {
  overflow: hidden;
  max-height: 6000px;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 1;
}

.result-block.collapsed .result-block-body {
  max-height: 0;
  opacity: 0;
}

.result-block.collapsed .result-block-header {
  margin-bottom: 0;
}

.result-block-icon { font-size: 20px; }

.result-block-header h3 {
  font-size: 18px;
  font-weight: 700;
  flex: 1;
  color: var(--text);
}

.result-count {
  background: rgba(0,79,190,0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

/* Brand Summary */
.brand-summary {
  padding: 4px 0;
}

.brand-niche-identity {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 14px;
}

.brand-content-message {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 20px;
}

.brand-fingerprint {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
}

.brand-fingerprint-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.tag-fingerprint {
  background: rgba(0,79,190,0.08);
  border-color: rgba(0,79,190,0.2);
  font-size: 12px;
  padding: 4px 10px;
}

.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.tag {
  background: rgba(0,79,190,0.07);
  border: 1px solid rgba(0,79,190,0.15);
  color: var(--primary);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
}

/* Competitors Grid */
.competitors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.competitor-card {
  background: #f7f7f7;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: border-color 0.2s;
}

.competitor-card:hover { border-color: rgba(0,79,190,0.35); }

.competitor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.competitor-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.competitor-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.competitor-traffic-row {
  margin-top: 6px;
}

.competitor-traffic {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(2,132,199,0.1);
  color: var(--accent);
}

.medium-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: capitalize;
}

.medium-podcaster { background: rgba(168,85,247,0.1); color: #7c3aed; }
.medium-youtuber  { background: rgba(239,68,68,0.1);  color: #dc2626; }
.medium-blogger   { background: rgba(16,185,129,0.1); color: #059669; }

.competitor-url {
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competitor-url:hover { text-decoration: underline; }
.competitor-url-secondary { color: var(--text-muted); font-size: 11px; }

.competitor-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
}

.competitor-strengths {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.strength-tag {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.18);
  color: var(--success);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
}

/* Content Gaps */
.gaps-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.filter-btn:hover { border-color: var(--primary); color: var(--primary); }

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.gaps-list { display: flex; flex-direction: column; gap: 12px; }

.gap-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  background: var(--bg-card);
  transition: border-color 0.2s, transform 0.15s;
}

.gap-card:hover { border-color: rgba(0,79,190,0.3); transform: translateX(2px); }

.gap-card.priority-high { border-left: 3px solid var(--success); background: rgba(16,185,129,0.04); }
.gap-card.priority-medium { border-left: 3px solid var(--warning); background: rgba(245,158,11,0.04); }
.gap-card.priority-low { border-left: 3px solid var(--danger); background: rgba(239,68,68,0.04); }

.gap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.gap-topic {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.gap-meta { display: flex; gap: 8px; align-items: center; }

.priority-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.priority-badge.priority-high { background: rgba(16,185,129,0.1); color: var(--success); }
.priority-badge.priority-medium { background: rgba(245,158,11,0.1); color: var(--warning); }
.priority-badge.priority-low { background: rgba(239,68,68,0.1); color: var(--danger); }

.format-badge {
  background: rgba(0,79,190,0.07);
  color: var(--primary);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}

.gap-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.gap-impact {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.gap-impact strong { color: var(--accent); }

.gap-keywords {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}
.gap-keywords strong { color: var(--text-muted); }

.gap-keywords-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.gap-keywords-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.gap-keywords-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.gap-keyword-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
}

.gap-doable {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}
.gap-doable strong { color: var(--text-muted); }

.gap-titles { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.gap-titles-label { font-size: 14px; font-weight: 600; color: var(--text-muted); line-height: 1.6; margin-bottom: 2px; }

.gap-title-item {
  font-size: 13px;
  color: var(--text-muted);
  padding: 5px 10px;
  background: #f7f7f7;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.gap-title-item::before { content: "📝 "; }

/* Quick Wins */
.quick-wins-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-win-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(16,185,129,0.04);
  border: 1px solid rgba(16,185,129,0.14);
  border-radius: var(--radius-sm);
}

.quick-win-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.quick-win-text { font-size: 14px; color: var(--text); line-height: 1.55; }

/* ── PromoCast Taglines ──────────────────────────────────────────────────── */
.promocast-intro {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.promocast-taglines-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.promocast-tagline-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: #fff;
  border: 1.5px solid var(--primary-light);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.3;
  cursor: default;
  transition: background 0.15s, color 0.15s;
}

.promocast-tagline-chip:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Phone Gate Modal ────────────────────────────────────────────────────── */
.phone-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.phone-gate-overlay.hidden { display: none; }

.phone-gate-modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 36px 32px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  text-align: center;
}

.phone-gate-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 8px;
}

.phone-gate-icon { font-size: 36px; margin-bottom: 12px; }

.phone-gate-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.phone-gate-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.phone-gate-form { display: flex; flex-direction: column; gap: 10px; }

.phone-gate-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.phone-gate-input:focus { border-color: var(--primary); }

.phone-gate-error {
  font-size: 13px;
  color: var(--danger);
  text-align: left;
}

.phone-gate-submit { width: 100%; padding: 13px; font-size: 15px; text-align: center; justify-content: center; }

.phone-gate-disclaimer {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 14px;
}

/* ── Locked / blurred gap cards ──────────────────────────────────────────── */
.gap-card.locked,
.blue-ocean-card.locked {
  position: relative;
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  opacity: 0.6;
}

.locked-section {
  position: relative;
}

.locked-cards {
  position: relative;
}

.locked-cards::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg) 85%);
  pointer-events: none;
  z-index: 1;
}

.gaps-locked-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 24px;
  text-align: center;
  position: sticky;
  top: 16px;
  z-index: 10;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.gaps-locked-cta p {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

/* ── Email Success Banner ─────────────────────────────────────────────────── */
.email-success-banner {
  margin: 24px 0;
}

.email-success-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #f0f7ff;
  border: 1.5px solid var(--primary);
  border-radius: 12px;
}

.email-success-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.email-success-inner > div > strong {
  color: var(--primary);
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
}

#email-success-address {
  display: inline;
  font-size: inherit;
  color: var(--primary);
}

.email-success-inner p {
  margin: 0;
  color: #374151;
  font-size: 14px;
}

/* Results CTA */
.results-cta {
  background: rgba(0,79,190,0.04);
  border: 1px solid rgba(0,79,190,0.14);
  border-radius: var(--radius);
  padding: 44px 40px 40px;
  text-align: center;
  margin-top: 32px;
}

.results-cta h3 { font-size: clamp(18px, 3vw, 22px); font-weight: 800; margin-bottom: 10px; color: var(--text); letter-spacing: -0.3px; }
.results-cta p.cta-intro { font-size: 14px; color: var(--text-muted); max-width: 780px; margin: 0 auto 20px; line-height: 1.7; }
.results-cta .cta-tagline { font-size: 14px; color: var(--text-muted); max-width: 780px; margin: 0 auto 24px; line-height: 1.6; }
.results-cta .cta-tagline strong { color: var(--text); }

.cta-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 860px; margin: 0 auto 22px; text-align: left; }
.cta-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.cta-card-icon { font-size: 22px; line-height: 1; }
.cta-card h4 { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4; margin: 0; }
.cta-card p { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin: 0; }
.cta-card p strong { color: var(--text); }

.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-restart-wrapper { text-align: center; margin-top: 16px; }

/* Error Banner */
.error-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  color: var(--danger);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  z-index: 2000;
  max-width: 90vw;
  box-shadow: var(--shadow);
}

.error-banner button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  background: transparent;
}

/* ── Competitor Selection Screen ────────────────────────────────────────────── */
.competitor-selection-section {
  padding: 20px 0 64px;
  background: transparent;
}

.selection-header {
  text-align: center;
  margin-bottom: 32px;
}

.selection-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.selection-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
}

.selection-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.selection-summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(0, 79, 190, 0.08);
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
}

.competitor-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.competitor-select-item {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
  user-select: none;
}

.competitor-select-item.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 79, 190, 0.12);
}

.competitor-select-item:hover:not(.selected) {
  border-color: var(--border-light);
  opacity: 1;
}

.select-checkbox {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--bg);
  transition: background 0.15s, border-color 0.15s;
}

.select-checkbox.checked {
  background: var(--primary);
  border-color: var(--primary);
}

.competitor-select-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.competitor-select-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.competitor-host {
  font-weight: 700;
  color: var(--text-muted);
}

.add-competitor-area {
  margin-bottom: 24px;
}

.btn-add-competitor {
  background: none;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  display: block;
  width: 100%;
  text-align: center;
}

.btn-add-competitor:hover {
  border-color: var(--primary);
  background: rgba(0,79,190,0.04);
}

.add-competitor-form {
  margin-top: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.add-competitor-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.add-competitor-fields input,
.add-competitor-fields select {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.add-competitor-fields input:focus,
.add-competitor-fields select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,79,190,0.08);
}

.add-competitor-fields input::placeholder { color: var(--text-dim); }

.add-competitor-fields .btn-primary {
  padding: 9px 20px;
  font-size: 13px;
  white-space: nowrap;
}

.add-competitor-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 8px;
  margin-bottom: 0;
}

.selection-footer {
  text-align: center;
}

.selection-footer .btn-primary {
  padding: 14px 36px;
  font-size: 16px;
}

/* ── Unique Strengths ────────────────────────────────────────────────────────── */
.strengths-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.strength-card {
  background: rgba(16,185,129,0.04);
  border: 1px solid rgba(16,185,129,0.18);
  border-left: 3px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.strength-angle {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.strength-double-down {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.strength-ideas {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}

.strength-ideas-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2px;
}

.strength-idea-item {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* ── Blue Ocean Opportunities ────────────────────────────────────────────────── */
.blue-ocean-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blue-ocean-card {
  background: rgba(2,132,199,0.04);
  border: 1px solid rgba(2,132,199,0.18);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.blue-ocean-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.blue-ocean-why {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.blue-ocean-fma {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.blue-ocean-fma strong { color: var(--text-muted); }

.blue-ocean-section-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2px;
  margin-top: 10px;
}

.blue-ocean-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 8px;
}

.blue-ocean-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blue-ocean-item {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.blue-ocean-keyword {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
}

/* ── 4-Week Content Calendar ─────────────────────────────────────────────────── */
.four-week-plan {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.week-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.week-header {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.week-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  white-space: nowrap;
}

.week-theme {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.week-pieces {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-piece {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 10px 12px;
  border-left: 3px solid var(--primary);
}

.content-piece-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.content-format-badge {
  background: rgba(0, 79, 190, 0.1);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
}

.content-piece-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.content-piece-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-gap-ref {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .page-wrapper { padding: 24px 16px 48px; }
  .hero-card, .form-card, .how-it-works { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .result-block { padding: 20px 16px; }
  .results-cta { padding: 28px 16px; }
  .loading-card { padding: 32px 20px; }
  .brand-grid, .competitors-grid { grid-template-columns: 1fr; }
  .competitor-select-grid { grid-template-columns: 1fr; }
  .four-week-plan { grid-template-columns: 1fr; }
}
