/* Layout concept: one Friday evening, told in order, each section stamped with the time it happens. */
:root {
  --ink: #2B2036;
  --ink-soft: #62566F;
  --plum: #3A2A52;
  --ember: #E9823B;
  --mint: #8FDBB8;
  --green: #2F7045;
  --green-soft: #DFF3E7;
  --blush: #FFF2E8;
  --lilac: #F2EEF9;
  --apricot: #FFE8D1;
  --white: #FFFFFF;
  --line: rgba(43, 32, 54, 0.12);
  --display: "DM Sans", "Avenir Next", system-ui, sans-serif;
  --body: "Source Sans 3", "Avenir Next", system-ui, sans-serif;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--blush); color: var(--ink); font: 400 19px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.band { padding-block: clamp(64px, 9vw, 128px); }
.stamp { display: inline-block; font: 700 15px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--white); background: var(--plum); padding: 8px 12px; border-radius: 999px; }
.lede { font-size: clamp(19px, 2vw, 23px); line-height: 1.42; color: var(--ink-soft); max-width: 30em; }
.stack { display: grid; gap: 22px; justify-items: start; align-content: center; min-width: 0; }

/* Nav */
.nav { position: absolute; z-index: 5; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: max(18px, env(safe-area-inset-top, 0px)) var(--gutter-r) 18px var(--gutter-l); color: var(--white); }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 800 24px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.nav-get { font: 700 15px/1 var(--display); text-decoration: none; padding: 11px 15px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.4); }

