/**
 * Melofy Components
 */

/* ==========================================================================
   Buttons & Interactive Controls
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease-spring),
              background var(--dur-fast),
              color var(--dur-fast),
              border-color var(--dur-fast),
              box-shadow var(--dur-fast);
  will-change: transform;
}

.btn--solid {
  background: var(--primary);
  color: var(--background);
}
.btn--solid:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(39, 51, 34, 0.25);
}

.btn--light {
  background: var(--background);
  color: var(--primary);
}
.btn--light:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(23, 24, 22, 0.12);
}

.btn--ghost {
  border-color: currentColor;
  color: inherit;
}
.btn--ghost:hover {
  background: rgba(63, 78, 54, 0.08);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--accent);
  color: #ffffff;
}
.btn--accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn--lg {
  min-height: 58px;
  padding: 1rem 2.2rem;
  font-size: var(--step-0);
}

/* ==========================================================================
   Hero Layered Cutouts & 3D Multi-Device Stage
   ========================================================================== */
.hero-stage {
  position: relative;
  min-height: calc(100vh - var(--bar) - var(--rail));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--background);
  padding: clamp(40px, 6vw, 80px) var(--gutter);
}

/* Background Grooves */
.hero-grooves {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
}

.hero-grooves-disk {
  width: min(130vmin, 1080px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--accent) 0 8%, var(--primary) 8.5% 10%, transparent 10.5%),
    repeating-radial-gradient(circle, transparent 0 8px, rgba(63, 78, 54, 0.14) 8px 9.5px);
  animation: vinylSpin 50s linear infinite;
  opacity: 0.85;
}

@keyframes vinylSpin {
  to { transform: rotate(360deg); }
}

/* Big Wordmark Behind Subject */
.hero-wordmark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 2;
}

.hero-wordmark span {
  font-family: var(--f-display);
  font-size: clamp(6.5rem, 28vw, 28rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  color: var(--secondary);
  opacity: 0.55;
  white-space: nowrap;
  user-select: none;
}

/* Hero Content Grid */
.hero-grid {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--max-w);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--gutter);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(3.4rem, 8.4vw, 8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1.4rem;
}

@media (max-width: 860px) {
  .hero-copy h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
  text-decoration-color: var(--accent);
}

.hero-copy .sub {
  font-size: var(--step-1);
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 3D Multi-Device Deck */
.device-deck {
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
  width: 100%;
  max-width: 440px;
  height: 520px;
  margin: 0 auto;
}

.device-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  aspect-ratio: 9/18;
  border-radius: 40px;
  background: var(--text);
  padding: 11px;
  box-shadow: 0 25px 50px -12px rgba(23, 24, 22, 0.45),
              0 0 0 1px rgba(242, 244, 241, 0.12) inset;
  transition: transform 0.45s var(--ease);
  will-change: transform;
}

.device-card .device-inner {
  height: 100%;
  border-radius: 30px;
  background: var(--primary);
  color: var(--background);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

/* Screen 1: Primary Now Playing (Center front) */
.device-card--front {
  z-index: 3;
  left: 50%;
  transform: translateX(-50%) translateZ(40px);
}

/* Screen 2: Left Moods Depth */
.device-card--left {
  z-index: 2;
  left: 10%;
  transform: translateX(-40%) translateZ(-40px) rotateY(16deg) rotateZ(-3deg);
  opacity: 0.88;
}

/* Screen 3: Right Offline Depth */
.device-card--right {
  z-index: 1;
  left: 70%;
  transform: translateX(-40%) translateZ(-80px) rotateY(-18deg) rotateZ(4deg);
  opacity: 0.8;
}

.device-deck:hover .device-card--left {
  transform: translateX(-70%) translateZ(0px) rotateY(10deg);
  opacity: 1;
}

.device-deck:hover .device-card--right {
  transform: translateX(-15%) translateZ(0px) rotateY(-10deg);
  opacity: 1;
}

/* Turntable Platter Scratch Interactive Center */
.turntable-card {
  aspect-ratio: 1;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 35% 30%, var(--secondary), var(--accent) 55%, var(--primary-dark));
  cursor: grab;
  user-select: none;
}
.turntable-card:active {
  cursor: grabbing;
}

