/* =====================================================================
   v5.4 mobile pass: phone + tablet only (max-width:900px), plus touch-only states.
   Loaded last. Desktop (>900px, fine pointer) is untouched by everything in here.
   ===================================================================== */

/* ---------- statement ring: one soft pulse when the net figure lands (class set by app.js) ---------- */
.hl::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:0 0 0 2.5px var(--blue);opacity:0;pointer-events:none}
.hl.is-pulse::after{animation:hlPulse .9s cubic-bezier(.2,.6,.3,1) both}
@keyframes hlPulse{0%{opacity:.75;transform:scale(1)}100%{opacity:0;transform:scale(1.28,1.6)}}

@media (max-width:900px){
  /* ---------- results: swipe stays horizontal, the page scroll stays vertical ---------- */
  .case-stack{touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}

  /* one blue bar slides under the active name; the three grey tracks stay as they were */
  .case-tabs.m-ind{position:relative}
  .case-tabs.m-ind .ctab i b{display:none}
  .ctab-ind{position:absolute;left:0;top:0;height:3px;border-radius:3px;background:var(--blue);pointer-events:none;will-change:transform}

  /* small swipe hint next to the arrows; gone after the first switch */
  .case-nav{align-items:center}
  .swipe-hint{display:inline-flex;align-items:center;gap:6px;margin-left:8px;font-size:13px;font-weight:500;color:var(--ink-3);transition:opacity .4s var(--ease),transform .5s var(--ease)}
  .swipe-hint svg{width:14px;height:14px;animation:swipeNudge 1.6s var(--ease) infinite}
  .swipe-hint.is-gone{opacity:0;transform:translateX(8px)}
  @keyframes swipeNudge{0%,55%,100%{transform:translateX(0)}25%{transform:translateX(4px)}}

  .photo-note{font-size:12px}

  /* ---------- services: on the phone every tile reads copy first, then its scene ---------- */
  .tile-chat .tile-copy,.tile-mkt .tile-copy{order:-1;padding-bottom:10px}
  .tile-chat .scene,.tile-mkt .scene{margin:14px}

  /* chat: compact and full. Three lines are already in place, the locked card fits with 2 to 3 bubbles above it */
  .scene-chat{height:356px}
  .chat-top small{font-size:12px}
  .chat-top .spent{font-size:12px}

  /* step 2 bubbles grow out of their tail corner */
  .mini-text .bub.them{transform-origin:0 100%}
  .mini-text .bub.me{transform-origin:100% 100%}
  .go-st>span{font-size:12px}
  .tm i{font-size:11px}
}

@media (max-width:640px){
  .tile-chat .tile-copy,.tile-mkt .tile-copy{padding:24px 22px 6px}
  .tile-chat .scene,.tile-mkt .scene{margin:10px}

  /* marketing flow: full tile width, height follows the width (420:300 viewBox), labels read at >= 10.5px */
  .scene-mkt{height:calc(71.43vw - 34px);padding:0}
  .flow .t1{font-size:15px}
  .flow .t2{font-size:13px}
  .flow .t2s{font-size:12.4px}
  .flow .t4{font-size:13px}
  .flow .priv text{font-size:9.4px;letter-spacing:.1em}
}

@media (max-width:374px){ .flow .t2,.flow .t4{font-size:14px} }

/* ---------- touch: press feedback instead of sticky hover ---------- */
@media (hover:none){
  .btn:hover,.btn-primary:hover,.btn-ghost:hover,.round:hover,.proof:hover{transform:none}
  .btn-primary:hover svg{transform:none}
  .btn:active,.round:active{transform:scale(.97);transition-duration:.12s}
  .ctab{transition:color .25s,transform .35s var(--ease)}
  .ctab:active{transform:scale(.96);transition-duration:.12s}
  .proof:active{transform:scale(.985);transition-duration:.12s}
}

/* v5.9 · very small phones (< 360px): the hero headline keeps its two lines (scaled to the column width),
   and the phone field gets enough room for its placeholder. 360px and up are untouched. */
@media (max-width:359px){
  .h-hero{font-size:min(46px,calc(14.1vw - 4.6px))}
  .af-row{grid-template-columns:86px 1fr}
  .af-row input{padding:0 8px 0 12px}
  .af-row select{padding:0 8px 0 10px}
}

/* v5.9 · over the apply section the bar turns solid: after a CTA jump the text-us buttons sit right behind it */
.nav.at-form{background:rgba(255,255,255,.97)}
/* v6.5 · proof screenshots are static (no full-size view) */
.proof.is-static{pointer-events:none}
