/* =========================================================================
   scenes.css — the "Loud Room -> Calm Room" revamp layer.
   The WebGL hero canvas, the body feature cards, and the footer pricing block.
   Loaded after sections.css, before dark.css.
   ========================================================================= */

/* ------------------------- hero WebGL field ---------------------------- */
.hero3d {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; display: block; pointer-events: none;
  opacity: 0.92;
  /* clear the upper ~40% (headline) — the field lives behind/around the device */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 38%, #000 54%, #000 86%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, transparent 38%, #000 54%, #000 86%, transparent 100%);
  animation: hero3d-in 1.4s var(--ease-out) both;
}
@keyframes hero3d-in { from { opacity: 0; } to { opacity: 0.92; } }
.hero__inner, .hero__device { position: relative; z-index: 2; }
/* WebGL off / reduced-motion: hide canvas, lean on the ambient aura + screenshot */
.no-hero3d .hero3d { display: none; }

/* ---- Feature cards (stacked) — the body content (#how section) ---- */
.cards__wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 48px);
  max-width: 1000px;
  margin-inline: auto;
}
.feature-card {
  background-color: var(--bg-pure);
  background-image:
    linear-gradient(135deg, var(--paper-surface), var(--paper-surface)),
    repeating-linear-gradient(17deg, transparent 0 8px, var(--paper-fiber) 8px 8.6px, transparent 8.6px 16px),
    repeating-linear-gradient(-23deg, transparent 0 11px, var(--paper-fiber-soft) 11px 11.6px, transparent 11.6px 22px);
  border-radius: var(--r-2xl);
  padding: clamp(34px, 5vw, 76px) clamp(22px, 4vw, 60px) clamp(26px, 4vw, 60px);
  text-align: center;
  box-shadow: var(--shadow-md), inset 0 0 0 1px color-mix(in srgb, var(--ink) 9%, transparent);
}
.feature-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-h2);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  max-width: 18ch;
  margin: 0 auto clamp(14px, 1.6vw, 20px);
}
.feature-card__body {
  max-width: 48ch;
  margin: 0 auto clamp(30px, 4vw, 52px);
}
.feature-card__media { line-height: 0; }
.feature-card__media img {
  width: 100%;
  max-width: 760px;
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 26px 50px rgba(16, 24, 40, 0.18));
}

/* ---- Search landing content: real use cases and answers, kept in the product voice ---- */
.seo-section__intro { max-width: 780px; margin-inline: auto; text-align: center; }
.seo-section__intro h2,
.faq-section h2 {
  margin-top: var(--s-3);
  font-size: var(--t-h2);
}
.seo-section__intro .lead { max-width: 55ch; margin: var(--s-4) auto 0; }
.seo-section__eyebrow {
  color: var(--blue-deep);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.seo-section__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  max-width: 1100px;
  margin: var(--s-6) auto 0;
}
.seo-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--hair);
  border-radius: 28px;
  background: var(--glass);
  box-shadow: var(--shadow-sm);
}
.seo-card h3 { font-size: var(--t-h4); }
.seo-card p { margin-top: var(--s-3); color: var(--ink-2); }
.seo-card a {
  margin-top: auto;
  padding-top: var(--s-5);
  color: var(--blue-deep);
  font-size: var(--t-sm);
  font-weight: 600;
}
.seo-card a span { display: inline-block; margin-left: 0.25em; transition: transform var(--dur-fast) var(--ease-out); }
.seo-card a:hover span { transform: translateX(3px); }

.faq-section__inner { max-width: 820px; }
.faq-section h2 { max-width: 20ch; }
.faq-list { margin-top: var(--s-6); border-top: 1px solid var(--hair); }
.faq-list details { border-bottom: 1px solid var(--hair); }
.faq-list summary {
  position: relative;
  padding: var(--s-4) var(--s-6) var(--s-4) 0;
  color: var(--ink);
  cursor: pointer;
  font-size: var(--t-h4);
  font-weight: 600;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  position: absolute;
  top: 50%; right: 0;
  content: "+";
  color: var(--blue-deep);
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 64ch; padding: 0 var(--s-6) var(--s-4) 0; color: var(--ink-2); }

