/* PurrSleep — landing styles (Google Stitch mockups) */
:root {
  --lavender: #c4b5fd;
  --lavender-soft: #bca8ff;
  --lavender-deep: #9b8ae6;
  --lavender-muted: #a78bfa;
  --ink: #0b0a0f;
  --ink-soft: #1a1720;
  --charcoal: #1e1b22;
  --card-dark: #2a2830;
  --card-dark-2: #323038;
  --text-muted: #a8a4b3;
  --text-soft: #c8c4d0;
  --white: #ffffff;
  --page-light: #f6f4f8;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 12px 40px rgba(20, 16, 28, 0.08);
  --shadow-dark: 0 16px 48px rgba(0, 0, 0, 0.35);
  --radius-card: 20px;
  --radius-pill: 999px;
  --max: 1080px;
  --font: "Nunito Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-soft);
  background: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 12, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--lavender);
}

.logo--light {
  color: var(--white);
}

.nav {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
}

.nav a {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
  position: relative;
}

.nav a:hover {
  color: var(--white);
}

.nav a.active {
  color: var(--lavender);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--lavender);
  border-radius: 2px;
}

.nav a.nav-donate {
  color: var(--text-soft);
  font-weight: 500;
}

.nav a.nav-donate:hover {
  color: var(--white);
}

.nav a.nav-donate.active::after {
  display: none;
}

.header-cta {
  justify-self: end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.35rem;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-primary {
  background: var(--lavender);
  color: var(--ink);
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  border: 1px solid var(--border-subtle);
}

.btn-chip {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--lavender);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
  cursor: pointer;
  justify-self: end;
}

/* ── Hero dark: cat above text, no overlap ── */
.hero-dark {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(155, 138, 230, 0.22), transparent 52%),
    #050507;
  overflow: hidden;
  padding: 1.75rem 0 2.75rem;
}

.hero--stacked {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 0.5rem;
  padding-bottom: 0.25rem;
  gap: 0;
}

.hero-cat-wrap {
  position: relative;
  width: min(70vw, 420px);
  margin: 0.25rem auto 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-cat {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: min(38vh, 320px);
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 0 28px rgba(180, 150, 255, 0.55));
  animation: glow-cat 3.2s ease-in-out infinite;
}

.sound-rings--cat {
  inset: -18% -8%;
}

.hero--stacked h1 {
  color: var(--lavender);
  margin: 0 0 0.85rem;
}

.hero--stacked .lead {
  color: var(--text-muted);
  margin: 0 auto 1.5rem;
}

.section-pad {
  padding-top: 2.5rem;
}

.card-science-dark {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 1.5rem;
  padding: 2rem 1.5rem;
}

.card-science-dark h2 {
  margin: 0 0 0.75rem;
  color: var(--lavender);
  font-size: 1.45rem;
  font-weight: 800;
}

.card-science-dark p {
  margin: 0;
  color: var(--text-muted);
}

.icon-badge--lavender {
  color: var(--lavender);
  margin: 0 auto 0.85rem;
}

.feature-grid--dark .feature-card-dark {
  text-align: center;
  padding: 1.6rem 1.2rem;
}

.feature-card-dark h3 {
  margin: 0 0 0.65rem;
  color: var(--lavender);
  font-size: 1.1rem;
  font-weight: 800;
}

.feature-card-dark p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-card-dark .feature-icon {
  margin: 0 auto 1rem;
}

.profile-list .play {
  border: none;
  cursor: pointer;
}

.profile-list li.is-playing,
.btn-chip.is-playing {
  outline: 2px solid var(--lavender);
}

.ambient-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Hero (legacy helpers) ── */
.page-light {
  background: var(--page-light);
  color: #5c5868;
}

.hero {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--lavender-deep);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero .lead {
  margin: 0 auto 2.25rem;
  max-width: 34rem;
  color: #8a8696;
  font-size: 1.05rem;
}

