/* ==========================================================================
   Bee Buddy campaign landing page — /beebuddy/
   Page-scoped additions only. Reuses subpages.css tokens (--sp-ink/--sp-gold/
   --sp-paper/etc.), .sp-section / .sp-card / .sp-btn-* / .sp-app-hero-* verbatim —
   this file exists because the page's content shapes (privacy trust band,
   video-in-frame, growth stages, printables grid, pricing card) have no
   existing component to reuse (Constitution §4 still applies: nothing here
   duplicates a shape subpages.css already has). Ported from the Bee Buddy
   GTM landing page built at ~/projects/altaiventures/app/beebuddy/page.tsx
   (commit 808386e), adapted from that page's playful Tailwind/kids-app
   register into Altai's own calm ink/paper/gold, Fraunces/Inter system —
   the loud rotated-sticker/thick-border comic treatment does not belong on
   an Altai surface (Constitution §4 design canon + §3 language law).
   ========================================================================== */

/* ---------- Hero: phone mockup + mascot, composed (2026-07-11 hero v2) ----
   Owner feedback: the old floating-mascot-in-a-void right column felt empty
   at 1440+. Replaced with a depth composition — the cinematic autumn "home"
   screenshot in a phone frame (same device treatment as .bb-video-device /
   .bb-parent-frame below, for consistency), with Buddy overlapping the
   frame's bottom-right so he reads as stepping out of the screen. The
   showcase hugs the phone (width: fit-content) so Buddy can be positioned
   against the phone's real corner regardless of column width. */
.bb-hero-showcase {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.bb-hero-phone {
  position: relative;
  width: min(300px, 66vw);
  border-radius: 44px;
  border: 3px solid var(--sp-ink);
  background: var(--sp-ink);
  padding: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 34px 72px rgba(13, 20, 33, 0.22);
  /* Deliberately NOT animated: a transform animation promotes this
     ink-filled, border-radius container to its own compositor layer, and
     the child screenshot <img> then fails to paint (renders solid black)
     in Chromium. Only Buddy floats — the stable phone + bobbing bee reads
     as cleaner depth anyway. */
}

.bb-hero-phone img {
  display: block;
  width: 100%;
  /* Intrinsic ratio note (66d6f8b lesson): the <img> carries 920x2000
     HTML attributes for CLS; height:auto keeps the true phone aspect at
     every breakpoint instead of resolving against the height attribute. */
  height: auto;
  border-radius: 36px;
}

/* Buddy overlaps the phone's lower-right, breaking the frame slightly. */
.bb-hero-buddy {
  position: absolute;
  right: -15%;
  bottom: 4%;
  width: min(200px, 40vw);
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 20px 30px rgba(13, 20, 33, 0.28));
  animation: bb-float 4.8s ease-in-out infinite;
}

@keyframes bb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

.bb-hero-mascot-caption {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sp-ink-70);
}

.bb-hero-mascot-caption .bb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sp-gold);
  flex: none;
}

.bb-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);
}

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

/* ---------- Privacy wedge: scoped dark band on an otherwise light page ---------- */
.sp-section--ink {
  position: relative;
  background: var(--sp-ink);
  color: var(--sp-ivory);
}

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

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

.bb-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);
}

.bb-trust-grid {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

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

.bb-trust-card h3 {
  font-size: 1.25rem;
  color: var(--sp-ivory);
}

.bb-trust-card p {
  margin-top: 10px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--sp-ivory-70);
}

/* ---------- How it works: video-in-frame + numbered steps ---------- */
.bb-how-layout {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.bb-video-device {
  width: min(280px, 60vw);
  margin: 0 auto;
  border-radius: 36px;
  border: 3px solid var(--sp-ink);
  background: var(--sp-ink);
  padding: 8px;
  box-shadow: 0 24px 50px rgba(13, 20, 33, 0.2);
}

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

.bb-video-caption {
  margin-top: 16px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--sp-ink-60);
}

.bb-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

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

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

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

.bb-steps h3 {
  font-size: 1.08rem;
  line-height: 1.25;
}

.bb-steps p {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--sp-ink-70);
}

