/* ==========================================================================
   Sound of Text — DESIGN.md Specification with App Screenshot Green Palette
   Palette: App Signature Green/Teal (#176B63), Soft Mint (#e2f3f1),
   Near-Black Teal Ink (#0f1c1a), Cloud bands (#f5f9f8), and Precision Geometry.
   ========================================================================== */

:root {
  /* Brand Green Colors (Matched with App Screenshots & cover.jpg) */
  --colors-primary: #176B63;
  --colors-primary-bright: #1f8d83;
  --colors-primary-deep: #0f4943;
  --colors-primary-soft: #e2f3f1;
  --colors-on-primary: #ffffff;

  --colors-ink: #0f1c1a;
  --colors-ink-deep: #081615;
  --colors-ink-soft: #142a27;
  --colors-on-ink: #ffffff;

  --colors-canvas: #ffffff;
  --colors-paper: #ffffff;
  --colors-cloud: #f6faf9;
  --colors-fog: #e6efed;
  --colors-steel: #cbd8d6;
  --colors-graphite: #5c726f;
  --colors-charcoal: #314542;
  --colors-hairline: #e3ecea;
  --colors-hairline-strong: #c2d4d1;

  --colors-link: #176B63;
  --colors-link-pressed: #0f4943;
  --colors-bloom-coral: #ff5050;
  --colors-bloom-rose: #f9d4d2;
  --colors-bloom-deep: #b3262b;
  --colors-storm-deep: #176B63;

  /* Typography (Forma DJR Micro metrics mapped to Inter/Manrope) */
  --font-family: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Elevation & Shadows (Flat / Hairline / Soft Lift) */
  --shadow-flat: none;
  --shadow-hairline: 0 0 0 1px var(--colors-hairline);
  --shadow-soft-lift: 0 2px 8px rgba(15, 28, 26, 0.07);
  --shadow-modal: 0 8px 24px rgba(15, 28, 26, 0.12);

  /* Radius Scale (Two-tier philosophy: buttons 4px, cards 16px) */
  --rounded-none: 0px;
  --rounded-xs: 2px;
  --rounded-sm: 3px;
  --rounded-md: 4px;
  --rounded-lg: 8px;
  --rounded-xl: 16px;
  --rounded-pill: 9999px;

  /* Spacing */
  --spacing-xxs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 20px;
  --spacing-xl: 24px;
  --spacing-xxl: 32px;
  --spacing-section: 80px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-family);
  background-color: var(--colors-canvas);
  color: var(--colors-ink);
  line-height: 1.38;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.d-none { display: none !important; }
.mt-4 { margin-top: 1.5rem; }

/* Alternating Section Rhythm: White Canvas vs Cloud Band (#f6faf9) */
.cloud-band {
  background-color: var(--colors-cloud);
  border-top: 1px solid var(--colors-hairline);
  border-bottom: 1px solid var(--colors-hairline);
}

/* ==========================================================================
   Utility Strip (height 36px, bg ink #0f1c1a)
   ========================================================================== */

.utility-strip {
  background-color: var(--colors-ink);
  color: var(--colors-on-ink);
  height: 36px;
  font-size: 13px;
  font-weight: 400;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.utility-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c9d8d6;
}

.util-icon {
  width: 13px;
  height: 13px;
  vertical-align: middle;
}

.util-sep {
  color: #435b57;
}

.utility-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.util-link {
  color: #c9d8d6;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.util-link:hover {
  color: var(--colors-on-ink);
}

/* ==========================================================================
   Top Navigation (height 64px, bg canvas, 1px hairline)
   ========================================================================== */

.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--colors-canvas);
  border-bottom: 1px solid var(--colors-hairline);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--colors-ink);
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--colors-primary);
  border-radius: var(--rounded-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--colors-on-primary);
  overflow: hidden;
}

.brand-icon svg {
  width: 18px;
  height: 18px;
}

.brand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--rounded-md);
  display: block;
}

.drawer-brand-img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: var(--rounded-md);
  display: inline-block;
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.brand-badge {
  background: var(--colors-primary-soft);
  color: var(--colors-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--rounded-sm);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  text-decoration: none;
  color: var(--colors-ink);
  font-weight: 400;
  font-size: 15px;
  padding: 8px 12px;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--colors-primary);
}

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

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--colors-hairline);
  color: var(--colors-ink);
  width: 38px;
  height: 38px;
  border-radius: var(--rounded-md);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--colors-canvas);
  border-left: 1px solid var(--colors-hairline);
  z-index: 200;
  padding: 24px;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--colors-hairline);
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--colors-ink);
  cursor: pointer;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-link {
  text-decoration: none;
  color: var(--colors-ink);
  font-size: 16px;
  font-weight: 500;
}