.phone-stage {
  position: relative;
  width: min(100%, 320px);
  margin: 0 auto 2rem;
  isolation: isolate;
}

.sound-rings {
  position: absolute;
  inset: 8% -18%;
  z-index: 0;
  pointer-events: none;
}

.sound-rings span {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(155, 138, 230, 0.22);
  border-radius: 50%;
  animation: pulse-ring 4.5s ease-out infinite;
}

.sound-rings span:nth-child(2) {
  inset: 10%;
  animation-delay: 0.8s;
  border-color: rgba(155, 138, 230, 0.16);
}

.sound-rings span:nth-child(3) {
  inset: 20%;
  animation-delay: 1.6s;
  border-color: rgba(155, 138, 230, 0.1);
}

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.phone {
  position: relative;
  z-index: 1;
  width: 210px;
  margin: 0 auto;
  aspect-ratio: 9 / 19.2;
  background: #050507;
  border-radius: 28px;
  border: 3px solid #2a2832;
  box-shadow:
    0 0 0 1px #111,
    0 24px 60px rgba(80, 60, 140, 0.28);
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 18px;
  background: #0a0a0c;
  border-radius: 12px;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(155, 138, 230, 0.35), transparent 55%),
    #050507;
  padding: 1.5rem;
}

.phone-screen img {
  width: 78%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(180, 150, 255, 0.65));
  animation: glow-cat 3.2s ease-in-out infinite;
}

@keyframes glow-cat {
  0%,
  100% {
    filter: drop-shadow(0 0 18px rgba(180, 150, 255, 0.45));
  }
  50% {
    filter: drop-shadow(0 0 36px rgba(196, 181, 253, 0.85));
  }
}

.btn-ghost-light {
  background: transparent;
  color: var(--lavender-deep);
  border: 1.5px solid rgba(155, 138, 230, 0.45);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

@media (max-width: 560px) {
  .hero-cat-wrap {
    width: min(82vw, 340px);
    margin-bottom: 1.1rem;
  }
  .hero-cat {
    max-height: min(32vh, 240px);
  }
}

/* ── Light cards ── */
.section {
  padding: 1.5rem 0 3.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
}

.card-science {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2rem;
  padding: 2.25rem 2rem;
}

.icon-badge {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.85rem;
  display: grid;
  place-items: center;
  color: var(--lavender-deep);
}

.icon-badge svg {
  width: 28px;
  height: 28px;
}

.card-science h2,
.feature-card h3 {
  margin: 0 0 0.75rem;
  color: var(--lavender-deep);
  font-weight: 800;
}

.card-science h2 {
  font-size: 1.45rem;
}

.card-science p,
.feature-card p {
  margin: 0;
  color: #7a7688;
  font-size: 0.98rem;
}

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

.feature-card {
  text-align: center;
  padding: 1.85rem 1.35rem;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--charcoal);
  display: grid;
  place-items: center;
  color: var(--lavender);
}

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

.feature-card h3 {
  font-size: 1.15rem;
}

/* ── Dark sections ── */
.page-dark,
.section-dark {
  background: var(--ink);
  color: var(--text-soft);
}

.section-dark {
  padding: 3.5rem 0 4rem;
}

.section-intro {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-intro h1,
.section-intro h2 {
  margin: 0 0 0.85rem;
  color: var(--lavender);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-intro p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--text-muted);
}

.card-dark {
  background: var(--card-dark);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-dark);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem;
}

.mixer-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.mixer-copy .icon-inline {
  width: 36px;
  height: 36px;
  color: var(--lavender);
  margin-bottom: 0.75rem;
}

.mixer-copy h3 {
  margin: 0 0 0.65rem;
  color: var(--lavender);
  font-size: 1.35rem;
  font-weight: 800;
}

