/* ============================================
   MIUTINE - BASE STYLES
   Background: #C9D8E2
   Font: Avenir Next LT Pro (via Adobe Fonts)
   ============================================ */

/* --------------------------------------------
   CSS VARIABLES
   -------------------------------------------- */
:root {
  /* Colors */
  --color-background: #CAD9E6;
  --color-black: #000000;
  --color-white: #FFFFFF;
  
  /* Typography - Adobe Fonts */
  --font-primary: "avenir-next-lt-pro", "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --header-height: 80px;
  --header-height-mobile: 70px;
  
  /* Focus ring for accessibility */
  --focus-ring: 0 0 0 3px rgba(0, 0, 0, 0.5);
}


/* --------------------------------------------
   ACCESSIBILITY - REDUCED MOTION
   -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* --------------------------------------------
   SCROLL REVEAL ANIMATIONS
   -------------------------------------------- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* --------------------------------------------
   SECTION DIVIDERS
   -------------------------------------------- */
.section-divider {
  width: 100%;
  max-width: 120px;
  height: 1px;
  background: var(--color-black);
  margin: 40px auto;
  opacity: 0.3;
}


/* --------------------------------------------
   HOVER MICRO-INTERACTIONS
   -------------------------------------------- */
@media (hover: hover) {
  /* Buttons scale slightly on hover */
  .social-btn,
  .product-cta,
  .recorder-btn {
    transition: all 0.2s ease, transform 0.2s ease;
  }
  
  .social-btn:hover,
  .product-cta:hover {
    transform: scale(1.02);
  }
  
  /* Carousel images subtle lift */
  .carousel-slide img {
    transition: transform 0.3s ease;
  }
  
  .carousel-slide.active:hover img {
    transform: scale(1.02);
  }
  
  /* Audio player hover */
  .audio-player {
    transition: box-shadow 0.2s ease;
  }
  
  .audio-player:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
}



/* --------------------------------------------
   RESET & BASE
   -------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-background);
  color: var(--color-black);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}


/* --------------------------------------------
   ACCESSIBILITY - Skip Link
   -------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-black);
  color: var(--color-white);
  padding: 12px 24px;
  z-index: 10000;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: none;
}


/* --------------------------------------------
   ACCESSIBILITY - Visually Hidden
   (Hidden visually but available to screen readers)
   -------------------------------------------- */
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* --------------------------------------------
   ACCESSIBILITY - Focus States
   -------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Ensure focus is visible for keyboard users */
:focus:not(:focus-visible) {
  outline: none;
}


/* --------------------------------------------
   ACCESSIBILITY - Reduced Motion
   -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* --------------------------------------------
   STICKY HEADER
   -------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-background);
  padding: 15px 20px;
  transition: box-shadow 0.3s ease, opacity 0.5s ease, transform 0.5s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Header hidden until intro completes */
.site-header.header-hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-logo {
  height: 60px;
  width: auto;
}

/* Offset body for fixed header */
body {
  padding-top: var(--header-height);
}


/* --------------------------------------------
   SECTION 1: ENVELOPE ANIMATION (CSS/JS)
   -------------------------------------------- */
.section.section-envelope {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--color-background);
  padding: 0;
  margin-top: calc(-1 * var(--header-height));
  min-height: 100vh;
  overflow: hidden;
}

.envelope-animation-wrapper {
  width: 100%;
  max-width: 500px;
  padding: 0 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding-top: 8vh;
}

/* Phase 1: Logo + Waveform */
.intro-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 10;
}

.intro-logo.fade-out {
  opacity: 0;
}

.intro-logo-img {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
}

.intro-waveform {
  width: 250px;
  height: auto;
}

/* Phase 2 & 3: Envelope Container */
.envelope-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  opacity: 0;
  transition: opacity 1s ease;
  margin-top: -10vh;
}

.envelope-container.visible {
  opacity: 1;
}

.envelope-back,
.envelope-flap,
.envelope-letter {
  position: absolute;
  width: 100%;
  left: 0;
}

.envelope-back img,
.envelope-flap img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.15);
  transform-origin: center center;
}

.envelope-letter img {
  width: 100%;
  height: auto;
  display: block;
}

/* Envelope back - base layer */
.envelope-back {
  position: relative;
  z-index: 1;
}

/* Envelope flap - bottom aligned with envelope back */
.envelope-flap {
  bottom: 0;
  z-index: 3;
}

/* Letter - starts behind flap, moves up then in front */
.envelope-letter {
  bottom: -2%;
  z-index: 2;
  transition: transform 1.5s ease-in-out, z-index 0s linear 0.15s;
}

.envelope-letter img {
  transform: scale(0.97);
  transform-origin: center bottom;
}

.envelope-letter.animate-up {
  transform: translateY(-95%);
}