/* ==========================================================================
   Buttons (button-primary, button-outline, button-ink in App Green)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  text-decoration: none;
  border-radius: var(--rounded-md);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  height: 44px;
  padding: 12px 24px;
}

.btn-sm {
  height: 38px;
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  height: 46px;
  padding: 14px 28px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--colors-primary);
  color: var(--colors-on-primary);
  border-color: var(--colors-primary);
}

.btn-primary:hover {
  background-color: var(--colors-primary-deep);
  border-color: var(--colors-primary-deep);
}

.btn-outline {
  background-color: var(--colors-canvas);
  color: var(--colors-primary);
  border-color: var(--colors-primary);
}

.btn-outline:hover {
  background-color: var(--colors-primary-soft);
}

.btn-outline-ink {
  background-color: var(--colors-canvas);
  color: var(--colors-ink);
  border-color: var(--colors-ink);
}

.btn-outline-ink:hover {
  background-color: var(--colors-cloud);
}

.btn-secondary {
  background-color: var(--colors-canvas);
  border-color: var(--colors-hairline);
  color: var(--colors-ink);
}

.btn-secondary:hover {
  background-color: var(--colors-cloud);
  border-color: var(--colors-steel);
}

.btn:disabled {
  background-color: var(--colors-steel);
  color: var(--colors-on-primary);
  border-color: var(--colors-steel);
  cursor: not-allowed;
}

.playstore-badge-btn {
  display: inline-block;
  transition: opacity var(--transition-fast);
}

.playstore-badge-btn img {
  height: 44px;
  width: auto;
  border-radius: var(--rounded-md);
  display: block;
}

.playstore-badge-btn:hover {
  opacity: 0.88;
}

.playstore-badge-btn-large img {
  height: 50px;
  width: auto;
  border-radius: var(--rounded-md);
}

.badge-sub {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--colors-primary);
  background: var(--colors-primary-soft);
  padding: 4px 10px;
  border-radius: var(--rounded-sm);
  margin-bottom: 12px;
}

.badge-pill-outline-light {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--colors-on-ink);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 12px;
  border-radius: var(--rounded-sm);
  margin-bottom: 16px;
}

/* ==========================================================================
   Hero Section (White Canvas + Signature Green Chevrons)
   ========================================================================== */

.hero-section {
  padding: var(--spacing-section) 0;
  background-color: var(--colors-canvas);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--colors-cloud);
  border: 1px solid var(--colors-hairline);
  padding: 5px 12px;
  border-radius: var(--rounded-md);
  margin-bottom: 20px;
}

.hero-tag-chip {
  background: var(--colors-primary);
  color: var(--colors-on-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--rounded-xs);
  letter-spacing: 0.5px;
}

.hero-tag-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--colors-charcoal);
}

.hero-title {
  font-size: 52px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--colors-ink);
  margin-bottom: 18px;
}

.hero-description {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--colors-charcoal);
  max-width: 530px;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  background: var(--colors-cloud);
  border: 1px solid var(--colors-hairline);
  border-radius: var(--rounded-lg);
  width: fit-content;
  margin-bottom: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 24px;
  font-weight: 500;
  color: var(--colors-ink);
  line-height: 1.1;
}

.stat-lbl {
  font-size: 13px;
  color: var(--colors-graphite);
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--colors-hairline-strong);
}

/* Open Source & Community Credit Box */
.hero-community-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--colors-cloud);
  border: 1px solid var(--colors-hairline);
  border-left: 3px solid var(--colors-primary);
  padding: 12px 16px;
  border-radius: var(--rounded-md);
  max-width: 540px;
}

.community-icon-wrap {
  color: var(--colors-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.community-icon-wrap svg {
  width: 18px;
  height: 18px;
}

.community-text strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--colors-ink);
  margin-bottom: 2px;
}

.community-text p {
  font-size: 13px;
  color: var(--colors-charcoal);
  line-height: 1.4;
}

/* Hero Visual & Signature Chevrons */
.hero-visual {
  position: relative;
}

