:root {
  --ink: #050704;
  --ink-2: #0a0c09;
  --card: #111611;
  --card-2: #161c16;
  --line: rgba(243, 245, 236, 0.09);
  --lime: #d4ff4a;
  --lime-ink: #111111;
  --text: #f3f5ec;
  --muted: #a8b09c;
  --radius: 28px;
  --wrap: min(1120px, calc(100% - 40px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  overflow-y: scroll;
  scroll-behavior: auto;
}

html,
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.2px;
  -webkit-font-smoothing: antialiased;
  touch-action: pan-y;
}

body {
  overflow-x: clip;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(720px 420px at 78% -8%, rgba(212, 255, 74, 0.05), transparent 62%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--lime);
  will-change: transform;
}

/* Type */

.h1,
.h2,
.h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 0.98;
  text-align: center;
  text-wrap: balance;
}

.h1 {
  font-size: clamp(40px, 8.4vw, 84px);
}

.h2 {
  font-size: clamp(30px, 5vw, 56px);
}

.h3 {
  font-size: 22px;
  letter-spacing: -0.8px;
}

.w {
  display: inline-block;
  will-change: transform, opacity;
}

.line {
  display: block;
}

.lede {
  margin: 18px auto 0;
  max-width: 22em;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

em {
  font-style: normal;
  color: var(--lime);
}

/* Buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.3px;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-lime {
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 12px 40px rgba(212, 255, 74, 0.18);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(243, 245, 236, 0.03);
  color: var(--text);
}

.btn-apple svg {
  width: 16px;
  height: 16px;
}

/* Nav */

.nav {
  position: relative;
  z-index: 50;
}

.nav__bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  gap: 16px;
}

.nav__logo {
  justify-self: start;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.9px;
}

.nav__links {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.nav__links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  justify-self: end;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.nav__menu {
  display: none;
  justify-self: end;
}

.nav__menu summary {
  list-style: none;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav__menu summary::-webkit-details-marker {
  display: none;
}

.nav__menu summary span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
}

.nav__panel {
  position: absolute;
  right: 20px;
  top: 76px;
  display: grid;
  gap: 14px;
  min-width: 200px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 22, 17, 0.96);
}

/* Hero */

.hero {
  position: relative;
  z-index: 1;
  padding: 28px 0 48px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 40px;
}

.hero__copy {
  width: 100%;
  text-align: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
}

.qr-dock {
  display: none;
}

.phone {
  position: relative;
  width: min(280px, 72vw);
  padding: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.phone--hero,
.phone--story {
  will-change: transform;
}

/* Pixel headlines */

.bill {
  position: relative;
  z-index: 1;
  height: 160vh;
}

.bill__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.bill__title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(44px, 12vw, 96px);
  font-weight: 800;
  letter-spacing: -2.4px;
  line-height: 0.96;
  text-align: center;
  text-wrap: balance;
}

.bill__cta {
  display: block;
  color: inherit;
  text-align: center;
}

.bill--cta {
  height: 180vh;
}

.bill--seq {
  height: 240vh;
}

.bill__stack {
  position: relative;
  width: min(920px, 100%);
  min-height: 2.4em;
}

.bill--seq .bill__title {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin: 0;
  max-width: none;
  transform: translateY(-50%);
}

.px {
  position: relative;
  display: inline-block;
}

.px b {
  font-weight: inherit;
}

.px i {
  position: absolute;
  left: 18%;
  top: 22%;
  width: 0.42em;
  height: 0.42em;
  background: var(--lime);
  pointer-events: none;
  will-change: transform;
}

/* Story — the cinematic core */

.story {
  position: relative;
  z-index: 1;
  height: 420vh;
}

.story--trio {
  height: 340vh;
}

.story__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.story__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 36px;
  width: var(--wrap);
}

.story__copy {
  text-align: center;
}

.story__beats {
  position: relative;
  min-height: 200px;
}