.envelope-letter.animate-down {
  transform: translateY(0);
  z-index: 4;
}

/* Body state during animation */
body.intro-active {
  overflow: hidden;
}


/* --------------------------------------------
   MAIN CONTENT & SECTIONS
   -------------------------------------------- */
main {
  min-height: calc(100vh - var(--header-height));
}

.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 20px;
  text-align: center;
}

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


/* --------------------------------------------
   PLACEHOLDER STYLES (Remove in production)
   -------------------------------------------- */
.section-placeholder {
  background: rgba(0, 0, 0, 0.05);
  border: 2px dashed rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 60px 40px;
  max-width: 600px;
  width: 100%;
}

.section-placeholder p {
  font-size: 18px;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 500;
}


/* --------------------------------------------
   SECTION 3: VOICE NOTE
   -------------------------------------------- */
.section-voice-note {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.voice-note-content {
  text-align: center;
  max-width: 700px;
}

.voice-note-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--color-black);
}

.voice-note-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 15px;
  color: var(--color-black);
  white-space: nowrap;
}

.voice-note-subtitle {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 40px;
  color: var(--color-black);
}

/* Audio Player */
.audio-player {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--color-white);
  border: 2px solid var(--color-black);
  border-radius: 8px;
  padding: 12px 25px;
  max-width: 350px;
  margin: 0 auto;
}

.audio-play-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  color: var(--color-black);
}

.audio-play-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 50%;
}

.play-icon,
.pause-icon {
  width: 28px;
  height: 28px;
}

.audio-waveform-video {
  flex: 1;
  height: 40px;
  width: 200px;
  object-fit: cover;
}


/* --------------------------------------------
   SECTION 4: POEM / SELF-LOVE NOTE
   -------------------------------------------- */
.section-poem {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.section-poem .container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.poem-content {
  max-width: 700px;
  text-align: center;
}

.poem-line {
  font-family: var(--font-primary);
  font-size: clamp(18px, 2.5vw, 24px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.6em;
  color: var(--color-black);
}

.poem-line:last-child {
  margin-bottom: 0;
}


/* --------------------------------------------
   SECTION 5: CASSETTE RECORDER
   -------------------------------------------- */
.section-recorder {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.recorder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1000px;
  width: 100%;
  padding: 0 20px;
}

/* Old eyebrow/hashtag styles removed - no longer used */

.recorder-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 30px;
  color: var(--color-black);
}

/* Old social styles removed - now using recorder-box--share */

/* Cassette Recorder Widget */
.cassette-recorder {
  background: transparent;
  padding: 20px 0;
  max-width: 400px;
  margin: 0 auto;
}

/* Live Recording Indicator */
.recorder-live-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  min-height: 24px;
}

.recorder-live-indicator.hidden {
  visibility: hidden;
}

.recorder-live-indicator.active {
  visibility: visible;
}

.recorder-live-dot {
  width: 10px;
  height: 10px;
  background: #C62828;
  border-radius: 50%;
  animation: pulse-dot 1s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.recorder-live-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-black);
}

/* Cassette Tape */
.cassette-tape {
  width: 280px;
  height: 180px;
  margin: 0 auto 25px auto;
  background: #b8c4d1;
  border: 2px solid var(--color-black);
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Cassette window with reels */
.cassette-window {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 12px 20px;
  width: 100%;
  margin-bottom: 15px;
}

/* Reels with spokes */
.cassette-reel {
  width: 55px;
  height: 55px;
  background: var(--color-white);
  border: 2px solid var(--color-black);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.reel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--color-white);
  border: 2px solid var(--color-black);
  border-radius: 50%;
  z-index: 2;
}

.reel-spoke {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--color-black);
  margin-left: -9px;
  margin-top: -1px;
}

.reel-spoke:nth-child(1) { transform: rotate(0deg); }
.reel-spoke:nth-child(2) { transform: rotate(30deg); }
.reel-spoke:nth-child(3) { transform: rotate(60deg); }
.reel-spoke:nth-child(4) { transform: rotate(90deg); }
.reel-spoke:nth-child(5) { transform: rotate(120deg); }
.reel-spoke:nth-child(6) { transform: rotate(150deg); }