.chevron-decoration {
  position: absolute;
  width: 28px;
  height: 85%;
  background-color: var(--colors-primary);
  transform: skew(-20deg);
  border-radius: var(--rounded-none);
  z-index: 0;
}

.chevron-left {
  top: 7%;
  left: -14px;
}

.chevron-right {
  top: 7%;
  right: -14px;
}

.hero-cover-card {
  position: relative;
  border-radius: var(--rounded-xl);
  padding: 8px;
  background: var(--colors-canvas);
  border: 1px solid var(--colors-hairline);
  box-shadow: var(--shadow-soft-lift);
  z-index: 1;
}

.cover-image-wrap {
  border-radius: calc(var(--rounded-xl) - 4px);
  overflow: hidden;
}

.hero-cover-img {
  width: 100%;
  height: auto;
  display: block;
}

.floating-badge {
  position: absolute;
  background: var(--colors-canvas);
  border: 1px solid var(--colors-hairline);
  padding: 10px 14px;
  border-radius: var(--rounded-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-soft-lift);
  z-index: 5;
}

.floating-badge strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--colors-ink);
}

.floating-badge span {
  font-size: 12px;
  color: var(--colors-graphite);
}

.badge-icon {
  color: var(--colors-primary);
  width: 18px;
  height: 18px;
}

.badge-top-right {
  top: -12px;
  right: -12px;
}

.badge-bottom-left {
  bottom: -12px;
  left: -12px;
}

/* ==========================================================================
   Section Common
   ========================================================================== */

section {
  padding: var(--spacing-section) 0;
  position: relative;
}

.section-header {
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-title {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--colors-ink);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--colors-charcoal);
  line-height: 1.45;
}

/* ==========================================================================
   Web Speech Studio Panel (from text-to-speech.html in DESIGN.md Style)
   ========================================================================== */

.sot-card-wrapper {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.studio-panel {
  background: var(--colors-canvas);
  border: 1px solid var(--colors-hairline);
  border-radius: var(--rounded-xl);
  box-shadow: var(--shadow-soft-lift);
  padding: 24px;
  position: relative;
  transition: border-color var(--transition-fast);
}

.studio-panel:hover {
  border-color: var(--colors-hairline-strong);
}

/* Text Well & Karaoke Display */
.text-well {
  position: relative;
  min-height: 140px;
}

.text-well textarea, .text-display {
  width: 100%;
  min-height: 140px;
  background: var(--colors-cloud);
  border: 1px solid var(--colors-hairline);
  border-radius: var(--rounded-md);
  color: var(--colors-ink);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.6;
  padding: 16px;
  resize: vertical;
  box-sizing: border-box;
}

.text-well textarea:focus {
  outline: none;
  border-color: var(--colors-primary);
  background: var(--colors-canvas);
}

.text-display {
  display: none;
  white-space: pre-wrap;
  overflow-y: auto;
  max-height: 280px;
}

.text-display.showing {
  display: block;
}

.text-well.speaking textarea {
  display: none;
}

.text-display span.word {
  transition: background 0.12s ease, color 0.12s ease;
  border-radius: var(--rounded-xs);
  padding: 1px 3px;
}

.text-display span.word.active {
  background: var(--colors-primary);
  color: var(--colors-on-primary);
}

/* Transport Controls (Stop, Play / On Air, Pause) */
.transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 24px 0 20px 0;
}

.onair {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--colors-hairline-strong);
  background: var(--colors-canvas);
  color: var(--colors-graphite);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease, background 0.2s ease;
}

.onair:hover {
  border-color: var(--colors-primary);
  color: var(--colors-primary);
}

.onair.live {
  color: var(--colors-on-primary);
  background: var(--colors-primary);
  border-color: var(--colors-primary);
  box-shadow: 0 0 0 6px rgba(23, 107, 99, 0.2), 0 0 24px rgba(23, 107, 99, 0.35);
  animation: pulse-ring 1.6s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% {
    box-shadow: 0 0 0 6px rgba(23, 107, 99, 0.2), 0 0 24px rgba(23, 107, 99, 0.35);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(23, 107, 99, 0.1), 0 0 30px rgba(23, 107, 99, 0.5);
  }
}

.side-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--colors-hairline-strong);
  background: var(--colors-canvas);
  color: var(--colors-graphite);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  padding: 0;
}