.turntable-vinyl {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #171816 0 3px, #242822 4px 6px);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  animation: vinylSpin 14s linear infinite;
  transform-origin: center;
}

.turntable-card.scratching .turntable-vinyl {
  animation-play-state: paused;
}

.turntable-center {
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--background);
  box-shadow: 0 0 0 6px rgba(242, 244, 241, 0.25);
  display: grid;
  place-items: center;
}

.turntable-center i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
}

/* Foreground Leaves Plane (Parallax Cutout) */
.hero-leaves-fg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.hero-leaves-fg img {
  position: absolute;
  width: clamp(280px, 38vw, 680px);
  filter: drop-shadow(16px 24px 0 rgba(23, 24, 22, 0.12));
}

.hero-leaves-fg .leaf-bottom {
  bottom: -40px;
  left: -50px;
}

.hero-leaves-fg .leaf-top {
  top: -60px;
  right: -60px;
  transform: rotate(180deg);
}

/* ==========================================================================
   Moods Interactive Section
   ========================================================================== */
.mood-picker-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mood-btn {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--step-4);
  letter-spacing: -0.04em;
  color: rgba(242, 244, 241, 0.45);
  padding: 0.1em 0;
  transition: color var(--dur-fast), transform var(--dur-fast) var(--ease);
}

.mood-btn:hover,
.mood-btn[aria-pressed="true"] {
  color: var(--background);
  transform: translateX(16px);
}

.mood-btn[aria-pressed="true"]::after {
  content: " ♪";
  color: var(--secondary);
}

.mood-display-card {
  background: var(--secondary);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 44px);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 36px rgba(23, 24, 22, 0.18);
  transition: background 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.mood-display-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  pointer-events: none;
}

/* ==========================================================================
   Queue Dynamic List & Dial
   ========================================================================== */
.dial-control {
  margin: 1.8rem 0;
}

.dial-control label {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 36px;
  background: transparent;
  cursor: pointer;
}

.range-slider::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--background);
  box-shadow: 0 0 0 2px var(--primary);
  margin-top: -11px;
  transition: transform 0.15s var(--ease-spring);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.queue-stack {
  position: relative;
  height: calc(4 * 88px);
  list-style: none;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 12px;
  overflow: hidden;
}

.queue-item {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 76px;
  background: var(--background);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  box-shadow: 0 4px 12px rgba(23, 24, 22, 0.06);
  transition: transform 0.5s var(--ease), opacity 0.35s;
}

