/* Popi Water marketing site. Colours and fonts follow the app (popi-water/src/lib/theme.ts).
   The home page is a stack of full-width colour bands, each with one big idea and one big picture. */

@font-face { font-family: 'Fredoka'; src: url('/assets/fonts/fredoka-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('/assets/fonts/fredoka-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/assets/fonts/nunito-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/assets/fonts/nunito-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/assets/fonts/nunito-800.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;
  /* Brand */
  --water: #00B5D7;
  --pink: #EC5FA2;
  --pond: #54C6BE;
  /* Colour bands: deep enough that white text stays readable on every one */
  --b-teal: #0A9EC1;
  --b-indigo: #4450B8;
  --b-blue: #2F66D0;
  --b-green: #2E9E6E;
  --b-pink: #D9468F;
  --b-orange: #D9730B;
  --b-pond: #2F9C94;
  --b-navy: #18223A;
  /* Surfaces and text */
  --bg: #FFFFFF;
  --bg-soft: #F3FAFC;
  --card: #F5F7F9;
  --raised: #FFFFFF;
  --line: #E6E8EB;
  --head: #1F242B;
  --text: #2E333B;
  --sub: #5F6770;
  --faint: #8C929B;
  --water-ink: #0089A6;
  --btn: #1F242B;
  --btn-text: #FFFFFF;
  --silhouette: #EDEDEF;
  --shadow: 0 1px 2px rgba(31, 36, 43, .05), 0 10px 30px rgba(31, 36, 43, .08);
  --shadow-lg: 0 2px 8px rgba(31, 36, 43, .06), 0 30px 70px rgba(10, 30, 50, .22);
  --font-head: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --font-body: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
}
@media (max-width: 600px) { :root { --gutter: 16px; } }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0E151A;
    --bg-soft: #111D24;
    --card: #17222A;
    --raised: #151E24;
    --line: #26323C;
    --head: #F2F6F8;
    --text: #DCE4EA;
    --sub: #9AA6B0;
    --faint: #75828C;
    --water-ink: #4FD3EC;
    --btn: #EEF3F6;
    --btn-text: #11181D;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 600 1.0625rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--water-ink); text-decoration-thickness: .08em; text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--font-head); color: var(--head); margin: 0; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); line-height: 1; }
h2 { font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: 1.04; }
h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 600; }
p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; border-radius: 8px; }
.band :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn); color: var(--btn-text); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 26px 12px 14px; border-radius: 18px;
  background: var(--btn); color: var(--btn-text); text-decoration: none;
  box-shadow: 0 8px 22px rgba(10, 20, 30, .22);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10, 20, 30, .28); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { padding: 9px 18px; border-radius: 999px; font: 800 .9rem/1 var(--font-body); gap: 8px; box-shadow: none; }