.side-btn svg {
  width: 16px;
  height: 16px;
}

.side-btn:hover:not(:disabled) {
  color: var(--colors-primary);
  border-color: var(--colors-primary);
  background: var(--colors-primary-soft);
}

.side-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.panel-divider {
  border: none;
  border-top: 1px solid var(--colors-hairline);
  margin: 20px 0;
}

/* Voice Selection & VU Meter */
.studio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.studio-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--colors-charcoal);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.studio-label svg {
  width: 14px;
  height: 14px;
  color: var(--colors-primary);
}

.studio-select {
  flex: 1;
  background: var(--colors-cloud);
  border: 1px solid var(--colors-steel);
  color: var(--colors-ink);
  font-family: var(--font-family);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--rounded-md);
  cursor: pointer;
}

.studio-select:focus {
  outline: none;
  border-color: var(--colors-primary);
}

.vu {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.vu span {
  width: 3px;
  height: 4px;
  background: var(--colors-steel);
  border-radius: 1px;
  transition: background 0.2s ease;
}

.vu.on span {
  background: var(--colors-primary);
  animation: bounce 0.9s ease-in-out infinite;
}

.vu.on span:nth-child(1) { animation-delay: 0s; }
.vu.on span:nth-child(2) { animation-delay: 0.12s; }
.vu.on span:nth-child(3) { animation-delay: 0.24s; }
.vu.on span:nth-child(4) { animation-delay: 0.36s; }
.vu.on span:nth-child(5) { animation-delay: 0.48s; }

@keyframes bounce {
  0%, 100% { height: 4px; }
  50% { height: 17px; }
}

/* Modulators Sliders */
.slider-row {
  display: grid;
  grid-template-columns: 70px 1fr 44px;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.studio-range {
  accent-color: var(--colors-primary);
  width: 100%;
  height: 4px;
  background: var(--colors-hairline-strong);
  border-radius: var(--rounded-pill);
  cursor: pointer;
}

.value {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--colors-graphite);
  text-align: right;
}

/* Attribution Box Below Tool */
.tool-attribution-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--colors-canvas);
  border: 1px solid var(--colors-hairline);
  border-left: 3px solid var(--colors-primary);
  padding: 16px 20px;
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow-soft-lift);
}

.attribution-icon-wrap {
  color: var(--colors-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.attribution-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.attribution-text strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--colors-ink);
  margin-bottom: 3px;
}

.attr-link {
  color: var(--colors-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.attr-link:hover {
  color: var(--colors-primary-deep);
}

.attribution-text p {
  font-size: 13px;
  color: var(--colors-charcoal);
  line-height: 1.45;
}

@media (max-width: 480px) {
  .slider-row { grid-template-columns: 56px 1fr 40px; }
}

/* ==========================================================================
   App Pro Upsell Callout Box
   ========================================================================== */

.app-upsell-card {
  background: var(--colors-canvas);
  border: 2px solid var(--colors-primary);
  border-radius: var(--rounded-xl);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-soft-lift);
}

.upsell-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--colors-primary);
  background: var(--colors-primary-soft);
  padding: 3px 8px;
  border-radius: var(--rounded-sm);
  margin-bottom: 8px;
}

.upsell-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--colors-ink);
  margin-bottom: 8px;
}

.upsell-desc {
  font-size: 14px;
  color: var(--colors-charcoal);
  line-height: 1.45;
  margin-bottom: 14px;
}

.upsell-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.upsell-perks span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--colors-ink);
}

.upsell-perks span svg {
  color: var(--colors-primary);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.upsell-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.upsell-note {
  font-size: 12px;
  color: var(--colors-graphite);
}

@media (max-width: 768px) {
  .app-upsell-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .upsell-perks {
    grid-template-columns: 1fr;
  }
  .custom-audio-player {
    flex-wrap: wrap;
  }
  .audio-download-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Bento Grid Section (White Canvas with Soft Lift Cards)
   ========================================================================== */

.features-section {
  background-color: var(--colors-canvas);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--colors-canvas);
  border: 1px solid var(--colors-hairline);
  border-radius: var(--rounded-xl);
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft-lift);
  transition: border-color var(--transition-fast);
}

.bento-card:hover {
  border-color: var(--colors-hairline-strong);
}

.bento-large {
  grid-column: span 8;
  background: var(--colors-cloud);
}