.mixer-copy p {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.mixer-visual {
  background: linear-gradient(160deg, #14121a, #0c0b10 55%, #1a1528);
  border-radius: 16px;
  padding: 1.1rem;
  border: 1px solid var(--border-subtle);
  min-height: 240px;
}

.eq-title {
  color: var(--lavender);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.eq-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.45rem;
  align-items: end;
  height: 140px;
  margin-bottom: 0.85rem;
}

.eq-bars .band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  justify-content: flex-end;
}

.eq-bars .track {
  width: 10px;
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.eq-bars .fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, var(--lavender-deep), var(--lavender));
  border-radius: 8px;
  animation: eq-bounce 2.4s ease-in-out infinite;
}

.eq-bars .band:nth-child(1) .fill { height: 72%; animation-delay: 0s; }
.eq-bars .band:nth-child(2) .fill { height: 88%; animation-delay: 0.15s; }
.eq-bars .band:nth-child(3) .fill { height: 55%; animation-delay: 0.3s; }
.eq-bars .band:nth-child(4) .fill { height: 95%; animation-delay: 0.1s; }
.eq-bars .band:nth-child(5) .fill { height: 62%; animation-delay: 0.25s; }
.eq-bars .band:nth-child(6) .fill { height: 78%; animation-delay: 0.05s; }
.eq-bars .band:nth-child(7) .fill { height: 48%; animation-delay: 0.2s; }

@keyframes eq-bounce {
  0%,
  100% {
    transform: scaleY(0.92);
  }
  50% {
    transform: scaleY(1.06);
  }
}

.eq-bars .label {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.1;
  max-width: 3.2rem;
}

.eq-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  color: var(--lavender);
}

.dark-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
}

.dark-stack {
  display: grid;
  gap: 1.25rem;
}

.card-dark h3 {
  margin: 0 0 0.55rem;
  color: var(--lavender);
  font-size: 1.2rem;
  font-weight: 800;
}

.card-dark > p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.profile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.profile-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.92rem;
}

.profile-list .play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(196, 181, 253, 0.15);
  color: var(--lavender);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
}

.ambient-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Personalization ── */
.silhouette-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.phone-pair {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
}

.phone--sm {
  width: 130px;
}

.phone--sm .phone-screen img {
  width: 72%;
}

.theme-swatches {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.swatch {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.lang-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── Support ── */
.faq-card h2 {
  margin: 0 0 1rem;
  color: var(--white);
  font-size: 1.25rem;
}

.faq-item {
  border-top: 1px solid var(--border-subtle);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 1.05rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q .chevron {
  color: var(--lavender);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-q .chevron {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding: 0 0 1.05rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.open .faq-a {
  display: block;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.support-card .icon-inline {
  width: 28px;
  height: 28px;
  color: var(--lavender);
  margin-bottom: 0.75rem;
}

.support-card h3 {
  color: var(--white);
  margin: 0 0 0.4rem;
}

.support-card a {
  color: var(--lavender);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.support-card .link-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

/* ── Privacy / legal prose ── */
.legal {
  padding: 3rem 0 4rem;
}

.legal h1 {
  color: var(--lavender);
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.legal .meta {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.legal-body {
  background: var(--card-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  white-space: pre-wrap;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ── Footer ── */
.site-footer {
  background: var(--charcoal);
  border-top: 1px solid var(--border-subtle);
  padding: 1.35rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  color: var(--white);
  font-weight: 700;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: center;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav a:hover {
  color: var(--lavender);
}

.footer-copy {
  color: #7a7688;
  font-size: 0.82rem;
  text-align: right;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(14, 12, 18, 0.98);
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-cta .btn {
    padding: 0.55rem 0.95rem;
    font-size: 0.85rem;
  }

  .feature-grid,
  .feature-grid--dark,
  .mixer-card,
  .dark-grid,
  .silhouette-card,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .phone-pair {
    order: -1;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .phone {
    width: 180px;
  }

  .phone--sm {
    width: 110px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-copy {
    text-align: center;
  }
}