.cassette-reel.spinning {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Bottom holes like real cassette */
.cassette-holes {
  display: flex;
  gap: 80px;
}

.cassette-hole {
  width: 10px;
  height: 10px;
  background: var(--color-background);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

/* Audio-reactive waveform */
.cassette-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 40px;
  flex: 1;
  padding: 0 10px;
}

.wave-bar {
  width: 2px;
  height: 6px;
  background: var(--color-black);
  opacity: 0.4;
  border-radius: 1px;
  transition: height 0.05s ease;
}

/* Static wave pattern when not recording */
.wave-bar:nth-child(1) { height: 8px; }
.wave-bar:nth-child(2) { height: 12px; }
.wave-bar:nth-child(3) { height: 6px; }
.wave-bar:nth-child(4) { height: 16px; }
.wave-bar:nth-child(5) { height: 10px; }
.wave-bar:nth-child(6) { height: 20px; }
.wave-bar:nth-child(7) { height: 14px; }
.wave-bar:nth-child(8) { height: 22px; }
.wave-bar:nth-child(9) { height: 14px; }
.wave-bar:nth-child(10) { height: 20px; }
.wave-bar:nth-child(11) { height: 10px; }
.wave-bar:nth-child(12) { height: 16px; }
.wave-bar:nth-child(13) { height: 6px; }
.wave-bar:nth-child(14) { height: 12px; }
.wave-bar:nth-child(15) { height: 8px; }

/* Timer */
.recorder-timer {
  font-size: 32px;
  font-weight: 600;
  color: var(--color-black);
  margin: 0 0 5px 0;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.recorder-timer.warning {
  color: #C62828;
}

.recorder-privacy {
  font-size: 14px;
  color: var(--color-black);
  margin: 0 0 25px 0;
  letter-spacing: 0.05em;
}

/* Controls */
.recorder-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0;
}

.recorder-btn {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 2px solid var(--color-black);
  background: transparent;
  color: var(--color-black);
  cursor: pointer;
  transition: all 0.2s ease;
}

.recorder-btn:hover:not(:disabled) {
  background: var(--color-black);
  color: var(--color-white);
}

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

.recorder-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.recorder-btn--record {
  background: var(--color-black);
  color: var(--color-white);
}

.recorder-btn--record:hover:not(:disabled) {
  background: #333;
  border-color: #333;
}

.recorder-btn--recording {
  background: var(--color-black);
  color: var(--color-white);
}

/* Playback Section */
.recorder-playback {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.recorder-playback.hidden {
  display: none;
}

.recorder-audio {
  width: 100%;
  height: 40px;
  margin-bottom: 20px;
  filter: grayscale(100%);
}

.recorder-download {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 24px;
  border: 2px solid var(--color-black);
  background: var(--color-black);
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.recorder-download:hover {
  background: transparent;
  color: var(--color-black);
}

.recorder-download:focus-visible {
  outline: 3px solid var(--color-black);
  outline-offset: 2px;
}

/* Playback section content */
.download-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-black);
  margin: 0 0 12px 0;
}

.playback-instruction {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-black);
  margin: 25px 0 10px 0;
  line-height: 1.5;
}

.playback-tags {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-black);
  margin: 0;
}

/* Two Column Grid Layout - now single column stacked */
.recorder-actions-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.recorder-box {
  background: rgba(255, 255, 255, 0.15);
  border: 1px dashed rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  padding: 35px 30px;
  text-align: center;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Social section title */
.recorder-title--social {
  margin-top: 70px;
  margin-bottom: 20px;
}

/* Share box uses flex to distribute space */
.recorder-box--share .recorder-box-subtitle {
  margin-bottom: 25px;
}

.recorder-box-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-black);
  margin: 0 0 5px 0;
}

.recorder-box-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-black);
  margin: 0 0 25px 0;
}

/* Keep Box - timer and controls */
.recorder-box--keep .recorder-timer {
  font-size: 36px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.recorder-box--keep .recorder-privacy {
  margin: 0 0 20px 0;
}

.recorder-box--keep .recorder-controls {
  margin-bottom: 0;
}

/* Share Box - social buttons */
.social-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.social-btn-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 180px;
  padding: 14px 24px;
  background: var(--color-black);
  color: var(--color-white);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.social-btn-block:hover {
  background: #333;
}

.social-btn-block .social-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hashtags Footer */
/* Mobile: Stacked layout adjustments */
@media (max-width: 768px) {
  .recorder-box {
    padding: 30px 25px;
  }
  
  .recorder-title {
    font-size: 22px;
  }
  
  .recorder-title--social {
    margin-top: 40px;
  }
  
  .recorder-box--share .recorder-box-subtitle {
    margin-bottom: 30px;
  }
}


/* --------------------------------------------
   SECTION 6: SOCIAL CTA
   -------------------------------------------- */
.section-social {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.social-content {
  text-align: center;
  max-width: 500px;
}

.social-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--color-black);
}

.social-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: var(--color-black);
}

.social-instruction {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--color-black);
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  background: var(--color-black);
  color: var(--color-white);
  border: 2px solid var(--color-black);
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: transparent;
  color: var(--color-black);
}

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

.social-icon {
  width: 18px;
  height: 18px;
}


/* --------------------------------------------
   SECTION 7: PRODUCT
   -------------------------------------------- */
.section-product {
  padding: 0;
}

/* Hero Image - Full Bleed */
.product-hero {
  width: 100%;
  overflow: hidden;
}

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

