/* Tokens inherited from the desktop deck so the two look like one product. */
:root{
  --ink:#0A1F1F; --ink-2:#0d2a28; --bright:#4FD1BC; --accent:#2E9E8F;
  --soft:#9FC4BD; --white:#EAF4F2; --line:rgba(255,255,255,.11);
  --display:'Bricolage Grotesque','Nunito Sans',-apple-system,sans-serif;
  --bodyf:'Nunito Sans',-apple-system,sans-serif;
  --pad:clamp(22px,6.5vw,40px);
  --safe-t:env(safe-area-inset-top,0px);
  --safe-b:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;overflow:hidden;overscroll-behavior:none}
body{
  background:var(--ink); color:var(--white);
  font-family:var(--bodyf); font-size:16.5px; line-height:1.55;
  -webkit-font-smoothing:antialiased; -webkit-text-size-adjust:100%;
  -webkit-tap-highlight-color:transparent;
}

/* ── shell ─────────────────────────────────────────────────────────────── */
#stage{
  position:fixed; inset:0; display:grid; place-items:stretch;
  padding-top:calc(var(--safe-t) + 26px);
  touch-action:none; user-select:none;
}
.pips{
  position:fixed; top:calc(var(--safe-t) + 9px); left:var(--pad); right:var(--pad);
  display:flex; gap:3px; z-index:20;
}
.pip{
  flex:1; height:2.5px; border:0; padding:0; border-radius:2px;
  background:rgba(255,255,255,.22); cursor:pointer; transition:background .25s;
}
.pip.on{background:var(--bright)}
.brand{
  position:fixed; top:calc(var(--safe-t) + 20px); left:var(--pad); z-index:20;
  font:700 15px/1 var(--display); letter-spacing:-.02em; color:#fff; pointer-events:none;
}
.brand i{color:var(--bright); font-style:normal}

/* ── moments ───────────────────────────────────────────────────────────── */
.moment{
  grid-area:1/1; display:flex; flex-direction:column; justify-content:center;
  padding:calc(var(--safe-t) + 54px) var(--pad) calc(var(--safe-b) + 34px);
  opacity:0; visibility:hidden; transition:opacity .28s ease;
  overflow-y:auto; overscroll-behavior:contain;
}
.moment[data-current]{opacity:1; visibility:visible}

