/* BPA landing. Brand tokens from the app (bpa-app/src/theme/colors.js); Inter as in the app.
   Layout: green showcase blocks (hero, share, final) alternating with light sand sections, like the app. */
:root {
  --green: #0F3D2E;
  --green-2: #17493A;
  --green-line: #245A49;
  --lime: #D9FF5A;
  --sand: #F7F8F4;
  --sand-2: #EEF0E9;
  --white: #FFFFFF;
  --ink: #172A24;
  --ink-2: #4A5B55;
  --on-dark-2: #B5CBC2;
  --line: #E2E5DC;
  --left: #1D5FA8;
  --right: #A14B06;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 22px;
  --gutter: clamp(16px, 5vw, 56px);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--sand); color: var(--ink); font-family: var(--font); line-height: 1.55; font-size: 17px; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; font-weight: 800; }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
.hl { color: var(--lime); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 700; text-decoration: none; font-size: 16px; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn--lime { background: var(--lime); color: var(--ink); box-shadow: 0 8px 24px -10px rgba(217, 255, 90, .7); }
.btn--dark { background: var(--green); color: var(--white); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.eyebrow--dark { color: var(--green); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--lime); box-shadow: 0 0 0 0 rgba(217,255,90,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(217,255,90,0); } 100% { box-shadow: 0 0 0 0 rgba(217,255,90,0); } }

.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--on-dark-2); max-width: 34em; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter) 10px; background: rgba(15, 61, 46, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { color: var(--on-dark-2); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav__links a:hover { color: var(--white); }
@media (max-width: 760px) { .nav__links { display: none; } .nav .btn { margin-left: auto; } }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 80% 10%, #1a5a44 0%, transparent 60%), var(--green); color: var(--white); padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(56px, 8vw, 110px); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; overflow: hidden; }
.hero > * { max-width: var(--max); }
.hero h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 900; margin: 18px 0 20px; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 14px; border: 1px solid var(--green-line); background: rgba(255,255,255,.04); color: var(--white); font-weight: 700; font-size: 17px; line-height: 1.1; }
.store svg { width: 26px; height: 26px; }
.store small { display: block; font-size: 11px; font-weight: 500; color: var(--on-dark-2); }
.hero__follow { margin-top: 20px; color: var(--on-dark-2); font-size: 15px; }
.hero__follow a { color: var(--lime); font-weight: 700; }

.hero__stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.hero__ball { position: absolute; inset: -40px -60px; width: calc(100% + 120px); height: calc(100% + 80px); pointer-events: none; z-index: 2; }

/* Phone frame */
.phone { position: relative; width: 300px; aspect-ratio: 390 / 844; border-radius: 46px; background: #0b0f0d; padding: 10px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08) inset; max-width: 100%; }
.phone__notch { position: absolute; top: 18px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: #0b0f0d; border-radius: 20px; z-index: 3; }
.phone__bar { position: absolute; top: 10px; left: 10px; right: 10px; height: 70px; background: var(--green); border-radius: 36px 36px 0 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 18px 10px; border-bottom: 3px solid var(--lime); }
.phone__bar img { height: 26px; width: auto; }
.phone__bell { width: 26px; height: 26px; border-radius: 99px; background: rgba(255,255,255,.14); }
.phone__screen { position: absolute; inset: 80px 10px 10px; border-radius: 0 0 36px 36px; overflow: hidden; background: var(--sand); }
.phone__screen img { position: absolute; inset: 0; width: 100%; height: auto; opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .6s ease, transform .6s ease; }
.phone__screen img.is-on { opacity: 1; transform: none; }
.phone--hero { width: min(320px, 78vw); transform: rotate(-3deg); animation: float 6s ease-in-out infinite; z-index: 1; }
@keyframes float { 50% { transform: rotate(-3deg) translateY(-12px); } }

.chip { position: absolute; z-index: 3; background: var(--white); color: var(--ink); font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); white-space: nowrap; animation: bob 5s ease-in-out infinite; }
.chip b { background: var(--green); color: var(--lime); border-radius: 8px; padding: 2px 7px; margin-right: 4px; }
.chip--a { top: 12%; left: -4%; }
.chip--b { top: 52%; right: -6%; animation-delay: -1.6s; }
.chip--c { bottom: 8%; left: 2%; background: var(--lime); animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .hero__stage { min-height: 560px; }
  .chip--a { left: 0; } .chip--b { right: 0; } .chip--c { left: 4%; }
}
@media (max-width: 420px) {
  .chip { font-size: 12.5px; padding: 8px 11px; }
  .hero__stage { min-height: 520px; }
}

/* Marquee */
.marquee { background: var(--lime); color: var(--green); overflow: hidden; border-block: 2px solid var(--green); transform: rotate(-1.2deg); margin: -14px -10px 0; position: relative; z-index: 3; }
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font-weight: 900; font-size: clamp(20px, 2.6vw, 30px); text-transform: uppercase; letter-spacing: -0.01em; padding: 14px 22px; white-space: nowrap; }
.marquee span::after { content: "●"; font-size: .5em; margin-left: 44px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
section { position: relative; }
.section-head { max-width: 760px; display: flex; flex-direction: column; gap: 14px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; align-items: center; }

/* How */
.how { padding: clamp(72px, 9vw, 130px) var(--gutter); }
.how__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 6vw, 96px); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 24px 0; opacity: .35; transition: opacity .4s ease; }
.step.is-active { opacity: 1; }
.step__n { width: 44px; height: 44px; border-radius: 14px; background: var(--green); color: var(--lime); display: grid; place-items: center; font-weight: 900; font-size: 20px; }
.step h3 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.03em; line-height: 1.08; }
.step p { color: var(--ink-2); font-size: 18px; max-width: 30em; }
.step__shot { display: none; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { padding-left: 30px; position: relative; font-weight: 600; font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 99px; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9FF5A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.how__sticky { position: sticky; top: 90px; height: calc(100vh - 110px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.phone--how { width: min(330px, 100%); }
.how__progress { display: flex; gap: 6px; }
.how__progress span { width: 22px; height: 5px; border-radius: 9px; background: var(--line); transition: background .3s, width .3s; }
.how__progress span.is-on { background: var(--green); width: 38px; }

@media (max-width: 900px) {
  .how__grid { grid-template-columns: 1fr; }
  .how__sticky { display: none; }
  .step { min-height: 0; opacity: 1; padding: 36px 0; border-top: 1px solid var(--line); }
  .step__shot { display: block; width: min(300px, 82%); margin: 14px auto 0; border-radius: 28px; border: 8px solid #0b0f0d; box-shadow: 0 30px 60px -30px rgba(15,61,46,.5); height: auto; aspect-ratio: 390 / 600; object-fit: cover; object-position: top; }
}

/* Who */
.who { padding: 0 var(--gutter) clamp(72px, 9vw, 130px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.who__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.who__card h3 { font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -0.03em; line-height: 1.1; }
.who__card--lime { background: var(--lime); border-color: var(--lime); }
@media (max-width: 760px) { .who { grid-template-columns: 1fr; } }

/* Share */
.share { background: var(--green); color: var(--white); padding: clamp(72px, 9vw, 130px) var(--gutter); overflow: hidden; }
.share .lead { margin: 0 auto; }
.fan { display: flex; justify-content: center; align-items: center; gap: 0; padding: 30px 0 10px; }
.fan img { width: clamp(150px, 24vw, 280px); border-radius: 18px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.fan img:nth-child(1) { transform: rotate(-8deg) translate(30px, 20px); }
.fan img:nth-child(2) { transform: translateY(-10px); z-index: 1; }
.fan img:nth-child(3) { transform: rotate(8deg) translate(-30px, 20px); }
.fan:hover img:nth-child(1) { transform: rotate(-12deg) translate(-10px, 10px); }
.fan:hover img:nth-child(3) { transform: rotate(12deg) translate(10px, 10px); }
.fan:hover img:nth-child(2) { transform: translateY(-24px) scale(1.03); }
@media (max-width: 600px) {
  .fan img { width: 34vw; border-radius: 12px; }
  .fan img:nth-child(1) { transform: rotate(-8deg) translate(16px, 14px); }
  .fan img:nth-child(3) { transform: rotate(8deg) translate(-16px, 14px); }
}

/* Video */
.video { padding: clamp(72px, 9vw, 130px) var(--gutter); display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 96px); align-items: center; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.video__copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.video__copy p { color: var(--ink-2); font-size: 18px; }
.phone--video { width: min(300px, 80vw); aspect-ratio: 9 / 16; border-radius: 40px; overflow: hidden; padding: 8px; }
.phone--video video { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; background: var(--green); }
@media (max-width: 760px) { .video { grid-template-columns: 1fr; justify-items: center; text-align: center; } .video__copy { align-items: center; } }

/* FAQ */
.faq { padding: 0 var(--gutter) clamp(72px, 9vw, 130px); }
.faq__list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; padding: 20px 30px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 99px; background: var(--sand-2); display: grid; place-items: center; font-weight: 800; transition: transform .25s, background .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--lime); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; }
.faq a { color: var(--green); font-weight: 700; }

/* Final */
.final { padding: 0 var(--gutter) clamp(72px, 9vw, 120px); }
.final__inner { max-width: var(--max); margin: 0 auto; background: var(--green); color: var(--white); border-radius: 32px; padding: clamp(44px, 7vw, 96px) clamp(24px, 5vw, 72px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; overflow: hidden; position: relative; }
.final__inner::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 2px dashed rgba(217,255,90,.25); right: -180px; top: -260px; }
.final h2 { font-size: clamp(36px, 6vw, 72px); font-weight: 900; }
.final p { color: var(--on-dark-2); max-width: 32em; font-size: 18px; }

/* Footer */
.foot { background: var(--green); color: var(--on-dark-2); padding: 36px var(--gutter) calc(36px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; font-size: 14px; }
.foot img { height: 56px; width: auto; }
.foot p { margin-right: auto; }
.foot a { color: var(--lime); font-weight: 700; text-decoration: none; }

/* Scroll reveal (only when JS runs, so the page reads fine without it) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

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