/*
 * Glisn — Senior Listening Landing Page
 * Aesthetic: Editorial Calm
 * Palette: Warm cream · deep ink · surgical teal
 * Typography: Fraunces (display serif) · DM Sans (body) · DM Mono (captions)
 */


/* ============================================================
   DESIGN TOKENS — override shared base.css variables
   ============================================================ */
:root {
  /* Palette */
  --cream:        #FAF7F2;
  --cream-mid:    #F2EDE5;
  --cream-dark:   #EAE2D8;
  --ink:          #1A1714;
  --ink-mid:      #3D3630;
  --muted:        #7A746E;
  --muted-light:  #B0A89F;
  --divider:      #DDD5CA;
  --teal:         #0E7C7B;
  --teal-hover:   #0A5C5B;
  --teal-pale:    #EAF4F4;

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Easing */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================================
   GLOBAL BODY
   ============================================================ */
body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}


/* ============================================================
   PAPER GRAIN OVERLAY
   Fixed pseudo-element — GPU-safe, never on scrolling container
   ============================================================ */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 160px 160px;
}


/* ============================================================
   LOAD ANIMATIONS — staggered hero reveal
   ============================================================ */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-stagger {
  opacity: 0;
  animation: fade-up 0.75s var(--ease-out) both;
  animation-delay: var(--delay, 0ms);
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 48px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4375rem;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ============================================================
   SHARED BUTTON BASE
   ============================================================ */
.btn-nav-cta,
.btn-primary {
  display: inline-block;
  background-color: var(--teal);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  border-radius: 7px;
  letter-spacing: 0.005em;
  transition:
    background-color 0.22s var(--ease-out),
    transform 0.15s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}

.btn-nav-cta {
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
}

.btn-nav-cta:hover,
.btn-primary:hover {
  background-color: var(--teal-hover);
  color: #fff;
  box-shadow: 0 4px 22px rgba(14, 92, 91, 0.28);
  transform: translateY(-1px);
}

.btn-nav-cta:active,
.btn-primary:active {
  transform: translateY(0) scale(0.984);
  box-shadow: none;
}

.btn-large {
  padding: 1.0625rem 2.5rem;
  font-size: 1.125rem;
}


/* ============================================================
   HERO SECTION
   Left-aligned, single-column-dominant
   ============================================================ */
.hero-section {
  padding: 5.5rem 0 3rem;
  min-height: 58dvh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-content {
  max-width: 680px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 1.375rem;
  line-height: 1;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 66px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero-subhead {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-mid);
  max-width: 56ch;
  margin-bottom: 2.75rem;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.cta-trust-line {
  font-size: 0.875rem;
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.5;
}


/* ============================================================
   VIDEO SECTION — the emotional centerpiece
   ============================================================ */
.video-section {
  padding: 0 0 5.5rem;
}

.video-outer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.video-figure {
  margin: 0;
}

.video-wrapper {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background-color: #1A1714;
  box-shadow:
    0 2px 4px rgba(26, 23, 20, 0.04),
    0 8px 24px rgba(26, 23, 20, 0.1),
    0 32px 80px rgba(26, 23, 20, 0.16);
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

/* Cinematic warm placeholder when no video is loaded */
.video-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #2C2420 0%, #1A1714 55%, #231E1A 100%);
  z-index: 0;
}

.video-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 35% 50%, rgba(14, 124, 123, 0.07) 0%, transparent 70%);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

/* Custom play button */
.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
  padding: 0;
}

.play-overlay:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: -3px;
  border-radius: 14px;
}

.play-button-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  background: rgba(250, 247, 242, 0.94);
  border-radius: 50%;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  transition:
    transform 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}

.play-ear-icon {
  position: absolute;
  width: 36px;
  height: 36px;
  color: var(--teal);
  opacity: 0.18;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.play-triangle-icon {
  width: 17px;
  height: 17px;
  color: var(--teal);
  margin-left: 3px;
  position: relative;
  z-index: 1;
}

.play-overlay:hover .play-button-inner {
  transform: scale(1.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.play-overlay:active .play-button-inner {
  transform: scale(0.97);
}

/* Duration hint shown inside the play button area — optional chrome detail */
.video-duration-hint {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(250, 247, 242, 0.5);
  letter-spacing: 0.06em;
  pointer-events: none;
}

.video-caption {
  margin-top: 1.125rem;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1.5;
}


/* ============================================================
   THE PIVOT — editorial pull-quote
   ============================================================ */
.pivot-section {
  padding: 5.5rem 0 5rem;
  border-top: 1px solid var(--divider);
}

.pivot-layout {
  max-width: 860px;
}

.pivot-headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-left: 3px solid var(--teal);
  padding-left: 1.75rem;
  margin: 0 0 2.75rem;
}

.pivot-headline p {
  margin: 0;
}

.pivot-body {
  padding-left: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 62ch;
  border-left: 1px solid var(--divider);
}

.pivot-body p {
  color: var(--ink-mid);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin: 0;
}

.pivot-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1875rem !important;
  color: var(--ink) !important;
}


/* ============================================================
   HOW IT WORKS — 3-step grid
   ============================================================ */
.how-section {
  padding: 5rem 0 5.5rem;
  background-color: var(--cream-mid);
  border-top: 1px solid var(--divider);
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 3rem;
  line-height: 1;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
  margin-bottom: 2.75rem;
  list-style: none;
  padding: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-numeral {
  display: block;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--teal);
  opacity: 0.28;
  line-height: 1;
  letter-spacing: -0.05em;
}

.step-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
}

.step-body {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.65;
  margin: 0;
  max-width: 26ch;
}

.steps-footnote {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 2rem;
  border-top: 1px solid var(--divider);
}


/* ============================================================
   PUZZLE vs GLISN — the differentiator
   ============================================================ */
.compare-section {
  padding: 5.5rem 0 6rem;
  border-top: 1px solid var(--divider);
}

.compare-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 4rem;
  max-width: 20ch;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 3.5rem;
  align-items: start;
}

.compare-rule {
  background-color: var(--divider);
  align-self: stretch;
  min-height: 180px;
  justify-self: center;
  width: 1px;
}

.compare-col {
  padding: 2.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.compare-col--left {
  opacity: 0.45;
}

.compare-col-label {
  font-family: var(--font-display);
  font-size: 1.4375rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.15;
}

.compare-col-label--teal {
  color: var(--teal);
}

.compare-type-desc {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0;
  line-height: 1.5;
}

.compare-body {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.75;
  margin: 0;
  max-width: 38ch;
}


/* ============================================================
   UGC TESTIMONIAL VIDEOS
   3-column vertical (9:16) video grid
   ============================================================ */
.testimonials-section {
  padding: 5rem 0 5.5rem;
  background-color: var(--cream-mid);
  border-top: 1px solid var(--divider);
}

.testimonials-section .section-label {
  margin-bottom: 3rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial-video-wrapper {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background-color: #1A1714;
  cursor: pointer;
  box-shadow:
    0 4px 12px rgba(26, 23, 20, 0.1),
    0 16px 40px rgba(26, 23, 20, 0.1);
}

.testimonial-video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

/* Warm cinematic placeholder for each testimonial slot */
.testimonial-video-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #2C2420 0%, #1A1714 100%);
}

.testimonial-video-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 40% at 50% 30%, rgba(14, 124, 123, 0.06) 0%, transparent 70%);
}

.testimonial-play-btn {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.testimonial-play-btn:hover {
  background: rgba(26, 23, 20, 0.12);
}

.testimonial-play-btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: -3px;
  border-radius: 12px;
}