.bb-shots-grid {
  margin-top: clamp(36px, 5vw, 48px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.bb-shots-grid figure {
  margin: 0;
  border-radius: var(--sp-r-inner);
  overflow: hidden;
  border: 1px solid var(--sp-ink-14);
}

.bb-shots-grid img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Buddy grows: growth-stage grid + parent screen ---------- */
.bb-growth-layout {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.bb-growth-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.bb-growth-grid figure {
  margin: 0;
  text-align: center;
}

.bb-growth-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 87, 0.3);
  background: radial-gradient(circle at 50% 40%, rgba(255, 233, 160, 0.7), rgba(246, 211, 107, 0.5));
}

.bb-growth-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bb-growth-grid figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sp-ink-60);
}

.bb-parent-frame {
  width: min(300px, 70vw);
  margin: 0 auto;
  border-radius: 30px;
  border: 3px solid var(--sp-ink);
  background: #fff;
  padding: 10px;
  box-shadow: 0 24px 50px rgba(13, 20, 33, 0.16);
}

.bb-parent-frame img {
  display: block;
  width: 100%;
  border-radius: 20px;
}

.bb-parent-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--sp-ink-60);
}

/* ---------- Free printables ---------- */
.bb-printables-grid {
  margin-top: clamp(36px, 5vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bb-printable-card {
  position: relative;
  border-radius: var(--sp-r-outer);
  padding: 26px 24px 28px;
  border: 1px solid var(--sp-ink-14);
  background: rgba(255, 255, 255, 0.55);
}

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

.bb-printable-card h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.bb-printable-list {
  margin-top: 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.bb-printable-list a {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--sp-ink-14);
  background: var(--sp-paper);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sp-ink);
  transition:
    transform 160ms var(--sp-ease-out),
    border-color 160ms var(--sp-ease-out),
    background 160ms var(--sp-ease-out);
}

.bb-printable-list a:hover {
  border-color: var(--sp-gold-deep);
  background: rgba(201, 162, 87, 0.1);
  transform: translateY(-2px);
}

.bb-printable-list svg {
  flex: none;
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* ---------- Honest pricing ---------- */
.bb-pricing-card {
  position: relative;
  border-radius: var(--sp-r-outer);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(201, 162, 87, 0.24);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.4));
  box-shadow: 0 30px 60px rgba(13, 20, 33, 0.08);
}

.bb-pricing-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.bb-pricing-layout p {
  margin-top: 16px;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--sp-ink-70);
}

.bb-pricing-layout .sp-btn {
  margin-top: 26px;
}

.bb-pricing-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.bb-pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--sp-ink-14);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.bb-pricing-list .bb-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
  color: #fff;
  background: var(--sp-gold-deep);
}

.bb-pricing-list li[data-plus="true"] .bb-check {
  background: var(--sp-gold);
}

/* ---------- Closing band ---------- */
.bb-closing-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

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

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

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

.bb-closing-copy {
  max-width: 520px;
  margin-top: 18px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--sp-ivory-70);
}

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

.bb-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);
}

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

/* ---------- Hero: mobile first-viewport guarantee (2026-07-11) ----------
   Page-scoped override of the shared .sp-app-hero rules (subpages.css) —
   safe because beebuddy-campaign.css only loads on this page, so no other
   app-hero page is affected. Two things, on top of the img aspect-ratio
   fix above: (1) drop the shared hero's tall vh-based min-height/padding,
   tuned for a phone-mockup device that this mascot hero doesn't use, so
   text isn't pushed down further than it needs to be; (2) hard-cap Buddy's
   size so he sits below the copy as a tasteful companion, never a wall
   that pushes the headline/CTA out of the first viewport. */
@media (max-width: 768px) {
  .sp-app-hero {
    min-height: 0;
  }

  .sp-app-hero-inner {
    padding-top: clamp(96px, 16vh, 150px);
  }

  /* Mobile keeps the proven mascot-only companion (66d6f8b). The tall
     920x2000 phone screenshot can't stay legible inside the <=30vh cap the
     first-viewport rule needs, so on phones the phone frame is dropped and
     Buddy sits statically below the copy — H1 + CTA stay in the first
     viewport at 390x844 and 375x667 exactly as the shipped fix guaranteed. */
  .bb-hero-phone {
    display: none;
  }

  .bb-hero-showcase {
    width: auto;
  }

  .bb-hero-buddy {
    position: static;
    display: block;
    width: auto;
    max-width: 55vw;
    max-height: 30vh;
    margin: 0 auto;
    filter: none;
  }
}

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

  .bb-trust-grid,
  .bb-printables-grid {
    grid-template-columns: 1fr;
  }

  .bb-shots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .bb-steps {
    grid-template-columns: 1fr;
  }

  .bb-growth-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}
