/* ppapp.co: the app's colors and font, and the buddy drawn the way app/src/Buddy.tsx draws it */

@font-face { font-family: 'Google Sans'; src: url(fonts/GoogleSans-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Google Sans'; src: url(fonts/GoogleSans-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Google Sans'; src: url(fonts/GoogleSans-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #F4F2ED;
  --surface: #FFFFFF;
  --ink: #141416;
  --ink-on-ink: #F4F2ED;
  --muted: #8A877F;
  --line: #E2DED5;
  --accent: #FF5A2C;
  --on-accent: #FFFFFF;
  --soft: #FFE2D7;
  --shadow: 0 1px 2px rgba(20, 20, 22, .04), 0 12px 32px -12px rgba(20, 20, 22, .14);
  /* the buddy keeps its colors in both themes, like in the app */
  --ball: #FFF4E2;
  --edge: #EBD5B5;
  --b-ink: #2A1E1A;
  --cheek: #FF9AA6;
  --olive: #6B7A3C;
  --olive-dark: #4E5A2B;
  --gun: #2E2A26;
  --sky: #8CCBF2;
  --pace: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0F11;
    --surface: #1B1B1E;
    --ink: #F4F2ED;
    --ink-on-ink: #0F0F11;
    --muted: #8E8B83;
    --line: #2A2A2E;
    --accent: #FF6A3D;
    --soft: #3A1D14;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 'Google Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(32px, 5vw, 52px); }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: var(--ink-on-ink); padding: 10px 16px; border-radius: 12px; z-index: 50; }
.skip:focus { top: 12px; }

/* ---- the bar --------------------------------------------------------------------------- */
.bar { position: sticky; top: 0; z-index: 40; transition: background .25s, box-shadow .25s; }
.bar.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--line); }
.bar-in { display: flex; align-items: center; gap: 12px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
/* the app icon, with the corners the phone gives it */
.logo-icon { width: 36px; height: 36px; border-radius: 9px; flex: none; display: block; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08); }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); padding: 8px 11px; border-radius: 999px; transition: color .2s, background .2s; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.nav-lang { margin-inline-start: 6px; }
.get { text-decoration: none; font-weight: 500; font-size: 15px; background: var(--ink); color: var(--ink-on-ink); height: 40px; padding: 0 18px; border-radius: 20px; display: inline-flex; align-items: center; white-space: nowrap; transition: transform .2s var(--pace); }
.get:hover { transform: scale(1.04); }
.get:active { transform: scale(.96); }
.menu { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 22px; position: relative; cursor: pointer; }
.menu span { position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform .3s var(--pace); }
.menu span:first-child { top: 18px; }
.menu span:last-child { top: 24px; }
.bar.open .menu span:first-child { transform: translateY(3px) rotate(45deg); }
.bar.open .menu span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 1180px) {
  .menu { display: block; }
  .get { margin-inline-start: auto; }
  .nav {
    position: absolute; top: 68px; left: 12px; right: 12px; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
    background: var(--surface); border-radius: 24px; box-shadow: var(--shadow), 0 0 0 1px var(--line);
    opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top; pointer-events: none;
    transition: opacity .2s, transform .25s var(--pace);
  }
  .bar.open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { font-size: 17px; padding: 14px 16px; color: var(--ink); border-radius: 16px; }
  .nav a.on { box-shadow: none; background: var(--bg); }
  .nav-lang { margin: 0; color: var(--muted) !important; }
}
@media (max-width: 380px) { .get { display: none; } .menu { margin-inline-start: auto; } }