.queue-item-art {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

/* ==========================================================================
   Lyrics Word-Level Sync & Karaoke
   ========================================================================== */
.lyrics-stage {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.lyric-line {
  font-family: var(--f-display);
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: rgba(23, 24, 22, 0.35);
  transition: color 0.35s, transform 0.4s var(--ease);
  cursor: pointer;
}

.lyric-line.is-active {
  color: var(--background);
  transform: translateX(14px);
}

.lyric-line span.word {
  display: inline-block;
  transition: color 0.2s, transform 0.2s;
}

.lyric-line span.word.singing {
  color: #ffffff;
  transform: scale(1.05);
}

/* ==========================================================================
   Blend Waveform Crossfader
   ========================================================================== */
.blend-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 12px 32px rgba(23, 24, 22, 0.08);
}

.blend-box svg {
  width: 100%;
  height: 220px;
  display: block;
}

/* ==========================================================================
   Full Peak Spectrum Visualizer (Canvas)
   ========================================================================== */
.spectrum-canvas {
  width: 100%;
  height: clamp(320px, 48vh, 520px);
  display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: transparent;
}

/* ==========================================================================
   Pricing Cards & Comparison Grid
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  margin-top: 3rem;
}

.pricing-grid--4col {
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(23, 24, 22, 0.12);
}

.pricing-card--popular {
  background: var(--primary);
  color: var(--background);
  border-color: var(--secondary);
}

.pricing-card--popular p,
.pricing-card--popular .kicker {
  color: var(--secondary);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.price-val {
  font-family: var(--f-display);
  font-size: var(--step-4);
  font-weight: 800;
  margin: 1.2rem 0 0.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.price-placeholder-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(23, 24, 22, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  vertical-align: middle;
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--step--1);
}

.pricing-features svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur-fast);
}

.faq-btn {
  width: 100%;
  text-align: left;
  padding: 1.4rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-display);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--text);
}

.faq-btn svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s var(--ease);
}

.faq-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 1.8rem 1.6rem;
  display: none;
}

.faq-item.is-open .faq-content {
  display: block;
}

/* ==========================================================================
   Pre-Install Waitlist Section & Form Components
   ========================================================================== */
.waitlist-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(70px, 10vw, 120px) var(--gutter);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .waitlist-section {
  background: #1c201a;
  border-color: rgba(242, 244, 241, 0.12);
}

.waitlist-box {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-box h2 {
  font-size: var(--step-4);
  line-height: 1.05;
  margin-bottom: 1rem;
  color: var(--text);
}

.waitlist-box .waitlist-desc {
  font-size: var(--step-0);
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 auto 2.2rem;
  line-height: 1.6;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.waitlist-input {
  flex: 1 1 280px;
  min-height: 52px;
  padding: 0 1.25rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--background);
  color: var(--text);
  font-family: var(--f-text);
  font-size: var(--step-0);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.waitlist-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(95, 136, 73, 0.25);
}

[data-theme="dark"] .waitlist-input {
  background: #252b22;
  border-color: rgba(242, 244, 241, 0.25);
  color: #f2f4f1;
}

.waitlist-btn {
  flex-shrink: 0;
  min-height: 52px;
  padding: 0 1.8rem;
  font-size: var(--step--1);
}

.waitlist-note {
  display: block;
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-top: 0.9rem;
  font-weight: 500;
}

.waitlist-consent {
  display: block;
  font-size: var(--step--2);
  color: var(--ink-faint);
  margin-top: 0.6rem;
  max-width: 46ch;
  margin-inline: auto;
  line-height: 1.5;
}

.waitlist-status-msg {
  display: none;
  margin-top: 1.2rem;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--step--1);
  text-align: center;
  animation: fadeIn 0.3s ease-out;
}

.waitlist-status-msg.is-error {
  background: rgba(180, 50, 50, 0.12);
  color: #8c2828;
  border: 1px solid rgba(180, 50, 50, 0.25);
}

[data-theme="dark"] .waitlist-status-msg.is-error {
  background: rgba(220, 80, 80, 0.18);
  color: #f09595;
}

.waitlist-status-msg.is-info {
  background: rgba(63, 78, 54, 0.14);
  color: var(--primary);
  border: 1px solid var(--secondary);
}

[data-theme="dark"] .waitlist-status-msg.is-info {
  background: rgba(173, 197, 160, 0.16);
  color: var(--secondary-light);
}

.waitlist-success-card {
  padding: clamp(28px, 4vw, 42px);
  background: var(--background);
  border: 2px solid var(--secondary);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(23, 24, 22, 0.08);
  animation: slideUp 0.35s var(--ease);
}

[data-theme="dark"] .waitlist-success-card {
  background: #252b22;
  border-color: var(--accent);
}

.waitlist-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: 0 auto 1.2rem;
}

.waitlist-success-title {
  font-size: var(--step-3);
  margin-bottom: 0.6rem;
  color: var(--text);
}

.waitlist-success-desc {
  font-size: var(--step-0);
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 auto 1.2rem;
}

.waitlist-success-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--surface);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--step--1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Close Section */
.close-section {
  background: var(--secondary);
  color: var(--text);
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}

[data-theme="dark"] .close-section {
  background: #242c20;
  color: #f2f4f1;
}

[data-theme="dark"] .close-section h2 {
  color: #f2f4f1;
}

[data-theme="dark"] .close-section .btn--ghost {
  border-color: #f2f4f1;
  color: #f2f4f1;
}
[data-theme="dark"] .close-section .btn--ghost:hover {
  background: rgba(242, 244, 241, 0.15);
}

/* Foreground Iconic Leaves (Original Curved Leaf Blades with clear crisp details) */
.fg-leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.fg-leaves svg {
  position: absolute;
  filter: drop-shadow(14px 22px 18px rgba(23, 24, 22, 0.18));
  transition: transform 0.2s linear;
}