.kick{
  display:flex; align-items:center; gap:8px; margin-bottom:16px;
  font:700 10.5px/1 var(--bodyf); letter-spacing:.16em; text-transform:uppercase;
  color:var(--accent);
}
.kick i{
  font-style:normal; font-family:var(--display); color:var(--ink);
  background:var(--bright); border-radius:5px; padding:4px 6px;
  font-size:10px; letter-spacing:.02em;
}
.moment h1{font:700 clamp(32px,8.6vw,44px)/1.07 var(--display); letter-spacing:-.03em; color:#fff}
.moment h2{font:600 clamp(25px,6.6vw,33px)/1.15 var(--display); letter-spacing:-.022em; color:#fff; text-wrap:balance}
.moment p{margin-top:15px; color:#C6DEDA}
.moment .kicker{margin-top:15px; color:var(--bright); font-weight:600}
.moment .fine{margin-top:16px; font-size:13px; color:var(--soft)}
.prepared{
  margin-top:20px; align-self:flex-start; border:1px dashed rgba(79,209,188,.5);
  border-radius:8px; padding:8px 13px; font-size:14px; color:var(--soft);
}
.prepared b{color:var(--bright)}

/* ── conversations ─────────────────────────────────────────────────────── */
.convo{
  margin-top:20px; background:#0e2523; border:1px solid var(--line);
  border-radius:14px; padding:13px; max-height:58vh; overflow-y:auto;
  scrollbar-width:none;
}
.convo::-webkit-scrollbar{display:none}
.thread{display:flex; flex-direction:column; gap:8px}
.bub{
  max-width:84%; padding:9px 12px; border-radius:13px;
  font:400 15px/1.4 var(--bodyf); color:#0A1F1F;
  opacity:0; transform:translateY(8px); transition:.32s ease;
  position:relative;
}
.bub.on{opacity:1; transform:none}
.bub.out{align-self:flex-end; background:#D9FDD3; border-bottom-right-radius:4px}
.bub.in{align-self:flex-start; background:#fff; border-bottom-left-radius:4px}
.bub .at{display:block; margin-top:3px; font-size:10.5px; color:#5A7D78; text-align:right}
.sys{
  align-self:center; font:600 11.5px/1.4 var(--bodyf); letter-spacing:.04em;
  text-transform:uppercase; color:var(--soft); background:rgba(255,255,255,.06);
  padding:6px 11px; border-radius:20px; text-align:center;
}
.sys.gap{background:none; color:var(--faint,#8AA8A2); letter-spacing:.12em}
/* [hidden] is only display:none in the UA sheet, so any explicit display wins.
   These two need the guard or they never hide. */
.typing[hidden],.prompt[hidden]{display:none!important}
.typing{
  align-self:flex-start; display:flex; gap:4px; background:#fff;
  padding:11px 13px; border-radius:13px; border-bottom-left-radius:4px; width:fit-content;
  margin-top:8px;
}
.typing span{
  width:6px; height:6px; border-radius:50%; background:#8AA8A2;
  animation:blink 1.3s infinite;
}
.typing span:nth-child(2){animation-delay:.18s}
.typing span:nth-child(3){animation-delay:.36s}
@keyframes blink{0%,60%,100%{opacity:.3}30%{opacity:1}}
.prompt{
  margin-top:12px; width:100%; border:1px solid var(--bright); background:rgba(79,209,188,.13);
  color:var(--bright); font:700 15px/1.35 var(--bodyf); padding:14px 16px;
  border-radius:11px; cursor:pointer; text-align:left;
}
.prompt::after{
  content:attr(data-preview); display:block; margin-top:6px;
  font-weight:400; font-size:14px; color:#C6DEDA;
}

/* ── stats ─────────────────────────────────────────────────────────────── */
.stats{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:20px}
.stat{background:rgba(255,255,255,.05); border:1px solid var(--line); border-radius:11px; padding:13px}
.stat .v{font:700 clamp(21px,6vw,28px)/1 var(--display); color:var(--bright)}
.stat .l{margin-top:5px; font-size:12px; color:var(--soft); line-height:1.35}

/* ── slider ────────────────────────────────────────────────────────────── */
.slider{margin-top:22px}
.slider label{display:block; font:700 11px/1 var(--bodyf); letter-spacing:.14em; text-transform:uppercase; color:var(--accent)}
.slider .val{font:700 clamp(34px,10vw,46px)/1 var(--display); color:#fff; margin-top:8px}
.slider .val small{font-size:.42em; color:var(--soft); font-weight:600; letter-spacing:.04em}
.slider input{
  width:100%; margin-top:16px; height:44px; background:none; -webkit-appearance:none; appearance:none;
}
.slider input::-webkit-slider-runnable-track{height:4px; border-radius:3px; background:rgba(255,255,255,.2)}
.slider input::-webkit-slider-thumb{
  -webkit-appearance:none; width:30px; height:30px; border-radius:50%; background:var(--bright);
  margin-top:-13px; border:0; box-shadow:0 3px 12px rgba(0,0,0,.45);
}
.slider input::-moz-range-track{height:4px; border-radius:3px; background:rgba(255,255,255,.2)}
.slider input::-moz-range-thumb{width:30px; height:30px; border:0; border-radius:50%; background:var(--bright)}
.slider .out{margin-top:14px; font-size:15px; color:#C6DEDA}
.slider .out b{color:var(--bright); font-size:1.15em}

/* ── deep layer ────────────────────────────────────────────────────────── */
.layer{
  position:fixed; inset:auto 0 0 0; max-height:82vh; overflow-y:auto; z-index:30;
  background:var(--ink-2); border-top:1px solid var(--line);
  border-radius:18px 18px 0 0; padding:20px var(--pad) calc(var(--safe-b) + 26px);
  transform:translateY(101%); transition:transform .3s cubic-bezier(.22,1,.36,1);
  box-shadow:0 -22px 50px -20px rgba(0,0,0,.7);
}
#stage[data-layer="open"] .moment[data-current] .layer{transform:none}
.layer::before{
  content:""; display:block; width:38px; height:4px; border-radius:3px;
  background:rgba(255,255,255,.25); margin:0 auto 16px;
}
.layer-card + .layer-card{margin-top:16px; padding-top:16px; border-top:1px solid var(--line)}
.layer-card h3{font:700 16px/1.3 var(--display); color:var(--bright)}
.layer-card p{margin-top:6px; font-size:15px; color:#C6DEDA}
.layer video,.layer img{width:100%; margin-top:11px; border-radius:11px; display:block}

/* Product shots are cropped at capture time to the part that carries the
   meaning, so they are shown WHOLE — never height-capped, which is what was
   slicing them mid-element. They shrink to fit the space that is left after the
   copy, and the reader can tap for the full screen. */
.shot{
  margin:16px 0 0; border:1px solid var(--line); border-radius:13px;
  overflow:hidden; background:#08201e; min-height:0; position:relative;
  box-shadow:0 22px 50px -28px rgba(0,0,0,.9); cursor:zoom-in;
}
.shot img{display:block; width:100%; height:auto}
/* When the shot has to give up height, fade the cut so it reads as "there is
   more, tap" rather than as a broken crop. */
.shot::before{
  content:""; position:absolute; left:0; right:0; bottom:0; height:74px;
  background:linear-gradient(to bottom, rgba(10,31,31,0), rgba(10,31,31,.92));
  pointer-events:none;
}
.shot::after{
  content:"Tap to enlarge"; position:absolute; right:9px; bottom:9px;
  font:700 9.5px/1 var(--bodyf); letter-spacing:.1em; text-transform:uppercase;
  color:#fff; background:rgba(10,31,31,.72); padding:6px 8px; border-radius:6px;
  backdrop-filter:blur(4px);
}
/* The copy holds its size; the shot gives up space first on a short screen. */
.moment:has(.shot) p{margin-top:13px}
.shot{flex:0 1 auto}

#lightbox{
  position:fixed; inset:0; z-index:60; background:rgba(4,14,14,.96);
  display:none; align-items:center; justify-content:center; padding:16px; cursor:zoom-out;
}
#lightbox.open{display:flex}
#lightbox img{max-width:100%; max-height:100%; border-radius:12px}
.more{
  margin-top:18px; display:inline-flex; align-items:center; gap:7px;
  font:600 12px/1 var(--bodyf); letter-spacing:.1em; text-transform:uppercase; color:var(--soft);
}
.more::before{content:"";width:0;height:0;border:5px solid transparent;border-bottom-color:var(--bright)}

/* ── close card ────────────────────────────────────────────────────────── */
.cta{
  display:inline-block; margin-top:22px; background:var(--bright); color:var(--ink);
  text-decoration:none; font:700 16px/1 var(--bodyf); padding:17px 26px; border-radius:11px;
}

.held .moment[data-current]{opacity:.72}

@media (prefers-reduced-motion:reduce){
  *{transition:none!important; animation:none!important}
  .bub{opacity:1; transform:none}
}

/* Without JavaScript the deck becomes a plain scrolling document. */
.nojs #stage{position:static; display:block; overflow:visible}
.nojs .moment{opacity:1; visibility:visible; border-bottom:1px solid var(--line)}
.nojs .pips,.nojs .prompt{display:none}
.nojs .layer{position:static; transform:none; max-height:none; box-shadow:none; border-radius:0}
.nojs html,.nojs body{overflow:auto}
