:root {
  --ink: #0a0d15;
  --ink-2: #10141f;
  --ink-3: #171c2a;
  --cream: #f2e7cf;
  --cream-2: rgba(242, 231, 207, .74);
  --muted: rgba(242, 231, 207, .56);
  --line: rgba(242, 231, 207, .12);
  --gold: #d8b478;
  --gold-hi: #e6c890;
  --gold-deep: #b48430;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --gut: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.015em; }
h1 em, h2 em { font-style: italic; color: var(--gold-hi); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 10px;
  background: var(--gold); color: #17110a;
  font: 600 16px/1 var(--sans); letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--gold-hi); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .step:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 8px; }
.btn-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(242, 231, 207, .35); }
.btn-ghost:hover { background: rgba(242, 231, 207, .08); }

/* Header */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 18px/1 var(--sans); letter-spacing: -.01em; }
.brand img { width: 34px; height: auto; }
.brand-sm { font-size: 15px; gap: 8px; }
.brand-sm img { width: 24px; }

/* Forms */
.join-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 470px; }
.join-form input[type="email"] {
  flex: 1 1 220px; min-width: 0; height: 52px; padding: 0 16px;
  border-radius: 10px; border: 1px solid rgba(242, 231, 207, .22);
  background: rgba(10, 13, 21, .62); color: var(--cream);
  font: 400 16px/1 var(--sans);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.join-form input[type="email"]::placeholder { color: rgba(242, 231, 207, .5); }
.join-form input[type="email"]:focus { border-color: var(--gold); outline: none; }
.join-form .btn { flex: 0 0 auto; }
.join-form .btn[disabled] { opacity: .7; cursor: default; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-msg { flex-basis: 100%; margin: 0; min-height: 0; font-size: 14.5px; color: #f0a48a; }
.form-msg:empty { display: none; }
.fine { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

.joined { max-width: 470px; padding: 18px 20px; border-radius: 12px; border: 1px solid rgba(216, 180, 120, .38); background: rgba(10, 13, 21, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.joined .joined-title { margin: 0; font: 400 26px/1.15 var(--serif); color: var(--gold-hi); }
.joined p { margin: 6px 0 0; color: var(--cream-2); font-size: 15.5px; }
.share { margin-top: 14px; background: none; border: 0; padding: 0; color: var(--cream); font: 600 15px/1.2 var(--sans); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(242, 231, 207, .4); cursor: pointer; }
.share:hover { text-decoration-color: var(--gold); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 120px 0 40px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0 0 auto 0; width: 100%; height: 82svh; object-fit: cover; object-position: 50% 30%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 13, 21, .55) 0%, rgba(10, 13, 21, .15) 22%, rgba(10, 13, 21, .2) 40%, rgba(10, 13, 21, .86) 62%, var(--ink) 80%);
}
.hero-grid { display: block; }
.hero-art { display: none; }
.hero h1 { font-size: clamp(46px, 12.4vw, 92px); line-height: .98; max-width: 11ch; }
.hero-sub { margin: 18px 0 26px; font-size: 18px; line-height: 1.55; color: var(--cream-2); max-width: 34em; }

/* How it works */
.how { padding: 96px 0 104px; background: var(--ink); }
.how-grid { display: grid; gap: 40px; }
.how h2 { font-size: clamp(36px, 8vw, 56px); line-height: 1.05; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 6px; }
.step {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 18px 0 18px; background: none; border: 0; color: inherit; font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.step-bar { display: block; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 16px; }
.step-bar > span { display: block; height: 100%; width: 0; background: var(--gold); }
.step.is-on .step-bar > span { width: 100%; }
.step.is-running .step-bar > span { width: 0; animation: fill var(--dur, 4s) linear forwards; }
@keyframes fill { to { width: 100%; } }
.step-title { display: block; font: 400 26px/1.15 var(--serif); color: var(--muted); transition: color .3s ease; }
.step-text { display: block; margin-top: 8px; font-size: 16.5px; color: var(--muted); max-width: 30em; transition: color .3s ease; }
.step.is-on .step-title { color: var(--cream); }
.step.is-on .step-text { color: var(--cream-2); }

/* Phone */
.phone-wrap { display: flex; justify-content: center; order: -1; }
.phone {
  --pw: 286px;
  width: var(--pw); aspect-ratio: 9 / 19.3; padding: 10px; border-radius: 48px;
  background: linear-gradient(160deg, #2a2d36, #0d0f14 40%, #1c1f27);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 120px -40px rgba(216, 180, 120, .25);
}
.screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #111420; color: #f5efe2; font-family: var(--sans); }
.island { position: absolute; top: 9px; left: 50%; width: 88px; height: 25px; margin-left: -44px; background: #000; border-radius: 20px; z-index: 5; }
.status { position: absolute; top: 0; left: 0; right: 0; height: 44px; padding: 14px 24px 0 30px; display: flex; justify-content: space-between; z-index: 4; font: 600 13px/1 var(--sans); color: #fff; }
.status-icons { display: inline-flex; gap: 5px; align-items: center; }
.status-icons svg { fill: currentColor; }
.scr { position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease; }
.scr.is-on { opacity: 1; }

.scr-cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .78) 82%); }
.cam-frame { position: absolute; left: 13%; right: 13%; top: 21%; height: 40%; }
.cam-frame i { position: absolute; width: 24px; height: 24px; border: 2.5px solid rgba(255, 255, 255, .92); }
.cam-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.cam-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.cam-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.cam-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.cam-scan { position: absolute; left: 6px; right: 6px; top: 0; height: 2px; background: rgba(230, 200, 144, .95); box-shadow: 0 0 12px 2px rgba(230, 200, 144, .55); opacity: 0; }
.scr-cam.is-on .cam-scan { animation: scan 2.2s ease-in-out .3s infinite alternate; }
@keyframes scan { 0% { top: 4%; opacity: 1; } 100% { top: 96%; opacity: 1; } }
.cam-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 16px 22px; text-align: center; }
.cam-label { margin: 0 0 10px; font: 500 13px/1.3 var(--sans); color: rgba(255, 255, 255, .9); }
.cam-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 58px; align-content: flex-start; }
.cam-tags span { padding: 6px 10px; border-radius: 8px; font: 600 12px/1 var(--sans); background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transform: translateY(6px); }
.scr-cam.is-on .cam-tags span { animation: pop .4s ease forwards; }
.scr-cam.is-on .cam-tags span:nth-child(1) { animation-delay: 1.1s; }
.scr-cam.is-on .cam-tags span:nth-child(2) { animation-delay: 1.5s; }
.scr-cam.is-on .cam-tags span:nth-child(3) { animation-delay: 1.9s; }
.scr-cam.is-on .cam-tags span:nth-child(4) { animation-delay: 2.3s; }
@keyframes pop { to { opacity: 1; transform: none; } }
.shutter { display: block; width: 56px; height: 56px; margin: 12px auto 0; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .92); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .35); background: rgba(255, 255, 255, .85); }

.scr-vibe, .scr-card { background: linear-gradient(180deg, #1a1d29 0%, #12151f 100%); padding: 60px 18px 20px; }
.app-title { margin: 6px 0 16px; font: 700 21px/1.15 var(--sans); letter-spacing: -.01em; }
.app-label { margin: 16px 0 8px; font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(230, 200, 144, .85); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 7px 10px; border-radius: 9px; font: 500 12px/1 var(--sans); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: rgba(245, 239, 226, .82); transition: background .3s ease, border-color .3s ease, color .3s ease; }
.chips span.on { background: rgba(216, 180, 120, .14); border-color: rgba(216, 180, 120, .5); color: #f5e3bf; }
.scr-vibe.is-on .chips span.pick { animation: choose .35s ease forwards 1.2s; }
.scr-vibe.is-on .chips span.pick-2 { animation-delay: 2.1s; }
@keyframes choose { to { background: var(--gold); border-color: var(--gold); color: #17110a; } }
.app-cta { position: absolute; left: 18px; right: 18px; bottom: 26px; display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 12px; font: 600 14px/1 var(--sans); background: rgba(216, 180, 120, .25); color: rgba(23, 17, 10, .6); }
.scr-vibe.is-on .app-cta { animation: ready .4s ease forwards 2.8s; }
@keyframes ready { to { background: var(--gold); color: #17110a; } }

.scr-card { padding: 0; }
.card-view { position: absolute; top: 46px; left: 0; right: 0; bottom: 0; overflow: hidden; padding: 6px 18px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%); }
.card-scroll { will-change: transform; }
.scr-card.is-on .card-scroll { animation: cardscroll 5s ease-in-out 1.6s forwards; }
@keyframes cardscroll { to { transform: translateY(var(--cs, 0px)); } }
.chips-sm span { padding: 5px 8px; font-size: 11px; }
.sc-block { margin-top: 14px; padding: 13px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.sc-label { margin: 0 0 8px; font: 600 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(230, 200, 144, .85); }
.sc-openers { margin: 0; padding-left: 18px; display: grid; gap: 8px; font: 500 13px/1.42 var(--sans); }
.sc-openers li::marker { color: var(--gold); font-weight: 700; }
.sc-moves { margin: 0; padding-left: 16px; display: grid; gap: 6px; font: 400 12.5px/1.42 var(--sans); color: rgba(245, 239, 226, .82); }
.sc-boost { background: rgba(216, 180, 120, .12); border-color: rgba(216, 180, 120, .3); }
.sc-boost p:last-child { margin: 0; font: 400 15px/1.35 var(--serif); font-style: italic; color: #f5e3bf; }

/* Story */
.story { padding: 96px 0; background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-grid { display: grid; gap: 32px; align-items: center; }
.story-art { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: #0b0e16; box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); }
.story-art img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease; }
.story-art img.is-fading { opacity: 0; }
.story-clock { margin: 0 0 12px; font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.story h2 { font-size: clamp(36px, 8vw, 58px); line-height: 1.04; }
#story-body { margin: 18px 0 28px; font-size: 18.5px; color: var(--cream-2); max-width: 30em; min-height: 5.2em; }
#story-body p { margin: 0 0 12px; }
#story-body .said { font: 400 22px/1.4 var(--serif); color: var(--cream); }
#story-body .said span { display: block; margin-bottom: 2px; font: 600 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-style: normal; }
.story-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.story-actions .btn { min-width: 150px; }
.story-copy.swap { animation: swap .45s ease; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Rules */
.rules { padding: 104px 0 90px; }
.rules-head { max-width: 640px; margin-bottom: 40px; }
.rules h2 { font-size: clamp(36px, 8vw, 56px); line-height: 1.05; }
.rules-head p { margin: 16px 0 0; font-size: 18px; color: var(--cream-2); }
.rule { display: grid; gap: 10px; padding: 28px 0; border-top: 1px solid var(--line); }
.rule:last-child { border-bottom: 1px solid var(--line); }
.rule h3 { font-size: clamp(26px, 5.6vw, 34px); line-height: 1.15; }
.rule p { margin: 0; color: var(--cream-2); font-size: 17px; max-width: 34em; }
.rule .cite { margin-top: 10px; font-size: 13.5px; color: var(--muted); letter-spacing: .01em; }

/* FAQ */
.faq { padding: 90px 0 110px; }
.faq-grid { display: grid; gap: 28px; }
.faq h2 { font-size: clamp(36px, 8vw, 56px); line-height: 1.05; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 500 18.5px/1.35 var(--sans); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: 0 0 12px; height: 12px; background:
  linear-gradient(var(--gold), var(--gold)) center / 12px 1.6px no-repeat,
  linear-gradient(var(--gold), var(--gold)) center / 1.6px 12px no-repeat; transition: transform .25s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: -6px 0 22px; color: var(--cream-2); max-width: 36em; }

/* Final */
.final { position: relative; padding: 100px 0 0; overflow: hidden; }
.final-grid { display: grid; gap: 8px; }
.final h2 { font-size: clamp(42px, 10vw, 80px); line-height: 1; max-width: 12ch; }
.final-inner > p { margin: 18px 0 26px; font-size: 18px; color: var(--cream-2); }
.final-art { margin: 0 calc(var(--gut) * -1); }
.final-art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 80%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 80%, transparent 100%); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.foot .brand { color: var(--cream); }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--cream); }
.foot .copy { margin-left: auto; }

/* Phone-only bottom bar */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); background: rgba(10, 13, 21, .92); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transform: translateY(110%); transition: transform .3s ease; }
.dock .btn { width: 100%; }
.dock.is-on { transform: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 420px) {
  .join-form .btn { flex: 1 1 100%; }
  .join-form input[type="email"] { flex-basis: 100%; }
}

@media (min-width: 760px) {
  :root { --gut: 32px; }
  .phone { --pw: 300px; }
  .how-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
  .phone-wrap { order: 0; }
  .story-grid { grid-template-columns: .9fr 1fr; gap: 64px; }
  .rule { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 34px 0; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; }
  .dock { display: none; }
}

@media (min-width: 1000px) {
  .hero { align-items: center; padding: 110px 0 70px; min-height: min(100vh, 940px); }
  .hero-bg { display: none; }
  .hero::before { display: none; }
  .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
  .hero h1 { font-size: clamp(64px, 6.6vw, 96px); }
  .hero-sub { font-size: 19.5px; }
  .hero-art { display: block; position: relative; margin: 0; justify-self: end; width: min(100%, 470px); }
  .hero-art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 32%; border-radius: 18px; box-shadow: 0 0 0 1px rgba(242, 231, 207, .08), 0 50px 90px -40px rgba(0, 0, 0, .95); }
  .hero-card { position: absolute; left: -64px; bottom: 34px; width: 300px; padding: 16px 18px; border-radius: 14px; background: rgba(17, 20, 31, .92); border: 1px solid rgba(216, 180, 120, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); }
  .hero-card .card-kicker { display: block; margin-bottom: 8px; font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
  .hero-card p { margin: 0; font: 400 18px/1.4 var(--serif); color: var(--cream); }
  .how { padding: 130px 0; }
  .how-grid { grid-template-columns: 1fr 1fr; gap: 90px; }
  .phone { --pw: 318px; }
  .story { padding: 120px 0; }
  .rules { padding: 130px 0 110px; }
  .final { padding: 120px 0 130px; }
  .final-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
  .final-art { margin: 0; justify-self: end; width: min(100%, 470px); }
  .final-art img { aspect-ratio: 4 / 5; object-position: 50% 58%; border-radius: 18px; -webkit-mask-image: none; mask-image: none; box-shadow: 0 0 0 1px rgba(242, 231, 207, .08), 0 50px 90px -40px rgba(0, 0, 0, .95); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