.bento-card:not(.bento-large):not(.bento-wide) {
  grid-column: span 4;
}

.bento-wide {
  grid-column: span 12;
  background: var(--colors-cloud);
}

.bento-grid-2col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.bento-icon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  background: var(--colors-primary-soft);
  border-radius: var(--rounded-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--colors-primary);
}

.feature-icon-box svg {
  width: 22px;
  height: 22px;
}

.bento-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--colors-primary);
  background: var(--colors-canvas);
  border: 1px solid var(--colors-primary-soft);
  padding: 4px 10px;
  border-radius: var(--rounded-lg);
  width: fit-content;
}

.bento-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--colors-ink);
  line-height: 1.2;
  margin-bottom: 10px;
}

.bento-text {
  font-size: 15px;
  color: var(--colors-charcoal);
  line-height: 1.45;
  margin-bottom: 16px;
}

.bento-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bento-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--colors-ink);
}

.bento-points li svg {
  color: var(--colors-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Bento Lucide Visual Containers */
.bento-lucide-visual {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--colors-hairline);
}

.visual-chip-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--colors-canvas);
  border: 1px solid var(--colors-hairline);
  padding: 12px 16px;
  border-radius: var(--rounded-lg);
  width: fit-content;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--colors-ink);
}

.flow-step.active-step {
  color: var(--colors-primary);
}

.flow-step.success-step {
  color: var(--colors-primary);
}

.flow-arrow {
  width: 14px;
  height: 14px;
  color: var(--colors-steel);
}

.visual-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.v-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  background: var(--colors-cloud);
  border: 1px solid var(--colors-hairline);
  padding: 5px 10px;
  border-radius: var(--rounded-pill);
  color: var(--colors-ink);
}

.v-tag svg {
  width: 14px;
  height: 14px;
  color: var(--colors-primary);
}

.feature-inline-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.feature-inline-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  background: var(--colors-canvas);
  border: 1px solid var(--colors-hairline);
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  color: var(--colors-ink);
}

.history-mock-visual {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--colors-canvas);
  border: 1px solid var(--colors-hairline);
  padding: 12px 16px;
  border-radius: var(--rounded-lg);
}

.mock-icon {
  color: var(--colors-primary);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.mock-info span {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--colors-ink);
}

.mock-info small {
  font-size: 12px;
  color: var(--colors-graphite);
}

.mock-action {
  margin-left: auto;
  color: var(--colors-primary);
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   How It Works Steps (Cloud Band #f6faf9)
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.step-card {
  background: var(--colors-canvas);
  border: 1px solid var(--colors-hairline);
  border-radius: var(--rounded-xl);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-soft-lift);
}

.step-number {
  font-size: 32px;
  font-weight: 500;
  color: var(--colors-hairline-strong);
  position: absolute;
  top: 14px;
  right: 18px;
}

.step-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--colors-primary-soft);
  border-radius: var(--rounded-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--colors-primary);
}

.step-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.step-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--colors-ink);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--colors-charcoal);
  line-height: 1.45;
}

.step-arrow-divider {
  color: var(--colors-steel);
}

/* ==========================================================================
   App Screenshots Gallery (White Canvas)
   ========================================================================== */

.screenshots-section {
  background-color: var(--colors-canvas);
}

.gallery-wrapper {
  overflow-x: auto;
  padding: 10px 0 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--colors-steel) transparent;
}

.gallery-track {
  display: flex;
  gap: 24px;
  min-width: max-content;
}

.gallery-item {
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-frame {
  border-radius: var(--rounded-xl);
  overflow: hidden;
  border: 1px solid var(--colors-hairline);
  background: var(--colors-cloud);
  box-shadow: var(--shadow-soft-lift);
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.phone-caption {
  text-align: center;
}

.phone-caption strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--colors-ink);
}

.phone-caption span {
  font-size: 13px;
  color: var(--colors-graphite);
}

/* ==========================================================================
   Comparison Table Section (Cloud Band)
   ========================================================================== */

.table-responsive {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--colors-canvas);
  border-radius: var(--rounded-xl);
  overflow: hidden;
  border: 1px solid var(--colors-hairline);
  box-shadow: var(--shadow-soft-lift);
}

.comparison-table th, .comparison-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--colors-hairline);
  font-size: 15px;
}

.comparison-table th {
  background: var(--colors-cloud);
  font-weight: 500;
  color: var(--colors-ink);
}