/* ------------------------- footer + pricing ---------------------------- */
.footer.section { padding-top: clamp(72px, 11vh, 140px); padding-bottom: clamp(40px, 6vh, 72px); }
.footer__contact-stage {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1100px;
  min-height: 570px;
  margin: 0 auto clamp(64px, 9vh, 120px);
}
.footer__pricing { width: 100%; max-width: 680px; margin-inline: auto; text-align: center; }
.footer__contact-stage .price-block { will-change: transform; }
.contact-card {
  position: absolute;
  top: 50%; right: 0;
  display: flex;
  flex-direction: column;
  width: calc(50% - clamp(10px, 1.8vw, 24px));
  height: var(--pricing-card-height, auto);
  padding: clamp(32px, 4vw, 56px);
  box-sizing: border-box;
  border-radius: var(--r-2xl);
  color: var(--ink-2);
  background-color: var(--bg-pure);
  background-image:
    linear-gradient(135deg, var(--paper-surface), var(--paper-surface)),
    repeating-linear-gradient(17deg, transparent 0 8px, var(--paper-fiber) 8px 8.6px, transparent 8.6px 16px),
    repeating-linear-gradient(-23deg, transparent 0 11px, var(--paper-fiber-soft) 11px 11.6px, transparent 11.6px 22px);
  box-shadow: var(--shadow-md), inset 0 0 0 1px color-mix(in srgb, var(--ink) 9%, transparent);
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}
.contact-card h2 { max-width: 12ch; margin-bottom: var(--s-4); font-size: clamp(2rem, 3.3vw, 3.2rem); letter-spacing: -0.045em; }
.contact-card > p { max-width: 29ch; font-size: var(--t-body); line-height: 1.6; }
.contact-card__email {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: var(--s-5);
  padding-bottom: 0.25em;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color var(--dur-fast) var(--ease-out), gap var(--dur-fast) var(--ease-out);
}
.contact-card__email:hover { gap: 0.85em; color: var(--blue-deep); }
/* ---- Pricing block — a sibling of the body .feature-card(s) ----
   Markup is class="feature-card price-block", so it inherits the body-card chrome
   (var(--bg-pure) surface, var(--r-2xl), var(--shadow-md) + the inset color-mix
   hairline, centered). We only add the price typography + the meta detail row. */
.price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 540px;
  margin-inline: auto;
  padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px);
}
/* "$9.99" is the card headline (replaces the dropped H2); --t-h1 matches the hero scale. */
.price-block__amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-h1);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
}
.price-block__once {
  margin-top: var(--s-3);
  font-size: var(--t-h4);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.price-block__trial {
  margin-top: var(--s-1);
  font-size: var(--t-lead);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
.price-block__cta { margin-top: clamp(24px, 3vw, 36px); }
/* Supporting details: one tidy dot-separated meta row; stacks on phones. */
.price-block__meta {
  list-style: none;
  margin: var(--s-5) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: var(--t-xs);
  letter-spacing: 0.01em;
  color: var(--ink-3);
}
.price-block__meta li { display: inline-flex; align-items: center; }

/* ---------------------------------------------------------------------------
   No-motion safety: if the GSAP/ScrollTrigger spine fails to load (CDN/SRI/offline),
   main.js adds .no-motion so JS-hidden copy still shows and the page degrades cleanly.
   Mirrors the reduced-motion intent for the spine-unavailable case.
   --------------------------------------------------------------------------- */
.no-motion [data-reveal], .no-motion [data-reveal-line] { opacity: 1 !important; transform: none !important; }
.no-motion .hero3d { display: none; }
.no-motion .footer__contact-stage .price-block { transform: translateX(-51%); }
.no-motion .contact-card { opacity: 1; visibility: visible; transform: translateY(-50%); }

@media (max-width: 860px) {
  .footer__contact-stage { display: flex; flex-direction: column; min-height: 0; }
  .footer__contact-stage .footer__pricing { max-width: 680px; margin-bottom: var(--s-5); }
  .footer__contact-stage .price-block { transform: none !important; }
  .contact-card { position: static; width: min(100%, 680px); height: auto !important; transform: none !important; opacity: 1 !important; visibility: visible !important; }
}

@media (max-width: 780px) {
  .seo-section__grid { grid-template-columns: 1fr; }
  .seo-card { min-height: 0; }
  .seo-card a { margin-top: var(--s-4); }
}
