/* ============================================================
   Druk Connect — v3 cinematic landing
   Navy "sky" ↔ bone daylight, single gold accent.
   Motion: reveal/word-mask/depth styles arm only under html.js
   (class added right before hydration) so the prerendered page
   is fully visible without JS. The pinned scene scrubs off the
   --p custom property written by useScrub(); all card motion is
   pure CSS calc()/min()/max() on --p — reversible and 60fps.
   ============================================================ */

:root {
  --ink:    #0A0A0B;
  --ink-2:  #1A1A1D;
  --mute:   #6B6B72;
  --mute-2: #9B9BA1;
  --line:   rgba(10,10,11,0.08);
  --line-2: rgba(10,10,11,0.14);
  --bone:   #FAF7F2;
  --paper:  #FFFFFF;

  --navy:   #051739;
  --navy-2: #02091A;
  --gold:   #F8C44C;
  --gold-2: #FBDA8A;
  --gold-tint: rgba(248,196,76,0.10);

  --dark-line: rgba(255,255,255,0.10);
  --dark-mute: rgba(255,255,255,0.62);

  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
}

html { scroll-behavior: smooth; }
html, body { background: var(--paper); color: var(--ink); }
section[id] { scroll-margin-top: 64px; }
::selection { background: var(--gold); color: var(--navy); }

/* —————— type system —————— */
.h-display {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.h-display .serif-italic, .serif-italic {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.serif-italic.gold { color: var(--gold); }
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--gold);
  margin-right: 10px;
  vertical-align: 2px;
}
.eyebrow-light { color: rgba(255,255,255,0.6); }

/* ============================================================
   Motion engine
   ============================================================ */
/* block reveal */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(5px);
  transition:
    opacity .85s var(--ease),
    transform .85s var(--ease),
    filter .85s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js .reveal.in,
html.js .in .reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

/* masked word-by-word headline reveal */
.words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0 0.02em 0.12em;
  margin: 0 -0.02em -0.12em;
}
.words .w i {
  display: inline-block;
  font-style: inherit;
}
html.js .words .w i {
  transform: translateY(115%);
  transition: transform .85s cubic-bezier(0.2, 0.65, 0.2, 1) var(--d, 0ms);
  will-change: transform;
}
html.js .in .words .w i { transform: none; }

/* 3D staggered depth entry (bento) */
html.js .depth {
  opacity: 0;
  transform: translateY(48px) rotateX(9deg) scale(0.97);
  transform-origin: 50% 100%;
  transition:
    opacity .9s var(--ease) var(--d, 0ms),
    transform .9s var(--ease) var(--d, 0ms),
    box-shadow .3s ease 0s;
}
html.js .in .depth { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .depth { opacity: 1; transform: none; filter: none; transition: none; }
  html.js .words .w i { transform: none; transition: none; }
  .scroll-track { animation: none !important; }
}

/* —————— backgrounds —————— */
.mesh {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.9;
}
.grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* —————— buttons / nav —————— */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: 999px;
  font-weight: 600; font-size: 13.5px;
  letter-spacing: -0.005em;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: #0A2456; }

.glass {
  background: color-mix(in srgb, var(--gold) 92%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(5,23,57,0.1);
}
.nav-logo {
  width: 36px; height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(5,23,57,0.28), 0 0 0 1px rgba(5,23,57,0.06);
}

/* —————— store badges —————— */
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  height: 56px; padding: 0 22px 0 18px;
  background: var(--ink); color: white;
  border-radius: 15px;
  transition: transform .18s var(--ease), background .2s ease, box-shadow .2s ease;
}
.store-badge:hover { transform: translateY(-2px); background: #1f1f22; }
.store-badge.badge-light { background: white; color: var(--navy); }
.store-badge.badge-light:hover { background: var(--gold-2); box-shadow: 0 12px 30px -12px rgba(248,196,76,0.55); }
.badge-glyph { width: 22px; height: 22px; flex: none; }
.badge-tx { display: flex; flex-direction: column; align-items: flex-start; }
.badge-tx .top { font-size: 10px; line-height: 1; opacity: .65; letter-spacing: 0.02em; }
.badge-tx .bot { font-size: 16.5px; line-height: 1.05; font-weight: 600; margin-top: 3px; letter-spacing: -0.01em; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 92%);
  color: white;
}
.hero-inner { position: relative; z-index: 2; }
.hero-title {
  margin-top: 26px;
  font-size: clamp(44px, 7.6vw, 100px);
  color: white;
}
.hero-sub {
  margin: 28px auto 0;
  max-width: 560px;
  font-size: clamp(15.5px, 1.6vw, 18px);
  line-height: 1.6;
  color: rgba(255,255,255,0.68);
}
.hero-ctas {
  margin-top: 36px;
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.hero-stats {
  margin-top: 42px;
  display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.55);
}
.hero-stats strong { color: white; font-weight: 700; font-size: 15px; margin-right: 5px; }
.hero-stats i { width: 1px; height: 16px; background: rgba(255,255,255,0.18); }
.hero-phone-wrap {
  margin-top: 74px;
  display: flex; justify-content: center;
  position: relative;
}
.hero-phone { will-change: transform; }
.hero-phone .phone {
  box-shadow:
    0 0 0 1.5px #2a2a2e,
    0 1px 0 0 rgba(255,255,255,0.06) inset,
    0 90px 160px -40px rgba(0,0,0,0.7),
    0 0 140px -20px rgba(248,196,76,0.2);
}