.testimonial-play-icon {
  width: 48px;
  height: 48px;
  background: rgba(250, 247, 242, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.testimonial-play-btn:hover .testimonial-play-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.testimonial-play-icon svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
  margin-left: 2px;
}

.testimonial-quote-block {
  padding: 0 0.25rem;
}

.testimonial-quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-mid);
  margin: 0 0 0.5rem;
}

.testimonial-quote-text::before { content: '\201C'; }
.testimonial-quote-text::after  { content: '\201D'; }

.testimonial-author {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}


/* ============================================================
   TRUST BAND
   ============================================================ */
.trust-band {
  padding: 2.5rem 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  background-color: var(--cream);
}

.trust-signals {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 2.25rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink-mid);
  white-space: nowrap;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
  flex-shrink: 0;
}

.trust-divider {
  width: 1px;
  height: 26px;
  background: var(--divider);
  flex-shrink: 0;
}


/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta-section {
  padding: 7rem 0 8rem;
}

.final-cta-inner {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.final-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
}

.final-cta-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--ink-mid);
  margin: 0;
  line-height: 1.5;
}

.final-platform {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--ink);
  padding: 3.5rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline-block;
  transition: color 0.2s ease;
}

.footer-wordmark:hover {
  color: #fff;
}

#footer-logo {
  height: 52px;
  width: auto;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(250, 247, 242, 0.42);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(250, 247, 242, 0.28);
  margin: 0;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
  flex-shrink: 0;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(250, 247, 242, 0.5);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--cream);
}


/* ============================================================
   CONTAINER UTILITY
   Overrides shared base.css .container max-width
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* ============================================================
   RESPONSIVE — tablet (768–1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .compare-headline {
    max-width: none;
  }

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

  /* Hide third testimonial at this breakpoint to avoid orphan */
  .testimonial-card:nth-child(3) {
    display: none;
  }
}


/* ============================================================
   RESPONSIVE — mobile (< 768px)
   Single-column collapse with generous padding
   ============================================================ */
@media (max-width: 767px) {

  body {
    font-size: 18px;
  }

  /* Hero */
  .hero-section {
    padding: 3.5rem 0 2.5rem;
    min-height: auto;
  }

  .hero-content {
    max-width: none;
  }

  .hero-cta-group {
    align-items: stretch;
  }

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

  /* Video */
  .video-section {
    padding: 0 0 3.5rem;
  }

  .video-outer {
    padding: 0 1rem;
  }

  .play-button-inner {
    width: 64px;
    height: 64px;
  }

  /* Pivot */
  .pivot-section {
    padding: 3.5rem 0 3rem;
  }

  .pivot-headline {
    padding-left: 1.25rem;
  }

  .pivot-body {
    padding-left: 1.25rem;
    gap: 1.25rem;
  }

  /* How it works */
  .how-section {
    padding: 3.5rem 0 4rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .step-body {
    max-width: none;
  }

  /* Compare */
  .compare-section {
    padding: 3.5rem 0 4rem;
  }

  .compare-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .compare-rule {
    display: none;
  }

  .compare-col {
    padding: 2rem 0;
  }

  .compare-col--left {
    border-bottom: 1px solid var(--divider);
    padding-bottom: 2rem;
  }

  .compare-col--right {
    padding-top: 2rem;
  }

  .compare-body {
    max-width: none;
  }

  /* Testimonials */
  .testimonials-section {
    padding: 3.5rem 0 4rem;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

  .testimonial-card:nth-child(3) {
    display: flex; /* restore on mobile — single column so it fits fine */
  }

  /* Trust band */
  .trust-signals {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    justify-content: flex-start;
  }

  .trust-item {
    padding: 0;
  }

  .trust-divider {
    display: none;
  }

  /* Final CTA */
  .final-cta-section {
    padding: 4.5rem 0 5rem;
  }

  .final-cta-inner {
    max-width: none;
    align-items: stretch;
  }

  .final-cta-inner .btn-large {
    text-align: center;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    gap: 1.75rem;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }
}