.comparison-table .highlight-col {
  background: var(--colors-primary-soft);
  border-left: 1px solid var(--colors-hairline);
  border-right: 1px solid var(--colors-hairline);
  color: var(--colors-ink);
}

.check-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--colors-primary);
  font-weight: 500;
}

.cross-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--colors-bloom-deep);
}

/* ==========================================================================
   User Reviews & Testimonials Section (White Canvas)
   ========================================================================== */

.testimonials-section {
  background-color: var(--colors-canvas);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--colors-canvas);
  border: 1px solid var(--colors-hairline);
  border-radius: var(--rounded-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft-lift);
  transition: border-color var(--transition-fast);
}

.testimonial-card:hover {
  border-color: var(--colors-hairline-strong);
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}

.star-filled {
  color: #f59e0b;
  fill: #f59e0b;
  width: 16px;
  height: 16px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--colors-ink);
  line-height: 1.55;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--colors-hairline);
}

.author-avatar {
  width: 38px;
  height: 38px;
  background: var(--colors-primary-soft);
  color: var(--colors-primary);
  border-radius: var(--rounded-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--colors-ink);
}

.author-info span {
  font-size: 12px;
  color: var(--colors-graphite);
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FAQ Section (Cloud Band)
   ========================================================================== */

.faq-section {
  background-color: var(--colors-cloud);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--colors-canvas);
  border: 1px solid var(--colors-hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft-lift);
}

.faq-item.active {
  border-color: var(--colors-primary);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--colors-ink);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  color: var(--colors-primary);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  background: var(--colors-cloud);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--colors-charcoal);
  line-height: 1.5;
}

/* ==========================================================================
   Dark Help Band / Prelude (#0f1c1a / #081615)
   ========================================================================== */

.help-band-dark {
  background-color: var(--colors-ink);
  color: var(--colors-on-ink);
  padding: 80px 0;
}

.help-band-title {
  font-size: 38px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--colors-on-ink);
  margin-bottom: 14px;
}

.help-band-subtitle {
  font-size: 17px;
  color: #c9d8d6;
  max-width: 580px;
  margin: 0 auto 32px;
}

.help-band-cta {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.help-band-perks {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.help-band-perks span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e4eeed;
  font-size: 14px;
  font-weight: 500;
}

/* ==========================================================================
   Dark Footer
   ========================================================================== */

.footer-dark {
  background-color: var(--colors-ink-deep);
  color: var(--colors-on-ink);
  padding: 64px 0 28px;
  border-top: 1px solid #1a2f2c;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .brand-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--colors-on-ink);
}

.footer-motto {
  font-size: 14px;
  color: #a7b7b5;
  max-width: 320px;
}

.footer-links-col h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--colors-on-ink);
  margin-bottom: 14px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links-col a {
  text-decoration: none;
  color: #a7b7b5;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--colors-on-ink);
}

