:root {
  --bg-main: #030712;
  --bg-alt: #070c18;
  --card-bg: #0c1222;
  --card-border: rgba(255, 255, 255, 0.08);
  --accent-gold: #f5b544;
  --accent-gold-soft: rgba(245, 181, 68, 0.2);
  --accent-red: #ff4b6b;
  --text-main: #f9fafb;
  --text-soft: #9ca3af;
  --pill-free: #10b981;
  --shadow-soft: 0 22px 45px rgba(0, 0, 0, 0.6);
  --radius-lg: 18px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* Header */

.fda-header {
  padding: 20px 18px 24px;
  background: linear-gradient(135deg, #020617, #020617 40%, #111827 100%);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  margin-bottom: 28px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: radial-gradient(circle at 20% 0, #facc15, #f97316 60%, #111827);
  color: #020617;
}

.brand-text h1 {
  font-size: 1.25rem;
  margin: 0 0 4px;
}

.brand-text p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.designer-line {
  margin-top: 4px;
  color: #e5e7eb;
  font-weight: 500;
}

.header-note,
.dojo-note {
  margin: 10px 2px 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.dojo-note {
  margin-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding-top: 8px;
  font-size: 0.85rem;
}

/* Buttons */

button,
a.btn-primary,
a.btn-outline,
.btn-ghost {
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    border-color 0.12s ease, color 0.12s ease;
}

.btn-primary,
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, var(--accent-gold));
  color: #111827;
  box-shadow: 0 14px 28px rgba(248, 181, 56, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 36px rgba(248, 181, 56, 0.6);
}

.btn-outline {
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--text-main);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  background: rgba(15, 23, 42, 0.8);
  transform: translateY(-1px);
}

.btn-ghost {
  margin-top: 10px;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text-soft);
  font-size: 0.85rem;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
  color: var(--accent-gold);
}

/* TTS status */

.tts-status {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Tier grid */

.tier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.tier-card {
  background: radial-gradient(circle at top left, #111827, #020617 70%);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}

.tier-free {
  border-style: dashed;
  border-color: rgba(52, 211, 153, 0.6);
}

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

.tier-header h2 {
  margin: 0;
  font-size: 1rem;
}

.tier-subtitle {
  margin: 2px 0 10px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.tier-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.tier-list li {
  margin-bottom: 4px;
  position: relative;
  padding-left: 18px;
}

.tier-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent-gold);
}

.tier-deliverable {
  margin: 4px 0 10px;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.tier-note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Pills */

.pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
}

.pill-free {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.9);
  color: #6ee7b7;
}

.pill-paid {
  background: var(--accent-gold-soft);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}

/* Coach card */

.coach-card {
  margin-top: 26px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(248, 181, 56, 0.4);
  background: radial-gradient(circle at top left, #1f2937, #020617);
  box-shadow: var(--shadow-soft);
}

.coach-card h2 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1rem;
}

.coach-card p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.coach-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.coach-columns h3 {
  margin: 0 0 4px;
  font-size: 0.9rem;
}

.coach-columns ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.coach-columns li {
  margin-bottom: 3px;
}

/* Footer */

.fda-footer {
  margin-top: 28px;
  font-size: 0.78rem;
  color: var(--text-soft);
  text-align: center;
  opacity: 0.9;
}

/* Responsive */

@media (min-width: 768px) {
  .page {
    padding: 30px 24px 48px;
  }

  .brand-text h1 {
    font-size: 1.5rem;
  }

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

  .coach-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
