/* baefox.app — app download page (ADR 0031). System fonts, logical properties (RTL-safe), dark + light. */
:root {
  color-scheme: dark;
  --bg: #100817; --bg-2: #1a1022; --card: rgb(255 255 255 / .05); --card-line: rgb(255 255 255 / .09);
  --label: #f7f3f8; --label-2: rgb(240 230 245 / .72); --label-3: rgb(240 230 245 / .56);
  --tint: #ec1a63; --tint-text: #ff7aa0; --field: rgb(255 255 255 / .07); --field-line: rgb(255 255 255 / .16);
  --grad: linear-gradient(120deg, #ff009c 0%, #ff3d62 52%, #ffa916 100%);
  --glow-a: rgb(255 0 156 / .32); --glow-b: rgb(255 169 22 / .16);
  --phone: #0b0610; --shadow: 0 40px 90px -30px rgb(0 0 0 / .85);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --display: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 4.5vw, 3rem);
  --spring: cubic-bezier(.32, .72, 0, 1);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #fbf8fc; --bg-2: #f3edf6; --card: #fff; --card-line: rgb(40 10 50 / .08);
    --label: #1b1320; --label-2: rgb(27 19 32 / .74); --label-3: rgb(27 19 32 / .62);
    --tint-text: #c4104f; --field: #fff; --field-line: rgb(40 10 50 / .18);
    --glow-a: rgb(255 0 156 / .16); --glow-b: rgb(255 169 22 / .12);
    --shadow: 0 40px 80px -34px rgb(60 10 50 / .45);
  }
}

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth }
body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--label); font: 400 1rem/1.55 var(--font); overflow-x: clip;
  background-image: radial-gradient(60rem 36rem at 78% -6%, var(--glow-a), transparent 62%), radial-gradient(44rem 30rem at -8% 24%, var(--glow-b), transparent 60%);
  background-repeat: no-repeat }
img { display: block; max-width: 100% }
a { color: inherit }
:focus-visible { outline: 3px solid var(--tint-text); outline-offset: 3px; border-radius: 6px }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 10; padding: .6rem 1rem; border-radius: 10px; background: var(--label); color: var(--bg); font-weight: 700; text-decoration: none }
.skip:focus { top: 1rem }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1180px; margin: 0 auto;
  padding: max(1rem, env(safe-area-inset-top)) var(--gutter) .5rem }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none }
.brand-icon { width: 34px; height: 34px }
.brand-word { width: auto; height: 24px }
.top-link { color: var(--label-2); font-size: .9375rem; font-weight: 600; text-decoration: none; padding: .7rem .4rem }
.top-link:hover { color: var(--label) }

/* Hero */
.hero { max-width: 1180px; margin: 0 auto; padding: clamp(1.25rem, 4vw, 3.5rem) var(--gutter) clamp(2.5rem, 6vw, 5rem);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem) }
.kicker { margin: 0 0 1rem; color: var(--tint-text); font-size: .8125rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase }
h1 { margin: 0; font: 850 clamp(2.6rem, 6.4vw, 4.6rem)/1.02 var(--display); letter-spacing: -.035em; text-wrap: balance }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline-end: .04em }
.lede { margin: 1.15rem 0 0; max-width: 34rem; color: var(--label-2); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.5; text-wrap: pretty }

/* CTA */
.get { margin-top: clamp(1.6rem, 3vw, 2.2rem); outline: none }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem }
.store { display: inline-flex; border-radius: 10px; transition: transform .15s var(--spring) }
.store:active { transform: scale(.97) }
.store img { height: 54px; width: auto }
.qr { display: none; flex-basis: 100%; margin: .4rem 0 0; align-items: center; gap: .9rem }
.qr svg { width: 96px; height: 96px; border-radius: 12px; flex: none }
.qr figcaption { max-width: 9.5rem; color: var(--label-3); font-size: .8125rem; line-height: 1.35 }
html[data-platform="desktop"] .qr { display: flex }
/* The visitor's own store comes first; both badges stay the same height (Apple and Google badge rules). */
html[data-platform="ios"] .store[data-store="ios"], html[data-platform="android"] .store[data-store="android"] { order: -1 }
html[data-platform="ios"][data-ios="soon"] .get, html[data-platform="android"][data-android="soon"] .get { display: flex; flex-direction: column-reverse; gap: 1.4rem }
.stores + .wait { margin-top: 1.4rem }

