/* The landing page at / (web/home.html). Built to the design canvas's "Website" page. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("montserrat-latin.woff2") format("woff2");
}

:root {
  --purple: #504184;
  --purple-deep: #3B2C6E;
  --gold: #E2B63D;
  --ink: #111114;
  --grey: #55525F;
  --grey-soft: #6E6E76;
  --line: #E5E5EA;
  --wash: #F5F5F7;
  --gutter: clamp(16px, 5vw, 64px);
  --spring: cubic-bezier(.2, .8, .2, 1.06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: Montserrat, "Avenir Next", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.site { overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: var(--purple); }
img { display: block; max-width: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.logo svg { width: 34px; height: 34px; }
.pill-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px;
  background: var(--purple); color: #FFFFFF; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--spring), background .2s;
}
.pill-btn:hover { background: #45387A; }
.pill-btn:active { transform: scale(.96); }

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 88px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.hero-title { font-size: clamp(38px, 5.6vw, 84px); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; }
.hero-title span { display: block; text-wrap: balance; }
.hero-title em, .wordmark-before { font-style: normal; color: var(--purple); }
.hero-sub { max-width: 36em; font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; line-height: 1.55; color: var(--grey); text-wrap: pretty; }

.badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.badges a { display: block; border-radius: 9px; transition: transform .2s var(--spring); }
.badges a:hover { transform: translateY(-2px); }
.badge-apple img { height: 52px; width: auto; }
/* Google's badge PNG carries its own clear space; crop it so both badges are the same height. */
.badge-play { width: 173px; height: 52px; overflow: hidden; }
.badge-play img { height: 76.5px; width: auto; margin: -12.2px 0 0 -12.2px; }