.footer-badge img {
  height: 40px;
  width: auto;
  border-radius: var(--rounded-md);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #1a2f2c;
  font-size: 13px;
  color: #718481;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Typography Polish
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title { font-size: 40px; }
  .bento-large { grid-column: span 12; }
  .bento-card:not(.bento-large):not(.bento-wide) { grid-column: span 6; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .step-arrow-divider { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 48px 0; }
  .container { padding: 0 20px; }
  
  .section-header { margin-bottom: 32px; }
  .section-title { font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 10px; }
  .section-subtitle { font-size: 15px; line-height: 1.5; }
  
  .hero-section { padding: 36px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 32px; line-height: 1.18; letter-spacing: -0.02em; margin-bottom: 14px; }
  .hero-description { font-size: 15.5px; line-height: 1.5; margin-bottom: 22px; max-width: 100%; }
  
  .chevron-decoration { display: none; }
  .nav-links, .d-none-sm { display: none; }
  .mobile-toggle { display: flex; align-items: center; justify-content: center; }
  
  .nav-brand { gap: 8px; }
  .brand-text { font-size: 15px; font-weight: 600; }
  .brand-icon { width: 32px; height: 32px; }
  
  .pg-controls-row { grid-template-columns: 1fr; }
  .bento-card:not(.bento-large):not(.bento-wide) { grid-column: span 12; }
  .bento-grid-2col { grid-template-columns: 1fr; }
  .bento-large { grid-template-columns: 1fr; }
  .bento-title { font-size: 19px; line-height: 1.3; }
  .bento-text { font-size: 14.5px; line-height: 1.5; }
  .bento-card { padding: 22px; }
  .visual-chip-flow { flex-wrap: wrap; justify-content: center; gap: 8px; }

  /* Hero Stats Mobile Grid */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    margin-bottom: 24px;
  }
  .stat-num { font-size: 22px; }
  .stat-lbl { font-size: 12px; }
  .stat-divider { display: none; }

  .step-card { padding: 20px; text-align: center; }
  .step-number { font-size: 22px; }
  .step-title { font-size: 17px; margin: 10px 0 6px; }
  .step-desc { font-size: 14px; line-height: 1.45; }

  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .testimonial-card { padding: 20px; }
  .testimonial-text { font-size: 14.5px; line-height: 1.55; }
  .author-info strong { font-size: 14px; }
  .author-info span { font-size: 12px; }

  .faq-question { font-size: 15px; padding: 16px 14px; line-height: 1.35; }
  .faq-answer p { font-size: 14px; line-height: 1.55; }

  .help-band-title { font-size: 26px; line-height: 1.25; }
  .help-band-subtitle { font-size: 14.5px; line-height: 1.5; margin-bottom: 20px; }
  .help-band-perks { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  
  .studio-panel {
    padding: 16px;
    border-radius: var(--rounded-lg);
  }
  .text-well {
    min-height: 120px;
  }
  .text-well textarea, .text-display {
    min-height: 120px;
    font-size: 16px; /* Prevents iOS auto-zoom on focus */
    padding: 12px;
  }
  .studio-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }
  .studio-label {
    grid-column: 1;
    grid-row: 1;
  }
  .vu {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .studio-select {
    grid-column: 1 / span 2;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    font-size: 16px; /* Prevents iOS auto-zoom on focus */
    padding: 10px 12px;
    box-sizing: border-box;
  }
  .slider-row {
    grid-template-columns: 60px 1fr 40px;
    gap: 8px;
  }
  .transport {
    gap: 16px;
    margin: 20px 0 16px 0;
  }
  .onair {
    width: 80px;
    height: 80px;
    font-size: 12px;
  }
  .side-btn {
    width: 40px;
    height: 40px;
  }

  /* Keep badges inside container on small screens to prevent overflow */
  .floating-badge {
    padding: 6px 10px;
    gap: 6px;
  }
  .floating-badge strong {
    font-size: 11px;
  }
  .floating-badge span {
    font-size: 10px;
  }
  .badge-top-right {
    top: 8px;
    right: 8px;
  }
  .badge-bottom-left {
    bottom: 8px;
    left: 8px;
  }
  
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--rounded-md);
  }
  .comparison-table th, .comparison-table td {
    padding: 10px 8px;
    font-size: 12.5px;
    white-space: normal;
  }
  .check-badge, .cross-badge {
    font-size: 11px;
    padding: 3px 6px;
  }
}

@media (max-width: 480px) {
  section { padding: 36px 0; }
  
  .brand-text { font-size: 13.5px; }
  .brand-icon { width: 28px; height: 28px; }
  
  .hero-section { padding: 24px 0 36px; }
  .hero-title { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; }
  .hero-description { font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
  .hero-tag { font-size: 11px; gap: 6px; padding: 4px 8px; margin-bottom: 14px; }
  .hero-tag-chip { font-size: 10px; padding: 1px 5px; }
  .hero-tag-text { font-size: 11px; }

  .section-title { font-size: 22px; line-height: 1.25; }
  .section-subtitle { font-size: 13.5px; line-height: 1.45; }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
    margin-bottom: 24px;
  }
  .hero-cta-group a, .hero-cta-group button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
  }
  .playstore-badge-btn img {
    height: 46px;
    margin: 0 auto;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    padding: 12px 14px;
  }
  .stat-num { font-size: 19px; }
  .stat-lbl { font-size: 11px; }

  .upsell-title { font-size: 17px; line-height: 1.3; }
  .upsell-desc { font-size: 13px; line-height: 1.45; }
  .upsell-perks span { font-size: 12px; }
  .app-upsell-card { padding: 18px 14px; gap: 16px; }

  .footer-top { grid-template-columns: 1fr; gap: 22px; }
  .footer-brand { grid-column: span 1; }
  .footer-motto { font-size: 13px; }
}
