/* ==========================================================================
   LensWords campaign landing page — /lenswords/
   Page-scoped additions only. Reuses subpages.css tokens (--sp-ink / --sp-gold
   / --sp-paper / etc.) and its shared shapes verbatim: .sp-app-hero-*,
   .sp-app-device, .sp-beat-row, .sp-btn-*, .sp-section / .sp-section--tint.
   This file exists only for the shapes the campaign page adds and that no
   existing component covers — the ink "why it sticks" band, the three-step
   how-it-works layout, and the coming-soon closing band (Constitution §4:
   reuse before invention; nothing here duplicates a subpages.css shape).

   The teal scene (.sp-scene-teal / .sp-app-hero-aurora-video--teal) is
   LensWords' own scene and already lives in subpages.css — not redefined here.

   LensWords is NOT live on the App Store as of build time, so this page has no
   App Store link, no Smart App Banner, and no store-badge CTA — every CTA is a
   TestFlight mailto in an honest "coming soon" register (Constitution §2: never
   invent availability).
   ========================================================================== */

/* ---------- Hero trust row ---------- */
.lw-trust-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--sp-ink-60);
}

.lw-trust-row .lw-sep {
  color: var(--sp-gold-deep);
}

/* ---------- Hero: device + Mimi mascot, composed (2026-07-18) ----------
   The page shipped with a bare tilted device frame. Mimi now overlaps the
   phone's lower-right corner so she reads as stepping out of the frame to
   greet the visitor — the same phone + overlapping-mascot depth composition
   the Bee Buddy hero uses (beebuddy 9867712), scoped to the tilted
   .sp-app-device--hero LensWords already ships.

   Only Mimi is float-animated here. The device keeps its shared float + tilt
   + sheen untouched. Mimi is a lone true-alpha PNG (no ink-filled, padded,
   rounded container wrapping a screenshot), so she is exempt from the
   composites-to-black-in-Chromium class of bug that forbids animating the
   phone frame itself — that only bites an animated ink+padding frame around a
   screenshot child, which this is not. */
.lw-hero-showcase {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

/* Mimi breaks the phone's lower-right edge, stepping toward the viewer. Her
   waving arm reads outward into the column's open air; her body overlaps the
   least content-critical part of the camera viewfinder screen. */
.lw-hero-mimi {
  position: absolute;
  right: -16%;
  bottom: 1%;
  width: min(172px, 38vw);
  /* height:auto is load-bearing: the <img> carries 380x387 intrinsic attrs
     (for CLS reservation), and a width-only override would otherwise resolve
     against the literal 387 height attribute (beebuddy 66d6f8b lesson). */
  height: auto;
  z-index: 2; /* above the device and its drop-shadow, so she reads as in front */
  filter: drop-shadow(0 18px 26px rgba(13, 20, 33, 0.3));
  animation: lw-mimi-float 5.2s ease-in-out infinite;
  pointer-events: none;
}

/* Mimi bobs on her own rhythm (5.2s) against the device's shared float (7.6s);
   the offset reads as gentle parallax depth rather than two things pulsing in
   lockstep. */
@keyframes lw-mimi-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lw-hero-mimi {
    animation: none;
  }
}

/* ---------- Ink band: scoped dark section on an otherwise light page ----------
   Same material language as the shared .sp-section--tint, but drenched: an
   ink field the teal-scene page cuts to twice (the idea band + the closing
   band) so the story has weight between the two light reading sections. */
.lw-band-ink {
  position: relative;
  background: var(--sp-ink);
  color: var(--sp-ivory);
}

.lw-band-ink .sp-kicker {
  color: var(--sp-gold);
}

.lw-band-ink h2 {
  color: var(--sp-ivory);
}

.lw-ink-intro {
  margin-top: 20px;
  max-width: 64ch;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  color: var(--sp-ivory-70);
  text-wrap: pretty;
}

/* Light-section lead paragraph (how-it-works) — matches the ink-intro rhythm
   but tuned for ink-on-paper contrast. */
