/**
 * Components — buttons, nav, theme toggle, waveform, feature rows,
 * steps, editions, footer
 */

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  line-height: var(--lh-normal);
  cursor: pointer;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}

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

.btn--large {
  padding: 0.85rem 2rem;
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

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

.btn--disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ==========================================================================
   NAV LINKS
   ========================================================================== */

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.6rem;
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-text);
}

/* ==========================================================================
   THEME TOGGLE
   ========================================================================== */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-accent-light);
}

/* Logo icon */
.logo-icon { display: block; }

/* Show sun in dark mode, moon in light mode */
[data-theme="light"] .icon-sun,
:root:not([data-theme]) .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: block;
}

/* ==========================================================================
   WAVEFORM (hero decoration)
   ========================================================================== */

.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 120px;
}

.waveform__bar {
  width: 3px;
  border-radius: 2px;
  background: var(--color-accent);
  opacity: 0.5;
  animation: waveform-bar 1.6s ease-in-out infinite;
}

.waveform__bar:nth-child(1)  { height: 20%; animation-delay: 0s; }
.waveform__bar:nth-child(2)  { height: 35%; animation-delay: 0.1s; }
.waveform__bar:nth-child(3)  { height: 55%; animation-delay: 0.2s; }
.waveform__bar:nth-child(4)  { height: 80%; animation-delay: 0.3s; }
.waveform__bar:nth-child(5)  { height: 100%; animation-delay: 0.4s; }
.waveform__bar:nth-child(6)  { height: 85%; animation-delay: 0.5s; }
.waveform__bar:nth-child(7)  { height: 65%; animation-delay: 0.6s; }
.waveform__bar:nth-child(8)  { height: 90%; animation-delay: 0.7s; }
.waveform__bar:nth-child(9)  { height: 70%; animation-delay: 0.8s; }
.waveform__bar:nth-child(10) { height: 100%; animation-delay: 0.9s; }
.waveform__bar:nth-child(11) { height: 80%; animation-delay: 1.0s; }
.waveform__bar:nth-child(12) { height: 55%; animation-delay: 1.1s; }
.waveform__bar:nth-child(13) { height: 75%; animation-delay: 1.2s; }
.waveform__bar:nth-child(14) { height: 40%; animation-delay: 1.3s; }
.waveform__bar:nth-child(15) { height: 25%; animation-delay: 1.4s; }
.waveform__bar:nth-child(16) { height: 15%; animation-delay: 1.5s; }

@keyframes waveform-bar {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* ==========================================================================
   FEATURE ROW — editorial numbered rows
   ========================================================================== */

.feature-row {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: baseline;
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row__number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-accent);
  line-height: 1;
  flex-shrink: 0;
  min-width: 3rem;
}

.feature-row__content {
  flex: 1;
}

.feature-row__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-normal);
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: var(--lh-snug);
}

.feature-row__desc {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 600px;
}

/* ==========================================================================
   STEPS (how it works)
   ========================================================================== */

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.step__marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
  flex-shrink: 0;
}

.step__body {
  flex: 1;
  padding-top: 0.4rem;
}

.step__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-normal);
  margin-bottom: var(--space-1);
  line-height: var(--lh-snug);
}

.step__desc {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}

/* ==========================================================================
   EDITIONS (pricing cards)
   ========================================================================== */

.editions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  max-width: 760px;
  margin: 0 auto var(--space-5);
}

.edition {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  position: relative;
}

.edition--featured {
  border-color: var(--color-accent);
}

.edition__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.edition__badge--soon {
  background: var(--color-text-secondary);
}

.edition__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  line-height: var(--lh-snug);
}

.edition__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.edition__list li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-normal);
  padding-left: 1.2rem;
  position: relative;
}

.edition__list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: var(--fw-bold);
  font-size: var(--text-lg);
  line-height: 1.3;
}

.edition__footnote {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
  padding: var(--space-2);
  background: var(--color-bg);
  border-radius: var(--radius-sm);
}

.edition__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: auto;
}

.edition__cta {
  width: 100%;
  text-align: center;
}

.edition__seats {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: var(--fw-semibold);
  text-align: center;
  margin-top: var(--space-2);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-normal);
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  line-height: var(--lh-snug);
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: '+';
  font-family: var(--font-body);
  font-size: var(--text-xl);
  color: var(--color-accent);
  flex-shrink: 0;
  margin-left: var(--space-3);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-item__question::after {
  content: '−';
}

.faq-item__answer {
  padding: 0 0 var(--space-4) 0;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 600px;
}
