/* ── Емоції АІ landing — світла тема, м'які градієнти ──────── */

:root {
  --brand-1: #818cf8;
  --brand-2: #6366f1;
  --brand-3: #4f46e5;
  --brand-gradient: linear-gradient(135deg, var(--brand-1), var(--brand-2) 50%, var(--brand-3));
  --bg-soft: #f6f8fb;
  --bg-purple: #f5f3ff;
}

* { -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: white;
  color: #1f2937;
}

.brand-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-brand {
  background: var(--brand-gradient);
  border: none;
  color: white;
  font-weight: 500;
  transition: transform 0.1s, opacity 0.1s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}
.btn-brand:hover { color: white; opacity: 0.94; transform: translateY(-1px); }
.btn-brand:active { transform: translateY(0); }
.btn-brand:disabled { background: #cbd5e1; box-shadow: none; opacity: 1; }

/* ── Top navbar ─────────────────────────────────────────── */
.navbar-top {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #f1f5f9;
}
.navbar-brand { font-size: 1.4rem; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--bg-purple) 0%, white 100%);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero h1 { letter-spacing: -0.02em; }
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ede9fe;
  color: #4f46e5;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}
.hero-art {
  position: relative;
  height: 360px;
}
.hero-disc {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--brand-gradient);
  box-shadow: 0 25px 60px -10px rgba(99, 102, 241, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 12s linear infinite;
}
.hero-disc span {
  font-size: 100px;
  color: rgba(255, 255, 255, 0.95);
  transform: rotate(0);
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-emoji {
  position: absolute;
  font-size: 2.2rem;
  animation: float 3s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}

/* ── Sections ──────────────────────────────────────────── */
.section-light {
  background: var(--bg-soft);
  padding: 4rem 0;
}
.section-wizard {
  padding: 4rem 0;
  background: linear-gradient(180deg, white 0%, var(--bg-purple) 100%);
}

/* ── How cards ─────────────────────────────────────────── */
.how-card {
  background: white;
  border-radius: 14px;
  padding: 1.75rem;
  height: 100%;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s, box-shadow 0.15s;
}
.how-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.12);
}
.how-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* ── Wizard ────────────────────────────────────────────── */
.wizard-shell {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.08);
  border: 1px solid #f1f5f9;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 575.98px) {
  .wizard-shell { padding: 1.25rem; border-radius: 14px; }
}
.opt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (max-width: 575.98px) {
  .opt-grid { grid-template-columns: 1fr; }
}
.opt-btn {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  font-size: 0.95rem;
  color: #1f2937;
  transition: all 0.12s;
  cursor: pointer;
}
.opt-btn:hover {
  border-color: var(--brand-2);
  background: #faf5ff;
  transform: translateY(-1px);
}
.opt-btn.active {
  background: var(--brand-gradient);
  color: white;
  border-color: var(--brand-3);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ── Chips summary on story step ──────────────────────── */
.chip {
  background: #f1f5f9;
  color: #475569;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.chip strong { color: #1e293b; }
.story-hints {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.story-hints li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.story-hints li:last-child { border-bottom: none; }

/* ── Tariff cards ─────────────────────────────────────── */
.tariff-card {
  background: white;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  height: 100%;
  border: 1.5px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.tariff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.15);
}
.tariff-card.tariff-popular {
  border-color: var(--brand-2);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.18);
  position: relative;
}
.tariff-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
  align-self: center;
}
.tariff-badge-popular {
  background: var(--brand-gradient);
  color: white;
}
.tariff-price {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}
.tariff-songs {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.tariff-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
}
.tariff-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.92rem;
  color: #374151;
}
.tariff-list li::before {
  content: "✓ ";
  color: #16a34a;
  font-weight: 700;
  margin-right: 4px;
}
.tariff-list li:last-child { border-bottom: none; }

/* ── Result audio cards ───────────────────────────────── */
.track-card {
  background: linear-gradient(135deg, #faf5ff, #eef2ff);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
@media (max-width: 575.98px) {
  .track-card { flex-direction: column; align-items: stretch; }
}
.track-cover {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  flex-shrink: 0;
  object-fit: cover;
}
.track-info { flex: 1; min-width: 0; }
.track-title { font-weight: 600; margin-bottom: 8px; }
.track-card audio { width: 100%; }

/* ── Footer ───────────────────────────────────────────── */
.footer {
  background: #f8fafc;
  padding: 2rem 0;
  border-top: 1px solid #f1f5f9;
}
.footer a:hover { color: var(--brand-2) !important; }

/* ── Accordion ─────────────────────────────────────────── */
.accordion-button:not(.collapsed) {
  background: #ede9fe;
  color: var(--brand-3);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: var(--brand-2); }