.wait-title { display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; font-weight: 700; font-size: 1.0625rem }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #2fd47b; box-shadow: 0 0 0 4px rgb(47 212 123 / .18); flex: none }
.join { max-width: 31rem }
.capsule { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: var(--field); box-shadow: inset 0 0 0 1px var(--field-line) }
.capsule:focus-within { box-shadow: inset 0 0 0 2px var(--tint-text) }
.capsule input[type="email"] { flex: 1; min-width: 0; height: 48px; padding: 0 1rem; border: 0; background: transparent; color: var(--label); font: 500 1rem var(--font); outline: none }
.capsule input::placeholder { color: var(--label-3) }
.capsule button { position: relative; flex: none; height: 48px; padding: 0 1.4rem; border: 0; border-radius: 999px; background: var(--grad); color: #fff;
  font: 750 1rem var(--font); cursor: pointer; box-shadow: 0 12px 28px -12px rgb(255 0 156 / .7); transition: transform .15s var(--spring), filter .15s }
.capsule button:hover { filter: brightness(1.07) }
.capsule button:active { transform: scale(.97) }
.capsule button:focus-visible { outline-offset: 2px }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0 }
.spinner { display: none; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .45); border-top-color: #fff; animation: spin .7s linear infinite }
.join.busy .btn-label { visibility: hidden }
.join.busy .spinner { display: block }
@keyframes spin { to { transform: rotate(360deg) } }
.fine { margin: .65rem 0 0; padding-inline-start: 1rem; color: var(--label-3); font-size: .875rem }
.fine.err { color: var(--tint-text); font-weight: 600 }
.joined { display: flex; align-items: center; gap: .8rem; max-width: 31rem; padding: .9rem 1.1rem; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line) }
.joined[hidden] { display: none }
.joined p { margin: 0; color: var(--label-2) }
.joined strong { color: var(--label) }
.check { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #2fd47b }
.check svg { width: 20px; height: 20px; fill: none; stroke: #062; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round }
.soon { margin: 1.1rem 0 0; color: var(--label-3); font-size: .875rem }

/* Phones */
.stage { position: relative; margin: 0; display: grid; place-items: center; min-height: clamp(26rem, 52vw, 38rem) }
.phone { position: relative; width: clamp(15rem, 25vw, 18.75rem); border-radius: 2.6rem; padding: .55rem; background: var(--phone);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgb(255 255 255 / .14), 0 0 0 1px rgb(0 0 0 / .4) }
/* The screen is 9:16 like the key art, so the poster is never cropped. */
.phone picture { display: block; aspect-ratio: 9 / 16; border-radius: 2.1rem; overflow: hidden; background: #241430 }
.phone picture img { width: 100%; height: 100%; object-fit: cover }
.phone-front { z-index: 2; animation: rise .9s var(--spring) both }
.phone-back { position: absolute; width: clamp(12rem, 20vw, 14.5rem); filter: saturate(.9) brightness(.62); z-index: 1 }
.phone-l { inset-inline-start: 0; transform: translateX(6%) rotate(-9deg) translateY(4%); animation: fan-l 1s var(--spring) .1s both }
.phone-r { inset-inline-end: 0; transform: translateX(-6%) rotate(9deg) translateY(4%); animation: fan-r 1s var(--spring) .1s both }
[dir="rtl"] .phone-l { transform: translateX(-6%) rotate(9deg) translateY(4%) }
[dir="rtl"] .phone-r { transform: translateX(6%) rotate(-9deg) translateY(4%) }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98) } }
@keyframes fan-l { from { opacity: 0; transform: translateX(30%) rotate(0) translateY(4%) } }
@keyframes fan-r { from { opacity: 0; transform: translateX(-30%) rotate(0) translateY(4%) } }

/* In-app UI drawn over the poster: it mirrors the app's For You screen, decorative only. */
.ui { position: absolute; inset: .55rem; border-radius: 2.1rem; overflow: hidden; color: #fff; pointer-events: none;
  background: linear-gradient(180deg, rgb(0 0 0 / .4) 0%, transparent 16%, transparent 58%, rgb(0 0 0 / .86) 100%) }