.beat {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

.beat.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.beat p {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 22em;
  text-align: center;
  text-wrap: balance;
}

.story__device {
  position: relative;
  display: grid;
  place-items: center;
}

.phone--story {
  z-index: 1;
  width: min(280px, 68vw);
}

.phone__stack {
  position: relative;
}

.phone__stack img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.phone__stack img:not(:first-child) {
  position: absolute;
  inset: 0;
  opacity: 0;
}

/* Sections */

.section {
  position: relative;
  z-index: 1;
  padding: 88px 0;
  scroll-margin-top: 88px;
}

.section--tight {
  padding: 64px 0;
}

.section__head {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

/* Rail */

.rail-pin {
  overflow: hidden;
}

.rail-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.rail {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 10px 8vw 24px;
  will-change: transform;
}

.rail .phone {
  width: 200px;
  flex: none;
}

.rail figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* Footer */

.foot {
  position: relative;
  z-index: 1;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.foot__row img {
  height: 22px;
  opacity: 0.92;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}

.foot a:hover {
  color: var(--text);
}

/* Legal */

.legal-page {
  position: relative;
  z-index: 1;
  padding: 36px 0 72px;
}

.legal-head {
  max-width: 720px;
  margin: 0 auto 24px;
}

.legal-head h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 0.98;
  text-align: left;
}

.legal-head p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-page main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(17, 22, 17, 0.72);
}

.legal-page main h2 {
  margin: 28px 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
  text-align: left;
  color: var(--text);
}

.legal-page main h2:first-child {
  margin-top: 0;
}

.legal-page p {
  margin: 0 0 16px;
  color: #d7ddcc;
}

.legal-page p:last-child {
  margin-bottom: 0;
}

.legal-page a {
  color: var(--lime);
}

.legal-mini {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding: 28px 24px 40px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.legal-mini a:hover {
  color: var(--text);
}

@media (min-width: 861px) {
  :root {
    --wrap: min(1200px, calc(100% - 64px));
  }

  body::before {
    background: radial-gradient(980px 560px at 72% -12%, rgba(212, 255, 74, 0.07), transparent 64%);
  }

  .nav__bar {
    min-height: 80px;
  }

  .nav__logo {
    font-size: 24px;
  }

  .nav__links {
    gap: 36px;
  }

  .hero {
    display: flex;
    align-items: center;
    min-height: calc(100svh - 80px);
    padding: 32px 0 56px;
  }

  .hero__grid {
    grid-template-columns: auto minmax(340px, 1fr);
    grid-template-areas: "stage copy";
    align-items: center;
    justify-content: center;
    justify-items: start;
    gap: 72px;
  }

  .hero__copy {
    grid-area: copy;
    text-align: left;
  }

  .hero .h1,
  .hero .lede {
    text-align: left;
  }

  .hero .h1 {
    font-size: clamp(52px, 5.6vw, 92px);
    letter-spacing: -2.4px;
  }

  .hero .lede {
    margin: 22px 0 0;
    max-width: 22em;
    font-size: 20px;
  }

  .hero__actions {
    justify-content: flex-start;
    margin-top: 32px;
  }

  .hero__stage {
    grid-area: stage;
  }

  .phone--hero {
    width: min(360px, 34vw);
  }

  .btn {
    min-height: 52px;
    padding: 0 24px;
  }

  .wrap.story__layout {
    width: auto;
    max-width: 100%;
    grid-template-columns: minmax(280px, 400px) auto;
    justify-content: center;
    align-items: center;
    gap: 80px;
  }

  .story__copy,
  .story .h2,
  .beat p {
    text-align: left;
  }

  .story .h2 {
    font-size: clamp(36px, 3.6vw, 52px);
    letter-spacing: -1.8px;
  }

  .beat p {
    margin: 16px 0 0;
    font-size: 18px;
    max-width: 28em;
  }

  .story__beats {
    min-height: 220px;
  }

  .phone--story {
    width: min(320px, 30vw);
  }

  .bill__title {
    font-size: clamp(72px, 7.2vw, 120px);
    letter-spacing: -3.2px;
    max-width: 14ch;
  }

  .section {
    padding: 112px 0;
  }

  .section__head {
    margin-bottom: 48px;
  }

  .rail {
    gap: 24px;
    padding: 12px 10vw 32px;
  }

  .rail .phone {
    width: 240px;
  }

  .rail figcaption {
    margin-top: 16px;
    font-size: 14px;
  }
}

@media (min-width: 1080px) {
  .hero {
    padding-left: 48px;
    padding-right: 216px;
  }

  .story__sticky {
    padding-left: 48px;
    padding-right: 216px;
  }

  .rail-pin {
    padding-right: 200px;
  }

  .legal-mini {
    padding-right: 216px;
  }

  .hero__grid {
    gap: 88px;
  }

  .phone--hero {
    width: 380px;
  }

  .phone--story {
    width: 340px;
  }

  .qr-dock {
    display: block;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
  }

  .qr {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: 176px;
    padding: 12px 12px 10px;
    border: 1px solid rgba(212, 255, 74, 0.22);
    border-radius: 24px;
    background: linear-gradient(180deg, #141a12 0%, #0a0c09 100%);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 255, 74, 0.06);
    transition: transform 0.35s var(--ease), border-color 0.25s;
  }

  .qr:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 255, 74, 0.5);
  }

  .qr img {
    width: 152px;
    height: 152px;
    border-radius: 16px;
  }

  .qr span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.2px;
  }
}