.fg-leaves .leaf-1 {
  left: -5vw;
  bottom: -8vw;
  width: min(44vw, 580px);
  transform: rotate(6deg);
}

.fg-leaves .leaf-2 {
  right: -6vw;
  top: -4vw;
  width: min(38vw, 500px);
  transform: rotate(-166deg);
}

.fg-leaves .leaf-3 {
  right: 2vw;
  bottom: -9vw;
  width: min(28vw, 360px);
  transform: rotate(-24deg);
  opacity: 0.95;
}

@media (max-width: 860px) {
  .fg-leaves .leaf-1 { width: 52vw; left: -14vw; bottom: -8vw; opacity: 0.65; }
  .fg-leaves .leaf-2 { width: 44vw; right: -12vw; top: -4vw; opacity: 0.65; }
  .fg-leaves .leaf-3 { display: none; }
}

/* ==========================================================================
   Official Subscription Feature Comparison Table (Melofy Premium Plans)
   ========================================================================== */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(23, 24, 22, 0.05);
}

.pricing-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-family: var(--f-text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.pricing-table thead th {
  background: var(--primary);
  color: var(--background);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.pricing-table thead th.th-tier--pop {
  background: var(--accent);
  color: #ffffff;
}

.pricing-table .th-feature,
.pricing-table .td-feature {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 2;
  min-width: 240px;
  box-shadow: 2px 0 6px rgba(23, 24, 22, 0.04);
}

.pricing-table tbody tr:hover td {
  background: rgba(173, 197, 160, 0.08);
}

.pricing-table tbody tr:hover .td-feature {
  background: var(--surface);
}

.pricing-table .td-pop {
  background: rgba(95, 136, 73, 0.06);
  font-weight: 600;
}

.pricing-table .chk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.85rem;
}

.pricing-note-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.pricing-note-card strong {
  color: var(--text);
}

/* Dark mode overrides for table & notes */
[data-theme="dark"] .table-responsive-wrapper {
  background: #1e241c;
  border-color: rgba(242, 244, 241, 0.12);
}

[data-theme="dark"] .pricing-table th,
[data-theme="dark"] .pricing-table td {
  border-bottom-color: rgba(242, 244, 241, 0.08);
}

[data-theme="dark"] .pricing-table .th-feature,
[data-theme="dark"] .pricing-table .td-feature {
  background: #1e241c;
  color: #f2f4f1;
}

[data-theme="dark"] .pricing-table tbody tr:hover td {
  background: rgba(173, 197, 160, 0.1);
}

[data-theme="dark"] .pricing-table .td-pop {
  background: rgba(95, 136, 73, 0.15);
}

[data-theme="dark"] .pricing-note-card {
  background: #1e241c;
  border-color: rgba(242, 244, 241, 0.12);
  border-left-color: var(--accent);
  color: #b5c2ae;
}

[data-theme="dark"] .pricing-note-card strong {
  color: #f2f4f1;
}

/* ==========================================================================
   Mobile Deep Optimization (Screens <= 860px)
   ========================================================================== */
@media (max-width: 860px) {
  /* Hero Stage */
  .hero-stage {
    min-height: auto;
    padding: clamp(32px, 8vw, 60px) var(--gutter) 40px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    text-align: center;
  }
  
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-copy .kicker {
    margin-inline: auto;
  }
  
  .hero-copy h1 {
    font-size: clamp(2.4rem, 10.5vw, 3.8rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    word-break: break-word;
  }
  
  .hero-copy .sub {
    font-size: 1.05rem;
    margin: 0 auto 1.8rem;
    max-width: 36ch;
  }
  
  .hero-actions {
    justify-content: center;
    gap: 0.75rem;
  }
  
  .hero-wordmark span {
    font-size: clamp(4.5rem, 24vw, 12rem);
  }
  
  /* 3D Multi-Device Deck Centered and Contained */
  .device-deck {
    max-width: 320px;
    height: 480px;
    perspective: 800px;
    margin: 0 auto;
  }
  
  .device-card {
    width: 250px;
    border-radius: 36px;
    padding: 9px;
  }
  
  .device-card .device-inner {
    border-radius: 28px;
    padding: 16px 14px;
  }
  
  .device-card--front {
    left: 50%;
    transform: translateX(-50%) translateZ(25px);
  }
  
  .device-card--left {
    left: 50%;
    transform: translateX(-88%) translateZ(-30px) rotateY(12deg) scale(0.88);
    opacity: 0.55;
  }
  
  .device-card--right {
    left: 50%;
    transform: translateX(-12%) translateZ(-50px) rotateY(-14deg) scale(0.85);
    opacity: 0.5;
  }

  /* Pricing 4-Column to 2-Column on Tablet */
  .pricing-grid--4col {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Moods */
  .mood-btn {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }
  .mood-display-card {
    min-height: 300px;
    padding: 24px 20px;
  }
}

/* ==========================================================================
   Mobile Deep Optimization (Screens <= 640px)
   ========================================================================== */
@media (max-width: 640px) {
  /* Pricing Cards Stack to 1 Column */
  .pricing-grid,
  .pricing-grid--4col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .pricing-card {
    padding: 24px 20px;
  }
  
  /* Waitlist Form Stack to Vertical */
  .waitlist-box {
    padding: 32px 18px;
  }
  
  .waitlist-form {
    flex-direction: column;
    max-width: 100%;
    gap: 10px;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }
  
  .waitlist-input {
    width: 100%;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 0 16px;
    font-size: 1rem;
    box-sizing: border-box;
  }
  
  .waitlist-btn {
    width: 100%;
    height: 52px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    justify-content: center;
  }
  
  .waitlist-note,
  .waitlist-consent {
    text-align: center;
  }

  /* Lyrics and Visualizer Controls */
  .lyric-line {
    font-size: clamp(1.35rem, 6.5vw, 2rem);
  }
  
  .blend-box svg {
    height: 160px;
  }
  
  .spectrum-canvas {
    height: clamp(220px, 32vh, 320px);
  }

  /* Store Download Buttons */
  .store-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .btn--lg {
    padding: 14px 20px;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Disable Custom Cursor on Touch Devices */
@media (hover: none) and (pointer: coarse) {
  .cursor-dot,
  .cursor-ring,
  .custom-cursor {
    display: none !important;
  }
}

/* ==========================================================================
   Thank You / Confirmation Page Centering
   ========================================================================== */
.thank-you-stage {
  min-height: calc(100vh - var(--bar) - var(--rail) - 60px);
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(60px, 10vw, 120px) var(--gutter);
  width: 100%;
  margin-inline: auto !important;
}

.thank-you-card {
  max-width: 580px;
  width: 100%;
  margin-inline: auto !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* ==========================================================================
   Cookie Consent Banner (GA4 Opt-In)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: calc(var(--rail) + 18px);
  right: 20px;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--secondary);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: 0 16px 36px rgba(23, 24, 22, 0.25);
  z-index: 105;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideUp 0.3s var(--ease);
}

[data-theme="dark"] .cookie-banner {
  background: #20261e;
  border-color: var(--accent);
}

.cookie-banner p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cookie-banner-actions .btn {
  min-height: 36px;
  padding: 6px 16px;
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: calc(var(--rail) + 12px);
    max-width: 100%;
    padding: 14px 16px;
  }
}

/* ==========================================================================
   Smooth Ease-In & Ease-Out Scroll Animations (Snappy & Responsive)
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.scroll-reveal.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Exempt top-of-page lead sections from scroll-reveal to prevent any black fade */
.cut-lead,
.hero-stage,
#mainContent > section:first-of-type,
#mainContent > article:first-of-type,
.thank-you-stage {
  opacity: 1 !important;
  transform: none !important;
}

/* Staggered children ease-in-out */
.scroll-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: 
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--stagger-idx, 0) * 50ms);
}

.scroll-stagger.is-in-view > * {
  opacity: 1;
  transform: translateY(0);
}

/* Fluid ease-in-out transitions on cut sections */
.cut {
  transition: background-color 0.8s var(--ease-in-out), color 0.6s var(--ease-in-out);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