.stage {
  /* Crops the phones' bottoms; the 20px on top is headroom for the float, given back through the margin. */
  width: 100vw; max-height: clamp(320px, 36vw + 20px, 520px); overflow: hidden;
  padding-top: 20px; margin-top: clamp(-8px, 3vw - 20px, 20px);
  display: flex; justify-content: center; align-items: flex-start;
}
.phone { position: relative; flex: none; }
.phone.android { z-index: 1; width: clamp(160px, 19vw, 262px); margin-top: clamp(48px, 6vw, 84px); margin-right: -2.5vw; }
.phone.main { z-index: 2; width: clamp(210px, 24vw, 330px); }
.phone.side { z-index: 1; width: clamp(172px, 20.5vw, 282px); margin-top: clamp(48px, 6vw, 84px); margin-left: -2.5vw; }
.iphone-box { position: relative; width: 100%; aspect-ratio: 1037 / 2120; }
.iphone-screen { position: absolute; left: 5.304%; top: 2.5%; width: 89.296%; height: 95%; border-radius: 14.9% / 6.85%; overflow: hidden; background: #000000; }
.iphone-screen img, .android-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.iphone-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Be's spot in the Home screenshot; home.js draws a live Be over the still one. */
.hero-be { position: absolute; left: 2.94%; top: 49.64%; width: 20.9%; height: 9.61%; }
.android-frame {
  width: 100%; aspect-ratio: 654 / 1377; padding: 2.6%; border-radius: 10% / 4.75%;
  background: linear-gradient(145deg, #3A3842 0%, #141318 45%, #2A2830 100%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.1);
}
.android-screen { position: relative; width: 100%; height: 100%; border-radius: 8% / 3.7%; overflow: hidden; background: #000000; }
.camera { position: absolute; left: 50%; top: 1.3%; width: 3.4%; aspect-ratio: 1; margin-left: -1.7%; border-radius: 50%; background: #050507; }

/* Shared section bits */
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); }
.eyebrow.gold { color: var(--gold); }
.block { padding-block: clamp(80px, 10vw, 140px); display: flex; flex-direction: column; gap: clamp(32px, 4vw, 56px); }
.block-head { display: flex; flex-direction: column; gap: 20px; }
.block-head h2 { max-width: 14em; font-size: clamp(36px, 4.6vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; text-wrap: balance; }
.gold-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); }
.gold-dot.small { width: 8px; height: 8px; }

/* The problem */
.problem { background: #000000; color: #F5F5F7; }
.problem-in { padding-block: clamp(80px, 10vw, 160px); display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.thread { display: flex; flex-direction: column; gap: clamp(10px, 1.4vw, 18px); font-size: clamp(20px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.thread .re1 { color: rgba(245,245,247,.8); }
.thread .re2 { color: rgba(245,245,247,.62); }
.thread .re3 { color: rgba(245,245,247,.44); }
.thread .re1 span { color: #8E8E93; }
.thread .re2 span { color: #7A7A80; }
.thread .re3 span { color: #5C5C62; }
.later { display: flex; flex-direction: column; gap: 20px; }
.later h2 { font-size: clamp(52px, 9vw, 140px); font-weight: 800; letter-spacing: -.05em; line-height: .98; }
.later p { font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; line-height: 1.5; color: #A1A1A6; }
.pivot { display: flex; align-items: flex-start; gap: 18px; padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid #2C2C2E; }
.pivot .gold-dot { margin-top: .42em; }
.pivot p { max-width: 22em; font-size: clamp(26px, 3.4vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; text-wrap: balance; }

/* Who it's for */
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); column-gap: clamp(24px, 3vw, 40px); }
.who-item { padding-block: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.who-item h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.who-item p { font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--grey); }

/* A day with Before */
.day { background: var(--wash); }
.moments { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(40px, 4vw, 48px) clamp(24px, 3vw, 40px); }
.moment { display: flex; flex-direction: column; gap: 14px; }
.time { font-size: clamp(32px, 3vw, 44px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--purple); font-variant-numeric: tabular-nums; }
.moment h3 { min-height: 2.6em; font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; text-wrap: balance; }
.note, .team { border-radius: 24px; background: #FFFFFF; box-shadow: 0 20px 50px rgba(20,14,40,.1); }
.note { padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.note-icon { flex: none; width: 42px; height: 42px; padding: 7px; border-radius: 10px; background: var(--purple); }
.note-icon svg { display: block; width: 100%; height: 100%; }
.note-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.35; color: var(--grey); }
.note-text p:first-child { display: flex; justify-content: space-between; gap: 8px; color: var(--grey-soft); }
.note-text strong { font-weight: 700; color: var(--ink); }
.team { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.team-grid { display: flex; gap: 10px; }
.avatars { display: flex; flex-direction: column; gap: 8px; }
.avatars span { width: 26px; height: 26px; border-radius: 50%; background: #EFECF8; color: var(--purple); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tracks { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.track { position: relative; height: 26px; border-radius: 7px; background: #F2F2F7; }
.track i { position: absolute; top: 0; bottom: 0; border-radius: 7px; background: #CFCDD6; }
.slot { position: absolute; top: -4px; bottom: -4px; left: 67%; width: 11%; border-radius: 7px; background: var(--gold); }
.team-note { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.live { padding: 18px; border-radius: 28px; background: #000000; color: #FFFFFF; display: flex; flex-direction: column; gap: 16px; }
.live-row { display: flex; align-items: center; gap: 12px; }
.live-row svg { flex: none; width: 34px; height: 34px; }
.live-what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.live-what strong { font-size: 16px; font-weight: 700; }
.live-what span { font-size: 13px; color: rgba(255,255,255,.7); }
.live-count { min-width: 2.6em; text-align: right; font-size: 26px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.live-bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; }
.live-bar i { display: block; width: 2%; height: 100%; border-radius: 4px; background: var(--gold); transition: width 1s linear; }
.join { padding: 9px 22px; border-radius: 999px; background: #FFFFFF; color: var(--purple); font-size: 15px; font-weight: 700; }

/* Meet Be: the app's Be overlay */
.be-sec {
  position: relative; overflow: hidden; color: #FFFFFF;
  background:
    radial-gradient(55% 45% at 50% 64%, #33256A 0%, rgba(51,37,106,0) 72%),
    radial-gradient(45% 35% at 16% 10%, rgba(160,148,190,.55) 0%, rgba(160,148,190,0) 70%),
    radial-gradient(40% 30% at 88% 28%, rgba(226,182,61,.12) 0%, rgba(226,182,61,0) 70%),
    linear-gradient(180deg, #6B6290 0%, #4B4074 55%, #3A2F63 100%);
}
.dust {
  position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 10px rgba(226,182,61,.7); animation: drift var(--t) ease-in-out var(--f) infinite alternate;
}
.be-in { position: relative; max-width: 880px; padding-block: clamp(80px, 10vw, 140px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.be-title { font-size: clamp(52px, 7vw, 104px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.be-title span { color: var(--gold); }
.be-sub { max-width: 30em; font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; line-height: 1.55; color: rgba(255,255,255,.8); }
.be-btn { appearance: none; -webkit-appearance: none; border: 0; padding: 0; margin-top: 4px; background: transparent; cursor: pointer; border-radius: 50%; width: clamp(240px, 30vw, 340px); aspect-ratio: 1; -webkit-tap-highlight-color: transparent; }
.be-btn canvas { display: block; width: 100%; height: 100%; }
.be-btn:focus-visible, .chip:focus-visible, .badges a:focus-visible, .pill-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.convo { width: 100%; min-height: 330px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.quote { font-size: 18px; font-weight: 600; color: rgba(255,255,255,.74); }
.answer-box { position: relative; width: 100%; }
.answer { font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.3; letter-spacing: -.015em; text-wrap: balance; }
.answer span { transition: opacity .35s ease; }
.answer span.unsaid { opacity: 0; }
.dots { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); display: flex; gap: 8px; }
.dots[hidden] { display: none; }
.dots i { display: block; width: 10px; height: 10px; border-radius: 50%; background: #FFFFFF; animation: dot 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
.cards { width: 100%; max-width: 580px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: left; }
.card, .undo { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); animation: rise .6s cubic-bezier(.2,.8,.2,1.1) both; }
.card { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 44px 16px 18px; border-radius: 22px; position: relative; }
.card::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -5px; border: solid rgba(255,255,255,.7); border-width: 2.4px 2.4px 0 0; transform: rotate(45deg); }
.card strong { display: block; font-size: 17px; font-weight: 700; }
.card span { display: block; margin-top: 3px; font-size: 14px; font-weight: 500; line-height: 1.4; color: rgba(255,255,255,.78); }
.undo { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.undo svg { width: 18px; height: 18px; }
.undo b { padding: 8px 16px; border-radius: 999px; background: #FFFFFF; color: var(--purple-deep); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.14); color: #FFFFFF;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .2s cubic-bezier(.2,.8,.2,1.4), background .3s, color .3s;
}
.chip:hover { background: rgba(255,255,255,.22); }
.chip.on { background: #FFFFFF; color: var(--purple-deep); }
.chip:active { transform: scale(.95); }

/* Get the app */
.get { padding-block: clamp(80px, 10vw, 160px) clamp(56px, 7vw, 96px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.wordmark { display: flex; align-items: center; gap: clamp(8px, 1.2vw, 16px); font-size: clamp(60px, 9vw, 132px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.wordmark svg { width: clamp(60px, 8.5vw, 124px); height: clamp(60px, 8.5vw, 124px); overflow: visible; }
.tagline { font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; }

/* Footer */
.foot { padding-bottom: 40px; }
.foot-in { padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; font-weight: 500; color: var(--grey-soft); }
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot a { color: var(--grey); text-decoration: none; }
.foot a:hover { color: var(--purple); }

/* Not found (templates/404.html): Be on the Meet Be background, filling the screen */
.lost { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.lost .logo { color: #FFFFFF; }
.lost-in { flex: 1; max-width: 880px; padding-block: 8px clamp(56px, 8vw, 96px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; }
.lost .be-btn { width: clamp(200px, 26vw, 300px); margin-top: 0; }
.lost-title { font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -.045em; line-height: 1.06; text-wrap: balance; }
.lost-title span { color: var(--gold); }
.pill-btn.light { margin-top: 8px; background: #FFFFFF; color: var(--purple); }
.pill-btn.light:hover { background: #ECEAF3; }

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { from { transform: translate(0, 0); opacity: .25; } to { transform: translate(18px, -34px); opacity: .75; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } }
@keyframes goldPulse { 0%, 100% { box-shadow: 0 6px 18px rgba(226,182,61,.45); } 50% { box-shadow: 0 6px 34px rgba(226,182,61,.9); } }
@keyframes dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-6px); } }
.hi { animation: rise 1s cubic-bezier(.2,.8,.2,1) var(--d, 0s) both; }
.float { animation: floaty 7s ease-in-out var(--f, 0s) infinite; }
.pulse { animation: pulse 1.8s ease-out infinite; }
.gold-pulse { animation: goldPulse 2.4s ease-in-out infinite; }

/* Scroll reveals: home.js marks the page with data-anim, then data-in on each element as it comes into view. */
[data-anim] [data-rv] { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform 1s var(--spring) var(--d, 0s); }
[data-anim] [data-rv="drop"] { transform: translateY(-40px); }
[data-anim] [data-rv="left"] { transform: translateX(-48px); }
[data-anim] [data-rv="bar"] { opacity: 1; transform: scaleX(0); transform-origin: left center; }
[data-anim] [data-rv="slot"] { transform: translateY(-22px) scaleY(.4); }
[data-anim] svg [data-rv] { transform-box: fill-box; transform-origin: center; }
[data-anim] [data-rv][data-in] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hi, .float, .pulse, .gold-pulse, .dust, .dots i, .card, .undo { animation: none !important; }
  [data-anim] [data-rv] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
