/* ==========================================================================
   SoundMesh — Test Landing Page v1
   Custom CSS only. No build step.
   ========================================================================== */

:root {
  --pink:        #FF4F8B;
  --pink-deep:   #D12F63;
  --yellow:      #FFD93D;
  --yellow-tint: #FFF5CF;
  --bg:          #FAFAF7;
  --ink:         #1A1A1A;
  --muted:       #6B6B6B;
  --muted-soft:  #565656;
  --white:       #FFFFFF;
  --border:      #E8E8E5;
  --footer-bg:   #1A1A1A;

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --max-w: 1440px;
  --pad-x: 96px;
  --pad-y: 112px;
  --radius-card: 20px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
blockquote { font-style: normal; }

/* ---------- shared helpers ---------- */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
}
.section-head { margin-bottom: 56px; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 20px;
}
.eyebrow--yellow { color: var(--yellow); }
.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  border-radius: 999px;
  padding: 18px 28px;
  transition: transform 200ms ease, background-color 200ms ease, color 200ms ease;
  text-align: center;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover {
  background: #000;
  transform: scale(1.02);
}
.btn--pink {
  background: var(--pink);
  color: var(--white);
  font-size: 18px;
  padding: 20px 28px;
}
.btn--pink:hover {
  background: var(--pink-deep);
  transform: scale(1.02);
}
.btn--full {
  width: 100%;
}
.link-underline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 200ms ease;
}
.link-underline:hover { color: var(--pink); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--bg);
}
.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--pad-x) 96px;
  display: grid;
  grid-template-columns: 1fr 540px;
  gap: 80px;
  align-items: center;
}
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero__setup {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.4;
  color: var(--muted);
}
.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 520px;
}
.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__meta {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.hero__image-wrap {
  height: 640px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 20s ease-in-out infinite alternate;
  transform-origin: center center;
}
@keyframes kenburns {
  0%   { transform: scale(1.0); }
  100% { transform: scale(1.05); }
}

/* ============================================================
   NARRATIVE INTERSTITIAL
   ============================================================ */
.narrative {
  background: var(--bg);
}
.narrative__inner {
  padding-top: 0;
  padding-bottom: 64px;
  max-width: 880px;
}
.narrative__body {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 16px;
}
.narrative__body--emphasis {
  color: var(--ink);
  font-weight: 500;
}

/* ============================================================
   PAIN HOOK
   ============================================================ */
.pain {
  background: var(--bg);
}
.pain__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.quote-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.quote-card--r1 { transform: rotate(-1.2deg); }
.quote-card--r2 { transform: rotate(1.0deg); }
.quote-card--r3 { transform: rotate(0.8deg); }
.quote-card--r4 { transform: rotate(-1.5deg); }
.quote-card:hover {
  transform: rotate(0) translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
}
.quote-card__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 24px;
}
.quote-card__attribution {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--pink);
}

/* ============================================================
   VALUE PROPS
   ============================================================ */
.vps {
  background: var(--pink);
}
.vps__heading {
  color: var(--white);
  font-size: clamp(36px, 4.2vw, 52px);
}
.vps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.vp-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 44px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.vp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}
.vp-card__num-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.vp-card__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--pink);
  line-height: 1;
}
.vp-card__divider {
  display: block;
  width: 80px;
  height: 2px;
  background: rgba(255, 79, 139, 0.18);
}
.vp-card__short {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 16px;
}
.vp-card__long {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: #595959;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  background: var(--bg);
}
.how__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.how__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.how-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 380px;
}
.how-card__icon {
  width: 256px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.how-card__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0;
}
.how-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: var(--ink);
}
.how-card__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 240px;
}
.how__arrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--pink);
  line-height: 1;
}
.how__caption {
  text-align: center;
  margin-top: 48px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
}

/* mesh diagram animation */
.mesh-lines line {
  stroke-dasharray: 8 8;
  animation: dash 2s linear infinite;
}
@keyframes dash {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -16; }
}
.mesh-nodes circle {
  animation: pulse 2s ease-in-out infinite alternate;
  transform-origin: center;
}
.mesh-nodes circle:nth-child(2) { animation-delay: 0.5s; }
.mesh-nodes circle:nth-child(3) { animation-delay: 1.0s; }
.mesh-nodes circle:nth-child(4) { animation-delay: 1.5s; }
@keyframes pulse {
  from { opacity: 1; }
  to   { opacity: 0.6; }
}