/* Product Info */
.product-info {
  text-align: center;
  padding: 60px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.product-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--color-black);
}

.product-logo {
  display: block;
  height: 80px;
  width: auto;
  margin: 0 auto 15px auto;
}

.product-subtitle {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 25px;
  color: var(--color-black);
}

.product-description {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 30px;
  color: var(--color-black);
}

.product-cta {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 35px;
  background: var(--color-black);
  color: var(--color-white);
  border: 2px solid var(--color-black);
  transition: all 0.2s ease;
}

.product-cta:hover {
  background: transparent;
  color: var(--color-black);
}

.product-cta:focus-visible {
  outline: 3px solid var(--color-black);
  outline-offset: 2px;
}

/* Image Carousel */
.product-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 40px 0 60px 0;
  position: relative;
}

.product-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 40px calc(50% - 140px);
  scroll-behavior: smooth;
  will-change: scroll-position;
}

.product-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: scale(0.85) translateZ(0);
  opacity: 0.6;
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Disable transitions while actively scrolling */
.product-carousel.is-scrolling .carousel-slide {
  transition: none;
}

.carousel-slide.active {
  transform: scale(1) translateZ(0);
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

/* Carousel Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: transparent;
  border: 2px solid var(--color-black);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  color: var(--color-black);
}

.carousel-arrow:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.carousel-arrow:focus-visible {
  outline: 3px solid var(--color-black);
  outline-offset: 2px;
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
}

.carousel-arrow--prev {
  left: 20px;
}

.carousel-arrow--next {
  right: 20px;
}

@media (min-width: 768px) {
  .carousel-slide {
    width: 350px;
  }
  
  .carousel-slide img {
    height: 440px;
  }
  
  .carousel-arrow--prev {
    left: 40px;
  }
  
  .carousel-arrow--next {
    right: 40px;
  }
  
  .product-carousel {
    padding: 40px calc(50% - 175px);
  }
}

@media (min-width: 1024px) {
  .carousel-slide {
    width: 420px;
  }
  
  .carousel-slide img {
    height: 525px;
  }
  
  .product-carousel {
    gap: 30px;
    padding: 40px calc(50% - 210px);
  }
}

@media (max-width: 480px) {
  .carousel-arrow {
    width: 40px;
    height: 40px;
  }
  
  .carousel-arrow svg {
    width: 20px;
    height: 20px;
  }
  
  .carousel-arrow--prev {
    left: 10px;
  }
  
  .carousel-arrow--next {
    right: 10px;
  }
}


/* --------------------------------------------
   FOOTER
   -------------------------------------------- */
.site-footer {
  padding: 100px 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  height: 70px;
  width: auto;
}

.footer-waveform {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin-top: 50px;
}


/* --------------------------------------------
   RESPONSIVE
   -------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --header-height: var(--header-height-mobile);
  }
  
  .site-header {
    padding: 12px 15px;
  }
  
  .header-logo {
    height: 50px;
  }
  
  .section {
    min-height: auto;
    padding: 60px 15px;
  }
  
  .section-placeholder {
    padding: 40px 20px;
  }
  
  /* Envelope responsive */
  .section.section-envelope {
    margin-top: calc(-1 * var(--header-height));
    min-height: 100vh;
  }
  
  .envelope-animation-wrapper {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .intro-logo-img {
    width: 160px;
  }
  
  .intro-waveform {
    width: 200px;
  }
  
  .envelope-container {
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .header-logo {
    height: 40px;
  }
  
  /* Envelope animation - smaller on mobile */
  .intro-logo-img {
    width: 140px;
  }
  
  .intro-waveform {
    width: 180px;
  }
  
  .envelope-container {
    max-width: 280px;
  }
  
  /* Reduce space between hero and voice note section */
  .section-voice-note {
    padding-top: 60px;
  }
  
  .voice-note-title {
    white-space: nowrap;
    font-size: 28px;
  }
  
  .audio-player {
    max-width: 300px;
    padding: 10px 20px;
  }
  
  .audio-waveform-video {
    width: 160px;
  }
  
  .social-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .social-btn {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
  
  /* Product description - prevent orphan "you" */
  .product-description {
    font-size: 15px;
  }
  
  /* Carousel - smoother scrolling on mobile */
  .product-carousel {
    scroll-snap-type: x proximity;
    scroll-behavior: auto;
  }
  
  .carousel-slide {
    transform: scale(0.9) translateZ(0);
    opacity: 0.7;
  }
  
  .carousel-slide.active {
    transform: scale(1) translateZ(0);
    opacity: 1;
  }
  
  .carousel-arrow {
    width: 40px;
    height: 40px;
    color: var(--color-black);
  }
  
  .carousel-arrow svg {
    width: 20px;
    height: 20px;
  }
}