/* Mobile first cinematic layout */

@media (max-width: 860px) {
  :root {
    --wrap: min(1120px, calc(100% - 24px));
  }

  .nav__bar {
    grid-template-columns: 1fr auto;
  }

  .nav__links {
    display: none;
  }

  .nav__menu {
    display: block;
  }

  .nav__cta {
    display: none;
  }

  .hero__stage {
    min-height: 0;
    padding-top: 12px;
  }

  .qr-dock {
    display: none;
  }

  .h1 {
    letter-spacing: -1.1px;
  }

  .story {
    height: 380vh;
  }

  .story--trio {
    height: 300vh;
  }

  .story__sticky {
    padding-top: 16px;
    align-items: stretch;
  }

  .story__layout {
    grid-template-columns: 1fr;
    gap: 16px;
    height: calc(100svh - 16px);
    align-content: start;
  }

  .story__copy .h2 {
    font-size: clamp(26px, 7.4vw, 36px);
    text-wrap: balance;
  }

  .story__beats {
    min-height: 92px;
  }

  .beat p {
    display: none;
  }

  .phone--story {
    width: min(248px, 68vw);
  }

  .section {
    padding: 64px 0;
  }

  .bill {
    height: 150vh;
  }

  .bill--cta {
    height: 170vh;
  }

  .bill--seq {
    height: 220vh;
  }

  .bill__title {
    font-size: clamp(40px, 13vw, 64px);
    letter-spacing: -1.6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .w,
  .beat,
  .phone__stack img,
  .progress i,
  .px b,
  .bill__title {
    opacity: 1 !important;
    transform: none !important;
  }

  .bill {
    height: auto;
  }

  .bill__pin {
    position: relative;
    height: auto;
    min-height: 40vh;
    padding: 64px 24px;
  }

  .bill--seq .bill__title {
    position: relative;
    top: auto;
    transform: none;
    margin: 20px 0;
  }

  .px i {
    display: none;
  }

  .beat {
    position: relative;
    margin-bottom: 28px;
  }

  .story {
    height: auto;
  }

  .story__sticky {
    position: relative;
    height: auto;
  }

  .phone__stack img:not(:first-child) {
    position: relative;
    opacity: 1;
    margin-top: 12px;
  }
}