/* ============================================================
   WHAT IT IS
   ============================================================ */
.whatis {
  background: var(--yellow-tint);
}
.whatis__inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: center;
}
.whatis__text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.whatis__body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted-soft);
}
.whatis__image-wrap {
  position: relative;
  width: 480px;
  height: 480px;
}
.whatis__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-card);
}
.whatis__gif {
  position: absolute;
  top: -28px;
  right: -28px;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  transform: rotate(6deg);
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
  border: 4px solid var(--yellow-tint);
}

/* ============================================================
   THE ASK / FORM
   ============================================================ */
.ask {
  background: var(--bg);
}
.ask__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 24px;
}
.ask__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 640px;
}
.ask__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 80px;
  align-items: start;
}
.ask__form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px;
}
.ask__form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}
.field__input {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  transition: border-color 200ms ease;
}
.field__input::placeholder { color: var(--muted); }
.field__input:focus {
  outline: none;
  border-color: var(--pink);
}
.field__textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--font-body);
}

/* chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  user-select: none;
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip:hover { border-color: var(--pink); }
.chip-selected {
  background: rgba(255, 79, 139, 0.12);
  border-color: var(--pink);
  color: var(--pink);
}

.ask__privacy {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}

/* side column */
.ask__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ask__side-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}
.ask__side-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}
.ask__divider {
  border: 0;
  border-top: 1px solid var(--border);
  width: 100%;
  margin: 12px 0;
}
.ask__side-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--footer-bg);
  color: var(--bg);
}
.footer__inner {
  padding-top: 48px;
  padding-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--bg);
}
.footer__links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer__link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--bg);
  transition: color 200ms ease;
}
.footer__link:hover { color: var(--pink); }
.footer__link--muted { color: #9C9C9C; }

/* ============================================================
   SCROLL-TRIGGERED FADE-INS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* on mobile, kill rotations so they don't conflict with reveal */
.reveal.is-visible.quote-card--r1 { transform: rotate(-1.2deg); }
.reveal.is-visible.quote-card--r2 { transform: rotate(1.0deg); }
.reveal.is-visible.quote-card--r3 { transform: rotate(0.8deg); }
.reveal.is-visible.quote-card--r4 { transform: rotate(-1.5deg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  :root {
    --pad-x: 64px;
    --pad-y: 96px;
  }
  .hero__inner {
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
    grid-template-columns: 1fr 440px;
    gap: 56px;
  }
  .hero__image-wrap { height: 540px; }
  .whatis__inner {
    grid-template-columns: 1fr 400px;
    gap: 56px;
  }
  .whatis__image-wrap { width: 400px; height: 400px; }
  .ask__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: 56px;
  }
  .vps__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .how__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .how__arrow {
    transform: rotate(90deg);
    text-align: center;
    margin: 0 auto;
  }
  .how-card { min-height: 0; }
}

@media (max-width: 768px) {
  :root {
    --pad-x: 24px;
    --pad-y: 72px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px var(--pad-x) 64px;
  }
  .hero__image-wrap {
    order: -1;
    height: 280px;
  }
  .hero__text { gap: 24px; }
  .hero__setup { font-size: 18px; }
  .hero__sub { font-size: 16px; }
  .hero__cta-row { gap: 16px; }

  .narrative__inner {
    padding-bottom: 48px;
  }
  .narrative__body {
    font-size: 18px;
  }

  .pain__grid,
  .vps__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  /* kill rotations on mobile (too jarring) */
  .quote-card,
  .reveal.is-visible.quote-card--r1,
  .reveal.is-visible.quote-card--r2,
  .reveal.is-visible.quote-card--r3,
  .reveal.is-visible.quote-card--r4 {
    transform: none;
  }
  .quote-card:hover { transform: translateY(-4px); }
  .quote-card { padding: 28px; }
  .quote-card__text { font-size: 18px; }
  .vp-card { padding: 32px; }
  .vp-card__short { font-size: 26px; }

  .whatis__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .whatis__image-wrap {
    width: 100%;
    height: 320px;
    order: -1;
  }
  .whatis__gif { width: 140px; height: 140px; top: -16px; right: -8px; }
  .whatis__body { font-size: 17px; }

  .ask__row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ask__form-wrap { padding: 28px; }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__links { gap: 16px; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__image { animation: none; }
  .mesh-lines line { animation: none; }
  .mesh-nodes circle { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