/* ============================================================
   Phone frame + in-phone UI
   ============================================================ */
.phone {
  position: relative;
  width: var(--w, 340px);
  height: var(--h, 700px);
  background: #0a0a0b;
  border-radius: 50px;
  padding: 11px;
  box-shadow:
    0 0 0 1.5px #2a2a2e,
    0 1px 0 0 rgba(255,255,255,0.06) inset,
    0 60px 120px -30px rgba(10,30,60,0.35),
    0 25px 60px -25px rgba(0,0,0,0.45);
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--paper);
}
.phone .island {
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 32px;
  background: #000;
  border-radius: 999px;
  z-index: 30;
}
.phone .statusbar {
  position: absolute;
  top: 16px; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 28px;
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  z-index: 20;
  pointer-events: none;
}
.sb-glyphs { display: inline-flex; align-items: center; gap: 5px; }
.phone.sm { --w: 262px; --h: 520px; border-radius: 40px; padding: 9px; }
.phone.sm .phone-screen { border-radius: 32px; }
.phone.sm .island { width: 80px; height: 24px; top: 13px; }
.phone.sm .statusbar { top: 11px; font-size: 11px; padding: 0 22px; }

/* real screenshot framed in the device bezel */
.shot-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hp { position: relative; height: 100%; padding: 70px 16px 0; background: #FCFBF8; }
.hp.hp-mini { padding: 56px 12px 0; }
.hp-head { display: flex; justify-content: space-between; align-items: center; }
.hp-hello { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.hp.hp-mini .hp-hello { font-size: 14px; }
.hp-sub { font-size: 11.5px; color: var(--mute); margin-top: 2px; }
.hp-bell {
  position: relative;
  width: 34px; height: 34px; border-radius: 999px;
  background: white; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
}
.hp-bell i {
  position: absolute; top: 7px; right: 8px;
  width: 6px; height: 6px; border-radius: 99px;
  background: #E5484D;
}
.hp-chips { display: flex; gap: 6px; margin-top: 16px; }
.hp-chips span {
  font-size: 10.5px; font-weight: 600;
  padding: 6px 11px; border-radius: 999px;
  background: white; border: 1px solid var(--line); color: var(--mute);
}
.hp-chips span.on { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.hp-cards { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.feed-card {
  background: white;
  border: 1px solid rgba(10,10,11,0.06);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 64px 1fr;
  box-shadow: 0 6px 18px -12px rgba(5,23,57,0.18);
}
.feed-cover {
  background: linear-gradient(180deg, rgba(5,23,57,0.92), rgba(248,196,76,0.9));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: white;
}
.feed-cover .day { font-size: 9px; font-weight: 700; letter-spacing: 0.16em; opacity: .85; }
.feed-cover .num { font-size: 22px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-top: 2px; }
.feed-body { padding: 10px 12px; display: flex; flex-direction: column; }
.feed-tag { font-size: 8.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #B8860B; }
.feed-body strong { font-size: 12.5px; letter-spacing: -0.015em; margin-top: 2px; }
.feed-meta { font-size: 10.5px; color: var(--mute); margin-top: 2px; }
.feed-going { font-size: 10px; font-weight: 600; color: var(--navy); margin-top: 4px; }
.hp-nav {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 58px;
  display: flex; align-items: center; justify-content: space-around;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  font-size: 10px; font-weight: 600; color: var(--mute-2);
}
.hp-nav .on { color: var(--navy); font-weight: 700; }

/* ============================================================
   Marquee
   ============================================================ */
.scroll-row {
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
/* the "cities we serve" ribbon between the two dark sections — a deep
   navy band with gold accents (a bright gold band read as hazard tape) */
.scroll-row.mq-dark {
  background: var(--navy-2);
  border-color: rgba(255,255,255,0.08);
}
.scroll-track {
  display: flex; align-items: center;
  width: max-content;
  animation: scroll 44s linear infinite;
}
@keyframes scroll { to { transform: translateX(-50%); } }
.mq-item {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}
.mq-dark .mq-item { color: rgba(255,255,255,0.7); }
.mq-dot {
  width: 4px; height: 4px; border-radius: 99px;
  background: var(--gold); margin: 0 26px;
}
.mq-dark .mq-dot { background: var(--gold); opacity: .9; }

/* mobile-only animated vertical version of the pinned scene (see media query) */
.pin-mobile { display: none; }

/* ============================================================
   PINNED SCENE — scrubbed across 320vh.

   useScrub() smooths raw scroll, eases each beat and writes the
   result to the .pin-wrap as custom properties; CSS here is pure
   presentation off those values. Every var carries a fallback that
   equals the RESOLVED state, so the prerendered no-JS page shows a
   finished scene rather than a half-built one.
     --p        raw (smoothed) pin progress 0..1
     --q        gather: chaos → tidy calendar row
     --q0..--q3 per-card gather, staggered
     --c        conflict ring: rises on detection, releases on the fix
     --r        resolution: mover glides, Zakar stamps, everything greens
     --o0..--o2 copy crossfade, continuous (not a data-phase step)
   ============================================================ */
/* Scene length is a READING budget, not a layout number: the pinned
   distance (height - 100vh) has to fit three beats at roughly one scroll
   gesture each. A desktop trackpad swipe is ~500px, so 300vh of pinned
   scroll gives ~1.5 swipes per beat. Shortening this re-creates the
   "beats 2 and 3 arrive together" bug — see the PIN budget note in
   screens.jsx. NB the phone breakpoints below are LONGER, not shorter:
   a thumb flick covers far more of the screen than a wheel notch. */
.pin-wrap {
  position: relative;
  height: 400vh;
  background: linear-gradient(180deg, #070C1A, #0A1226 50%, #070C1A);
}
.pin-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  color: white;
}
.pin-glow {
  position: absolute;
  left: 50%; top: 60%;
  width: 900px; height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(248,196,76,0.12), transparent 70%);
  opacity: var(--r, 1);
  pointer-events: none;
}
.pin-copy {
  position: relative;
  width: 100%;
  max-width: 760px;
  min-height: 168px;
  text-align: center;
  padding: 0 20px;
  z-index: 3;
}
/* Crossfaded off the scrub itself, with a deliberate overlap between
   consecutive lines — a data-phase step made the copy switch on a
   threshold while the cards were still mid-flight. */
.pc {
  position: absolute; inset: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.pc0 { opacity: var(--o0, 0); transform: translateY(calc(18px * (1 - var(--o0, 0)))); }
.pc1 { opacity: var(--o1, 0); transform: translateY(calc(18px * (1 - var(--o1, 0)))); }
.pc2 { opacity: var(--o2, 1); transform: translateY(calc(18px * (1 - var(--o2, 1)))); }
.pin-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
}
.pc h2 { margin-top: 12px; font-size: clamp(30px, 4.6vw, 54px); color: white; }
.pin-lede {
  margin: 14px auto 0;
  max-width: 560px;
  font-size: 15.5px; line-height: 1.6;
  color: rgba(255,255,255,0.62);
}

.pin-visual {
  position: relative;
  width: 660px; height: 300px;
  flex: none;
  z-index: 2;
}
.pin-slots { position: absolute; left: 50%; top: 58%; }
.pin-slot {
  position: absolute; left: 0; top: 0;
  width: 152px; height: 128px;
  transform: translate(calc(var(--tx) - 50%), -50%);
  border: 1.5px dashed rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 10px 12px;
  opacity: var(--q, 1);
}
.ps-label {
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4);
}
.ps-free {
  position: absolute; left: 0; right: 0; top: 54%;
  text-align: center;
  font-size: 11.5px; font-style: italic;
  color: rgba(255,255,255,0.32);
  opacity: calc(1 - var(--r, 1));
}
/* Ring rides its own beat (--c), not the gather — it used to fade up with
   the cards, so the "conflict detected" cue was already on screen during
   "First, the chaos." */
.pin-ring {
  position: absolute; left: 0; top: 0;
  width: 164px; height: 140px;
  /* closes in on the clashing pair as it fades up, rather than just appearing */
  transform: translate(calc(-82px - 50%), -50%) scale(calc(1.16 - 0.16 * var(--c, 0)));
  border-radius: 19px;
  box-shadow: 0 0 0 2px rgba(229,72,77,0.85);
  opacity: var(--c, 0);
  pointer-events: none;
}
/* The pulse animates opacity+scale on a throwaway layer instead of the
   ring's own box-shadow: a 40px blurred shadow repainted every frame was
   burning paint time during the exact beat the user is scrubbing. */
.pin-ring::after, .pm-ring::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 25px;
  box-shadow: 0 0 34px 3px rgba(229,72,77,0.45);
  opacity: .3;
}
[data-phase="1"] .pin-ring::after,
[data-phase="1"] .pm-ring::after { animation: pinPulse 1.6s ease-in-out infinite; }
@keyframes pinPulse {
  0%, 100% { opacity: .22; transform: scale(0.98); }
  50%      { opacity: .85; transform: scale(1.025); }
}
.pin-zakar {
  position: absolute; left: 0; top: 0;
  transform: translate(calc(82px - 76px), 76px) rotate(-3deg) scale(calc(0.72 + 0.28 * var(--r, 1)));
  opacity: var(--r, 1);
  display: inline-flex; align-items: center; gap: 9px;
  background: white;
  border: 1.5px solid var(--gold);
  border-radius: 13px;
  padding: 8px 13px;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,0.5);
  z-index: 4;
  width: max-content;
}
.pz-ic {
  width: 20px; height: 20px; border-radius: 99px; flex: none;
  background: var(--gold); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.pz-tx { display: flex; flex-direction: column; color: var(--ink); }
.pz-tx strong { font-size: 11.5px; letter-spacing: -0.01em; }
.pz-tx em { font-size: 10px; font-style: normal; color: var(--mute); }

/* .pin-card = the scrub-driven position; .pc-body = the card you see,
   which also carries its own idle drift. Splitting them lets the two
   motions compose without fighting over one transform. */
.pin-card {
  position: absolute; left: 50%; top: 58%;
  width: 150px;
  z-index: 3;
  will-change: transform;
  transform:
    translate3d(
      calc(-50% + var(--sx) * (1 - var(--qs, 1)) + var(--tx) * var(--qs, 1)
           + var(--nx, 0px) + var(--mv, 0px) * var(--r, 1)),
      calc(-50% + var(--sy) * (1 - var(--qs, 1)) - 8px + var(--ny, 0px)),
      0
    )
    rotate(calc(var(--sr) * (1 - var(--qs, 1))));
}
/* Detection beat: the two same-Saturday cards shoulder apart and lift as
   the ring closes on them, so the beat is something happening rather than
   an opacity ramp on a rectangle. */
.pin-card.clash { --nx: calc(-7px * var(--c, 0)); --ny: calc(-4px * var(--c, 0)); }
.pin-card.mover { --nx: calc(7px * var(--c, 0));  --ny: calc(4px * var(--c, 0)); }
.pc-body {
  --amp: calc(7px * (1 - var(--qs, 1)));
  --rmp: calc(1.6deg * (1 - var(--qs, 1)));
  padding: 11px 13px;
  border-radius: 14px;
  background: #101A31;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.55);
  transition: border-color .45s ease, box-shadow .45s ease;
  /* scattered cards breathe; the amplitude damps to 0 as they're gathered,
     so "chaos" is a live frame rather than a still */
  scale: calc(0.94 + 0.06 * var(--qs, 1));
  animation: cardDrift var(--dur, 6s) ease-in-out infinite;
  animation-delay: var(--dly, 0s);
}
@keyframes cardDrift {
  0%, 100% { translate: 0 calc(var(--amp) * -1); rotate: var(--rmp); }
  50%      { translate: 0 var(--amp);            rotate: calc(var(--rmp) * -1); }
}
/* once gathered the amplitude is 0 anyway — stop doing the work */
[data-phase="1"] .pc-body, [data-phase="2"] .pc-body { animation-play-state: paused; }
.pin-card.mover { --mv: 164px; z-index: 4; }
.pin-card strong { display: block; font-size: 12.5px; letter-spacing: -0.015em; color: white; }
.pin-card span { display: block; font-size: 10.5px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.pin-card .pin-ok {
  display: block;
  font-size: 10px; font-weight: 700; font-style: normal;
  color: #3DD68C;
  margin-top: 6px;
  opacity: var(--r, 1);
}
[data-phase="1"] .pin-card.clash .pc-body,
[data-phase="1"] .pin-card.mover .pc-body { border-color: rgba(229,72,77,0.75); }
[data-phase="2"] .pin-card .pc-body { border-color: rgba(48,164,108,0.5); }

.pin-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  opacity: calc(1 - var(--p, 0) * 8);
  animation: hintBob 2s ease-in-out infinite;
}
@keyframes hintBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

@media (prefers-reduced-motion: reduce) {
  .pin-wrap { height: auto; }
  .pin-stage { position: relative; height: auto; padding: 100px 0; }
  .pin-hint, .pc-body,
  [data-phase="1"] .pin-ring::after, [data-phase="1"] .pm-ring::after { animation: none; }
}

/* ============================================================
   Sections / bento
   ============================================================ */
.sec { position: relative; padding: 116px 0; background: var(--paper); overflow: hidden; }
.sec-bone { background: var(--bone); }
/* Two same-background sections back to back (Ecosystem -> Personas) would
   otherwise stack their top+bottom padding into one oversized, borderless
   void. Drop the top padding of the second so the boundary reads as one
   normal section gap, matching a colour-change transition. */
.sec-bone + .sec-bone { padding-top: 0; }
.sec-navy { background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: white; }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-title { margin-top: 18px; font-size: clamp(34px, 4.6vw, 58px); }
.sec-title.light { color: white; }
.sec-lede {
  margin-top: 20px;
  font-size: 16px; line-height: 1.65;
  color: var(--mute);
  max-width: 620px;
}
.sec-lede.light { color: var(--dark-mute); }
.sec-lede.center { margin-left: auto; margin-right: auto; }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  perspective: 1400px;
}
.b-card {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px -32px rgba(5,23,57,0.35);
  display: flex; flex-direction: column;
}
.b-card:hover { box-shadow: 0 26px 56px -30px rgba(5,23,57,0.45); }
.b-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #8A6410;
}
.b-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-top: 8px; }
.b-card p { font-size: 13.5px; line-height: 1.55; color: var(--mute); margin-top: 6px; }
.b-card.dark { background: linear-gradient(180deg, #0A1226, #070C1A); border-color: var(--dark-line); color: white; }
.b-card.dark h3 { color: white; }
.b-card.dark p { color: var(--dark-mute); }
.b-card.dark .b-tag { color: var(--gold); }
.b-card.hi { background: var(--gold-tint); border-color: rgba(248,196,76,0.8); }
.b-card.hi h3 { color: #6B4E0C; }

/* Phone-screenshot cards are tall (2 rows); mini/text cards stay short. */
.b-events { grid-column: span 2; grid-row: span 2; }
.b-zakar  { grid-column: span 2; grid-row: span 2; }
.b-dir    { grid-column: span 2; grid-row: span 2; }
.b-tickets{ grid-column: span 2; grid-row: span 2; }
.b-notify { grid-column: span 2; grid-row: span 2; }
.b-shows  { grid-column: span 2; }
.b-dana   { grid-column: span 2; }
.b-tourn  { grid-column: span 2; }
.b-prayer { grid-column: span 2; }
.b-home   { grid-column: span 4; }
.b-host   { grid-column: span 4; flex-direction: row; align-items: center; gap: 44px; }

/* real app screenshot bleeding off the bottom of a bento card */
.b-events-phone, .b-shot {
  margin-top: 18px;
  display: flex; justify-content: center;
  flex: 1; align-items: flex-end;
}
.b-events-phone .phone.sm, .b-shot .phone.sm { --h: 470px; margin-bottom: -78px; }

.b-host-copy { flex: 1.2; min-width: 0; }
.b-host-visuals {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.b-host-steps {
  margin-top: 16px;
  display: flex; flex-wrap: wrap; gap: 7px;
}
.b-step {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 7px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
}
.b-step i {
  width: 17px; height: 17px; border-radius: 99px; flex: none;
  background: var(--gold); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 700; font-style: normal;
}

/* bento minis */
.zmini {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.zm-day {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 4px;
  text-align: center;
  background: var(--paper);
}
.zm-g { display: block; font-size: 8px; font-weight: 700; letter-spacing: 0.12em; color: var(--mute-2); }
.zm-n { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.03em; margin-top: 3px; }
.zm-note { display: block; font-size: 7.5px; font-weight: 600; color: var(--mute); margin-top: 3px; }
.zm-day.ausp { background: var(--gold-tint); border-color: rgba(248,196,76,0.85); }
.zm-day.ausp .zm-n, .zm-day.ausp .zm-note { color: #8A6410; }
.zm-day.baden .zm-n { color: var(--mute-2); text-decoration: line-through; text-decoration-color: rgba(229,72,77,0.7); }
.zm-day.baden .zm-note { color: #C6373C; }

.dmini {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  background: var(--paper);
}
.dm-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dm-row span { font-size: 11.5px; color: var(--mute); }
.dm-row strong { font-size: 14px; letter-spacing: -0.02em; white-space: nowrap; }
.dm-pay { font-size: 10.5px; color: var(--mute-2); margin-top: 6px; }
.dm-status {
  margin-top: 10px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(48,164,108,0.1); color: #1E7A4D;
  font-size: 11px; font-weight: 600;
}
.dm-dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; }

.dirmini { margin-top: 12px; }
.dp-row {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
}
.dirmini .dp-row:last-child { border-bottom: 0; }
.dp-ava {
  width: 28px; height: 28px; border-radius: 999px; flex: none;
  background: var(--navy); color: var(--gold);
  font-size: 9.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.dp-mid { flex: 1; min-width: 0; }
.dp-mid strong { display: block; font-size: 11.5px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-mid span { font-size: 9.5px; color: var(--mute); }
.dp-call {
  width: 25px; height: 25px; border-radius: 999px; flex: none;
  background: var(--gold-tint); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}

.tmini {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 12px;
  background: var(--paper);
}
.tm-head, .tm-row {
  display: grid;
  grid-template-columns: 30px 1fr 34px;
  align-items: center;
  padding: 7px 2px;
  font-size: 12px;
}
.tm-head {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mute-2);
  border-bottom: 1px solid var(--line);
}
.tm-row { border-bottom: 1px solid var(--line); color: var(--mute); }
.tm-row:last-child { border-bottom: 0; }
.tm-row .t { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; }
.tm-row .pts { font-weight: 700; color: var(--ink); text-align: right; }
.tm-row.lead { background: var(--gold-tint); border-radius: 8px; }

/* cinema ticket mini */
.mvmini {
  margin-top: 16px;
  display: flex; align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
}
.mv-poster {
  position: relative;
  width: 72px; flex: none;
  overflow: hidden;
  border-right: 1.5px dashed var(--line-2);
}
.mv-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.mv-pr {
  position: absolute; left: 0; right: 0; bottom: 8px;
  text-align: center;
  font-size: 7.5px; font-weight: 700;
  letter-spacing: 0.22em;
  color: #04122B;
  background: rgba(248,196,76,0.92);
  padding: 2px 0;
}
.mv-body {
  flex: 1; min-width: 0;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 3px;
}
.mv-body strong { font-size: 13.5px; letter-spacing: -0.015em; }
.mv-body > span { font-size: 11px; color: var(--mute); }
.mv-admit {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 5px;
  font-size: 10.5px !important; font-weight: 600;
  color: var(--navy) !important;
}
.mv-qr {
  width: 16px; height: 16px; flex: none;
  border-radius: 3px;
  background:
    conic-gradient(from 0deg at 50% 50%, var(--navy) 0 25%, transparent 0 50%, var(--navy) 0 75%, transparent 0),
    linear-gradient(var(--navy), var(--navy));
  background-size: 8px 8px, 100% 100%;
  background-blend-mode: normal;
  opacity: 0.9;
  background-color: var(--gold-tint);
  border: 1px solid var(--navy);
}

.mini-scan { display: flex; align-items: center; gap: 14px; }
.mini-scan-frame {
  position: relative;
  width: 54px; height: 54px; flex: none;
  background: #0E1830;
  border-radius: 12px;
  overflow: hidden;
}
.mini-scan-frame i { position: absolute; width: 11px; height: 11px; border: 2px solid var(--gold); }
.mini-scan-frame .c1 { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.mini-scan-frame .c2 { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.mini-scan-frame .c3 { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.mini-scan-frame .c4 { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.mini-scan-line {
  position: absolute; left: 10px; right: 10px; top: 12px;
  height: 1.5px; background: rgba(248,196,76,0.9);
  animation: scanLine 2.4s ease-in-out infinite;
}
@keyframes scanLine { 0%,100% { top: 12px; } 50% { top: 40px; } }
.mini-scan-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mini-scan-ok {
  width: 22px; height: 22px; border-radius: 99px; flex: none;
  background: #30A46C; color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.mini-scan-tx { display: flex; flex-direction: column; min-width: 0; }
.mini-scan-tx strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-scan-tx em { font-size: 10.5px; font-style: normal; color: var(--mute); }

.mini-stats { display: flex; gap: 8px; }
.mini-stat {
  flex: 1; min-width: 0;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px;
  display: flex; flex-direction: column;
}
.mini-stat .ms-l { font-size: 8.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute-2); }
.mini-stat .ms-v { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; margin-top: 2px; }
.mini-stat .ms-s { font-size: 9.5px; color: var(--mute); }

.nmap { margin-top: 14px; }

/* ============================================================
   Personas — interactive "who it's for" switcher
   ============================================================ */
.persona-wrap { max-width: 1000px; margin: 0 auto; }
.persona-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  margin: 0 auto 40px;
  width: fit-content;
  max-width: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 30px -24px rgba(5,23,57,0.4);
}
.persona-tab {
  appearance: none; border: 0; cursor: pointer;
  padding: 11px 22px;
  border-radius: 999px;
  background: transparent;
  color: var(--mute);
  font-family: inherit; font-size: 14px; font-weight: 600;
  letter-spacing: -0.01em;
  transition: color .2s ease, background .3s var(--ease);
}
.persona-tab:hover { color: var(--ink); }
.persona-tab.on {
  background: var(--navy);
  color: var(--gold);
  box-shadow: 0 8px 20px -10px rgba(5,23,57,0.6);
}

.persona-panel {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: center;
  min-height: 440px;
  animation: personaIn .4s ease both;
  will-change: opacity;
}
/* opacity-only crossfade — smoother than a slide on tab switch */
@keyframes personaIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .persona-panel { animation: none; }
}
.persona-copy .b-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #8A6410;
}
.persona-copy h3 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700; letter-spacing: -0.03em;
  margin-top: 10px;
}
.persona-lede {
  margin-top: 12px;
  font-size: 16px; line-height: 1.6;
  color: var(--mute);
  max-width: 520px;
}
.p-points {
  margin-top: 22px;
  display: grid;
  gap: 11px;
}
.p-points li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 14.5px; line-height: 1.45;
  color: var(--ink-2);
}
.p-tick {
  width: 20px; height: 20px; border-radius: 99px; flex: none;
  background: var(--gold-tint); color: #8A6410;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  margin-top: 1px;
}
.persona-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--mute-2);
}
.persona-visual { display: flex; justify-content: center; align-items: center; }
.persona-visual .phone.sm { --w: 262px; --h: 500px; }

.persona-card {
  width: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 26px 60px -40px rgba(5,23,57,0.4);
  display: flex; flex-direction: column; gap: 16px;
}
.pc-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute-2);
}
.pc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pc-chips span {
  font-size: 11.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bone); border: 1px solid var(--line); color: var(--mute);
}

/* ============================================================
   Download + footer
   ============================================================ */
.sec.dl { padding: 150px 0 130px; }
.dl-inner { position: relative; z-index: 2; }
.site-footer {
  background: var(--navy-2);
  color: rgba(255,255,255,0.6);
  padding: 46px 0 40px;
}
.ft-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.ft-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: white; letter-spacing: -0.02em; }
.ft-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.ft-links a { color: rgba(255,255,255,0.6); transition: color .2s ease; }
.ft-links a:hover { color: var(--gold); }
.ft-bottom {
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12.5px;
  display: flex; flex-direction: column; gap: 3px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-events, .b-zakar, .b-dir, .b-tickets, .b-notify { grid-column: span 2; grid-row: auto; }
  .b-home { grid-column: span 2; }
  .b-host { grid-column: span 2; flex-direction: column; align-items: stretch; gap: 22px; }
  .sec { padding: 88px 0; }
}
@media (max-width: 700px) {
  /* Keep the scene PINNED and scrubbed, but swap the wide horizontal
     card-shuffle for a vertical layout that fits a phone and stays
     readable. Same --q/--r progress drives it. */
  .pin-wrap { height: 440vh; }
  .pin-visual, .pin-hint { display: none; }
  .pin-copy { min-height: 190px; }
  .pin-mobile {
    display: block;
    position: relative;
    width: min(320px, 84vw);
    height: 296px;
    margin: 6px auto 0;
  }
  .pm-slot {
    position: absolute; left: 0; right: 0;
    height: 94px;
    border: 1.5px dashed rgba(255,255,255,0.16);
    border-radius: 16px;
    padding: 10px 13px;
  }
  .pm-s1 { top: 0; }
  .pm-s2 { top: 116px; }
  .pm-label { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: rgba(255,255,255,0.45); }
  .pm-free {
    position: absolute; left: 0; right: 0; top: 46px; text-align: center;
    font-size: 12px; font-style: italic; color: rgba(255,255,255,0.3);
    opacity: calc(1 - var(--r, 1));
  }
  .pm-ring {
    position: absolute; left: -4px; right: -4px; top: -4px; height: 102px;
    border-radius: 19px;
    box-shadow: 0 0 0 2px rgba(229,72,77,0.85);
    opacity: var(--c, 0);
    pointer-events: none;
  }
  .pm-ev {
    position: absolute; left: 10px; right: 10px;
    border-radius: 13px;
    padding: 10px 13px;
    background: #101A31;
    border: 1px solid var(--dark-line);
    box-shadow: 0 16px 32px -18px rgba(0,0,0,0.65);
    transition: border-color .4s ease;
  }
  .pm-ev .pm-tag { display: block; font-size: 8px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }
  .pm-ev strong { display: block; font-size: 14px; color: white; letter-spacing: -0.01em; margin-top: 2px; }
  .pm-ev .pm-ok { display: block; font-size: 11px; font-weight: 700; font-style: normal; color: #3DD68C; margin-top: 5px; opacity: var(--r, 1); }
  .pm-ev.a { top: 9px; }
  .pm-ev.b {
    top: 125px; z-index: 3;
    will-change: transform;
    transform:
      translate3d(
        calc(22px * (1 - var(--q, 1))),
        calc(-92px * (1 - var(--r, 1)) - 26px * (1 - var(--q, 1))),
        0
      )
      rotate(calc(5deg * (1 - var(--q, 1))));
  }
  [data-phase="1"] .pm-ev.a, [data-phase="1"] .pm-ev.b { border-color: rgba(229,72,77,0.7); }
  [data-phase="2"] .pm-ev.a, [data-phase="2"] .pm-ev.b { border-color: rgba(48,164,108,0.55); }
  .pm-zk {
    position: absolute; left: 10px; top: 232px;
    display: inline-flex; align-items: center; gap: 8px;
    background: white; color: var(--navy);
    border: 1.5px solid var(--gold);
    border-radius: 12px; padding: 8px 13px;
    font-size: 12px; font-weight: 700;
    opacity: var(--r, 1);
    box-shadow: 0 14px 30px -14px rgba(0,0,0,0.5);
  }
  .pm-zk .pz-ic {
    width: 18px; height: 18px; border-radius: 99px; flex: none;
    background: var(--gold); color: var(--navy);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700;
  }
}
@media (max-width: 820px) {
  .persona-panel {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
  }
  .persona-visual { order: 2; }
  /* borderless, single-row swipeable chip strip — edges fade so a
     half-cut chip is always visible, signalling "swipe for more". */
  .persona-tabs {
    width: 100%;
    max-width: 100%;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 2px 0;
    gap: 7px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 40px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 40px), transparent);
  }
  .persona-tabs::-webkit-scrollbar { display: none; }
  .persona-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 11px 15px;
    font-size: 13.5px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  .persona-tab.on { border-color: var(--navy); }
  .persona-tabs { margin-bottom: 28px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 120px; }
  .hero-phone-wrap { margin-top: 54px; }
  .phone { --w: 300px; --h: 620px; }
  .bento { grid-template-columns: 1fr; }
  .b-card { grid-column: span 1 !important; grid-row: auto !important; }
  .b-events-phone .phone.sm, .b-shot .phone.sm { margin-bottom: -60px; }

  /* consistent, tighter vertical rhythm on phones */
  .sec { padding: 58px 0; }
  .sec.dl { padding: 74px 0 62px; }
  .sec-head { margin-bottom: 34px; }
  .site-footer { padding: 34px 0 32px; }
  /* smallest phones: shortest viewport, so the SAME pinned pixel budget
     needs the most vh — a flick here can otherwise clear half the scene */
  .pin-wrap { height: 460vh; }
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }
