:root {
  --gold: #FFC83D;
  --lime: #C6F135;
  --navy: #0B1220;
  --card: #18233A;
  --raised: #26324A;
  --icon-bg: #111A2E;
  --text: #F2F5FA;
  --muted: #A9B4C7;
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--gold); }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.title { font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; letter-spacing: -0.01em; line-height: 1.05; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: gold with dark text, as in the app. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--gold); color: var(--navy);
  font: 800 17px/1 var(--font);
  border: 0; border-radius: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { opacity: .8; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn:focus-visible, .link:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.link { color: var(--text); font-weight: 700; text-decoration: none; padding: 12px 4px; }
.link:hover { color: var(--gold); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 18, 32, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(38, 50, 74, .7); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: 20px; }
.brand img { border-radius: 9px; }
.brand-small { font-size: 16px; }
.brand-small img { border-radius: 6px; }

/* Hero */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--gold); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); }
.lede { color: var(--muted); font-size: 20px; max-width: 34em; margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }

/* Phone frames around real Simulator screenshots (site/shots, made by scripts/make_site_images.mjs). */
.phones { position: relative; height: 590px; }
.phone {
  position: absolute; width: 260px; padding: 10px;
  background: #050910; border-radius: 46px;
  box-shadow: 0 0 0 2px #26324A, 0 30px 80px rgba(0, 0, 0, .55);
}
.shot { display: block; width: 100%; height: auto; border-radius: 36px; }
.phone-front { right: 40px; top: 0; z-index: 2; }
.phone-back { right: 250px; top: 40px; transform: rotate(-6deg); opacity: .92; }

/* Gallery */
.gallery { padding: 96px 0 24px; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: start; }
.shots figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.shots figcaption { color: var(--muted); font-size: 16px; text-align: center; max-width: 16em; }
.phone-flat { position: static; width: 100%; max-width: 240px; padding: 8px; border-radius: 40px; }
.phone-flat .shot { border-radius: 32px; }
.watch { width: 100%; max-width: 200px; margin-top: 40px; padding: 14px; background: #050910; border-radius: 54px; box-shadow: 0 0 0 2px #26324A, 0 20px 50px rgba(0, 0, 0, .5); }
.watch .shot { border-radius: 40px; }

/* Sections */
section h2 { font-size: clamp(30px, 4.2vw, 46px); margin-bottom: 40px; }
.band { background: var(--icon-bg); padding: 88px 0; border-top: 1px solid var(--card); border-bottom: 1px solid var(--card); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--card); border-radius: 22px; padding: 28px; }
.num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--gold); color: var(--navy); font-weight: 900; font-size: 20px; margin-bottom: 18px; }
.steps h3, .feature h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; line-height: 1.25; }
.steps p, .feature p { color: var(--muted); font-size: 17px; }

.features { padding: 96px 0; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--card); border-radius: 22px; padding: 26px; }
.ico { width: 30px; height: 30px; margin-bottom: 16px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.built-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.built h2 { margin-bottom: 20px; }
.built p { color: var(--muted); font-size: 19px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding: 16px 18px 16px 56px; background: var(--card); border-radius: 16px; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 7px; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230B1220' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* The rules */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rule { background: var(--card); border-radius: 22px; padding: 26px; }
.rule .big { font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: 40px; line-height: 1; margin-bottom: 14px; }
.rule .gain { color: var(--lime); }
.rule .loss { color: #FF6B5E; }
.rule .spend { color: var(--gold); }
.rule h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; line-height: 1.25; }
.rule p { color: var(--muted); font-size: 17px; }

/* Waitlist */
.signup { padding: 104px 0; text-align: center; }
.signup-inner { display: flex; flex-direction: column; align-items: center; }
.signup-icon { border-radius: 20px; margin-bottom: 28px; box-shadow: 0 0 0 1px var(--raised); }
.signup h2 { margin-bottom: 16px; }
.signup-lede { color: var(--muted); font-size: 19px; max-width: 30em; }
.form { display: flex; gap: 12px; width: 100%; max-width: 520px; margin-top: 32px; }
.form[hidden] { display: none; }
.form input[type=email], .form input[type=text] {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 18px;
  background: var(--card); color: var(--text);
  border: 1px solid var(--raised); border-radius: 16px;
  font: 500 17px var(--font);
}
.form input::placeholder { color: #7D8AA1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.5em; margin-top: 16px; font-weight: 600; }
.form-msg.ok { color: var(--gold); }
.form-msg.err { color: #FFB4A8; }
.soon { margin-top: 8px; font-weight: 700; color: var(--gold); }
.soon[hidden] { display: none; }
.fine { margin-top: 12px; color: var(--muted); font-size: 15px; }
.invite { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--card); max-width: 520px; }
.invite[hidden], .invite-ok[hidden], .link-btn[hidden] { display: none; }
.invite .form { margin-top: 0; }
.invite .form-msg:empty { display: none; }
.link-btn { background: none; border: 0; padding: 8px 4px; color: var(--gold); font: 700 17px var(--font); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.invite-ok { display: flex; flex-direction: column; align-items: center; margin-top: 20px; }
.invite-ok .fine { max-width: 28em; }

/* Footer */
.foot { border-top: 1px solid var(--card); padding: 32px 0 40px; font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--gold); }
.foot .muted { flex-basis: 100%; }

/* Plain text pages (privacy) */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 12px; }
.doc h2 { font-size: 22px; font-weight: 800; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid, .built-grid { grid-template-columns: 1fr; gap: 40px; }
  .phones { height: 540px; max-width: 460px; width: 100%; margin: 0 auto; }
  .shots { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .phone-front { right: 0; }
  .phone-back { right: auto; left: 0; }
  .steps, .rules { grid-template-columns: 1fr; }
  .band, .features, .signup { padding: 64px 0; }
  .gallery { padding: 64px 0 8px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .lede { font-size: 18px; }
  .grid { grid-template-columns: 1fr; }
  .phones { height: 470px; }
  .phone { width: 210px; padding: 8px; border-radius: 38px; }
  .shot { border-radius: 30px; }
  .phone-back { left: -10px; top: 40px; }
  .phone-flat { width: 100%; }
  .watch { margin-top: 24px; padding: 10px; border-radius: 40px; }
  .watch .shot { border-radius: 30px; }
  .form { flex-direction: column; }
  .form .btn { width: 100%; }
  .top .btn-small { padding: 0 14px; }
  .brand { font-size: 17px; white-space: nowrap; }
  .brand img { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