/* Hero: tapping the button moves the art from home on the couch to out with friends */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--plum); color: var(--white); min-height: min(100svh, 880px); display: flex; flex-direction: column; justify-content: space-between; padding: 76px var(--gutter-r) 34px var(--gutter-l); text-align: center; }
.hero-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transition: opacity 900ms ease, transform 1400ms cubic-bezier(.2,.7,.2,1); }
.hero-art.in { opacity: 0; transform: scale(1.06); }
body.is-in .hero-art.in { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(40, 24, 62, 0.62) 0%, rgba(40, 24, 62, 0.08) 38%, rgba(40, 24, 62, 0) 56%, rgba(32, 18, 48, 0.78) 100%); }
.hero h1 { font-size: clamp(58px, 8.4vw, 124px); line-height: 0.92; letter-spacing: -0.05em; text-shadow: 0 2px 24px rgba(30, 16, 48, 0.35); }
.hero-action { display: grid; justify-items: center; gap: 14px; }
.in-btn { display: inline-flex; align-items: center; gap: 14px; padding: 15px 34px 15px 17px; border: 0; border-radius: 999px; background: var(--white); color: var(--ink); font: 800 clamp(30px, 4vw, 42px)/1 var(--display); letter-spacing: -0.03em; cursor: pointer; box-shadow: 0 16px 44px rgba(20, 10, 34, 0.42); transition: transform 180ms ease; animation: call 2.4s ease-in-out infinite; }
.in-btn:hover { transform: translateY(-2px); }
.in-btn:active { transform: scale(0.97); }
body.is-in .in-btn { animation: none; }
.in-check { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #E5E1EA; transition: background 300ms ease; }
.in-check svg { width: 28px; height: 28px; opacity: 0.35; transition: opacity 300ms ease; }
body.is-in .in-check { background: var(--mint); }
body.is-in .in-check svg { opacity: 1; }
@keyframes call { 0%, 100% { box-shadow: 0 16px 44px rgba(20, 10, 34, 0.42), 0 0 0 0 rgba(143, 219, 184, 0.75); } 60% { box-shadow: 0 16px 44px rgba(20, 10, 34, 0.42), 0 0 0 20px rgba(143, 219, 184, 0); } }
.hero-note { font-size: 19px; line-height: 1.3; font-weight: 500; min-height: 2.6em; text-wrap: balance; max-width: 24em; }
.hero-friends { display: flex; height: 0; opacity: 0; overflow: hidden; transition: height 400ms ease, opacity 400ms ease; }
body.is-in .hero-friends { height: 50px; opacity: 1; }
.av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 800 17px/1 var(--display); color: var(--white); border: 3px solid var(--white); background: var(--c, var(--ember)); flex: none; }
.av + .av { margin-left: -9px; }
.av.sam { --c: #5C99FA; } .av.maya { --c: #AD80EB; } .av.priya { --c: #F58C70; } .av.jordan { --c: #4FAE86; } .av.you { --c: var(--plum); }
.hero-next { font: 700 16px/1 var(--display); color: var(--white); opacity: 0; pointer-events: none; transition: opacity 400ms ease 500ms; }
body.is-in .hero-next { opacity: 1; pointer-events: auto; }

/* Problem */
.problem { background: var(--blush); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.clip { width: 100%; max-width: 460px; justify-self: end; border-radius: 30px; aspect-ratio: 720 / 922; object-fit: cover; background: #F4F7F3; box-shadow: 0 24px 60px rgba(90, 56, 30, 0.14); }

/* Plan */
.plan { background: var(--lilac); }
.plan .split { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); }
.phones { display: flex; justify-content: center; gap: clamp(14px, 3vw, 34px); align-items: flex-start; min-width: 0; }
.phone-col { display: grid; gap: 14px; flex: 0 1 280px; min-width: 0; }
.phone-col:last-child { margin-top: clamp(28px, 6vw, 72px); }
.phone { border-radius: clamp(26px, 4vw, 42px); padding: clamp(5px, 0.8vw, 9px); background: #17121D; box-shadow: 0 26px 60px rgba(58, 42, 82, 0.26); }
.phone video { width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; border-radius: clamp(21px, 3.3vw, 34px); background: var(--white); }
.phone-cap { font: 700 16px/1.25 var(--display); text-align: center; }
.fine { font-size: 16px; color: var(--ink-soft); }

/* Vote */
.vote { background: var(--apricot); }
.vote-head { display: grid; gap: 20px; justify-items: start; margin-bottom: clamp(30px, 4vw, 48px); }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); }
.option { position: relative; display: grid; grid-template-rows: auto 1fr; padding: 0; text-align: left; border: 3px solid transparent; border-radius: 28px; overflow: hidden; background: var(--white); cursor: pointer; box-shadow: 0 16px 40px rgba(120, 70, 30, 0.13); transition: transform 260ms ease, opacity 300ms ease, border-color 260ms ease; }
.option:hover { transform: translateY(-4px); }
.option img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.opt-body { display: grid; gap: 7px; padding: clamp(14px, 2vw, 24px); align-content: start; }
.opt-name { font: 800 clamp(21px, 2.8vw, 32px)/1.05 var(--display); letter-spacing: -0.03em; }
.opt-meta { font-size: 16px; line-height: 1.25; color: var(--ink-soft); }
.opt-votes { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.opt-avs { display: flex; }
.opt-avs .av { width: 36px; height: 36px; font-size: 14px; border-width: 2px; }
.opt-count { font: 700 16px/1 var(--display); font-variant-numeric: tabular-nums; }
.opt-win { position: absolute; top: 14px; left: 14px; font: 800 15px/1 var(--display); padding: 9px 13px; border-radius: 999px; background: var(--green); color: var(--white); opacity: 0; transform: scale(0.85); transition: opacity 260ms ease 200ms, transform 260ms ease 200ms; }
.option.won { border-color: var(--green); }
.option.won .opt-win { opacity: 1; transform: none; }
.option.lost { opacity: 0.55; }
.option.lost:hover { opacity: 0.85; }
.vote-status { margin-top: 24px; font: 700 clamp(19px, 2vw, 23px)/1.25 var(--display); letter-spacing: -0.015em; }

/* Founder */
.founder { background: var(--green-soft); }
.founder .split { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr); }
.film { position: relative; width: 100%; max-width: 330px; justify-self: center; border-radius: 26px; overflow: hidden; background: var(--plum); aspect-ratio: 9 / 16; box-shadow: 0 24px 56px rgba(47, 112, 69, 0.24); }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film-play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 22px; border: 0; background: linear-gradient(180deg, rgba(30, 18, 44, 0) 45%, rgba(30, 18, 44, 0.7)); cursor: pointer; }
.film-play span { display: inline-flex; align-items: center; gap: 10px; font: 800 18px/1 var(--display); padding: 14px 20px; border-radius: 999px; background: var(--white); color: var(--ink); }
.film-play[hidden] { display: none; }
.quote { font-size: clamp(36px, 5vw, 64px); }

/* Close */
.close { background: #F8E3CC; }
.close-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.close-art { min-height: 620px; background: url("assets/home/cafe.jpg") 50% 45% / cover no-repeat; }
.close-copy { display: grid; gap: 22px; justify-items: start; align-content: center; padding: clamp(48px, 7vw, 96px) var(--gutter-r) clamp(48px, 7vw, 96px) clamp(28px, 6vw, 84px); min-width: 0; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 15px 24px; border-radius: 16px; background: var(--ink); color: var(--white); font: 800 19px/1.1 var(--display); text-decoration: none; transition: transform 180ms ease; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 24px; height: 28px; fill: currentColor; flex: none; }
.foot { background: var(--ink); color: rgba(255, 255, 255, 0.82); padding-block: 26px; font-size: 16px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 800px) {
  .split, .plan .split, .founder .split { grid-template-columns: minmax(0, 1fr); }
  .clip { justify-self: center; }
  .close-grid { grid-template-columns: minmax(0, 1fr); }
  .close-art { min-height: 0; aspect-ratio: 4 / 3; background-position: 50% 42%; }
  .close-copy { padding-left: var(--gutter-l); }
  .plan .phones { order: 2; }
  .hero { min-height: min(100svh, 760px); }
  .hero-art { object-position: 70% 50%; }
  .hero-art.in { object-position: 50% 50%; }
  .option { border-radius: 20px; }
  .opt-win { top: 8px; left: 8px; font-size: 13px; padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}