.lw-lead {
  margin-top: 18px;
  max-width: 62ch;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.65;
  color: var(--sp-ink-70);
  text-wrap: pretty;
}

/* ---------- Idea grid (three reasons) ---------- */
.lw-idea-grid {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.lw-idea-card {
  position: relative;
  border-radius: var(--sp-r-inner);
  padding: 28px 26px;
  border: 1px solid rgba(246, 243, 236, 0.14);
  background: rgba(246, 243, 236, 0.04);
}

.lw-idea-card .lw-swatch {
  display: block;
  width: 40px;
  height: 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.lw-idea-card h3 {
  font-size: 1.22rem;
  line-height: 1.2;
  color: var(--sp-ivory);
}

.lw-idea-card p {
  margin-top: 10px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--sp-ivory-70);
  text-wrap: pretty;
}

/* ---------- How it works: device + a real three-step sequence ---------- */
.lw-how-layout {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.lw-how-media {
  display: flex;
  justify-content: center;
}

.lw-steps {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: lw-step;
}

.lw-steps li {
  position: relative;
  border-radius: var(--sp-r-inner);
  padding: 22px 24px;
  border: 1px solid var(--sp-ink-14);
  background: rgba(255, 255, 255, 0.5);
}

.lw-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.lw-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sp-teal);
  color: var(--sp-ink);
  font-weight: 700;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.lw-step-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sp-gold-deep);
}

.lw-steps h3 {
  font-size: 1.12rem;
  line-height: 1.25;
}

.lw-steps p {
  margin-top: 8px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--sp-ink-70);
  text-wrap: pretty;
}

/* ---------- Coming-soon closing band ---------- */
.lw-closing-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.lw-closing-head-wrap {
  max-width: 560px;
}

.lw-closing-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lw-closing-head img {
  width: 48px;
  height: 48px;
  border-radius: 22%;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.lw-closing-head span {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 1.3rem;
}

.lw-closing-title {
  margin-top: 22px;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  color: var(--sp-ivory);
}

.lw-closing-copy {
  max-width: 52ch;
  margin-top: 16px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--sp-ivory-70);
  text-wrap: pretty;
}

.lw-closing-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

/* Warm ivory→gold pill for the CTA sitting on the ink band — mirrors the
   ivory/gold store button the dark hero pages use, kept as a class rather
   than an inline style. */
.lw-btn-store-warm {
  color: var(--sp-ink);
  background: radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.6), transparent 45%),
    linear-gradient(135deg, var(--sp-ivory) 0%, var(--sp-gold) 100%);
}

.lw-closing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.9rem;
  font-weight: 600;
}

.lw-closing-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sp-ivory-70);
  transition: color 160ms var(--sp-ease-out);
}

.lw-closing-links a:hover {
  color: var(--sp-gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .lw-how-layout {
    grid-template-columns: 1fr;
  }

  /* Media follows the steps on narrow screens: read the sequence first,
     see the screen underneath it. */
  .lw-how-media {
    order: 2;
  }

  .lw-idea-grid {
    grid-template-columns: 1fr;
  }

  .lw-closing-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .lw-closing-actions {
    align-items: stretch;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .lw-closing-actions .sp-btn {
    justify-content: center;
  }
}

/* ---------- How-it-works demo video (added 2026-07-19) ----------
   Frame mirrors beebuddy's .bb-video-device: deliberately STATIC — a float
   animation on an ink-filled rounded container composites the video child
   to solid black in Chromium. */
.lw-video-device {
  width: min(240px, 56vw);
  margin: 0 auto;
  border-radius: 34px;
  border: 3px solid var(--sp-ink);
  background: var(--sp-ink);
  padding: 8px;
  box-shadow: 0 24px 50px rgba(13, 20, 33, 0.2);
}

.lw-video-device video {
  display: block;
  width: 100%;
  border-radius: 26px;
  background: #000;
}

.lw-video-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--sp-ink-60, rgba(13, 20, 33, 0.6));
}