/* Apple's official "Download on the App Store" badge, with the Free trial sticker on its corner */
.store-badge { position: relative; display: inline-block; flex: none; line-height: 0; border-radius: 12px; transition: transform .18s ease, filter .18s ease; }
.store-badge img { display: block; width: auto; height: 62px; }
.store-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 18px rgba(10, 20, 30, .3)); }
.store-badge:active { transform: translateY(0) scale(.98); }
.store-badge:focus-visible { outline: 3px solid var(--water); outline-offset: 4px; }
.sticker {
  position: absolute; top: -26px; right: -40px; padding: 8px 12px; border-radius: 10px;
  background: var(--pink); color: #fff; font: 700 .9rem/1 var(--font-head); letter-spacing: .04em; text-transform: uppercase;
  transform: rotate(14deg); box-shadow: 0 6px 14px rgba(120, 20, 70, .3); white-space: nowrap; pointer-events: none;
}
@media (max-width: 400px) { .store-badge img { height: 54px; } }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--head); font: 700 1.4rem/1 var(--font-head); transition: color .25s; }
.logo img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 2px 6px rgba(0, 0, 0, .14); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--sub); text-decoration: none; font-weight: 800; font-size: .98rem; transition: color .25s; }
.nav a:hover { color: var(--head); }
/* On the home page the header starts in the hero's colour. */
.home .top:not(.scrolled) { background: var(--b-teal); backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .top:not(.scrolled) .logo, .home .top:not(.scrolled) .nav a { color: #fff; }
.home .top:not(.scrolled) .nav a:hover { color: #E3FAFF; }
.home .top:not(.scrolled) .btn-sm { --btn: #FFFFFF; --btn-text: #11161A; }
@media (max-width: 860px) { .nav { display: none; } .top .btn-sm { margin-left: auto; } }

/* Colour bands */
.band { position: relative; overflow: hidden; padding: 120px 0; color: #fff; background: var(--band); }
.band h2, .band h3 { color: #fff; }
.band-copy p { margin-top: 22px; color: rgba(255, 255, 255, .92); font-weight: 700; font-size: 1.2rem; line-height: 1.6; }
.band-copy p + p { margin-top: 14px; }
.band-copy { max-width: 520px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.flip > .band-media { order: -1; }
.band-media { position: relative; display: flex; justify-content: center; }
.band-media.bleed { align-self: end; margin-bottom: -120px; }
.center { text-align: center; }
.center .band-copy { margin: 0 auto; max-width: 760px; }
.tag {
  display: inline-block; margin-bottom: 22px; padding: 9px 14px; border-radius: 12px;
  background: #1F242B; color: #fff; font: 700 1.05rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase;
}
.b-teal { --band: var(--b-teal); }
.b-indigo { --band: var(--b-indigo); }
.b-blue { --band: var(--b-blue); }
.b-green { --band: var(--b-green); }
.b-pink { --band: var(--b-pink); }
.b-orange { --band: var(--b-orange); }
.b-pond { --band: var(--b-pond); }
.b-navy { --band: var(--b-navy); }
@media (max-width: 900px) {
  .band { padding: 84px 0; }
  .split { grid-template-columns: 1fr; gap: 52px; }
  .split.flip > .band-media { order: 0; }
  .band-copy { max-width: 600px; margin: 0 auto; text-align: center; }
  .band-media.bleed { margin-bottom: -84px; }
}

/* Phones in a bezel tinted from the band colour */
.device {
  width: min(100%, 330px); flex: none; padding: 12px; border-radius: 52px;
  background: color-mix(in srgb, #fff 18%, var(--band, #1F242B));
  box-shadow: 0 30px 60px rgba(0, 0, 0, .2);
}
.device > img { border-radius: 40px; width: 100%; }
.device.sm { width: min(100%, 270px); border-radius: 44px; padding: 10px; }
.device.sm > img { border-radius: 34px; }
/* The watch is a starlight Apple Watch picture with Popi's screen inside (tools/site/watch_mockup.py) */
.watch { position: relative; width: 230px; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .28)); }
.watch img { display: block; width: 100%; }

/* Hero */
.hero {
  position: relative; overflow: hidden; background-color: var(--b-teal); color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' fill='none' stroke='%23fff' stroke-opacity='.10' stroke-width='3'%3E%3Ccircle cx='40' cy='50' r='16'/%3E%3Ccircle cx='40' cy='50' r='30'/%3E%3Ccircle cx='170' cy='150' r='12'/%3E%3Ccircle cx='170' cy='150' r='26'/%3E%3Ccircle cx='170' cy='150' r='40'/%3E%3Ccircle cx='70' cy='200' r='6'/%3E%3Ccircle cx='205' cy='40' r='8'/%3E%3C/svg%3E");
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; min-height: min(78vh, 700px); padding-top: 32px; padding-bottom: 96px; }
.hero h1 { color: #fff; }
.hero h1 .squiggle { position: relative; white-space: nowrap; }
.hero h1 .squiggle::after {
  content: ''; position: absolute; left: 2%; right: 2%; bottom: -.08em; height: .22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C18 2 28 2 42 8 S68 13 82 7 S106 2 117 8' fill='none' stroke='%23FF8FC4' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hero .lede { margin-top: 26px; max-width: 30ch; font-size: 1.3rem; font-weight: 700; line-height: 1.5; color: rgba(255, 255, 255, .94); }
.hero .cta-row { margin-top: 38px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 0; padding: 0; list-style: none; font-weight: 800; font-size: .98rem; color: #fff; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { width: 18px; height: 18px; flex: none; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 74% 46%, rgba(255, 255, 255, .22), transparent 42%), radial-gradient(circle at 10% 0%, rgba(120, 230, 255, .25), transparent 40%); pointer-events: none; }
.hero-art { position: relative; justify-self: center; width: min(100%, 470px); }
.hero-art img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 40, 60, .25)); animation: float 5s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes float { 50% { transform: translateY(-14px) rotate(1.5deg); } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; min-height: 0; padding-top: 20px; padding-bottom: 84px; gap: 36px; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .cta-row, .trust { justify-content: center; }
  .hero-art { width: min(78%, 330px); }
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bubbles span {
  position: absolute; bottom: -40px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45);
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .8) 0 18%, transparent 19%);
  animation: rise var(--d) linear var(--w) infinite;
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(14px, -50vh); }
  100% { transform: translate(-6px, -105vh); opacity: 0; }
}
.waterline { position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; z-index: 0; pointer-events: none; }
.waterline svg { position: absolute; bottom: 0; width: 200%; max-width: none; height: 100%; animation: drift 14s linear infinite; }
.waterline svg:last-child { animation-duration: 9s; animation-direction: reverse; opacity: .5; }
@keyframes drift { to { transform: translateX(-50%); } }

/* Fill demo: a working copy of the app's home screen inside a phone */
.demo-phone { width: min(100%, 360px); }
.demo {
  position: relative; overflow: hidden; padding: 58px 18px 26px; border-radius: 40px;
  background: #fff; color: #2E333B; text-align: center;
}
.demo::before { content: ''; position: absolute; top: 14px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #11161A; }
.demo-head { min-height: 78px; }
.demo-total { font: 700 2.5rem/1.05 var(--font-head); color: var(--water); letter-spacing: -.01em; }
.demo.done .demo-total { font-size: clamp(1.55rem, 7.4vw, 1.9rem); padding-top: .2em; white-space: nowrap; }
.demo-sub { color: #8C929B; font-weight: 700; font-size: .88rem; margin-top: 4px; }
.fp { position: relative; width: 76%; aspect-ratio: 745 / 760; margin: 12px auto 20px; cursor: pointer; }
.fp-fig { position: absolute; inset: 0; animation: bob 3.4s ease-in-out infinite; }
.fp-body {
  position: absolute; inset: 0; background: var(--silhouette); overflow: hidden;
  -webkit-mask: url('/assets/img/popi/fill-mask.png') center / contain no-repeat;
  mask: url('/assets/img/popi/fill-mask.png') center / contain no-repeat;
}
.fp-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; display: flex; flex-direction: column-reverse; transition: height .9s cubic-bezier(.34, 1.25, .5, 1); }
.fp-fill i { display: block; flex: 0 0 0; transition: flex-grow .9s cubic-bezier(.34, 1.25, .5, 1); }
.fp-fill::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 12px;
  background: var(--top, var(--water)); opacity: var(--wave, 1);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6 C10 0 30 0 40 6 S70 12 80 6 V12 H0Z'/%3E%3C/svg%3E") 0 0 / 80px 100% repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6 C10 0 30 0 40 6 S70 12 80 6 V12 H0Z'/%3E%3C/svg%3E") 0 0 / 80px 100% repeat-x;
  animation: wave 2.2s linear infinite; transition: background-color .4s;
}
@keyframes wave { to { -webkit-mask-position: 80px 0; mask-position: 80px 0; } }
.fp-color { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s ease; }
.demo.done .fp-color { opacity: 1; }
.demo.hop .fp-fig { animation: hop 1.25s cubic-bezier(.3, .7, .4, 1); }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes hop {
  0% { transform: translateY(0) scale(1, 1); }
  10% { transform: translateY(0) scale(1.08, .9); }
  26% { transform: translateY(-16%) scale(.95, 1.06); }
  42% { transform: translateY(0) scale(1.06, .93); }
  52% { transform: translateY(0) scale(1, 1); }
  62% { transform: translateY(0) scale(1.05, .94); }
  76% { transform: translateY(-9%) scale(.97, 1.04); }
  90% { transform: translateY(0) scale(1.03, .97); }
  100% { transform: translateY(0) scale(1, 1); }
}
.drinks-wrap { position: relative; }
.drinks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; margin: 0; padding: 0; list-style: none; }
.drink {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 2px 0;
  background: none; border: 0; cursor: pointer; color: #8C929B;
  font: 800 .54rem/1.15 var(--font-body); letter-spacing: .05em; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
.drink-ico { width: 42px; aspect-ratio: 1; border-radius: 50%; background: #F3F5F7; display: grid; place-items: center; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background-color .2s; }
.drink-ico svg { width: 64%; height: 64%; overflow: visible; }
.drink:hover .drink-ico { transform: translateY(-3px); background: color-mix(in srgb, var(--c) 18%, #F3F5F7); }
.drink:active .drink-ico { transform: scale(.9); }
.hint {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%);
  background: #1F242B; color: #fff; font: 800 .82rem/1 var(--font-body);
  padding: 10px 14px; border-radius: 14px; white-space: nowrap; pointer-events: none;
  animation: nudge 2.4s ease-in-out infinite; transition: opacity .3s;
}
.hint::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: #1F242B; }
.demo.touched .hint { opacity: 0; }
@keyframes nudge { 50% { transform: translate(-50%, -5px); } }
.plus {
  position: absolute; left: 50%; top: 30%; z-index: 3; pointer-events: none;
  font: 700 1.5rem/1 var(--font-head); color: var(--c); white-space: nowrap; text-align: center;
  text-shadow: 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff;
  animation: plus 1.4s ease-out forwards;
}
.plus small { display: block; margin-top: 4px; font: 800 .76rem/1 var(--font-body); color: #5F6770; }
@keyframes plus {
  0% { transform: translate(-50%, 10px) scale(.6); opacity: 0; }
  18% { transform: translate(-50%, 0) scale(1.08); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(-50%, -46px) scale(1); opacity: 0; }
}
.reset {
  position: absolute; top: 10px; right: 16px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: #F3F5F7; color: #1F242B; font: 800 1.1rem/1 var(--font-body);
  visibility: hidden; opacity: 0; transition: opacity .3s, transform .2s;
}
.reset:hover { transform: rotate(-30deg); }
.demo.done .reset { visibility: visible; opacity: 1; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; }
.confetti i { position: absolute; top: 34%; left: 50%; width: 8px; height: 13px; border-radius: 2px; background: var(--c); animation: confetti var(--t) cubic-bezier(.15, .6, .4, 1) forwards; }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
.band-copy p.try { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font: 700 1.25rem/1 var(--font-head); color: #fff; }
.try svg { width: 28px; height: 28px; animation: point 1.6s ease-in-out infinite; }
@keyframes point { 50% { transform: translateX(-6px); } }
@media (max-width: 900px) { .try svg { transform: rotate(-90deg); animation: none; } }

/* iPhone, Watch & widgets */
.combo { position: relative; padding: 0 0 36px 96px; }
.combo .watch { position: absolute; left: -24px; bottom: 0; }
@media (max-width: 520px) { .combo { padding-left: 60px; } .combo .watch { width: 160px; left: -8px; } }

/* Challenge tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; max-width: 520px; margin: 0; padding: 0; list-style: none; }
.ctile {
  position: relative; overflow: hidden; aspect-ratio: 1; padding: 14px 14px; border-radius: 26px; background: var(--c);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.ctile:hover { transform: translateY(-5px) rotate(-1.5deg); }
.ctile b { position: relative; z-index: 1; display: block; max-width: 8.5ch; font: 700 1.08rem/1.08 var(--font-head); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .22); }
.ctile img { position: absolute; right: -10%; bottom: -12%; width: 82%; }
@media (max-width: 520px) { .tiles { gap: 10px; } .ctile { border-radius: 20px; padding: 10px; } .ctile b { font-size: .86rem; } }

/* Reminders */
.notifs { position: relative; display: grid; gap: 12px; width: min(100%, 520px); margin: 0 auto 64px; text-align: left; }
.notif {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 26px;
  background: rgba(255, 255, 255, .94); color: #1F242B; box-shadow: 0 18px 40px rgba(80, 10, 50, .22);
}
.notif img { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.notif div { flex: 1; min-width: 0; font-size: 1.02rem; line-height: 1.35; font-weight: 700; }
.notif b { display: block; font-size: .74rem; letter-spacing: .08em; color: #8C929B; }
.notif time { align-self: flex-start; font-size: .78rem; color: #8C929B; font-weight: 700; }
.notif:nth-child(2) { margin: 0 -18px; }
.notif:nth-child(3) { margin: 0 18px; opacity: .85; }
.notifs .peek { position: absolute; right: -150px; bottom: -40px; width: 170px; }
@media (max-width: 760px) { .notifs .peek { display: none; } .notif:nth-child(2) { margin: 0; } .notif:nth-child(3) { margin: 0; } }

/* Drinks */
.pct { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.pct li { display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #1F242B; font-weight: 800; font-size: .95rem; }
.pct i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.pct span { color: #8C929B; }
@media (max-width: 900px) { .pct { justify-content: center; } }

/* Goal with stickers */
.goal-stage { position: relative; display: flex; justify-content: center; margin: 64px 0 -120px; }
@media (max-width: 900px) { .goal-stage { margin-bottom: -84px; } }
.blob {
  position: absolute; z-index: 2; display: grid; place-items: center; text-align: center;
  width: 200px; height: 190px; padding: 24px; color: #fff; font: 700 1.75rem/.95 var(--font-head); text-transform: uppercase;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.blob-a { left: calc(50% - 400px); top: 40px; background: #8CC63F; border-radius: 52% 48% 46% 54% / 58% 54% 46% 42%; transform: rotate(-14deg); }
.blob-b { right: calc(50% - 410px); top: 220px; background: #F5824A; border-radius: 44% 56% 58% 42% / 48% 42% 58% 52%; transform: rotate(12deg); }
.blob-c { left: calc(50% - 360px); top: 360px; width: 170px; height: 160px; font-size: 1.45rem; background: #8B6CF0; border-radius: 50% 50% 46% 54% / 54% 48% 52% 46%; transform: rotate(8deg); }
.swimmer { position: absolute; z-index: 3; right: calc(50% - 420px); top: 20px; width: 240px; animation: swim 4s ease-in-out infinite; }
@keyframes swim { 50% { transform: translate(-12px, 8px) rotate(-3deg); } }
@media (max-width: 860px) {
  .goal-stage { flex-direction: column; align-items: center; }
  .blob { position: static; width: 150px; height: 140px; font-size: 1.25rem; margin: -10px 0; }
  .blob-row { display: flex; justify-content: center; gap: 6px; margin-bottom: 24px; }
  .blob-c { display: none; }
  .swimmer { display: none; }
}
@media (min-width: 861px) { .blob-row { display: contents; } }

/* Celebrate: two phones fanned out */
.fan { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.fan .device { width: min(46%, 260px); }
.fan .device:first-child { transform: rotate(-7deg) translateX(18px); }
.fan .device:last-child { transform: rotate(6deg) translate(-18px, 38px); }

/* Small features */
.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.extra { padding: 28px 24px; border-radius: 28px; background: var(--card); }
.extra-ico { width: 48px; height: 48px; border-radius: 15px; margin-bottom: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--a) 18%, var(--raised)); color: var(--a); }
.extra-ico svg { width: 24px; height: 24px; }
.extra p { margin-top: 8px; color: var(--sub); font-size: .98rem; line-height: 1.55; }
@media (max-width: 960px) { .extras { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .extras { grid-template-columns: 1fr; } }

/* Plain sections */
.section { padding: 112px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.section-head p { margin-top: 16px; font-size: 1.15rem; color: var(--sub); }
.kicker { display: inline-block; margin-bottom: 14px; font: 800 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--water-ink); }
@media (max-width: 700px) { .section { padding: 76px 0; } .section-head { margin-bottom: 40px; } }

/* Pricing */
.pricing { background: var(--bg-soft); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 820px; margin: 0 auto; }
.plan { position: relative; padding: 34px 32px 32px; border-radius: 32px; background: var(--raised); box-shadow: var(--shadow); }
.plan.best { outline: 3px solid var(--water); outline-offset: -3px; }
.plan-tag { position: absolute; top: -14px; left: 32px; padding: 7px 14px; border-radius: 999px; background: #007F99; color: #fff; font: 800 .78rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.plan h3 { font-size: 1.25rem; }
.price { margin-top: 14px; font: 700 2.8rem/1 var(--font-head); color: var(--head); }
.price small { font: 700 1rem/1 var(--font-body); color: var(--sub); }
.plan-sub { margin-top: 8px; color: var(--sub); font-weight: 700; }
.plan ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--pond); }
.fine { max-width: 720px; margin: 34px auto 0; text-align: center; font-size: .86rem; color: var(--faint); line-height: 1.6; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; max-width: 460px; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font: 600 1.2rem/1.3 var(--font-head); color: var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300B5D7' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 24px; color: var(--sub); max-width: 66ch; }

/* Closing band */
.closer .split { grid-template-columns: 1.1fr .9fr; }
.porthole {
  position: relative; justify-self: center; width: min(100%, 360px); aspect-ratio: 1; border-radius: 50%;
  background: #fff; overflow: hidden; box-shadow: 0 0 0 14px rgba(255, 255, 255, .22), 0 24px 60px rgba(0, 40, 60, .3);
}
.porthole video, .porthole img { position: absolute; left: 6%; top: 8%; width: 88%; height: 88%; object-fit: contain; }
.closer .cta-row { margin-top: 34px; }
@media (max-width: 900px) { .closer .split { grid-template-columns: 1fr; } .closer .cta-row { justify-content: center; } .porthole { width: 250px; } }

/* Sticky download bar */
.getbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: color-mix(in srgb, var(--raised) 92%, transparent); border-top: 1px solid var(--line);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  transform: translateY(110%); transition: transform .35s cubic-bezier(.2, .8, .3, 1);
}
.getbar.show { transform: none; }
.getbar .wrap { display: flex; align-items: center; gap: 14px; height: 78px; }
.getbar .wrap > img { width: 50px; height: 50px; border-radius: 13px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.gb-name b { display: block; font: 700 1.1rem/1.2 var(--font-head); color: var(--head); }
.gb-name span { font-size: .88rem; color: var(--sub); font-weight: 700; }
.gb-name { min-width: 0; }
.gb-name b { white-space: nowrap; }
.getbar .store-badge { margin-left: auto; }
.getbar .store-badge img { height: 48px; }
@media (max-width: 520px) { .gb-name span { display: none; } .getbar .wrap { height: 68px; gap: 10px; } .getbar .wrap > img { width: 42px; height: 42px; } .getbar .store-badge img { height: 42px; } .gb-name b { font-size: 1rem; } }

/* Footer */
.foot { background: #0E151A; color: #A9B6C1; padding: 64px 0 120px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.foot .logo { color: #fff; }
.foot p { margin-top: 14px; max-width: 34ch; }
.foot h4 { margin: 0 0 14px; font: 800 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #6F7D88; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.foot a { color: #DCE6EE; text-decoration: none; }
.foot a:hover { color: #4FD3EC; }
.foot-nap { display: flex; align-items: center; gap: 14px; margin-top: 28px; color: #7E8C97; font-size: .88rem; }
.foot-nap img { width: 92px; height: auto; opacity: .95; }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid #1F2B33; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #6F7D88; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Text pages (privacy, support) */
.page-hero { padding: 64px 0 40px; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.page-hero .wrap, .prose { max-width: calc(760px + var(--gutter) * 2); }
.page-hero p { margin-top: 12px; color: var(--sub); font-size: 1.1rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.prose { padding-bottom: 96px; }
.prose h2 { font-size: 1.6rem; margin: 48px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--water); }
.prose strong { color: var(--head); font-weight: 800; }
.prose code { font: 700 .92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--card); padding: 2px 6px; border-radius: 6px; }
.prose .card-note { margin: 0 0 32px; padding: 22px 24px; border-radius: 22px; background: var(--card); }
.prose .card-note p:last-child { margin-bottom: 0; }
.page .foot { padding-bottom: 40px; }

/* 404 */
.lost { min-height: calc(100vh - 68px); display: grid; place-items: center; text-align: center; padding: 48px 0 80px; }
.lost img { width: 220px; height: auto; margin: 0 auto 28px; }
.lost p { margin: 14px auto 30px; color: var(--sub); font-size: 1.15rem; max-width: 34ch; }

/* Scroll reveal (only when scripts run) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .3, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .bubbles { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