/* ---- the big button (screens/Main.tsx) ------------------------------------------------- */
.stage { position: relative; width: 100%; height: 440px; display: grid; place-items: center; }
.pp {
  --r: 120px;
  position: relative; z-index: 2;
  width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%; border: 0;
  background: var(--accent); color: var(--on-accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; font-size: 46px; letter-spacing: -1px; cursor: pointer;
  transition: background .35s, color .35s, transform .25s var(--pace);
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
div.pp { cursor: default; }
button.pp:hover { transform: scale(1.02); }
button.pp:active { transform: scale(.95); }
.pp[data-state='waiting'], .pp[data-state='seen'] { background: var(--soft); color: var(--accent); }
.pp-tag {
  display: none; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 15px; margin-bottom: 8px;
  font-size: 14px; font-weight: 500; letter-spacing: 0; background: var(--accent); color: var(--on-accent);
  animation: tag-in .4s var(--pace);
}
.pp[data-state='seen'] .pp-tag, .pp[data-state='pong'] .pp-tag { display: inline-flex; }
.pp[data-state='pong'] .pp-tag { background: var(--on-accent); color: var(--accent); }
.pp-tag i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
@keyframes tag-in { from { opacity: 0; transform: scale(.6); } }
.ring { position: absolute; z-index: 1; left: 50%; top: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1); border-radius: 50%; border: 3px solid var(--accent); pointer-events: none; animation: ring 1.1s var(--pace) forwards; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
.origin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; } /* site.js puts it at the button's middle */
.origin.back { z-index: 1; }
.origin.front { z-index: 3; }

/* ---- the buddy ------------------------------------------------------------------------- */
.buddy { position: absolute; left: 0; top: 0; width: 80px; height: 80px; margin: -40px 0 0 -40px; pointer-events: none; will-change: transform; }
.b-hop, .b-tilt, .b-squash { position: absolute; inset: 0; }
.b-squash { transform-origin: 50% 100%; }
.b-ball {
  position: absolute; inset: 0; border-radius: 50%; background: var(--ball); border: 2.5px solid var(--edge);
  display: flex; align-items: center; justify-content: center; overflow: visible;
}
.b-face { display: flex; flex-direction: column; align-items: center; direction: ltr; }
.b-gaze { display: flex; gap: 18px; transition: transform .18s ease-out; }
.b-eye { width: 12px; height: 16px; border-radius: 6px; background: var(--b-ink); transform-origin: 50% 50%; position: relative; }
.b-eye::after { content: ''; position: absolute; left: 3px; top: 3px; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.b-row { display: flex; align-items: flex-start; gap: 6px; margin-top: 3px; }
.b-cheek { width: 14px; height: 7px; border-radius: 4px; background: var(--cheek); opacity: .75; margin-top: 1px; }
.b-mouth { width: 13px; height: 7px; border: 2.5px solid var(--b-ink); border-top: 0; border-radius: 0 0 7px 7px; transition: all .12s; }
.buddy[data-face='oh'] .b-mouth { width: 9px; height: 10px; border: 2.5px solid var(--b-ink); border-radius: 5px; margin: 0 2px; }
.buddy[data-face='wow'] .b-mouth { width: 12px; height: 13px; border: 0; border-radius: 7px; background: var(--b-ink); margin: 0 1px; }
.buddy[data-face='sleep'] .b-eye { height: 3px; margin-top: 7px; border-radius: 2px; }
.buddy[data-face='sleep'] .b-eye::after { display: none; }
.buddy[data-face='sleep'] .b-mouth { width: 8px; height: 4px; border-width: 2px; margin-top: 2px; }
.b-arm { position: absolute; bottom: 6px; width: 18px; height: 12px; border-radius: 6px; background: var(--ball); border: 2.5px solid var(--edge); transition: transform .28s var(--pace); }
.b-arm.l { left: -10px; transform-origin: 100% 50%; }
.b-arm.r { right: -10px; transform-origin: 0 50%; }
.buddy.arms .b-arm.l { transform: translate(-2px, -26px) rotate(50deg); }
.buddy.arms .b-arm.r { transform: translate(2px, -26px) rotate(-50deg); }
.buddy.wave .b-arm.r { animation: wave .5s ease-in-out infinite alternate; }
@keyframes wave { from { transform: translate(4px, -30px) rotate(-70deg); } to { transform: translate(4px, -24px) rotate(-20deg); } }
.b-bubble { position: absolute; top: -16px; right: -10px; font-size: 24px; font-weight: 800; color: var(--accent); opacity: 0; line-height: 1; }
.b-bubble.go { animation: bubble 1s ease-out; }
@keyframes bubble { 0% { opacity: 0; transform: none; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(12px, -34px); } }
.b-say { position: absolute; bottom: calc(100% + 18px); left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; opacity: 0; scale: .4; transform-origin: 50% 100%; transition: opacity .2s, scale .35s cubic-bezier(.34, 1.56, .64, 1); }
.b-say.on { opacity: 1; scale: 1; }
.b-say span { min-width: 70px; height: 36px; padding: 0 16px; border-radius: 18px; background: #fff; border: 2px solid var(--edge); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: var(--b-ink); white-space: nowrap; }
.b-say::after { content: ''; width: 12px; height: 12px; margin-top: -7px; background: #fff; border-right: 2px solid var(--edge); border-bottom: 2px solid var(--edge); transform: rotate(45deg); }
/* the bot's antenna */
.buddy.bot .b-ball::before { content: ''; position: absolute; left: 50%; top: -18px; width: 3px; height: 16px; margin-left: -1.5px; background: var(--b-ink); border-radius: 2px; }
.buddy.bot .b-ball::after { content: ''; position: absolute; left: 50%; top: -24px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--accent); animation: blinkled 1.2s steps(2) infinite; }
@keyframes blinkled { 50% { background: #FFD25A; } }

/* army gear: drops on with .gear-1 … .gear-2 */
.b-helmet, .b-vest { position: absolute; opacity: 0; transform: translateY(-24px); transition: opacity .25s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.b-helmet { left: 4px; top: -16px; width: 72px; height: 30px; border-radius: 36px 36px 0 0; background: var(--olive); }
.b-helmet::after { content: ''; position: absolute; left: -6px; top: 24px; width: 84px; height: 8px; border-radius: 4px; background: var(--olive-dark); }
.b-vest { left: 8px; top: 50px; width: 64px; height: 28px; border-radius: 8px 8px 30px 30px; background: var(--olive); display: flex; justify-content: center; gap: 8px; padding-top: 5px; }
.b-vest i { width: 15px; height: 11px; border-radius: 3px; background: var(--olive-dark); }
.buddy.gear-1 .b-helmet, .buddy.gear-2 .b-helmet, .buddy.gear-2 .b-vest { opacity: 1; transform: none; }
.buddy.salute .b-arm.r { transform: translate(-4px, -48px) rotate(-30deg); }

/* the racket (tennis) */
.b-racket { position: absolute; left: 56px; top: -38px; width: 40px; height: 84px; transform-origin: 50% 100%; opacity: 0; transition: opacity .25s; }
.buddy.racket .b-racket { opacity: 1; }
.b-racket::before { content: ''; position: absolute; left: 0; top: 0; width: 32px; height: 42px; border-radius: 20px; border: 4px solid var(--accent); background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(255, 255, 255, .7) 7px 8px), repeating-linear-gradient(0deg, transparent 0 7px, rgba(255, 255, 255, .7) 7px 8px); }
.b-racket::after { content: ''; position: absolute; left: 16px; top: 48px; width: 8px; height: 34px; border-radius: 4px; background: var(--b-ink); }

/* what a trip rides: an svg around the buddy's middle */
.ride { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; will-change: transform; }
.ride svg { position: absolute; overflow: visible; }
.ride.flip svg { transform: scaleX(-1); }
.puff { fill: #E9E4DC; opacity: 0; animation: puff .8s linear infinite; transform-box: fill-box; transform-origin: center; }
.puff.p2 { animation-delay: -.4s; }
@keyframes puff { 0% { opacity: 0; transform: translate(0, 0) scale(.5); } 15% { opacity: .85; } 100% { opacity: 0; transform: translate(-26px, -44px) scale(1.5); } }
.flame { transform-box: fill-box; transform-origin: 50% 0; animation: flicker .12s ease-in-out infinite alternate; }
@keyframes flicker { from { transform: scaleY(.85); } to { transform: scaleY(1.2); } }
.rail { position: absolute; left: -2000px; width: 4000px; height: 3px; border-radius: 2px; background: var(--edge); opacity: 0; transition: opacity .4s; }
.rail.on { opacity: 1; }
.rail::after { content: ''; position: absolute; left: 0; right: 0; top: 2px; height: 7px; background: repeating-linear-gradient(90deg, transparent 0 6px, var(--edge) 6px 10px, transparent 10px 22px); }

/* ---- hero ------------------------------------------------------------------------------ */
.hero { position: relative; padding: 24px 0 56px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset-inline-end: -10%; top: -20%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; min-height: calc(100svh - 120px); }
.kicker { font-weight: 500; color: var(--accent); margin-bottom: 14px; font-size: 17px; }
.hero h1 { font-size: clamp(48px, 8.2vw, 96px); letter-spacing: -.035em; line-height: .98; }
.hero .lead { margin-top: 22px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 18px; border-radius: 30px;
  background: var(--ink); color: var(--ink-on-ink); text-decoration: none; font-weight: 700; font-size: 18px; line-height: 1.1;
  transition: transform .25s var(--pace), box-shadow .25s;
}
[dir='rtl'] .store { padding: 0 18px 0 22px; }
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.store:active { transform: scale(.97); }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-weight: 400; font-size: 12px; opacity: .7; }
.store.soon { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); cursor: default; }
.store.soon:hover { transform: none; box-shadow: inset 0 0 0 1.5px var(--line); }
.try { margin-top: 28px; color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.try-arrow { width: 28px; height: 2px; background: currentColor; position: relative; animation: nudge 1.6s ease-in-out infinite; }
.try-arrow::after { content: ''; position: absolute; inset-inline-end: -1px; top: -4px; width: 8px; height: 8px; border-top: 2px solid currentColor; border-inline-end: 2px solid currentColor; transform: rotate(45deg); }
[dir='rtl'] .try-arrow::after { transform: rotate(-45deg); }
@keyframes nudge { 50% { translate: 6px 0; } }
[dir='rtl'] .try-arrow { animation-name: nudge-rtl; }
@keyframes nudge-rtl { 50% { translate: -6px 0; } }
.hero-stage { display: flex; flex-direction: column; align-items: center; }
.status { color: var(--muted); font-size: 15px; min-height: 24px; text-align: center; margin-top: -8px; transition: opacity .2s; }
.pill { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-weight: 500; font-size: 15px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chev { width: 7px; height: 7px; margin: -3px 2px 0; border-left: 1.75px solid var(--muted); border-top: 1.75px solid var(--muted); transform: rotate(225deg); }

@media (max-width: 860px) {
  .hero { padding-top: 8px; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; gap: 0; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; padding-top: 16px; }
  .hero .lead { margin-inline: auto; }
  .stores { justify-content: center; }
  .try-arrow { rotate: 90deg; }
  [dir='rtl'] .try-arrow { rotate: -90deg; }
  .hero .stage { height: 320px; place-items: end center; padding-bottom: 28px; }
  .trip-stage { height: 360px; place-items: end center; padding-bottom: 40px; }
  .pp { --r: 100px; font-size: 40px; }
}

/* ---- sections -------------------------------------------------------------------------- */
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.sec-head p { margin-top: 16px; color: var(--muted); font-size: clamp(18px, 2vw, 20px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split h2 + .lead { margin-top: 18px; }
.split.rev > :first-child { order: 2; }
.note { margin-top: 18px; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--pace), transform .8s var(--pace); }
.reveal.in { opacity: 1; transform: none; }

/* how */
.how { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-card { position: relative; background: var(--surface); border-radius: 28px; padding: 28px 26px 30px; box-shadow: var(--shadow); transition: transform .5s var(--pace), box-shadow .5s; }
.how-card.on { transform: translateY(-6px); box-shadow: var(--shadow), 0 0 0 2px var(--accent); }
.how-art { height: 190px; display: grid; place-items: end center; padding-bottom: 8px; }
.mini { width: 124px; height: 124px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: 26px; letter-spacing: -.5px; background: var(--accent); color: var(--on-accent); }
.mini-tag { display: none; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 500; letter-spacing: 0; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--on-accent); color: var(--accent); margin-bottom: 4px; white-space: nowrap; }
.mini-tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mini-2 .mini-tag { display: inline-flex; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); font-weight: 700; font-size: 14px; margin: 18px 0 12px; }
.how-card p { color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }

/* connect */
.nos { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.nos li { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-weight: 500; font-size: 15px; }
.nos i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); position: relative; }
.nos i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--accent); transform: translate(-50%, -50%) rotate(-45deg); }
.code-card { position: relative; background: var(--surface); border-radius: 32px; box-shadow: var(--shadow); padding: 150px 24px 40px; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.code { display: flex; gap: 8px; direction: ltr; }
.code span { width: clamp(40px, 9vw, 56px); height: clamp(54px, 12vw, 72px); border-radius: 16px; background: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: clamp(24px, 5vw, 34px); transition: background .3s, color .3s, transform .3s var(--pace); }
.code span.typed { animation: pop .35s var(--pace); }
.code span.cur { box-shadow: inset 0 0 0 2px var(--accent); }
.code.done span { background: var(--accent); color: var(--on-accent); }
@keyframes pop { 40% { transform: scale(1.12); } }
.code-done { margin-top: 22px; font-weight: 700; font-size: 22px; opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .3s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.code-card.done .code-done { opacity: 1; transform: none; }
.code-card .confetti { position: absolute; width: 8px; height: 12px; border-radius: 2px; top: 50%; left: 50%; pointer-events: none; }

/* trips: the dark band */
.dark { background: #141416; color: #F4F2ED; border-radius: clamp(28px, 4vw, 48px); margin: 0 12px; }
@media (prefers-color-scheme: dark) { .dark { background: #1B1B1E; } }
.dark .sec-head p { color: #A8A49B; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { height: 42px; padding: 0 18px; border-radius: 21px; border: 0; background: rgba(255, 255, 255, .08); color: #F4F2ED; font-weight: 500; font-size: 15px; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--pace); }
.chip:hover { background: rgba(255, 255, 255, .14); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed='true'] { background: var(--accent); color: #fff; }
.trip-stage { height: 420px; overflow: hidden; margin-top: 12px; border-radius: 32px; place-items: end center; padding-bottom: 56px; }
.trip-stage .pp { --r: 92px; font-size: 36px; }
.trip-stage .pp[data-state='waiting'], .trip-stage .pp[data-state='seen'] { background: #3A1D14; }

/* features */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat { position: relative; text-align: start; background: var(--surface); border: 0; border-radius: 28px; padding: 22px 22px 26px; box-shadow: var(--shadow); transition: transform .35s var(--pace); }
button.feat { cursor: pointer; }
button.feat:hover { transform: translateY(-3px); }
button.feat:active { transform: scale(.98); }
.feat-art { position: relative; height: 150px; margin-bottom: 18px; border-radius: 20px; background: var(--bg); overflow: hidden; }
.feat p { color: var(--muted); margin-top: 6px; font-size: 16px; }
@media (max-width: 1000px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }
.f-mini { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; background: var(--soft); color: var(--accent); }
.f-tag { position: absolute; top: 18px; left: 50%; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; transition: opacity .3s, scale .4s cubic-bezier(.34, 1.56, .64, 1); }
.f-tag.off { opacity: 0; scale: .6; }
.f-lock { position: absolute; left: 50%; top: 50%; width: 18px; height: 14px; margin: 6px 0 0 -9px; border-radius: 3px; background: var(--accent); }
.f-lock::before { content: ''; position: absolute; left: 3px; top: -9px; width: 8px; height: 9px; border: 2.5px solid var(--accent); border-bottom: 0; border-radius: 6px 6px 0 0; }
.f-wave { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.f-wave.go { animation: ring 1.2s var(--pace); }
.f-word { position: absolute; top: 14px; font-weight: 700; font-size: 15px; padding: 6px 12px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1.5px var(--edge); color: var(--b-ink); opacity: 0; transition: opacity .3s, transform .4s cubic-bezier(.34, 1.56, .64, 1); transform: scale(.6); }
@media (prefers-color-scheme: dark) { .f-word { background: #fff; } }
.f-word.on { opacity: 1; transform: none; }
.f-word.a { inset-inline-start: 14px; }
.f-word.b { inset-inline-end: 14px; }

/* widgets: a home screen and a lock screen with the app's widgets (app/targets/widget) */
.adds-title { margin-top: 8px; font-size: 18px; }
.adds { margin: 14px 0 0; display: grid; gap: 10px; }
.adds div { background: var(--surface); border-radius: 18px; padding: 12px 16px; box-shadow: 0 0 0 1px var(--line); }
.adds dt { font-weight: 700; font-size: 15px; }
.adds dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.screens { display: grid; gap: 16px; max-width: 400px; width: 100%; margin: 0 auto; }
.home, .lock { border-radius: 36px; padding: 20px 18px 14px; position: relative; overflow: hidden; }
.home { background: linear-gradient(160deg, #FFD9C7, #FFB59A 55%, #FF8A65); }
.lock { background: linear-gradient(170deg, #2B2F3A, #121318); color: #fff; text-align: center; }
@media (prefers-color-scheme: dark) { .home { background: linear-gradient(160deg, #4A2418, #2A1610 60%, #1A0F0B); } }
.screen-cap { text-align: center; font-size: 13px; font-weight: 500; margin-top: 12px; color: rgba(20, 20, 22, .55); }
.lock .screen-cap, .dark-cap { color: rgba(255, 255, 255, .5); }
@media (prefers-color-scheme: dark) { .home .screen-cap { color: rgba(255, 255, 255, .5); } }
.screen-try { color: var(--accent); }
/* the looks (Widget.swift Look): ink when it can ping, soft while it waits, accent when a ping waits for your pong */
.screens { --w-fill: var(--ink); --w-label: var(--ink-on-ink); --w-text: var(--ink-on-ink); }
.screens[data-look='waiting'] { --w-fill: var(--soft); --w-label: var(--accent); --w-text: var(--accent); }
.screens[data-look='pong'] { --w-fill: var(--accent); --w-label: #fff; --w-text: #fff; }
.screens[data-look='ponged'] { --w-label: var(--accent); }
.w-wide {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; width: 100%; height: 158px;
  padding: 16px 150px 16px 20px; border: 0; border-radius: 24px; overflow: hidden; cursor: pointer; text-align: start;
  background: var(--w-fill); transition: background .35s, transform .2s var(--pace); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .4);
}
[dir='rtl'] .w-wide { padding: 16px 20px 16px 150px; }
.w-wide:active { transform: scale(.97); }
.w-name { font-weight: 500; font-size: 15px; color: var(--w-text); opacity: .8; transition: color .35s; }
.w-wide .w-label { font-weight: 700; font-size: 46px; letter-spacing: -1px; line-height: 1; color: var(--w-label); transition: color .35s; white-space: nowrap; }
.w-status { font-weight: 500; font-size: 13px; color: var(--w-text); opacity: .8; transition: color .35s; min-height: 18px; }
.w-buddy { position: absolute; bottom: 0; inset-inline-end: 84px; width: 0; height: 0; }
.home-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.w-small { aspect-ratio: 1; border-radius: 24px; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 12px; gap: 4px; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .35); }
.w-face { position: relative; }
.w-circle { width: 80px; height: 80px; border-radius: 50%; background: var(--w-fill); display: grid; place-items: center; transition: background .35s; }
.w-circle .w-label { font-weight: 700; font-size: 19px; color: var(--w-label); transition: color .35s; padding-top: 6px; }
.w-small-name { font-weight: 600; font-size: 13px; }
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 10px; }
.apps img, .apps i { width: 100%; aspect-ratio: 1; border-radius: 22%; display: block; }
.apps i { background: rgba(255, 255, 255, .45); }
.apps i:nth-child(3) { background: rgba(255, 255, 255, .3); }
.lock-date { font-size: 15px; font-weight: 500; opacity: .8; }
.lock-time { font-size: 76px; font-weight: 700; line-height: 1; letter-spacing: -2px; margin-top: 2px; }
.lock-row { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.l-circle { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); transition: background .35s; }
.l-circle b { font-size: 13px; font-weight: 700; color: #fff; transition: color .35s; }
.screens[data-look='pong'] .l-circle { background: #fff; }
.screens[data-look='pong'] .l-circle b { color: #121318; }
.screens[data-look='waiting'] .l-circle, .screens[data-look='ponged'] .l-circle { background: transparent; box-shadow: none; outline: 2px dashed rgba(255, 255, 255, .7); outline-offset: -2px; }
.l-rect { display: flex; align-items: center; gap: 12px; width: 260px; max-width: 100%; padding: 10px 14px; border-radius: 22px; background: rgba(255, 255, 255, .08); text-align: start; }
.l-text { display: flex; flex-direction: column; min-width: 0; }
.l-text b { font-size: 15px; }
.l-text small { font-size: 12px; opacity: .8; line-height: 1.3; color: #fff; }

/* shortcuts and Siri */
.acts { display: grid; gap: 10px; margin-top: 28px; }
.act { display: flex; flex-direction: column; background: var(--surface); border-radius: 18px; padding: 14px 18px; box-shadow: 0 0 0 1px var(--line); }
.act b { font-weight: 700; }
.act span { color: var(--muted); font-size: 15px; }
.acts + .adds-title { margin-top: 28px; }
.acts ~ .checks { margin-top: 14px; }
.siri {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: 400px; height: 480px; margin: 0 auto;
  padding: 24px 20px 30px; border-radius: 36px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 70% at 50% 115%, #4B2A7A 0%, #1B1530 45%, #0E0E12 75%);
}
.siri-stage { position: relative; flex: 1; width: 100%; }
.siri-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 24px; background: rgba(255, 255, 255, .96); color: #141416; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .3s, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.siri-card.on { opacity: 1; transform: none; }
.siri-card img { width: 42px; height: 42px; border-radius: 10px; flex: none; }
.siri-card span { display: flex; flex-direction: column; text-align: start; }
.siri-card small { font-size: 12px; color: #8A877F; }
.siri-said { font-size: 17px; }
.siri-q { min-height: 64px; font-size: 22px; font-weight: 500; line-height: 1.35; text-align: center; text-wrap: balance; }
.siri-q span { opacity: 0; transition: opacity .25s; }
.siri-q span.on { opacity: 1; }
.siri-orb { position: relative; width: 64px; height: 64px; flex: none; }
.siri-orb::before, .siri-orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #FF5A2C, #FF3CAC, #784BA0, #2B86C5, #2BD2FF, #FF5A2C); animation: orb 4s linear infinite; }
.siri-orb::after { filter: blur(14px); opacity: .7; }
.siri-orb.listening::before, .siri-orb.listening::after { animation: orb 1.2s linear infinite, swell .6s ease-in-out infinite alternate; }
@keyframes orb { to { rotate: 360deg; } }
@keyframes swell { to { scale: 1.18; } }

/* friends */
.friends { position: relative; padding-top: 86px; max-width: 460px; width: 100%; margin: 0 auto; }
.squad { position: absolute; left: 0; right: 0; top: 0; height: 86px; }
.friends-card { position: relative; background: var(--surface); border-radius: 32px; padding: 22px 14px 14px; box-shadow: var(--shadow); }
.friends-title { color: var(--muted); font-size: 14px; font-weight: 500; padding: 0 12px 10px; }
.friends-card ul { list-style: none; margin: 0; padding: 0; }
.friend { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px; border: 0; background: transparent; border-radius: 20px; cursor: pointer; text-align: start; transition: background .2s, transform .2s var(--pace); }
.friend:hover { background: var(--bg); }
.friend:active { transform: scale(.98); }
.friend.on { background: var(--bg); }
.who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.who b { font-weight: 500; }
.who small { color: var(--muted); font-size: 14px; }
.friend.waiting small { color: var(--accent); font-weight: 500; }
.live { width: 9px; height: 9px; border-radius: 50%; background: transparent; transition: background .2s; }
.friend.on .live { background: var(--accent); }
.friend.waiting .live { background: var(--accent); animation: beat 1.2s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.6); opacity: .5; } }
.ava { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ball); border: 2px solid var(--edge); }
.ava i { position: absolute; top: 15px; width: 5px; height: 7px; border-radius: 3px; background: var(--b-ink); }
.ava i:first-child { left: 13px; }
.ava i:last-child { right: 13px; }
.ava-1 { background: #FFE3D6; }
.ava-2 { background: #E6F2FF; }
.ava-3 { background: #ECF7DD; }

/* bot */
.bot-card { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 24px; background: var(--accent); color: #fff; border-radius: clamp(28px, 4vw, 48px); padding: clamp(32px, 6vw, 72px); overflow: hidden; }
.bot-card p { margin-top: 14px; font-size: clamp(18px, 2vw, 20px); opacity: .92; max-width: 30em; }
.bot-code { font-weight: 700; font-size: clamp(56px, 10vw, 104px) !important; letter-spacing: .02em; line-height: 1; margin-top: 26px !important; opacity: 1 !important; }
.bot-art { position: relative; height: 300px; }
.bot-art .f-mini { width: 110px; height: 110px; margin: -55px; background: #141416; color: #fff; font-size: 24px; }
@media (max-width: 860px) { .bot-card { grid-template-columns: 1fr; text-align: center; } .bot-card p { margin-inline: auto; } }

/* privacy */
.checks { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500; }
.checks i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); position: relative; }
.checks i::after { content: ''; position: absolute; left: 8px; top: 6px; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.link { color: var(--accent); font-weight: 500; text-underline-offset: 4px; }
.vault { position: relative; background: var(--surface); border-radius: 32px; box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; align-items: center; }
.vault-art { position: relative; width: 100%; height: 260px; }
.hold { position: relative; overflow: hidden; height: 56px; min-width: 240px; padding: 0 28px; border: 0; border-radius: 28px; background: var(--bg); color: var(--ink); font-weight: 500; font-size: 17px; cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.hold-fill { position: absolute; inset: 0; background: #D93A2B; transform: scaleX(0); transform-origin: left; }
[dir='rtl'] .hold-fill { transform-origin: right; }
.hold.pressing .hold-fill { transform: scaleX(1); transition: transform 1.4s linear; }
.hold.done .hold-fill { transform: scaleX(1); }
.hold-text { position: relative; transition: color .2s; }
.hold.pressing .hold-text, .hold.done .hold-text { color: #fff; }

/* the end */
.cta { padding: clamp(80px, 10vw, 140px) 0 clamp(72px, 9vw, 120px); text-align: center; }
.cta-in { display: flex; flex-direction: column; align-items: center; }
.cta-art { position: relative; width: 240px; height: 200px; }
.cta h2 { font-size: clamp(40px, 7vw, 76px); letter-spacing: -.03em; }
.cta p { color: var(--muted); font-size: clamp(20px, 2.4vw, 26px); margin-top: 10px; }
.cta .stores { justify-content: center; }

/* text pages: support, privacy, terms */
.doc { padding: clamp(32px, 6vw, 72px) 0 clamp(72px, 9vw, 112px); }
.doc-in { position: relative; max-width: 760px; }
.doc-art { position: absolute; inset-inline-end: 20px; top: 0; width: 110px; height: 110px; }
.doc h1 { font-size: clamp(38px, 6vw, 60px); letter-spacing: -.03em; padding-inline-end: 120px; min-height: 96px; display: flex; align-items: flex-end; }
.doc h1 + .muted { margin-top: 10px; }
.doc .muted { color: var(--muted); font-size: 15px; }
.doc h1 + p:not(.muted), .doc .muted + p { margin-top: 28px; font-size: clamp(18px, 2vw, 20px); color: var(--muted); }
.doc h2 { font-size: 22px; letter-spacing: -.01em; line-height: 1.3; margin: 44px 0 10px; }
.doc p, .doc li { line-height: 1.7; }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 10px 0 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.doc li::marker { color: var(--accent); }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc b { font-weight: 700; }
@media (max-width: 560px) { .doc h1 { padding-inline-end: 96px; min-height: 84px; } .doc-art { width: 90px; height: 90px; inset-inline-end: 12px; } }
.foot nav a[aria-current='page'] { color: var(--ink); font-weight: 500; }

.foot { border-top: 1px solid var(--line); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-inline-start: auto; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 0; }
.foot nav a:hover { color: var(--ink); }
.fine { width: 100%; color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .foot nav { margin: 0; } }

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