/* Whatifr — light aurora mesh (FTP-friendly, no build) */

:root {
  --mesh-base: #f7f5fc;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #1c1c28;
  --text-muted: #5c5c6d;
  --purple: #7d5ce1;
  --purple-mid: #6b4fd4;
  --orange: #d49466;
  /* Full spectrum — hero headline, stat number (matches CTA strip mood) */
  --gradient-brand: linear-gradient(90deg, #4c1d95 0%, #1e3a8a 48%, #fb923c 100%);
  --gradient-hero: var(--gradient-brand);
  /* Buttons: purple → dark blue only */
  --gradient-btn: linear-gradient(90deg, #4c1d95 0%, #1e3a8a 100%);
  --blob-lavender: #c4b5fd;
  --blob-peach: #fbc9a8;
  --blob-blur: 80px;
  --tap-min: 44px;
  --border: rgba(20, 20, 40, 0.08);
  --radius: 12px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  /* Header wordmark only — distinct from body (DM Sans) and section titles (Fraunces) */
  --font-logo: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--mesh-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

a {
  color: var(--purple-mid);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  box-sizing: border-box;
  width: min(1100px, 100%);
  max-width: 100%;
  margin-inline: auto;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.section-intro.is-centered {
  margin-inline: auto;
}

.section-intro.is-narrow {
  max-width: 40ch;
  margin-inline: auto;
}

/* Aurora mesh — blurred blobs per section (not a single flat gradient) */

.mesh-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--mesh-base);
}

.mesh-section::before,
.mesh-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(var(--blob-blur));
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.mesh-section::before {
  width: min(460px, 95vw);
  height: min(460px, 95vw);
  background: var(--blob-lavender);
  top: -12%;
  left: -8%;
}

.mesh-section::after {
  width: min(400px, 88vw);
  height: min(400px, 88vw);
  background: var(--blob-peach);
  bottom: -10%;
  right: -6%;
}

/* Rotate emphasis so each block feels related but not identical */

.mesh-section--e::before {
  top: -10%;
  right: 15%;
  left: auto;
  background: var(--blob-lavender);
}

.mesh-section--e::after {
  bottom: -14%;
  left: 10%;
  right: auto;
  background: var(--blob-peach);
}

.mesh-section--f::before {
  top: 5%;
  left: -12%;
  width: min(420px, 90vw);
  height: min(420px, 90vw);
}

.mesh-section--f::after {
  bottom: 8%;
  right: -10%;
  top: auto;
  width: min(360px, 85vw);
  height: min(360px, 85vw);
}

.mesh-section--g::before,
.mesh-section--g::after {
  opacity: 0.38;
}

.mesh-section--g::before {
  top: -20%;
  left: 20%;
}

.mesh-section--g::after {
  bottom: -25%;
  right: 15%;
}

.mesh-section--h::before,
.mesh-section--h::after {
  opacity: 0.32;
}

.mesh-section--h::before {
  width: min(320px, 70vw);
  height: min(320px, 70vw);
  top: -15%;
  left: 5%;
}

.mesh-section--h::after {
  width: min(280px, 65vw);
  height: min(280px, 65vw);
  bottom: -20%;
  right: 10%;
}

.mesh-section > .container {
  position: relative;
  z-index: 1;
}

.site-footer.mesh-section > .container {
  position: relative;
  z-index: 1;
}

/* Header */

.mesh-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.75rem 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.site-header .inner.site-header__inner,
.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1rem;
}

.nav--start {
  justify-self: start;
}

.nav--end {
  justify-self: end;
}

.site-header .nav--end > .btn-primary {
  padding-block: 0.42rem;
  padding-inline: 1.05rem;
  min-height: 38px;
  font-size: 0.875rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  height: var(--tap-min);
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  color: #1e3a8a;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:focus-visible {
  outline: 2px solid #4c1d95;
  outline-offset: 2px;
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle--open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle--open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle--open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle__bar {
    transition: none;
  }
}

.nav-drawer {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 25;
  padding: 0.75rem 0 1rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(30, 58, 138, 0.12);
}

.nav-drawer__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}

.nav-drawer__inner > a:not(.btn) {
  padding: 0.65rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: #1e3a8a;
  text-decoration: none;
}

.nav-drawer__inner > a:not(.btn):hover {
  color: #4c1d95;
}

