/* Batreeq landing page. Colours and type follow the app (src/theme.ts, Nunito + Baloo Bhaijaan 2). */
:root {
  --teal: #16D2DC;
  --teal-deep: #0CBFCA;
  --teal-dark: #079AA4;
  --teal-soft: #7FE7EE;
  --teal-pale: #E4FAFB;
  --ink: #2B3242;
  --ink-soft: #4A5163;
  --gray: #A2A7B3;
  --gray-light: #CDD1D9;
  --line: #EEF0F3;
  --row: #F5F6F8;
  --pink: #FF5C8D;
  --pink-pale: #FDE8EF;
  --purple: #8B5CF6;
  --orange: #FFB020;
  --blue: #3B82F6;
  --indigo: #4338CA;
  --green: #3DD68C;
  --bg: #FBFEFE;
  --night: #070A12;
  --round: 'Nunito', system-ui, sans-serif;
  --ar: 'Baloo Bhaijaan 2', 'Nunito', sans-serif;
  --ui: 'Inter', -apple-system, 'SF Pro Text', system-ui, 'Segoe UI', sans-serif;
  --ease-spring: cubic-bezier(.3, 1.5, .5, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 68px;
}

* { box-sizing: border-box; }
/* `hidden` always wins, even over components that set their own display. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 600 17px/1.55 var(--round); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* Nothing may widen the page: on phones, anything wider than the screen widens the whole layout and
   pushes the nav's right side off screen. `clip` (unlike `hidden`) keeps the sticky phone working. */
main, footer { overflow-x: clip; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--round); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }
h2 em, h1 em { font-style: normal; color: var(--teal-deep); }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 800 16px/1 var(--round); text-decoration: none; transition: transform .25s var(--ease-spring), background .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.96); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(43,50,66,.6); }
.btn-ink:hover { background: #1e2432; }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -10px rgba(22,210,220,.8), inset 0 -3px 0 rgba(0,0,0,.08); }
.btn-teal:hover { background: var(--teal-deep); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--teal-soft); }
.btn-ghost .arrow { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
.link-btn { border: 0; background: none; padding: 6px 10px; border-radius: 999px; color: var(--teal-dark); font: 800 14px var(--round); }
.link-btn:hover { background: var(--teal-pale); }

.store-btn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 16px; background: #0B0D12; color: #fff;
  text-decoration: none; box-shadow: 0 12px 28px -14px rgba(0,0,0,.7); transition: transform .25s var(--ease-spring); }
