/* The home page (round 316: direction B "Violet Hour", with C's vote).
   VOICE   the app's own night, warm and a little cinematic
   IDEA    the welcome film's violet hour: the site is the app after dark
   PICTURE the film, then one phone carrying a plan from idea to receipt,
           a vote you can cast, and a trip from dates to settling up
   COLOUR  near-black violet; violet identity, gold for time only, aqua yes,
           rose no - exactly BFTheme
   TYPE    Nunito 900 (the open stand-in for SF Rounded) + system text */
:root { color-scheme: dark; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--night); color: var(--ink-night); font: 17px/1.6 var(--text); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(5vw, 16px, env(safe-area-inset-left, 0px)); padding-right: max(5vw, 16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.03em; line-height: 1; margin: 0; }
h2 { font-size: clamp(40px, 5.6vw, 76px); font-weight: 900; }
.lede { color: #C9C7D6; font-size: clamp(17px, 1.5vw, 20px); max-width: 34em; }
.ghost { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 99px; color: #F2F1F7; text-decoration: none; font-weight: 700; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); transition: background .2s; }
.ghost:hover { background: rgba(255,255,255,.12); }
.ghost svg { width: 18px; height: 18px; }

/* nav: the app's floating pill tab bar, on the web */
.nav { position: fixed; z-index: 50; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 6px 6px 6px 8px; border-radius: 99px; background: rgba(28,26,42,.72); backdrop-filter: blur(22px) saturate(150%); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 16px 40px -18px rgba(0,0,0,.7); transition: transform .5s var(--ease), opacity .4s; width: max-content; max-width: calc(100vw - 24px); }
.nav.hide { transform: translate(-50%, -140%); opacity: 0; }
.nav .brand { display: flex; align-items: center; gap: 9px; padding-right: 10px; text-decoration: none; font: 900 17px var(--display); letter-spacing: -.02em; white-space: nowrap; }
.nav .brand .mark { width: 32px; }
.nav a.l { padding: 8px 12px; border-radius: 99px; text-decoration: none; color: #B9B7C8; font-weight: 650; font-size: 14.5px; white-space: nowrap; }
.nav a.l:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav .get { margin-left: 4px; padding: 9px 16px; border-radius: 99px; background: var(--violet); color: #120A33; font-weight: 800; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
@media (max-width: 1000px) { .nav a.l { display: none; } }

/* hero */
.hero { position: relative; min-height: min(100svh, 980px); display: grid; align-items: center; padding-block: 120px 80px; overflow: hidden; isolation: isolate; }
.hero .amb { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; opacity: .5; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 78% 30%, rgba(143,123,255,.28), transparent 70%), linear-gradient(180deg, rgba(13,13,21,.55), rgba(13,13,21,.72) 55%, var(--night)); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: center; width: 100%; }
.hero h1 { font-size: clamp(52px, 7.4vw, 112px); font-weight: 900; letter-spacing: -.045em; line-height: .94; }
.hero h1 span { display: block; }
.motion .hero h1 span { animation: rise 1.1s var(--ease) both; }
.motion .hero h1 span + span { animation-delay: .14s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
.hero .lede { margin: 26px 0 30px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.stage { position: relative; display: grid; place-items: center; min-height: 700px; }
.stage .phone { --wn: 316; rotate: 3deg; }
.orb { position: absolute; z-index: 3; }
.orb > * { animation: bob 6s ease-in-out infinite; }
.orb:nth-child(odd) > * { animation-duration: 7.5s; animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.mini { padding: 14px 16px; border-radius: 20px; background: rgba(36,34,52,.72); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); }
.mini b { display: block; font: 800 17px var(--display); letter-spacing: -.02em; margin-bottom: 8px; }
.mini .row { display: flex; gap: 6px; align-items: center; }
.big-avs .av { width: 40px; height: 40px; font-size: 16px; box-shadow: 0 0 0 3px var(--night); }
.big-avs .av + .av { margin-left: -12px; }
@media (max-width: 900px) {
  .hero { padding-block: 110px 40px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 560px; }
  .stage .phone { --wn: 250; }
}

/* stories: a phone pinned while the scroll tells it what happens next */
.story { position: relative; height: 560vh; overflow-x: clip; }
.story .pin { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; }
.story .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; width: 100%; }
.story.flip .device { order: -1; }
.story h2 { margin-bottom: 30px; font-size: clamp(36px, 4.4vw, 60px); }
.steps { position: relative; list-style: none; margin: 0; padding: 0 0 0 26px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; top: 6px; width: 3px; border-radius: 2px; }
.steps::before { bottom: 6px; background: rgba(255,255,255,.08); }
.steps::after { height: calc(var(--p, 0) * (100% - 12px)); background: var(--violet); }
.story.trip .steps::after { background: var(--gold); }
.step { padding: 10px 0; transition: opacity .45s; opacity: .34; }
.step.on { opacity: 1; }
.step h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 850; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.step h3 .chip { font-family: var(--text); letter-spacing: 0; }
.step p { margin: 0; max-height: 0; overflow: hidden; color: #C9C7D6; transition: max-height .6s var(--ease), margin .6s var(--ease); }
.step.on p { max-height: 9em; margin-top: 10px; }
.story .note { color: #77758C; font-size: 14px; margin: 18px 0 0 26px; }
.device { position: relative; justify-self: center; }
.device .phone { --wn: 330; position: relative; z-index: 2; }
.device .confetti { left: -70%; right: -70%; top: -20%; bottom: -10%; width: 240%; height: 130%; z-index: 1; }
.lockping { position: absolute; z-index: 4; right: -14px; top: -14px; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(255,184,77,.18); transform: scale(0); transition: transform .6s var(--spring); }
.lockping.on { transform: scale(1); }
.lockping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--gold); opacity: 0; }
.motion .lockping.on::after { animation: ping-ring 2.4s .3s ease-out infinite; }
.pushes { position: absolute; z-index: 5; left: -18%; right: -18%; top: 64px; display: grid; }
.pushes .push { grid-area: 1 / 1; transform: translateY(-30px) scale(.96); opacity: 0; transition: transform .6s var(--spring), opacity .35s; }
.pushes .push.on { transform: none; opacity: 1; }
.story .scr .row.out { opacity: .3; transition: opacity .4s; }
@media (max-width: 900px) {
  .story { height: 600vh; }
  .story .wrap { grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; padding-top: 74px; }
  .story h2 { display: none; }
  .device, .story.flip .device { order: -1; }
  .device .phone { --wn: 205; }
  .device .confetti { left: -38%; right: -38%; width: 176%; }
  .steps { padding-left: 18px; min-height: 13em; }
  .step { display: none; padding: 0; }
  .step.on { display: block; }
  .story .note { margin-left: 18px; }
  .pushes { left: -40%; right: -40%; top: 30px; }
  .pushes .push { font-size: 12.5px; }
}

/* the vote you can cast */
.vote { position: relative; padding-block: clamp(90px, 11vw, 160px); overflow: hidden; background: linear-gradient(180deg, var(--night), #120F22 50%, var(--night)); }
.vote .confetti { inset: 0; width: 100%; height: 100%; z-index: 3; }
.vote .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.vote h2 { font-size: clamp(40px, 4.6vw, 68px); }
.demo { position: relative; z-index: 2; padding: clamp(20px, 2.4vw, 30px); border-radius: 30px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 90px -50px rgba(143,123,255,.6); }
.demo .top { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.demo h3 { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -.03em; }
.demo .where { color: #A9A7BC; margin: 4px 0 14px; }
.demo .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.demo .opt { margin-top: 18px; padding: 18px; border-radius: 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.demo .when { font: 750 18px var(--text); }
.demo .faces { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.demo .face { display: grid; justify-items: center; gap: 4px; font-size: 12.5px; color: #A9A7BC; }
.demo .face .av { width: 44px; height: 44px; font-size: 17px; }
.demo .face .av .tk { width: 18px; height: 18px; } .demo .face .av .tk svg { width: 11px; height: 11px; }
.demo .face .v { font-weight: 800; }
.demo .face .v.y { color: var(--aqua); } .demo .face .v.m { color: var(--gold); } .demo .face .v.x { color: var(--rose); }
.demo .face.you .av { background: transparent; box-shadow: inset 0 0 0 2px var(--violet); color: var(--violet); }
.motion .demo .face.wait .av { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: scale(1.08); } }
.demo .quorum { height: 10px; border-radius: 5px; background: rgba(255,255,255,.08); margin-top: 16px; overflow: hidden; }
.demo .quorum i { display: block; height: 100%; width: calc(var(--q) * 100%); background: var(--aqua); border-radius: 5px; transition: width .7s var(--ease); }
.demo .qlabel { margin-top: 8px; color: #A9A7BC; font-size: 14px; }
.demo .btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.demo .btns button { height: 56px; border-radius: 28px; border: 0; font: 850 18px var(--text); cursor: pointer; transition: transform .5s var(--spring), background .3s, color .3s; }
.demo .btns button:active { transform: scale(.95); }
.demo .btns .y { background: rgba(87,230,201,.14); color: var(--aqua); } .demo .btns .y:hover, .demo .btns .y[aria-pressed="true"] { background: var(--aqua); color: #04251E; }
.demo .btns .m { background: rgba(255,184,77,.14); color: var(--gold); } .demo .btns .m:hover, .demo .btns .m[aria-pressed="true"] { background: var(--gold); color: #2A1A00; }
.demo .btns .x { background: rgba(255,107,139,.14); color: var(--rose); } .demo .btns .x:hover, .demo .btns .x[aria-pressed="true"] { background: var(--rose); color: #2B0610; }
.demo .msg { min-height: 3.2em; margin: 14px 0 0; color: #C9C7D6; font-size: 15px; }
.demo .locked { position: absolute; inset: 0; border-radius: inherit; padding: inherit; background: #17152A; display: grid; align-content: center; gap: 14px; opacity: 0; transform: scale(.96); visibility: hidden; transition: opacity .5s, transform .7s var(--spring), visibility 0s .5s; }
.demo.done .locked { opacity: 1; transform: none; visibility: visible; transition: opacity .5s, transform .7s var(--spring); }
.demo .locked h3 { font-size: clamp(32px, 3.2vw, 46px); }
.demo .locked p { margin: 0; color: #C9C7D6; }
.demo .again { justify-self: start; padding: 12px 20px; border-radius: 99px; border: 0; background: rgba(255,255,255,.08); color: var(--violet); font: 800 16px var(--text); cursor: pointer; }
.demo .ping { position: absolute; right: -14px; top: -14px; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .6s .2s var(--spring); z-index: 4; }
.demo.done .ping { transform: scale(1); }
.demo .ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--gold); opacity: 0; }
.motion .demo.done .ping::after { animation: ping-ring 2.4s .6s ease-out infinite; }
@media (max-width: 860px) { .vote .wrap { grid-template-columns: minmax(0, 1fr); } }

/* discovery: a native scroller of ideas */
.disc { padding-block: clamp(80px, 12vw, 160px) 40px; }
.disc .head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 34px; }
.disc .head p { margin: 18px 0 0; }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #F2F1F7; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .4s var(--spring); }
.arrows button:hover { background: rgba(255,255,255,.12); }
.arrows button:active { transform: scale(.94); }
.arrows svg { width: 20px; height: 20px; }
.rail-x { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(5vw, 16px) 30px; scroll-padding-inline: max(5vw, 16px); scrollbar-width: none; }
.rail-x::-webkit-scrollbar { display: none; }
@media (min-width: 1360px) { .rail-x { padding-inline: calc((100vw - 1240px) / 2 + 5vw); scroll-padding-inline: calc((100vw - 1240px) / 2 + 5vw); } }
.idea { flex: none; width: min(330px, 78vw); scroll-snap-align: start; border-radius: 24px; padding: 12px 12px 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); transition: transform .5s var(--spring), border-color .3s; }
.idea:hover { transform: translateY(-6px); border-color: rgba(143,123,255,.4); }
.idea .pic { height: 190px; border-radius: 16px; overflow: hidden; position: relative; background: #1A1926 center / cover; }
.idea .pic svg { position: absolute; inset: -10% -14%; width: 128%; height: 120%; transform: translateX(var(--sx, 0)); }
.idea .cat { margin: 16px 6px 4px; font: 800 12px var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.idea h3 { margin: 0 6px; font-size: 24px; font-weight: 850; letter-spacing: -.02em; }
.idea .where { margin: 4px 6px 14px; color: #9C9AB0; font-size: 15px; }
.idea .foot { display: flex; justify-content: space-between; align-items: center; margin: 0 6px; }
.idea .prop { display: inline-flex; gap: 6px; align-items: center; font-weight: 750; font-size: 15px; }
.idea .prop svg { width: 18px; height: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.filters .chip { font-size: 14px; padding: 9px 14px; cursor: pointer; border: 0; }
.disc .note { color: #77758C; font-size: 14px; margin-top: 4px; }

/* privacy: the words light up as you read */
.private { padding-block: clamp(90px, 12vw, 170px); background: linear-gradient(180deg, var(--night), #120F22 40%, var(--night)); }
.kinetic { font: 850 clamp(30px, 4.2vw, 60px)/1.12 var(--display); letter-spacing: -.03em; margin: 0; max-width: 20em; }
.motion .kinetic .w { opacity: .16; transition: opacity .3s; }
.motion .kinetic .w.lit { opacity: 1; }
.kinetic .v { color: var(--violet); }
.kinetic .a { color: var(--aqua); }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 56px; }
.pcard { padding: 22px; border-radius: 22px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.pcard svg { width: 30px; height: 30px; color: var(--violet); }
.pcard b { display: block; font: 800 19px var(--display); letter-spacing: -.01em; margin: 14px 0 6px; }
.pcard p { margin: 0; color: #A9A7BC; font-size: 15px; line-height: 1.5; }
.private .more { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pgrid { grid-template-columns: minmax(0, 1fr); } }

/* plus */
.plus { padding-block: clamp(80px, 10vw, 140px); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 40px; align-items: stretch; }
.plan { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); }
.plan.p { background: linear-gradient(rgba(143,123,255,.1), rgba(143,123,255,.03)); border-color: rgba(143,123,255,.45); box-shadow: 0 30px 80px -40px rgba(143,123,255,.55); }
.plan h3 { font-size: 40px; font-weight: 900; }
.plan .who { color: #A9A7BC; margin: 8px 0 22px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(87,230,201,.16); color: var(--aqua); stroke-width: 3; margin-top: 2px; }
.plan .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.fine { color: #8D8BA0; font-size: 14px; margin-top: 22px; max-width: 62em; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* outro: the film's faces, in drifting columns */
.outro { position: relative; height: clamp(640px, 110vh, 1000px); overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.cols { position: absolute; inset: -20% -4%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; z-index: -2; }
.cols > div { display: grid; gap: 14px; align-content: start; }
.cols img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; }
.outro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 50% 50%, rgba(13,13,21,.86), rgba(13,13,21,.55)), linear-gradient(180deg, var(--night), transparent 22%, transparent 78%, var(--night)); }
.outro .wrap { text-align: center; display: grid; justify-items: center; }
.outro .mark { width: 84px; margin-bottom: 26px; }
.outro h2 { max-width: 11em; }
.outro p { color: #C9C7D6; margin: 20px 0 30px; }
@media (max-width: 700px) { .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cols > div:nth-child(4) { display: none; } }

footer { padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,.07); color: #A9A7BC; font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
footer .brand { display: flex; gap: 12px; align-items: center; color: #F2F1F7; font: 900 20px var(--display); text-decoration: none; }
footer .brand .mark { width: 40px; }
footer h4 { margin: 0 0 12px; color: #F2F1F7; font: 800 15px var(--text); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; } footer a:hover { color: #fff; }
footer .legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.07); font-size: 13.5px; color: #77758C; }
@media (max-width: 700px) { footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } footer .wrap > :first-child { grid-column: 1 / -1; } }