.nav-drawer__cta {
  margin-top: 0.35rem;
  align-self: flex-start;
}

.nav--start a[aria-current="page"],
.nav-drawer__inner > a[aria-current="page"]:not(.btn) {
  font-weight: 600;
  color: #4c1d95;
}

body.nav-drawer-open {
  overflow: hidden;
}

.contact-page .section-intro {
  margin-bottom: 0;
}

.contact-invite {
  margin: 1rem 0 0;
  max-width: 52ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.contact-credit {
  margin: 1.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact-credit a {
  color: #1e3a8a;
  font-weight: 500;
  text-decoration: none;
}

.contact-credit a:hover {
  color: #4c1d95;
  text-decoration: underline;
}

.contact-more {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
  max-width: 52rem;
}

.contact-more__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 1.35rem;
}

.promo-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .promo-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.promo-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: calc(var(--radius) + 2px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-card-link:hover .promo-card {
  border-color: rgba(30, 58, 138, 0.18);
  box-shadow: 0 8px 28px rgba(30, 58, 138, 0.12);
}

.promo-card-link:focus-visible {
  outline: 2px solid #4c1d95;
  outline-offset: 3px;
}

.promo-card-link:focus-visible .promo-card {
  border-color: rgba(76, 29, 149, 0.35);
}

.promo-card {
  margin: 0;
  padding: 1.35rem 1.25rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(30, 20, 60, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.promo-card__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 22%;
  object-fit: cover;
  flex-shrink: 0;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
}

.promo-card__icon--outlined {
  box-sizing: border-box;
  border: 1px solid #000;
}

.promo-card__name {
  font-family: var(--font-logo);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.promo-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.contact-page {
  padding-bottom: clamp(4rem, 11vw, 6.5rem);
}

.privacy-page {
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(4rem, 11vw, 6.5rem);
}

.contact-mail {
  margin: 1.25rem 0 0;
  font-size: 1.0625rem;
}

.contact-mail a {
  color: #1e3a8a;
  font-weight: 500;
  text-decoration: none;
}

.contact-mail a:hover {
  color: #4c1d95;
  text-decoration: underline;
}

.privacy-policy {
  max-width: 46rem;
}

.privacy-updated {
  margin: 0 0 2rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.privacy-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 2rem 0 0.65rem;
}

.privacy-policy > p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.privacy-policy > p:last-child {
  margin-bottom: 0;
}

.privacy-policy a {
  color: #1e3a8a;
  font-weight: 500;
  text-decoration: none;
}

.privacy-policy a:hover {
  color: #4c1d95;
  text-decoration: underline;
}

.privacy-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.privacy-list li {
  margin-bottom: 0.35rem;
}

.logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(1.65rem, 1.15rem + 2vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  text-decoration: none;
  text-align: center;
}

/* App icon next to wordmark (source: images/AppIcon1024x1024.png) */
.logo-icon {
  flex-shrink: 0;
  width: 1.12em;
  height: 1.12em;
  border-radius: 22%;
  object-fit: cover;
  display: block;
  box-shadow: 0 1px 3px rgba(30, 58, 138, 0.16);
  border: 1px solid rgba(30, 58, 138, 0.12);
}

.logo-text {
  line-height: inherit;
}

.logo:hover {
  text-decoration: none;
  color: var(--text);
  opacity: 0.88;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav a {
  color: #1e3a8a;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: #4c1d95;
}

.nav a.btn-primary,
.nav a.btn-primary:hover {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 18px rgba(30, 58, 138, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

/* Apple “Download on the App Store” badge (official SVG art) */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 6px;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.app-store-badge:hover {
  opacity: 0.92;
  text-decoration: none;
}

.app-store-badge:active {
  transform: scale(0.98);
}

.app-store-badge:focus-visible {
  outline: 2px solid var(--purple-mid);
  outline-offset: 4px;
}

.cta-strip .app-store-badge:focus-visible {
  outline-color: #fff;
}

.app-store-badge img {
  display: block;
  height: 40px;
  width: auto;
}

/* Store badge "Coming soon" overlay (pre-launch) */
.store-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.store-badge-wrap.is-coming-soon .app-store-badge {
  pointer-events: none;
  filter: grayscale(0.35);
  opacity: 0.86;
}

.store-badge-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  /* Nearly invisible layer so backdrop blur applies */
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.store-badge-overlay__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f97316;
  justify-self: center;
  align-self: center;
  text-align: center;
  line-height: 1;
  max-width: 95%;
  padding-inline: 0.15rem;
  text-shadow:
    /* tiny black "stroke" */
    -1px -1px 0 rgba(0, 0, 0, 0.9),
    1px -1px 0 rgba(0, 0, 0, 0.9),
    -1px 1px 0 rgba(0, 0, 0, 0.9),
    1px 1px 0 rgba(0, 0, 0, 0.9),
    /* soft depth */
    0 2px 14px rgba(0, 0, 0, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Top (hero) badge: bigger "COMING SOON" */
.hero .store-badge-overlay__pill {
  font-size: 1.68rem; /* ~60% bigger than 1.05rem */
}

@media (min-width: 480px) {
  .app-store-badge img {
    height: 44px;
  }
}

/* Hero: slightly larger black badge than footer CTA */
.hero .hero-actions .app-store-badge img {
  height: 48px;
  width: auto;
}

@media (min-width: 480px) {
  .hero .hero-actions .app-store-badge img {
    height: 54px;
  }
}

@media (min-width: 900px) {
  .hero .hero-actions .app-store-badge img {
    height: 58px;
  }
}

/* Hero (includes perk pills — same mesh background, no divider) */

.hero {
  padding: clamp(1.75rem, 5vw, 3rem) 0 0;
}

.hero-perks {
  position: relative;
  z-index: 1;
  padding-top: clamp(1.25rem, 3.5vw, 2rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.25rem);
  align-items: start;
}

@media (min-width: 900px) {
  .hero-grid {
    align-items: start;
    align-content: start;
    grid-template-columns: minmax(0, 1fr) minmax(340px, min(540px, 48vw));
    gap: clamp(1.35rem, 3.5vw, 2.35rem);
  }

  /* Copy column hugs the phone: block + text + badge align right */
  .hero .hero-copy {
    justify-self: end;
    margin-inline-start: auto;
    width: min(560px, 100%);
    text-align: right;
  }

  .hero .hero-copy h1 {
    align-items: flex-end;
  }

  .hero .hero-copy .hero-actions {
    justify-content: flex-end;
  }

  /* Pull only the carousel column up — nudge left toward copy */
  .hero-visual {
    align-self: start;
    margin-top: clamp(-2.75rem, -5.5vw, -1rem);
    margin-inline-start: clamp(-0.75rem, -1vw, -0.35rem);
    height: auto;
    min-height: 0;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .hero-phone-carousel {
    flex: 0 0 auto;
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .hero-carousel__frame {
    justify-content: flex-start;
    width: 100%;
  }

  .hero-carousel__stage {
    flex: 0 0 auto;
    width: min(100%, min(272px, 28vw));
  }
}

.hero-copy {
  max-width: 560px;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  text-wrap: balance;
  min-height: 2.85lh;
}

.hero-headline {
  display: inline-block;
  max-width: 100%;
}

.hero-headline__text {
  display: inline;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Caret flows with the last line of text (no orphan wrap). Hidden whenever not typing. */
.hero-headline__text::after {
  content: none;
}

.hero-headline--typing .hero-headline__text::after {
  content: "";
  display: inline-block;
  width: 0.075em;
  height: 0.85em;
  margin-left: 0.06em;
  vertical-align: -0.06em;
  border-radius: 1px;
  background: linear-gradient(180deg, #6366f1 0%, #a855f7 100%);
  animation: hero-headline-caret 0.95s steps(1, end) infinite;
}

@keyframes hero-headline-caret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-headline--typing .hero-headline__text::after {
    content: none;
    animation: none;
  }
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--text);
  margin: 0 0 1rem;
  max-width: 52ch;
}

.hero-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions.is-centered {
  justify-content: center;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-phone-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-carousel__frame {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
}

.hero-carousel__stage {
  position: relative;
  flex: 0 1 auto;
  min-height: 0;
  width: min(100%, clamp(240px, 82vw, 300px));
  height: auto;
  aspect-ratio: 201 / 437;
  overflow: hidden;
  border-radius: 28px;
}

.phone-carousel__slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.phone-carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.45s ease;
}

.phone-carousel__slide.is-active {
  opacity: 1;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .phone-carousel__slide {
    transition: opacity 0.25s ease;
  }
}

.phone-carousel__arrow {
  display: grid;
  grid-template-rows: 85fr 15fr;
  justify-items: center;
  align-self: stretch;
  flex-shrink: 0;
  width: 2.375rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(100, 90, 140, 0.55);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.phone-carousel__arrow:hover {
  color: var(--purple-mid);
}

.phone-carousel__arrow:active {
  transform: scale(0.94);
}

.phone-carousel__arrow:focus-visible {
  outline: 2px solid var(--purple-mid);
  outline-offset: 2px;
}

.phone-carousel__chev {
  grid-row: 2;
  place-self: center;
  display: block;
}

/* Sections */

section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-block {
  background: transparent;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--text);
  text-wrap: balance;
}

.section-intro {
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 2.5rem;
}

/* Perk pills (live inside .hero) */

.perk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem 0.75rem;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.perk-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  width: max-content;
  font-size: 0.9375rem;
  color: var(--text);
  padding: 0.55rem 1.15rem;
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(30, 20, 60, 0.04);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.perk-emoji {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1;
}

/* Questions band */

.questions-band {
  padding: clamp(1.75rem, 4.5vw, 2.75rem) 0;
}

.questions-band .section-intro {
  margin-bottom: 0;
}

.questions-band .section-intro + .section-intro {
  margin-top: 0.5rem;
}

.questions-band--white {
  background: #fff;
  border: none;
  box-shadow: 0 1px 0 rgba(20, 20, 40, 0.06);
}

.faq-section .section-intro {
  margin-bottom: 1.75rem;
}

.faq-list {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0;
}

.faq-item {
  margin: 0 0 1.35rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.faq-q {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.4rem;
}

.faq-a {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.stat-number {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

/* Categories */

.category-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem 1.25rem;
}

.category-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1.25rem 1rem;
  min-height: 4.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.0625rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(30, 20, 60, 0.05);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.categories {
  border-top: 1px solid var(--border);
}

/* Match .questions-band vertical rhythm (same as FAQ / “76 questions” band) */
#categories.categories,
.question-teasers,
#moments.moments {
  padding-top: clamp(1.75rem, 4.5vw, 2.75rem);
  padding-bottom: clamp(1.75rem, 4.5vw, 2.75rem);
}

/* Teaser questions (white band, redacted bits) */

.question-teasers {
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(20, 20, 40, 0.06);
}

.teaser-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 44rem;
  margin-inline: auto;
}

.teaser-item {
  margin: 0;
  padding: 1.15rem 1.35rem;
  background: #f4f2fb;
  border: 1px solid rgba(20, 20, 40, 0.08);
  border-radius: var(--radius);
  overflow: visible;
}

.teaser-line {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
}

.teaser-redact {
  position: relative;
  display: inline-block;
  width: var(--w, 4rem);
  height: 1.12em;
  margin: 0 0.12em;
  vertical-align: -0.1em;
  border-radius: 6px;
  background: linear-gradient(180deg, #a8a8b8 0%, #6b6b7e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.06);
  cursor: help;
  outline: none;
}

.teaser-redact::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 20;
  transform: translateX(-50%) translateY(6px);
  padding: 0.55rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(20, 20, 40, 0.1);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(30, 20, 60, 0.14);
  white-space: normal;
  /* Tooltip is positioned in a ~4–6rem-wide span; min/max width avoid shrink-to-fit narrow column */
  min-width: min(11rem, calc(100vw - 2rem));
  max-width: min(18rem, calc(100vw - 2rem));
  width: max-content;
  box-sizing: border-box;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
}

.teaser-redact:hover::after,
.teaser-redact:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .teaser-redact::after {
    transition: none;
  }
}

.cat-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

/* Moments */

.moment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.moment-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(30, 20, 60, 0.05);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.moment-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.moment-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.moment-aside {
  font-size: 0.88em;
  font-style: italic;
  white-space: nowrap;
  opacity: 0.92;
}

@media (hover: hover) and (pointer: fine) {
  .perk-item:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 32px rgba(30, 20, 60, 0.12);
  }

  .category-chip:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 36px rgba(30, 20, 60, 0.12);
  }

  .moment-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 40px rgba(30, 20, 60, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .perk-item,
  .category-chip,
  .moment-card {
    transition: box-shadow 0.2s ease;
  }
}

@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .perk-item:hover {
    transform: none;
    box-shadow: 0 10px 32px rgba(30, 20, 60, 0.12);
  }

  .category-chip:hover {
    transform: none;
    box-shadow: 0 14px 36px rgba(30, 20, 60, 0.12);
  }

  .moment-card:hover {
    transform: none;
    box-shadow: 0 14px 40px rgba(30, 20, 60, 0.1);
  }
}

/* CTA strip — bright full-width gradient banner */

.cta-strip {
  text-align: center;
  padding-top: clamp(1.75rem, 4.5vw, 2.75rem);
  padding-bottom: clamp(2.25rem, 6.5vw, 4rem);
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  border: none;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      95% 85% at 100% 100%,
      rgba(254, 215, 170, 0.65) 0%,
      rgba(251, 146, 60, 0.25) 42%,
      transparent 68%
    ),
    linear-gradient(90deg, #4c1d95 0%, #1e3a8a 48%, #fb923c 100%);
  background-color: #1e3a8a;
}

.cta-strip h2 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.cta-lead {
  font-size: clamp(1.125rem, 2.2vw, 1.35rem);
  font-weight: 500;
  color: #fff;
  margin: 0 0 0.4rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}

.cta-lead em {
  font-style: italic;
  font-weight: 700;
  color: #fff;
}

.cta-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1.35rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Footer */

.site-footer {
  padding: 2.5rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* Phones & small tablets: tighter mesh, clearer nav, no horizontal scroll */

@media (max-width: 720px) {
  :root {
    --blob-blur: 56px;
  }

  .mesh-header .site-header__inner {
    grid-template-columns: 1fr auto;
    gap: 0.5rem 0.35rem;
  }

  .mesh-header .nav--start,
  .mesh-header .nav--end {
    display: none;
  }

  .mesh-header .logo {
    justify-self: start;
    font-size: clamp(1.35rem, 0.95rem + 1.75vw, 1.95rem);
    line-height: 1.05;
  }

  .mesh-header .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .mesh-header .nav-drawer .btn-primary {
    padding: 0.42rem 0.85rem;
    font-size: 0.8125rem;
    min-height: 38px;
  }

  .site-footer .inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem 1rem;
  }

  .category-chip {
    padding: 1.1rem 0.85rem;
    min-height: 3.75rem;
    font-size: 1rem;
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero .hero-actions {
    align-items: center;
  }

  .cta-strip .hero-actions .app-store-badge {
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
  }

  .cta-strip .hero-actions .app-store-badge img {
    width: 100%;
    height: auto;
  }
}

/* Custom cursor: brain + trailing ? tail (mouse only; see js/cursor.js)
   Later: replace the brain with your app icon — set --cursor-main-size,
   use an <img> inside .cursor-fx__main (see .cursor-fx__main--image). */

@media (hover: hover) and (pointer: fine) {
  html.has-cursor-fx {
    cursor: none;
  }

  html.has-cursor-fx :where(a, button, input, textarea, select, label, summary, [role="button"]) {
    cursor: none !important;
  }
}

.cursor-fx {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cursor-fx.is-active {
  opacity: 1;
}

.cursor-fx__main,
.cursor-fx__trail {
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1;
  user-select: none;
  will-change: transform;
  contain: layout style;
}

.cursor-fx__main {
  --cursor-main-size: 1.25rem;
  font-size: var(--cursor-main-size);
  z-index: 2;
  font-family:
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji",
    sans-serif;
}

/* PNG cursor leader — images/brain.png (see js/cursor.js) */
.cursor-fx__main.cursor-fx__main--image {
  --cursor-main-size: 1.45rem;
  font-size: 0;
  line-height: 0;
}

.cursor-fx__main.cursor-fx__main--image img {
  display: block;
  width: var(--cursor-main-size);
  height: var(--cursor-main-size);
  object-fit: contain;
}

.cursor-fx__trail {
  z-index: 1;
  font-family: var(--font-display), Georgia, serif;
  font-weight: 700;
  color: var(--purple-mid);
  text-shadow: 0 1px 2px rgba(125, 92, 225, 0.2);
}