.store-btn:hover { transform: translateY(-2px) scale(1.02); }
.store-btn svg { width: 28px; height: 28px; fill: currentColor; }
.store-btn span { display: flex; flex-direction: column; font: 600 21px/1 var(--ui); letter-spacing: -.3px; }
.store-btn small { font: 500 11px/1.2 var(--ui); letter-spacing: 0; opacity: .85; }
.store-btn.light { background: #fff; color: #0B0D12; }

/* ---------- Nav ---------- */
/* Clear over the pool; frosted glass once the page scrolls past it. */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: 24px; padding: 0 max(24px, (100% - 1200px) / 2);
  background: transparent; transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.nav.scrolled { background: rgba(251,254,254,.55); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 1px 0 rgba(43,50,66,.05); }
.nav:not(.scrolled) .nav-links a:hover { background: rgba(255,255,255,.35); color: var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 22px/1 var(--round); letter-spacing: -.02em; }
.brand img { border-radius: 10px; box-shadow: 0 4px 10px -4px rgba(7,154,164,.5); transition: transform .4s var(--ease-spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.nav-links { display: flex; gap: 2px; margin-inline-start: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font: 800 15px var(--round); color: var(--ink-soft); transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a.on { background: var(--teal-pale); color: var(--teal-dark); }
.nav .brand, .nav-links a, .nav .btn-ink { transition: background .3s, color .3s; }
.nav.dark.scrolled { background: rgba(7,10,18,.5); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav.dark .brand { color: #fff; }
.nav.dark .nav-links a { color: #A9AFBC; }
.nav.dark .nav-links a:hover, .nav.dark .nav-links a.on { background: rgba(22,210,220,.14); color: var(--teal); }
.nav.dark .btn-ink { background: var(--teal); color: #03282B; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal="phone"] { transform: translateY(70px) scale(.94) rotate(-2deg); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
[data-words] .w { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(4deg); filter: blur(8px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-spring), filter .7s; transition-delay: calc(var(--wi) * 70ms + 80ms); }
[data-words].in .w { opacity: 1; transform: none; filter: none; }

.sec-head { max-width: 640px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(36px, 5.2vw, 60px); margin-top: 10px; }
.sec-head p { margin-top: 16px; color: var(--ink-soft); font-size: 18.5px; font-weight: 600; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 900 13px/1 var(--round); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-dark); }
.kicker::before { content: ''; width: 18px; height: 3px; border-radius: 3px; background: currentColor; }
.sec-head.center .kicker::after { content: ''; width: 18px; height: 3px; border-radius: 3px; background: currentColor; }

/* ---------- Phone mockup (iPhone, 402 × 874 pt screen) ---------- */
.phone { --s: .64; position: relative; width: calc(426px * var(--s)); height: calc(898px * var(--s)); flex: none; }
.device { position: absolute; left: 0; top: 0; width: 426px; height: 898px; transform: scale(var(--s)); transform-origin: 0 0;
  --metal: linear-gradient(145deg, #f3f4f6 0%, #c8cbd1 16%, #f8f9fa 32%, #b4b8c0 50%, #eceef1 68%, #c0c3ca 84%, #eff1f3 100%);
  --metal-btn: linear-gradient(90deg, #a9adb5, #eef0f3 55%, #b3b7bf); }
.phone-dark .device { --metal: linear-gradient(145deg, #63666d 0%, #2b2d31 16%, #6a6e76 32%, #232529 50%, #565960 68%, #282a2e 84%, #5c5f66 100%);
  --metal-btn: linear-gradient(90deg, #26282c, #6a6e76 55%, #2a2c30); }
.device .band { position: absolute; inset: 0; border-radius: 74px; background: var(--metal);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), inset 0 0 0 2.5px rgba(0,0,0,.1), inset 0 2px 3px rgba(255,255,255,.55), 0 60px 90px -36px rgba(16,40,60,.45), 0 24px 40px -18px rgba(16,40,60,.25); }
.device .bezel { position: absolute; inset: 4.5px; border-radius: 69.5px; background: #020203; }
.btn-hw { position: absolute; width: 4px; background: var(--metal-btn); }
.btn-hw.l { left: -3px; border-radius: 3px 0 0 3px; }
.btn-hw.r { right: -3px; border-radius: 0 3px 3px 0; }
.action { top: 182px; height: 34px; } .vol-up { top: 238px; height: 62px; } .vol-down { top: 312px; height: 62px; } .side { top: 268px; height: 98px; }
.screen { position: absolute; left: 12px; top: 12px; width: 402px; height: 874px; border-radius: 62px; overflow: hidden; background: #fff; isolation: isolate; }
.screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 40; background: linear-gradient(118deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 30%); }
/* The status bar belongs to iOS, not the app, so it keeps its places in Arabic too (like the island). */
.statusbar { position: absolute; inset: 0 0 auto 0; height: 54px; color: #0B0D12; z-index: 5; pointer-events: none; transition: opacity .25s; }
.statusbar.light { color: #fff; }
.sb-time { position: absolute; left: 14px; width: 142px; top: 19px; text-align: center; font: 600 17px/1 var(--ui); letter-spacing: -.3px; }
.sb-right { position: absolute; left: 300px; right: 26px; top: 21px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.sb-right svg { fill: currentColor; }
.island-open .statusbar { opacity: 0; }
.home-indicator { position: absolute; left: 50%; bottom: 8px; width: 138px; height: 5px; margin-left: -69px; border-radius: 3px; background: #0B0D12; opacity: .85; z-index: 30; }
.lock-screen .home-indicator, .dark-wall .home-indicator { background: #fff; }

/* ---------- Dynamic Island ---------- */
.island { position: absolute; background: #000; overflow: hidden; z-index: 20; cursor: pointer; }
.dark-wall .island { box-shadow: 0 0 0 .9px rgba(22,210,220,.45); }
.island.detached { width: 36.67px; height: 36.67px; border-radius: 50%; opacity: 0; transform: scale(.35); cursor: default; transition: transform .26s cubic-bezier(.4,0,.6,1), opacity .16s; }
.island.detached.on { opacity: 1; transform: none; transition: transform .52s cubic-bezier(.3,1.55,.5,1) .08s, opacity .2s .08s; }
.island .layers { position: absolute; inset: 0; }
.layer { position: absolute; left: 0; top: 0; opacity: 0; filter: blur(7px); pointer-events: none; transition: opacity .15s ease-in, filter .15s ease-in; }
.layer.on { opacity: 1; filter: blur(0); pointer-events: auto; transition: opacity .28s ease-out .11s, filter .32s ease-out .11s; }
.layer .content { transform: scale(.9); transform-origin: 50% 20%; transition: transform .15s ease-in; }
.layer.on .content { transform: none; transition: transform .52s cubic-bezier(.25,1.3,.5,1) .08s; }
.lens { position: absolute; z-index: 21; width: 11px; height: 11px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 36% 34%, #3a4a6e 0%, #121a2c 38%, #05070c 70%); box-shadow: 0 0 0 1.5px #07090e; }

.content { position: absolute; inset: 0; color: #fff; font-family: var(--round); }
.abs { position: absolute; }
.val { display: flex; align-items: center; font-weight: 900; line-height: 1; letter-spacing: -.2px; white-space: nowrap; }
.cap { font: 600 10px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: #8E93A0; }
.right { text-align: end; }
.ringwrap { display: grid; place-items: center; }
.ringwrap > svg { position: absolute; inset: 0; overflow: visible; }
.ringwrap .center { position: relative; display: grid; place-items: center; line-height: 1; }
.ringwrap.done > svg { filter: drop-shadow(0 0 5px rgba(22,210,220,.75)); }
.drop { display: block; }
.big { font: 900 30px/1 var(--round); letter-spacing: -.4px; white-space: nowrap; margin-top: 6px; }
.big small, .mid small { font: 700 13px/1 var(--round); color: #8E93A0; letter-spacing: 0; }
.mid { font: 900 17px/1 var(--round); white-space: nowrap; }
.sub { font: 700 12.5px/1.2 var(--round); color: #8E93A0; white-space: nowrap; margin-top: 3px; }
.pct { font: 900 17px/1 var(--round); letter-spacing: -.2px; }
.last { font: 700 13px/1.2 var(--round); white-space: nowrap; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.streak { display: flex; align-items: center; gap: 5px; font: 700 13px/1 var(--round); color: #C9CDD6; }
.streak svg { width: 15px; height: 15px; margin-top: -2px; }
.la-btn { border: 0; border-radius: 999px; background: var(--teal); color: #03282B; font: 800 14px/1 var(--round); display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 10px; white-space: nowrap; transition: transform .15s, background .15s; }
.la-btn:hover { background: #3ADCE5; }
.la-btn:active, .la-btn.pressing { transform: scale(.93); background: #3ADCE5; }
.la-btn .plus { font-size: 18px; margin-top: -2px; }
.fx { position: absolute; inset: 0; pointer-events: none; }
.floater { position: absolute; padding: 4px 8px 3px; border-radius: 999px; background: rgba(18,22,30,.9); font: 800 12px/1 var(--round); white-space: nowrap; pointer-events: none; }
.ripple { position: absolute; border-radius: 50%; border: 2px solid; pointer-events: none; }
.confetti { position: absolute; width: 5px; height: 8px; border-radius: 1.5px; pointer-events: none; }

/* Rolling digits, like SwiftUI's numericText transition */
.ch { display: inline-block; position: relative; white-space: pre; }
/* The compact island's "ml left": the app's 14 pt semibold rounded, white. */
.left-to-go { font-size: 14.5px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.left-to-go.done { padding-top: 0; }
.ch.roll .in { display: inline-block; animation: rollIn .46s cubic-bezier(.2,.9,.25,1) var(--d) both; }
.ch.roll .out { position: absolute; left: 0; right: 0; top: 0; animation: rollOut .4s cubic-bezier(.4,0,.6,1) var(--d) both; }
.down .ch.roll .in { animation-name: rollInDown; }
.down .ch.roll .out { animation-name: rollOutDown; }
@keyframes rollIn { from { transform: translateY(.6em) scale(.8); opacity: 0; filter: blur(3px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes rollOut { from { transform: none; opacity: 1; filter: none; } to { transform: translateY(-.6em) scale(.8); opacity: 0; filter: blur(3px); } }
@keyframes rollInDown { from { transform: translateY(-.6em) scale(.8); opacity: 0; filter: blur(3px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes rollOutDown { from { transform: none; opacity: 1; filter: none; } to { transform: translateY(.6em) scale(.8); opacity: 0; filter: blur(3px); } }
.pop { animation: pop .56s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 35% { transform: scale(1.18); } }

/* ---------- Pip ---------- */
.pip { display: block; overflow: visible; }
.pip-eye { animation: blink 4.2s infinite; }
@keyframes blink { 0%, 90%, 93.5%, 96%, 100% { transform: scaleY(1); } 91.5%, 95% { transform: scaleY(.08); } }

/* ---------- Hero: the pool, with Pip on his float ---------- */
.hero { position: relative; min-height: max(720px, 100svh); padding: calc(var(--nav-h) + 40px) 0 130px; display: flex; align-items: center; overflow: hidden; background: #1EBCD3; cursor: pointer; }
.hero::before { content: ''; position: absolute; inset-inline-start: -12%; top: 8%; width: 72%; height: 84%; z-index: 1; pointer-events: none; background: radial-gradient(closest-side, rgba(0,78,98,.2), transparent); }
.pool-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 3; pointer-events: none; }
.hero-copy { max-width: 650px; color: #fff; }
.hero-copy a { pointer-events: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255,255,255,.9); font: 800 14px/1 var(--round); color: var(--ink-soft);
  box-shadow: 0 8px 20px -12px rgba(0,60,80,.5); }
.live-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); flex: none; }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--teal); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(2.6); opacity: 0; } }
.hero-title { font-size: clamp(50px, 7.6vw, 100px); margin-top: 22px; letter-spacing: -.035em; line-height: .96; color: #fff; text-shadow: 0 4px 26px rgba(0,70,90,.22); }
.hero-title em { color: #FFE07A; }
.lead { margin-top: 24px; max-width: 540px; font-size: 20px; font-weight: 700; color: #fff; text-shadow: 0 1px 12px rgba(0,70,90,.3); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.cta-row.center { justify-content: center; }
.btn-glass { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.28); }
.btn-glass .arrow { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
.hero-facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hero-facts li { font: 800 14.5px/1.3 var(--round); color: rgba(255,255,255,.9); text-shadow: 0 1px 8px rgba(0,70,90,.3); }
.hero-facts b { display: block; font: 900 30px/1 var(--round); color: #fff; margin-bottom: 4px; }
.float { position: absolute; left: 0; top: 0; width: 300px; z-index: 2; will-change: transform; pointer-events: none; }
.float-img { position: relative; width: 100%; }
.float-shadow { position: absolute; left: -12.8%; top: -12%; width: 125.6%; opacity: .32; filter: blur(4px); transform: translate(10px, 18px); }
.pool-hint { position: absolute; inset-inline-end: max(24px, (100% - 1200px) / 2); bottom: 70px; z-index: 3; font: 900 12.5px/1 var(--round); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.85); pointer-events: none; animation: hint 3.2s ease-in-out infinite; }
@keyframes hint { 50% { opacity: .55; } }

/* ---------- How it works ---------- */
.how { position: relative; padding: 60px 0 110px; background: var(--bg); }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.how-steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 10px; }
.how-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 24px;
  transition: background .45s, box-shadow .45s, translate .5s var(--ease-spring); }
.how-steps li.on { background: #fff; translate: 8px 0; box-shadow: 0 22px 40px -28px rgba(16,40,60,.45), inset 0 0 0 1.5px var(--teal-pale); }
.how-num { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--line); color: var(--ink-soft); font: 900 17px/1 var(--round); transition: background .3s, color .3s, transform .4s var(--ease-spring); }
.how-steps li.on .how-num { background: var(--teal); color: #fff; transform: scale(1.1); }
.how-steps b { display: block; font: 900 21px/1.2 var(--round); }
.how-steps li span:not(.how-num) { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 16px; }
.demo-stage { position: relative; display: flex; justify-content: center; padding: 20px 0 30px; }
.demo-stage .phone { --s: .74; z-index: 2; }
.halo { position: absolute; left: 50%; top: 50%; width: min(560px, 100vw); aspect-ratio: 1; translate: -50% -53%; border-radius: 50%;
  background: radial-gradient(circle, rgba(22,210,220,.3) 0%, rgba(22,210,220,.1) 45%, transparent 70%); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
.demo-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); font: 700 14px/1 var(--round); color: var(--ink-soft); box-shadow: 0 14px 30px -14px rgba(16,40,60,.35); white-space: nowrap; }
.demo-chip b { color: var(--ink); font-weight: 900; }
.demo-chip.c1 { left: 0; top: 30%; }
.demo-chip.c2 { right: 0; top: 62%; }
.demo-chip.in { animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
@keyframes bob { 50% { translate: 0 -10px; } }
.chip-dot { width: 12px; height: 12px; border-radius: 50%; }
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.floaters .fl { position: absolute; padding: 8px 12px; border-radius: 999px; background: #fff; font: 900 15px/1 var(--round); box-shadow: 0 10px 24px -12px rgba(16,40,60,.4); white-space: nowrap; }

/* The app's home screen, drawn in points inside the phone */
.app-screen { background: #fff; }
.app-top { position: absolute; left: 0; right: 0; top: 58px; height: 46px; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; z-index: 3; }
.streak-badge { position: relative; width: 42px; height: 42px; display: grid; place-items: center; }
.streak-badge svg { position: absolute; inset: 0; }
.streak-arc { transition: stroke-dashoffset .9s var(--ease-out); }
.streak-badge span { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font: 900 13px/1 var(--round); }
.menu-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--line); display: grid; place-items: center; }
.app-title { position: absolute; left: 0; right: 0; top: 104px; text-align: center; z-index: 3; }
.app-amount { font: 900 42px/52px var(--round); color: var(--teal); letter-spacing: -.5px; transition: color .3s; }
.app-sub { font: 800 13px/20px var(--round); color: var(--gray); }
.app-stage { position: absolute; left: 0; right: 0; top: 182px; height: 470px; display: grid; place-items: center; }
.app-stage .pipfill { width: 304px; height: 422px; transition: transform .35s var(--ease-spring); }
.app-stage .pip-color, .tp-stage .pip-color { position: absolute; left: 50%; top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.92); transition: opacity .3s, transform .4s var(--ease-spring); pointer-events: none; }
.app-stage .pip-color { width: 393px; height: 422px; }
.app-stage .pip-color svg, .tp-stage .pip-color svg { width: 100%; height: 100%; }
.show-color .pip-color { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.show-color .pipfill { opacity: 0; transition: opacity .3s; }
.bump { animation: bump .5s var(--ease-spring); }
@keyframes bump { 30% { transform: scale(1.035); } }
.shelf { position: absolute; left: 8px; right: 8px; top: 666px; display: flex; justify-content: space-between; z-index: 3; }
.dbtn { width: 76px; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; padding: 0; transition: transform .2s var(--ease-spring); }
.dbtn .ib { position: relative; width: 68px; height: 68px; display: grid; place-items: center; }
.dbtn .plus { position: absolute; right: 6px; bottom: 6px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 2.5px #fff; }
.dbtn .plus::before, .dbtn .plus::after { content: ''; position: absolute; width: 8px; height: 2.2px; border-radius: 2px; background: #fff; }
.dbtn .plus::after { transform: rotate(90deg); }
.dbtn .nm { font: 900 10px/1.2 var(--round); color: var(--gray); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.dbtn.tapped { animation: tapped .42s var(--ease-spring); }
@keyframes tapped { 35% { transform: scale(.86); } }
.dbtn .rip { position: absolute; inset: -2px; border-radius: 50%; background: #F9C6D8; animation: rip .7s ease-out forwards; z-index: -1; }
@keyframes rip { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.add-dot { width: 46px; height: 46px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px var(--teal-pale); display: grid; place-items: center; }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 12; }
.tap-dot { position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(43,50,66,.18); box-shadow: 0 0 0 2px rgba(255,255,255,.8);
  opacity: 0; z-index: 25; pointer-events: none; transition: opacity .2s, transform .2s; }
.tap-dot.on { opacity: 1; }
.tap-dot.down { transform: scale(.78); background: rgba(43,50,66,.28); }

/* Pour screen inside the hero phone (src/components/CupScreen) */
.cup-screen { position: absolute; inset: 0; z-index: 15; background: #fff; display: flex; flex-direction: column; align-items: center; opacity: 0; pointer-events: none; transform-origin: 50% 85%;
  transform: scale(.2); transition: opacity .25s, transform .45s var(--ease-spring); }
.cup-screen.on { opacity: 1; transform: none; }
.cup-screen .cs-head { margin-top: 70px; font: 900 24px/1 var(--round); color: var(--ink); display: flex; align-items: center; gap: 10px; }
.cup-screen .cs-close { position: absolute; inset-inline-end: 22px; top: 62px; width: 38px; height: 38px; border-radius: 50%; background: var(--line); display: grid; place-items: center; color: var(--ink-soft); font: 800 18px/1 var(--round); }
.cup-screen .cs-vessel { margin-top: 56px; width: 240px; height: 275px; }
.cup-screen .cs-amount { margin-top: 40px; font: 900 44px/1 var(--round); color: var(--ink); }
.cup-screen .cs-amount small { font-size: 22px; color: var(--gray); margin-left: 4px; }
.cup-screen .cs-hint { margin-top: 8px; font: 800 13px var(--round); color: var(--gray); }
.cup-screen .cs-add { position: absolute; left: 40px; right: 40px; bottom: 72px; height: 58px; border-radius: 29px; background: var(--teal); color: #fff; display: grid; place-items: center; font: 900 19px/1 var(--round);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.08); transition: transform .15s; }
.cup-screen .cs-add.pressing { transform: scale(.95); background: var(--teal-deep); }

/* A sprite-clip host (see ClipPlayer) */
.clip { overflow: hidden; }

/* ---------- Tracking ---------- */
.track { position: relative; padding: 70px 0 130px; background: linear-gradient(#E9FBFC, #fff 40%); }
.track-grid { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: stretch; }
.track-pip { position: relative; border-radius: 36px; background: #fff; padding: 34px 24px 26px; text-align: center; box-shadow: 0 30px 60px -40px rgba(16,40,60,.4), inset 0 0 0 1.5px var(--line); overflow: hidden; }
.tp-amount { font: 900 clamp(42px, 4.6vw, 56px)/1 var(--round); color: var(--teal); letter-spacing: -.02em; transition: color .3s; }
.tp-sub { margin-top: 8px; font: 800 15px var(--round); color: var(--gray); }
.tp-stage { position: relative; display: block; margin: 18px auto 0; width: 100%; height: 440px; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tp-stage .pipfill { position: absolute; left: 50%; top: 0; height: 100%; width: calc(440px * 1024 / 1420); transform: translateX(-50%); transition: opacity .3s; }
.tp-stage .pip-color { height: 100%; width: calc(440px * 1324 / 1420); }
.tp-stage .pipfill.bump { animation: bumpX .5s var(--ease-spring); }
@keyframes bumpX { 30% { transform: translateX(-50%) scale(1.035); } }
.goal-line { position: absolute; left: 6%; right: 6%; top: calc(48 / 1420 * 100%); border-top: 2px dashed rgba(22,210,220,.4); pointer-events: none; }
.goal-line span { position: absolute; right: 0; top: -11px; padding: 2px 8px; border-radius: 999px; background: var(--teal-pale); color: var(--teal-dark); font: 900 11px/16px var(--round); text-transform: uppercase; letter-spacing: .08em; }
.show-color .goal-line { opacity: 0; }
.tp-hint { margin-top: 12px; font: 800 13.5px var(--round); color: var(--gray); }
.tap-icon { display: inline-block; margin-right: 6px; animation: tapIcon 2.4s ease-in-out infinite; }
@keyframes tapIcon { 0%, 60%, 100% { transform: none; } 70% { transform: translateY(3px) scale(.9); } 80% { transform: none; } }
.log-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; min-height: 34px; }
.log-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border-radius: 999px; background: var(--row); font: 800 13px/1 var(--round); color: var(--ink-soft); animation: chipIn .5s var(--ease-spring) both; }
.log-chip i { width: 11px; height: 11px; border-radius: 50%; }
@keyframes chipIn { from { opacity: 0; transform: translateY(10px) scale(.7); } }
.goal-pill { position: absolute; left: 50%; top: 150px; z-index: 8; display: flex; align-items: center; gap: 8px; padding: 12px 20px 12px 16px; border-radius: 999px; background: var(--pink); color: #fff;
  font: 900 20px/1 var(--round); white-space: nowrap; box-shadow: 0 16px 30px -12px rgba(255,92,141,.7); pointer-events: none; opacity: 0; transform: translateX(-50%) scale(.4) rotate(-8deg); transition: opacity .25s, transform .3s ease-in; }
.goal-pill.on { opacity: 1; transform: translateX(-50%) rotate(-4deg); transition: opacity .2s, transform .6s var(--ease-spring); }

.pour { position: relative; border-radius: 36px; background: #fff; padding: 30px; box-shadow: 0 30px 60px -40px rgba(16,40,60,.4), inset 0 0 0 1.5px var(--line); display: flex; flex-direction: column; }
.pour-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pour-head h3 { font-size: 24px; }
.drink-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.drink-grid .dpick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 9px; border-radius: 20px; border: 0; background: var(--row);
  font: 900 11px/1.2 var(--round); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .4px; transition: background .2s, transform .25s var(--ease-spring), box-shadow .2s; }
.drink-grid .dpick:hover { transform: translateY(-3px); background: #EEF9FA; }
.drink-grid .dpick[aria-checked=true] { background: #fff; box-shadow: inset 0 0 0 2.5px var(--c), 0 10px 20px -12px var(--c); color: var(--ink); }
.drink-grid .dpick[aria-checked=true] .dicon { animation: wiggle .5s var(--ease-spring); }
@keyframes wiggle { 30% { transform: rotate(-10deg) scale(1.1); } 60% { transform: rotate(6deg); } }
.pour-body { margin-top: 22px; flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.vessel { position: relative; height: 300px; display: grid; place-items: center; cursor: ns-resize; touch-action: none; user-select: none; border-radius: 24px; background: radial-gradient(circle at 50% 60%, var(--teal-pale), transparent 70%); }
.vessel svg { width: 236px; height: 270px; overflow: visible; }
.drag-hint { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #fff; font: 800 12px/1 var(--round); white-space: nowrap; transition: opacity .3s; }
.drag-hint span { display: inline-block; animation: nudge 1.2s ease-in-out infinite; }
.drag-hint.gone { opacity: 0; }
.pour-name { font: 900 15px var(--round); color: var(--gray); text-transform: uppercase; letter-spacing: .08em; }
.pour-amount { font: 900 64px/1 var(--round); letter-spacing: -.03em; margin-top: 4px; }
.pour-amount small { font-size: 24px; color: var(--gray); margin-left: 6px; letter-spacing: 0; }
.pour-steps { display: flex; gap: 8px; margin-top: 12px; }
.step-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--row); font: 900 22px/1 var(--round); color: var(--ink); transition: transform .2s var(--ease-spring), background .2s; }
.step-btn:hover { background: var(--teal-pale); }
.step-btn:active { transform: scale(.88); }
.pour-note { margin-top: 14px; font: 700 14.5px/1.45 var(--round); color: var(--ink-soft); min-height: 42px; }
.pour-note b { color: var(--teal-dark); }
.btn-add { margin-top: 16px; width: 100%; height: 58px; font-size: 18px; }
.sync-note { margin-top: 22px; display: flex; align-items: center; gap: 10px; font: 800 13.5px var(--round); color: var(--gray); }

/* ---------- Dynamic Island section ---------- */
.island-sec { position: relative; padding: 130px 0 120px; background: var(--night); color: #fff; overflow: clip; }
.island-sec .glow { position: absolute; left: 50%; top: -260px; width: 1100px; height: 700px; margin-left: -550px; background: radial-gradient(closest-side, rgba(22,210,220,.22), transparent); pointer-events: none; }
.island-sec .sec-head p { color: #A9AFBC; }
.island-sec .kicker { color: var(--teal); }
.island-sec h2 em { color: var(--teal); }
.scrolly { position: relative; margin-top: 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.scrolly-phone { position: sticky; top: calc(var(--nav-h) + 30px); align-self: start; display: flex; flex-direction: column; align-items: center; }
.phone-crop { --s: 1.15; position: relative; width: calc(426px * var(--s)); height: 430px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.phone-crop .phone { --s: inherit; }
.dark-wall .wallpaper, .lock-screen .wallpaper { position: absolute; inset: 0; }
.dark-wall .wallpaper { background: radial-gradient(100% 50% at 15% 4%, #0F6577 0%, transparent 62%), radial-gradient(80% 48% at 96% 40%, #362A82 0%, transparent 62%),
  radial-gradient(120% 65% at 40% 100%, #0B5970 0%, transparent 66%), linear-gradient(180deg, #050E19 0%, #0A0F1E 100%); }
.home-grid { position: absolute; left: 26px; right: 26px; top: 210px; display: grid; grid-template-columns: repeat(4, 62px); justify-content: space-between; row-gap: 22px; transition: filter .4s, opacity .4s; }
.island-open .home-grid { filter: blur(6px); opacity: .6; }
.app { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.app .ic { width: 62px; height: 62px; border-radius: 15px; display: grid; place-items: center; background: var(--c); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25), 0 6px 14px -8px rgba(0,0,0,.35); }
.app .ic svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.app .ic.img { overflow: hidden; background: #fff; }
.app span { font: 500 11.5px/1.1 var(--ui); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.finger { position: absolute; left: 0; top: 0; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(255,255,255,.28); box-shadow: 0 0 0 2px rgba(255,255,255,.7), 0 8px 20px rgba(0,0,0,.3);
  z-index: 30; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.finger.on { opacity: 1; }
.finger.down { transform: scale(.8); background: rgba(255,255,255,.4); }
.finger.hold::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(22,210,220,.9); animation: hold .7s ease-out forwards; }
@keyframes hold { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

.seg { margin-top: 14px; display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.seg button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font: 800 14px/1 var(--round); color: #A9AFBC; transition: background .25s, color .25s; }
.seg button.on { background: var(--teal); color: #03282B; }
.steps { padding: 6vh 0 20vh; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transform: translateX(16px); transition: opacity .5s, transform .6s var(--ease-out); }
.step.on { opacity: 1; transform: none; }
.step-num { font: 900 13px/1 var(--round); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.step h3 { margin-top: 14px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; }
.step p { margin-top: 14px; color: #A9AFBC; font-size: 18px; max-width: 460px; }

/* ---------- Lock Screen section ---------- */
.lock-sec { position: relative; padding: 130px 0; background: radial-gradient(80% 60% at 90% 40%, #EAF4FF 0%, transparent 70%), radial-gradient(60% 50% at 10% 90%, var(--pink-pale) 0%, transparent 70%), #fff; overflow: hidden; }
.lock-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.lock-list { list-style: none; padding: 0; margin: 34px 0 30px; display: grid; gap: 18px; }
.lock-list li { display: flex; gap: 16px; align-items: flex-start; }
.lock-list b { display: block; font: 900 19px/1.2 var(--round); }
.lock-list span:not(.li-ic) { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 16px; }
.li-ic { width: 46px; height: 46px; border-radius: 15px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, #fff); }
.li-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lock-stage { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.lock-stage .phone { --s: .72; }
.lock-screen .wallpaper { background: radial-gradient(110% 55% at 8% 0%, #8FE3F0 0%, transparent 62%), radial-gradient(85% 50% at 100% 32%, #F4A0C4 0%, transparent 62%),
  radial-gradient(120% 65% at 25% 100%, #4F7FE8 0%, transparent 66%), linear-gradient(172deg, #93D9EC 0%, #7FAFF0 55%, #6876DC 100%); transition: filter .7s; }
.lock-screen .cutout { position: absolute; left: 156px; top: 11px; width: 90px; height: 36.67px; border-radius: 18.3px; background: #000; z-index: 10; }
.lock-glyph { position: absolute; left: 50%; top: 57px; width: 13px; height: 17px; margin-left: -6.5px; color: #fff; z-index: 5; transition: opacity .6s, transform .5s var(--ease-spring); }
.ls-date { position: absolute; top: 90px; left: 0; right: 0; text-align: center; font: 600 19px/1 var(--ui); color: rgba(255,255,255,.95); text-shadow: 0 1px 8px rgba(0,0,0,.12); transition: opacity .6s; }
.ls-clock { position: absolute; top: 104px; left: 0; right: 0; text-align: center; font: 700 116px/1 var(--ui); letter-spacing: -5px; color: rgba(255,255,255,.9); text-shadow: 0 2px 16px rgba(0,0,0,.1); transition: opacity .6s, font-weight .6s; }
.ls-btn { position: absolute; bottom: 42px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; z-index: 3; background: rgba(255,255,255,.2); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); transition: opacity .6s; }
.ls-btn.l { left: 44px; } .ls-btn.r { right: 44px; }
.ls-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lock-screen.aod .wallpaper { filter: brightness(.2) saturate(.5); }
.lock-screen.aod .statusbar, .lock-screen.aod .ls-btn, .lock-screen.aod .home-indicator { opacity: 0; }
.lock-screen.aod .ls-clock, .lock-screen.aod .ls-date, .lock-screen.aod .lock-glyph { opacity: .5; }
.lock-screen.unlocked .lock-glyph { transform: translateY(-3px) rotate(-12deg); }
.la-card { position: absolute; left: 11px; top: 612px; width: 380px; height: 150px; border-radius: 26px; z-index: 3; transform: translateY(240px); opacity: 0;
  transition: transform .8s var(--ease-spring), opacity .4s, background .6s; }
.la-card.on { transform: none; opacity: 1; }
.notif { position: absolute; left: 11px; right: 11px; top: 500px; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 22px;
  background: rgba(246,247,249,.8); backdrop-filter: blur(24px) saturate(1.8); font: 400 14px/1.3 var(--ui); color: #1F2533; opacity: 0; transform: translateY(-30px) scale(.9); transition: opacity .4s, transform .6s var(--ease-spring); }
.notif.on { opacity: 1; transform: none; }
.notif img { width: 38px; height: 38px; border-radius: 9px; }
.notif b { display: block; font-weight: 600; }
.notif em { align-self: flex-start; margin-left: auto; font: 400 12.5px var(--ui); color: #6B7180; font-style: normal; }
.surf { position: absolute; overflow: hidden; color: var(--fg); background: var(--card-bg); }
.surf .content { color: var(--fg); font-family: var(--ui); }
.surf .cap { color: var(--fg2); font-size: 11px; }
.surf .big, .surf .mid, .surf .pct { color: var(--fg); }
.surf .big small, .surf .mid small, .surf .sub { color: var(--fg2); font-family: var(--ui); font-weight: 500; }
.surf .last { font: 600 13px/1.2 var(--ui); color: var(--fg); }
.surf .streak { font: 600 12.5px/1 var(--ui); color: var(--fg2); }
.surf .trk { stroke: var(--track); }
.surf .ra { stop-color: var(--ra); }
.surf .rb { stop-color: var(--rb); }
.surf .la-btn { background: var(--btn-bg); color: var(--btn-fg); font: 600 13.5px/1 var(--ui); }
.surf .la-btn .plus { font: 600 17px/1 var(--ui); }
.surf .brandmark { display: flex; align-items: center; gap: 5px; font: 600 12.5px/1 var(--ui); color: var(--fg2); }
.surf .togo { font: 600 13px/1.2 var(--ui); color: var(--fg); white-space: nowrap; }
.surf .togo b { color: var(--accent-text); font-weight: 600; }
.surf-light { --card-bg: rgba(246,247,249,.84); --fg: #1F2533; --fg2: #6B7180; --track: rgba(7,154,164,.16); --ra: #45DCE4; --rb: #079AA4; --btn-bg: #16D2DC; --btn-fg: #03282B; --accent-text: #067F87;
  backdrop-filter: blur(26px) saturate(1.8); -webkit-backdrop-filter: blur(26px) saturate(1.8); }
.surf-aod { --card-bg: rgba(0,0,0,.28); --fg: rgba(255,255,255,.82); --fg2: rgba(255,255,255,.5); --track: rgba(22,210,220,.14); --ra: #5BBFC5; --rb: #2C9EA5; --btn-bg: rgba(22,210,220,.32); --btn-fg: rgba(255,255,255,.85); --accent-text: #5BBFC5; }
.surf-aod .streak svg, .surf-aod .mark { opacity: .6; }
.widget-float { position: absolute; right: -2%; top: 18%; margin: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: bob 6s ease-in-out infinite; }
.widget-float figcaption { font: 800 13px var(--round); color: var(--ink-soft); background: #fff; padding: 6px 12px; border-radius: 999px; box-shadow: 0 8px 18px -10px rgba(16,40,60,.35); }
.wcard { position: relative !important; width: 162px; height: 162px; border-radius: 24px; }
.wcard.surf-light { --card-bg: #fff; backdrop-filter: none; box-shadow: 0 30px 50px -24px rgba(16,40,60,.45), 0 0 0 1px rgba(16,40,60,.04); }

/* ---------- Features ---------- */
.features { padding: 130px 0; background: linear-gradient(#fff, #F2FCFD); }
.bento { margin-top: 60px; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-flow: dense; gap: 20px; }
.tile { position: relative; border-radius: 30px; background: #fff; padding: 26px; box-shadow: 0 24px 50px -36px rgba(16,40,60,.4), inset 0 0 0 1.5px var(--line); overflow: hidden;
  transition: transform .4s var(--ease-spring), box-shadow .3s; }
.tile:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -36px rgba(16,40,60,.45), inset 0 0 0 1.5px var(--teal-pale); }
.tile h3 { font-size: 22px; line-height: 1.15; margin-top: 18px; }
.tile p { margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; }
.t-remind, .t-drinks { grid-column: span 4; }
.t-streak, .t-lang { grid-column: span 2; }
.t-shake, .t-cloud { grid-column: span 3; }
.tile-art { position: relative; height: 200px; border-radius: 22px; overflow: hidden; }

.notif-stack { background: linear-gradient(160deg, #A9E9F2, #7FAFF0 60%, #9C8CF0); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 18px; gap: 8px; }
.nb { width: 86%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: rgba(255,255,255,.82); backdrop-filter: blur(16px); font: 400 12.5px/1.3 var(--ui); color: #1F2533;
  box-shadow: 0 8px 18px -12px rgba(0,0,0,.4); animation: nbIn .7s var(--ease-spring) both; }
.nb img { width: 30px; height: 30px; border-radius: 7px; flex: none; }
.nb b { display: block; font-weight: 600; }
.nb em { align-self: flex-start; margin-left: auto; font-style: normal; color: #6B7180; font-size: 11px; }
.nb.out { animation: nbOut .5s ease-in forwards; }
@keyframes nbIn { from { opacity: 0; transform: translateY(-40px) scale(.85); } }
@keyframes nbOut { to { opacity: 0; transform: translateY(18px) scale(.94); } }

.marquee { direction: ltr; background: var(--row); display: flex; flex-direction: column; justify-content: center; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-row { display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; }
.mq-row.rev { animation-direction: reverse; animation-duration: 44s; }
.t-drinks:hover .mq-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mq-item { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff; font: 800 14px/1 var(--round); white-space: nowrap; box-shadow: 0 6px 14px -10px rgba(16,40,60,.35); }
.mq-item .dicon { width: 40px; height: 40px; }
.mq-item:hover .dicon { animation: wiggle .5s var(--ease-spring); }

.cal { background: var(--teal-pale); padding: 16px 18px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; font: 900 15px var(--round); }
.cal-head .flame { display: flex; align-items: center; gap: 4px; color: var(--orange); }
.cal-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 4px; justify-items: center; }
.cal-grid .dw { font: 900 10px var(--round); color: var(--gray); }
.cal-day { position: relative; width: 26px; height: 26px; display: grid; place-items: center; font: 800 10.5px var(--round); color: var(--ink-soft); }
.cal-day svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.cal-day circle.tr { stroke: rgba(22,210,220,.18); }
.cal-day circle.ar { stroke: var(--teal); stroke-dasharray: 69.1; stroke-dashoffset: 69.1; transition: stroke-dashoffset .7s var(--ease-out); }
.cal-day.full span { color: #fff; }
.cal-day.full::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--teal); transform: scale(0); animation: fillDay .4s var(--ease-spring) .55s forwards; }
.cal-day span { position: relative; }
@keyframes fillDay { to { transform: scale(1); } }

.lang { background: linear-gradient(150deg, #FDE8EF, #FFF4E0); display: grid; place-items: center; }
.lang-row { width: 82%; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; background: #fff; box-shadow: 0 14px 30px -18px rgba(16,40,60,.4); transition: flex-direction .3s; }
.lang-row.rtl { flex-direction: row-reverse; text-align: right; }
.lang-pip { width: 54px; height: 54px; flex: none; border-radius: 16px; background: var(--teal-pale); display: grid; place-items: center; overflow: hidden; }
.lang-pip svg { width: 48px; height: auto; margin-top: 10px; }
.lang-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lang-text b { font: 900 18px/1.2 var(--round); color: var(--pink); }
.lang-text span { font: 800 13px var(--round); color: var(--gray); }
.lang-row.rtl b, .lang-row.rtl span { font-family: var(--ar); }
.swap { animation: swap .6s var(--ease-spring); }
@keyframes swap { 40% { transform: scale(.94) rotateY(18deg); opacity: .5; } }


.shake { background: linear-gradient(160deg, #FFF4E0, #FDE8EF); display: grid; place-items: center; }
.mini-phone { width: 74px; height: 140px; border-radius: 18px; background: #fff; border: 5px solid #2B3242; position: relative; animation: shake 3s ease-in-out infinite; transform-origin: 50% 80%; }
.mini-phone::before { content: ''; position: absolute; left: 50%; top: 5px; width: 24px; height: 7px; margin-left: -12px; border-radius: 4px; background: #2B3242; }
.mp-drop { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; background: var(--teal); border-radius: 50% 0 50% 50%; transform: rotate(-45deg); }
@keyframes shake { 0%, 55%, 100% { transform: rotate(0); } 60% { transform: rotate(-14deg); } 65% { transform: rotate(12deg); } 70% { transform: rotate(-10deg); } 75% { transform: rotate(8deg); } 80% { transform: rotate(0); } }
.undo-pill { position: absolute; bottom: 18px; padding: 8px 14px; border-radius: 999px; background: #E5364F; color: #fff; font: 900 13px/1 var(--round); animation: undo 3s ease-in-out infinite; }
@keyframes undo { 0%, 76% { opacity: 0; transform: translateY(14px) scale(.8); } 84%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------- Closing pool with Pip swimming laps ---------- */
.pool-sec { position: relative; min-height: max(920px, 100svh); padding: 160px 0 140px; display: flex; align-items: center; overflow: hidden; background: #1EBCD3; cursor: pointer; }
.pool-sec .swimmer { position: absolute; left: 0; top: 0; width: 320px; z-index: 2; will-change: transform; pointer-events: none; }
.pool-copy { position: relative; z-index: 3; text-align: center; color: #fff; pointer-events: none; }
.pool-copy a { pointer-events: auto; }
.cta-icon { width: 120px; height: 120px; margin: 0 auto 28px; border-radius: 30px; box-shadow: 0 20px 36px -14px rgba(0,60,80,.55), 0 0 0 4px rgba(255,255,255,.35); }
.cta-icon.in { animation: bob 4.5s ease-in-out infinite; }
.pool-copy h2 { font-size: clamp(42px, 6.8vw, 92px); max-width: 980px; margin-inline: auto; text-shadow: 0 4px 30px rgba(0,60,80,.25); }
.pool-copy h2 em { color: #FFE07A; display: inline-block; }
.pool-copy p { margin-top: 14px; font-size: 19px; font-weight: 700; color: rgba(255,255,255,.95); text-shadow: 0 1px 10px rgba(0,70,90,.3); }
.pool-small { font: 800 14px var(--round) !important; color: rgba(255,255,255,.85) !important; }

/* ---------- Footer ---------- */
.footer { padding: 44px 0 52px; background: #F2FCFD; }
.foot-grid { display: grid; grid-template-columns: auto 1fr; gap: 16px 40px; align-items: center; }
.foot-grid nav { display: flex; flex-wrap: wrap; gap: 18px; justify-self: end; }
.foot-grid nav a { text-decoration: none; font: 800 14px var(--round); color: var(--ink-soft); }
.foot-grid nav a:hover { color: var(--teal-dark); }
.foot-grid small { grid-column: 1 / -1; color: var(--gray); font-size: 13px; }

/* ---------- Arabic: the app's rounded Arabic font, no letter-spacing (it breaks the joins) ---------- */
html[lang=ar] { --round: 'Baloo Bhaijaan 2', 'Nunito', sans-serif; --ui: 'Baloo Bhaijaan 2', -apple-system, system-ui, sans-serif; }
html[lang=ar] body, html[lang=ar] body * { letter-spacing: 0 !important; }
html[lang=ar] h1, html[lang=ar] h2, html[lang=ar] h3 { line-height: 1.3; }
html[lang=ar] .hero-title { line-height: 1.22; }
html[lang=ar] .kicker, html[lang=ar] .step-num, html[lang=ar] .chal-label, html[lang=ar] .pool-hint { text-transform: none; font-size: 14px; }
[dir=rtl] .how-steps li.on { translate: -8px 0; }
[dir=rtl] .step { transform: translateX(-16px); }
[dir=rtl] .step.on { transform: none; }
[dir=rtl] .btn-glass .arrow, [dir=rtl] .btn-ghost .arrow { display: inline-block; }
.lang-gate [lang=ar], .lang-switch [lang=ar] { font-family: 'Baloo Bhaijaan 2', sans-serif; letter-spacing: 0; }

/* ---------- Nav: language switch, and room for everything on small screens ---------- */
.brand { min-width: 0; flex-shrink: 1; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-switch { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px; border: 0; background: rgba(255,255,255,.55);
  box-shadow: inset 0 0 0 1.5px rgba(43,50,66,.12); font: 800 14.5px/1 var(--round); color: var(--ink); transition: background .2s, box-shadow .2s, transform .25s var(--ease-spring); }
.lang-switch:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--teal-soft); }
.lang-switch:active { transform: scale(.95); }
.lang-switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang-switch [lang=ar] { font-size: 15px; padding-top: 3px; }
.nav-links + .lang-switch { margin-inline-start: 6px; }
.nav-get { flex: none; }
.nav.dark .lang-switch { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18); }

/* ---------- First visit: pick a language ---------- */
.lang-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(8,58,72,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .35s; }
.lang-gate.on { opacity: 1; }
.lang-gate.leaving { opacity: 0; transition: opacity .45s .1s; }
.gate-card { width: min(440px, 100%); padding: 30px 26px 26px; border-radius: 34px; background: #fff; text-align: center; box-shadow: 0 40px 80px -30px rgba(0,40,60,.6);
  transform: translateY(30px) scale(.94); transition: transform .6s var(--ease-spring); }
.lang-gate.on .gate-card { transform: none; }
.lang-gate.leaving .gate-card { transform: translateY(-20px) scale(.96); transition: transform .4s ease-in; }
.gate-pip { width: 110px; height: 118px; margin: -84px auto 6px; }
.gate-pip svg { width: 100%; height: 100%; }
.gate-card h2 { display: flex; flex-direction: column; gap: 4px; font-size: 27px; }
.gate-card h2 span[lang=ar] { font-size: 25px; color: var(--teal-dark); }
.gate-btns { display: grid; gap: 10px; margin-top: 22px; }
.gate-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px; border-radius: 22px; border: 0; background: var(--row); transition: background .2s, transform .25s var(--ease-spring), box-shadow .2s; }
.gate-btn b { font: 900 21px/1.2 var(--round); }
.gate-btn small { font: 700 13.5px var(--round); color: var(--gray); }
.gate-btn[lang=ar] b, .gate-btn[lang=ar] small { font-family: 'Baloo Bhaijaan 2', sans-serif; }
.gate-btn:hover { transform: translateY(-2px); background: var(--teal-pale); }
.gate-btn.suggested { box-shadow: inset 0 0 0 2.5px var(--teal); background: #fff; }
.gate-note { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; font: 700 13px/1.4 var(--round); color: var(--gray); }
html.choosing .hero-copy, html.choosing .pool-hint, html.choosing .float { visibility: hidden; }

/* ---------- Hero extras ---------- */
.hero-note { margin-top: 14px; font: 800 14.5px var(--round); color: rgba(255,255,255,.88); text-shadow: 0 1px 8px rgba(0,70,90,.3); }

/* ---------- iCloud tile ---------- */
.cloud { background: linear-gradient(160deg, #E4FAFB, #EAF1FF); display: flex; align-items: center; justify-content: center; gap: 22px; }
.cloud .mini-phone { width: 56px; height: 104px; border-radius: 14px; background: #fff; border: 4px solid #2B3242; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 8px; animation: none; }
.cloud .mini-phone::before { width: 18px; height: 5px; margin-left: -9px; top: 4px; }
.cloud .mp-bar { height: 7px; border-radius: 4px; background: var(--teal-soft); }
.cloud .mp-bar:nth-child(2) { width: 70%; background: #F9C6D8; }
.cloud .mp-bar:nth-child(3) { width: 85%; background: #FFD98A; }
.cloud .new .mp-bar { transform-origin: 0 50%; animation: grow 3.6s ease-in-out infinite; }
.cloud .new .mp-bar:nth-child(2) { animation-delay: .25s; }
.cloud .new .mp-bar:nth-child(3) { animation-delay: .5s; }
@keyframes grow { 0%, 20% { transform: scaleX(0); } 45%, 100% { transform: none; } }
.cloud-ic { width: 70px; fill: #fff; filter: drop-shadow(0 8px 12px rgba(16,60,90,.18)); animation: bob 3.6s ease-in-out infinite; }
.sync-drop { position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50% 0 50% 50%; background: var(--teal); transform: rotate(-45deg); opacity: 0; animation: travel 3.6s ease-in-out infinite; }
.sync-drop.d2 { animation-delay: .3s; background: var(--pink); }
.sync-drop.d3 { animation-delay: .6s; background: var(--orange); }
@keyframes travel {
  0% { translate: -78px 0; opacity: 0; }
  10% { opacity: 1; }
  45% { translate: 0 -40px; opacity: 1; }
  80% { translate: 78px 0; opacity: 1; }
  90%, 100% { translate: 78px 0; opacity: 0; }
}

/* ---------- Challenges ---------- */
.chal-sec { padding: 120px 0 130px; background: linear-gradient(170deg, #25B872, #179A5C); color: #fff; }
.chal-sec .kicker { color: #D9FBE9; }
.chal-sec h2 em { color: #FFE07A; }
.chal-sec .sec-head p { color: rgba(255,255,255,.9); }
.chal-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.chal-card { position: relative; min-height: 236px; padding: 22px 20px 20px; border-radius: 28px; background: var(--c); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 40px -26px rgba(0,40,20,.6), inset 0 1px 0 rgba(255,255,255,.2); transition: transform .4s var(--ease-spring), box-shadow .3s; }
.chal-card:hover { transform: translateY(-6px) rotate(-1deg); }
.chal-label { font: 900 11px/1 var(--round); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.chal-card h3 { position: relative; z-index: 1; margin-top: 10px; font-size: 23px; line-height: 1.1; color: #fff; max-width: 78%; }
.chal-card p { position: relative; z-index: 1; margin-top: 8px; max-width: 62%; font: 700 14px/1.35 var(--round); color: rgba(255,255,255,.88); }
.chal-prog { position: relative; z-index: 1; margin-top: auto; padding-top: 18px; max-width: 58%; }
.chal-prog span { font: 900 12.5px var(--round); color: #fff; }
.chal-prog i { display: block; height: 8px; margin-top: 7px; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; }
.chal-prog b { display: block; height: 100%; width: 0; border-radius: 4px; background: #fff; transition: width 1.2s var(--ease-out) .3s; }
.chal-card.in .chal-prog b { width: calc(var(--p) * 100%); }
.chal-pip { position: absolute; inset-inline-end: -18px; bottom: -34px; width: 132px; rotate: -10deg; transition: translate .5s var(--ease-spring), rotate .5s var(--ease-spring); }
[dir=rtl] .chal-pip { rotate: 10deg; }
.chal-pip svg { width: 100%; height: auto; }
.chal-card:hover .chal-pip { translate: 0 -12px; rotate: 0deg; }

/* ---------- Reviews ---------- */
.rev-sec { padding: 120px 0; background: linear-gradient(#FFE6EF, #FDF2F6); }
.rev-sec .kicker { color: #D63A6E; }
.rev-sec h2 em { color: var(--pink); }
.rev-grid { margin-top: 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.rev-grid:empty { display: none; }
.rev-card { padding: 22px 22px 20px; border-radius: 26px; background: #fff; box-shadow: 0 20px 40px -30px rgba(120,20,60,.4); }
.stars { display: flex; gap: 3px; }
.stars svg { width: 18px; height: 18px; fill: #E3E6EC; }
.stars svg.on { fill: var(--orange); }
.rev-card h3 { margin-top: 12px; font-size: 18px; line-height: 1.25; }
.rev-card p { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.rev-name { display: block; margin-top: 12px; font: 800 13px var(--round); color: #B4386A; }
.rev-empty { max-width: 520px; margin: 46px auto 0; padding: 30px 28px 28px; border-radius: 32px; background: #fff; text-align: center; box-shadow: 0 30px 60px -40px rgba(120,20,60,.45); }
.rev-pip { width: 104px; height: 112px; margin: -78px auto 4px; }
.rev-pip svg { width: 100%; height: 100%; }
.rev-empty-t { font: 900 21px/1.3 var(--round); }
.rev-empty p + p { margin-top: 6px; color: var(--ink-soft); }
.rev-empty .btn { margin-top: 18px; }

/* ---------- FAQ ---------- */
.faq-sec { padding: 120px 0; background: #FBF8F2; }
.faq-list { max-width: 820px; margin: 50px auto 0; display: grid; gap: 12px; }
.faq-list details { border-radius: 22px; background: #fff; box-shadow: 0 16px 34px -28px rgba(60,40,10,.4); overflow: hidden; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font: 900 17.5px/1.3 var(--round); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--teal-pale) center / 14px no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23079AA4' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform .35s var(--ease-spring), background-color .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: #D2F6F8; }
.faq-list summary:hover::after { background-color: #D2F6F8; }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 22px 20px; font-size: 16px; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-sec { padding: 120px 0 170px; background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-mail { margin-top: 22px; font: 700 16px var(--round); color: var(--ink-soft); }
.contact-mail a { color: var(--teal-dark); font-weight: 900; text-decoration: none; border-bottom: 2px solid var(--teal-soft); }
.contact-mail a:hover { border-color: var(--teal); }
.contact-pip { width: 170px; height: 182px; margin-top: 34px; }
.contact-pip svg { width: 100%; height: 100%; }
.contact-card { position: relative; padding: 28px; border-radius: 32px; background: #fff; box-shadow: 0 30px 60px -40px rgba(16,40,60,.45), inset 0 0 0 1.5px var(--line); }
.contact-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font: 900 14px var(--round); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border-radius: 16px; border: 0; background: var(--row); font: 700 16px/1.4 var(--round); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s, background .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; padding-inline-end: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234A5163' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 12px; background-position: right 16px center; }
[dir=rtl] .field select { background-position: left 16px center; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--teal); }
.field [aria-invalid] { box-shadow: inset 0 0 0 2px #E5364F; background: #FFF5F7; }
.err { min-height: 0; font: 800 13px var(--round); color: #D12B45; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-send { height: 56px; font-size: 17px; }
.btn-send:disabled { opacity: .7; cursor: wait; }
.form-status { font: 800 14px var(--round); color: var(--ink-soft); }
.form-status:empty { display: none; }
.form-status.bad { color: #D12B45; }
.sent { text-align: center; padding: 20px 6px 8px; }
.sent.pop { animation: sentIn .6s var(--ease-spring); }
@keyframes sentIn { from { opacity: 0; transform: scale(.9) translateY(14px); } }
.sent-pip { width: 120px; height: 128px; margin: 0 auto; }
.sent-pip svg { width: 100%; height: 100%; }
.sent-t { margin-top: 14px; font: 900 21px/1.35 var(--round); }
.sent .link-btn { margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav .lang-switch { margin-inline-start: auto; }
  .chal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .hero { align-items: flex-start; padding-bottom: 380px; }
  .hero::before { inset-inline-start: 0; top: 0; width: 100%; height: 70%; }
  .hero-inner { text-align: center; }
  .hero-copy { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
  .lead { margin-inline: auto; }
  .cta-row, .hero-facts { justify-content: center; }
  .pool-hint { left: 0; right: 0; text-align: center; bottom: 64px; }
  .how-grid { grid-template-columns: 1fr; }
  .how-copy { max-width: 620px; margin: 0 auto; }
  .track-grid { grid-template-columns: 1fr; }
  .lock-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-remind, .t-drinks, .t-streak, .t-lang, .t-cloud, .t-shake { grid-column: span 1; }
  .t-remind, .t-drinks { grid-column: span 2; }
  .rev-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-pip { display: none; }
}
@media (max-width: 860px) {
  .scrolly { grid-template-columns: 1fr; gap: 0; }
  .scrolly-phone { top: calc(var(--nav-h) + 4px); z-index: 2; padding-bottom: 10px; background: linear-gradient(var(--night) 85%, transparent); }
  .phone-crop { --s: .78; height: 260px; }
  .steps { padding: 10vh 0 30vh; }
  .step { min-height: 40vh; justify-content: flex-start; }
  .widget-float { right: 0; top: auto; bottom: 4%; transform: scale(.85); }
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav { padding: 0 16px; gap: 10px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .lang-switch { height: 38px; padding: 0 12px; font-size: 14px; }
  .nav-get { height: 38px; padding: 0 16px; }
  .hero { padding-top: calc(var(--nav-h) + 26px); padding-bottom: 300px; }
  .lead { font-size: 18px; }
  .float { width: 210px; }
  .pool-hint { bottom: 52px; font-size: 11px; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
  .hero-facts li { font-size: 12.5px; }
  .hero-facts b { font-size: 24px; }
  .how { padding: 40px 0 80px; }
  .how-steps li { padding: 14px; }
  .how-steps li.on { translate: 0 0; }
  .demo-stage .phone { --s: .6; }
  .demo-chip.c1 { top: 18%; }
  .demo-chip.c2 { top: 70%; }
  .track { padding-bottom: 90px; }
  .track-pip, .pour { border-radius: 28px; padding: 22px 16px; }
  .tp-stage { height: 360px; }
  .tp-stage .pipfill { width: calc(360px * 1024 / 1420); }
  .tp-stage .pip-color { width: calc(360px * 1324 / 1420); }
  .goal-pill { top: 120px; font-size: 17px; }
  .drink-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .drink-grid .dpick { font-size: 9.5px; border-radius: 16px; }
  .drink-grid .dicon { width: 40px; height: 40px; }
  .pour-body { grid-template-columns: 1fr; }
  .vessel { height: 240px; }
  .vessel svg { width: 192px; height: 220px; }
  .pour-side { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .island-sec, .lock-sec, .features { padding: 90px 0; }
  .lock-stage .phone { --s: .62; }
  .widget-float { display: none; }
  .bento { grid-template-columns: 1fr; }
  .t-remind, .t-drinks { grid-column: span 1; }
  .pool-sec { min-height: max(760px, 100svh); padding: 130px 0 110px; }
  .pool-sec .swimmer { width: 190px; }
  .chal-sec, .rev-sec, .faq-sec { padding: 90px 0; }
  .chal-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .rev-grid { grid-template-columns: 1fr; }
  .faq-list summary { padding: 18px; font-size: 16.5px; }
  .faq-a p { padding: 0 18px 18px; }
  .contact-sec { padding: 90px 0 130px; }
  .contact-card { padding: 20px 16px; border-radius: 26px; }
  .field-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-grid nav { justify-self: start; }
}
@media (max-width: 440px) {
  .nav-get .long, .lang-switch svg { display: none; }
  .brand span { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-words] .w { transition-duration: .01s; transition-delay: 0s; filter: none; }
}