.ui-top { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1.25rem 0; font: 650 .8rem var(--font) }
.ui-notch { width: 30%; height: 1.35rem; border-radius: 99px; background: #000 }
.ui-sys { width: 1.9rem; height: .7rem; border-radius: 3px; background: linear-gradient(90deg, #fff 70%, rgb(255 255 255 / .4) 70%) }
.ui-rail { position: absolute; inset-inline-end: .7rem; top: 38%; display: grid; gap: .65rem }
.ui-btn { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: rgb(0 0 0 / .38); backdrop-filter: blur(6px) }
.ui-btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.ui-bottom { position: absolute; inset-inline: 1rem; bottom: .9rem; display: flex; align-items: center; gap: .6rem }
.ui-chip { padding: .1rem .45rem; border-radius: 6px; background: var(--tint); font: 800 .66rem/1.5 var(--font); letter-spacing: .04em }
.ui-bar { flex: 1; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .3); overflow: hidden }
.ui-bar span { display: block; width: 34%; height: 100%; background: var(--grad) }

/* Perks */
.perks { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) clamp(3rem, 7vw, 5.5rem) }
.perks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem }
.perks li { padding: 1.5rem; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line) }
.perk-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); margin-bottom: 1rem }
.perk-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round }
.perks h3 { margin: 0 0 .35rem; font: 750 1.125rem/1.3 var(--font) }
.perks p { margin: 0; color: var(--label-2) }

/* Shelf */
.shelf { padding: 0 0 clamp(3rem, 7vw, 5.5rem) }
.shelf h2, .band h2 { margin: 0; font: 800 clamp(1.5rem, 3vw, 2.1rem)/1.15 var(--display); letter-spacing: -.02em }
.shelf h2 { max-width: 1180px; margin: 0 auto 1.1rem; padding: 0 var(--gutter) }
.rail { list-style: none; margin: 0; padding: .25rem max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter))) 1rem; display: flex; gap: .85rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain }
.rail::-webkit-scrollbar { display: none }
.rail li { flex: none; width: clamp(8.25rem, 15vw, 10.5rem); scroll-snap-align: start }
.rail img { width: 100%; aspect-ratio: 9 / 16; height: auto; object-fit: cover; border-radius: 16px; background: var(--bg-2); box-shadow: 0 14px 30px -18px rgb(0 0 0 / .7) }

/* Band */
.band { max-width: 1180px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); padding: clamp(2.2rem, 5vw, 3.4rem) var(--gutter); display: grid; justify-items: center; gap: 1.1rem; text-align: center }
.band-icon { width: 72px; height: 72px; filter: drop-shadow(0 14px 30px rgb(255 0 156 / .4)) }
.band-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.6rem; border-radius: 999px; background: var(--grad); color: #fff;
  font-weight: 750; text-decoration: none; box-shadow: 0 14px 34px -14px rgb(255 0 156 / .75) }

/* Not found */
.nf { min-height: 60svh; align-content: center }
.nf h1 { font-size: clamp(2rem, 6vw, 3rem) }
.nf p { margin: 0; color: var(--label-2) }

/* Footer */
.foot { max-width: 1180px; margin: 0 auto; padding: 1.6rem var(--gutter) max(1.8rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--card-line);
  display: grid; justify-items: center; gap: .9rem; text-align: center; color: var(--label-3); font-size: .875rem }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem }
.social a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; color: var(--label-2); font-weight: 600;
  text-decoration: none; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line) }
.social a:hover { color: var(--label) }
.social svg { width: 20px; height: 20px; fill: currentColor; flex: none }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem 1.1rem }
.foot-links a { display: inline-block; padding: .55rem 0; color: var(--label-2); text-decoration: none }
.foot-links a:hover { color: var(--label); text-decoration: underline }
.legal { margin: 0; max-width: 40rem; font-size: .8125rem }

/* Layout */
@media (max-width: 959px) {
  .hero { grid-template-columns: 1fr; text-align: center; justify-items: center }
  .lede { margin-inline: auto }
  .stores, .wait-title { justify-content: center }
  .join, .joined { margin-inline: auto }
  .fine { padding-inline-start: 0 }
  .stage { min-height: 0; width: 100%; padding: .5rem 0 0 }
  .phone-front { width: min(62vw, 17rem) }
  .phone-back { width: min(46vw, 13rem) }
  .perks ul { grid-template-columns: 1fr; max-width: 34rem; margin: 0 auto }
}
@media (max-width: 420px) {
  .capsule { flex-wrap: wrap; border-radius: 22px }
  .capsule input[type="email"] { flex-basis: 100%; height: 52px }
  .capsule button { width: 100%; height: 52px }
  .fine { font-size: .8125rem }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important }
}
@media (forced-colors: active) {
  .capsule button, .band-cta { border: 2px solid ButtonText }
  .grad { color: CanvasText; background: none }
}
