:root {
  --bg: #08090a;
  --panel: #101113;
  --line: #22252a;
  --line-2: #2e3238;
  --text: #f2f0eb;
  --muted: #8d9096;
  --accent: #d9b45a;      /* dark gold */
  --accent-ink: #141006;
  --signal: #6ee7a8;
  --err: #ff7a6b;
  --gutter: 16px;
  --radius: 10px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { background: var(--bg); color: var(--text); overflow-x: hidden; }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
a { color: inherit; }

.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}

.screen {
  display: none;
  position: relative; z-index: 1;
  width: 100%; max-width: 560px; margin: 0 auto;
  padding: 0 var(--gutter) 48px;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.screen.active { display: block; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Landing */
.top { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 8px; }
.mark { font-family: var(--mono); font-size: 13px; letter-spacing: .18em; color: var(--accent); }
.live { font-family: var(--mono); font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .08em; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(110,231,168,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(110,231,168,.55); } 70%,100% { box-shadow: 0 0 0 8px rgba(110,231,168,0); } }

.hero { padding: 44px 0 40px; }
.kicker { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 16px; }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 9vw, 46px); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
h3 { font-family: var(--display); font-weight: 600; font-size: 17px; }
.sub { color: var(--muted); margin-top: 16px; font-size: 16px; }
.fine { color: var(--muted); font-size: 13px; margin-top: 12px; text-align: center; }

.cta {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  width: 100%; min-height: 58px; margin-top: 28px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: var(--radius);
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.cta:active { transform: scale(.985); filter: brightness(.92); }
.cta .arrow { transition: transform .15s ease; }
.cta:hover .arrow { transform: translateX(3px); }
.cta.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); margin-top: 12px; }
.cta[disabled] { opacity: .6; cursor: wait; }

.op, .wins { padding: 28px 0; border-top: 1px solid var(--line); }
.op-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.tag { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.op-strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.op-item { background: var(--panel); padding: 18px 16px; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; }
.op-item h3 { grid-column: 2; }
.op-item p { grid-column: 2; color: var(--muted); font-size: 15px; margin-top: 4px; }
.op-num { grid-row: span 2; font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 2px; }


.close { padding: 36px 0 20px; border-top: 1px solid var(--line); }
.foot { font-size: 12px; color: #5d6066; padding: 24px 0 8px; }

/* Application */
.bar-wrap { position: sticky; top: 0; z-index: 2; background: var(--bg); display: flex; align-items: center; gap: 12px; padding: 16px 0 14px; }
.back { background: none; border: 0; color: var(--muted); font-size: 15px; min-height: 44px; padding: 0 4px; cursor: pointer; white-space: nowrap; }
.back:disabled { visibility: hidden; }
.bar { flex: 1; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.step { font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 28px; text-align: right; }

.q-host { padding-top: 20px; }
.q-title { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 7.4vw, 34px); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 24px; }
.opts { display: grid; gap: 10px; }
.opt {
  width: 100%; min-height: 60px; text-align: left;
  padding: 16px 18px; background: var(--panel);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  font-size: 17px; font-weight: 500; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: border-color .12s ease, background .12s ease;
}
.opt::after { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); }
.opt:hover { border-color: #4a4f57; }
.opt.sel { border-color: var(--accent); background: #17140c; }
.opt.sel::after { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px #17140c; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 56px; padding: 0 16px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius);
  font-size: 17px; outline: none;
}
.field input:focus { border-color: var(--accent); }
.field.bad input { border-color: var(--err); }
.err { color: var(--err); font-size: 13px; margin-top: 6px; min-height: 0; display: none; }
.field.bad .err { display: block; }
.privacy { font-size: 12px; color: #5d6066; margin-top: 14px; }
.send-err { color: var(--err); font-size: 14px; margin-top: 12px; display: none; }

/* Results */
.result-head { padding: 44px 0 20px; }
.badge { display: inline-block; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); border: 1px solid #4a3f22; border-radius: 999px; padding: 6px 12px; margin-bottom: 18px; }
.cal-host { min-height: 700px; border-radius: var(--radius); overflow: hidden; background: #fff; }
.cal-host.placeholder { background: var(--panel); border: 1px dashed var(--line-2); min-height: 320px; display: grid; place-items: center; text-align: center; padding: 24px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.calendly-inline-widget { min-width: 280px; height: 700px; }

@media (min-width: 720px) {
  .hero { padding-top: 72px; }
  .op-strip { grid-template-columns: repeat(3, 1fr); }
  .op-item { display: block; }
  .op-num { display: block; margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Wins wall */
.wins-sub { color: var(--muted); font-size: 14px; margin: -8px 0 16px; }
.wins-top { display: grid; gap: 12px; }
.win-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.win-who { display: flex; align-items: center; gap: 10px; }
.av { width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: cover; background: #26292e; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--text); }
.win-name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.win-handle { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.win-num { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: clamp(30px, 9vw, 40px); letter-spacing: -.02em; line-height: 1; margin-top: 14px; }
.win-label { font-size: 15px; margin-top: 6px; }
.win-note { font-size: 13px; color: var(--muted); margin-top: 2px; }
.win-shots { display: flex; gap: 8px; margin-top: 14px; }
.win-shots button { flex: 1 1 0; min-width: 0; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: #000; cursor: zoom-in; max-height: 380px; }
.win-shots img { display: block; width: 100%; height: 100%; max-height: 380px; object-fit: cover; object-position: top; }

.wins-more { margin: 16px calc(-1 * var(--gutter)) 0; overflow: hidden; display: grid; gap: 10px; }
.marquee { display: flex; gap: 10px; width: max-content; animation: slide var(--dur, 60s) linear infinite; }
.marquee.rev { animation-direction: reverse; }
.wins-more:hover .marquee, .wins-more.paused .marquee { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tile { flex: none; width: 168px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; padding: 0; text-align: left; cursor: zoom-in; }
.tile > img, .tile-thumbs img { display: block; width: 100%; height: 200px; object-fit: cover; object-position: top; background: #000; }
.tile-body { padding: 8px 10px 10px; }
.tile-num { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 19px; line-height: 1.1; }
.tile-label { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.tile-who { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.tile-who .av { width: 24px; height: 24px; font-size: 12px; }
.tile-who .win-name { font-size: 12px; }
.tile-who .win-handle { font-size: 10px; }
.win-handle.founder { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.wins-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.wins-grid .tile { width: auto; min-width: 0; }
.tile-thumbs { display: flex; gap: 2px; height: 200px; background: #000; }
.tile-thumbs img { flex: 1 1 0; min-width: 0; height: 100%; }
.wins-h { margin-top: 28px; font-size: 18px; }
.disclaimer { font-size: 12px; color: var(--muted); margin-top: 14px; }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.94); overflow-y: auto; padding: 56px 16px 24px; }
.lb-imgs { display: grid; gap: 12px; justify-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; height: auto; border-radius: 8px; }
.lb-close { position: fixed; }
.lb-close { position: absolute; top: 12px; right: 16px; background: none; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); padding: 8px 14px; font-size: 14px; cursor: pointer; }

@media (min-width: 720px) {
  .wins-top { grid-template-columns: repeat(3, 1fr); }
  .wins-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .wins-more { overflow-x: auto; }
  .tile.dup { display: none; }
}

/* ---- v4 landing ---- */
.top { position: sticky; top: 0; z-index: 5; background: linear-gradient(var(--bg) 70%, transparent); }
.top-cta { background: none; border: 1px solid #4a3f22; color: var(--accent); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 40px; }
.hero { padding: 28px 0 36px; display: grid; gap: 28px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.founder { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.founder-av { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #4a3f22; object-fit: cover; }
.founder-name { font-weight: 600; }
.founder-role { font-size: 13px; color: var(--muted); }
.hero-media { margin: 0; display: grid; justify-items: center; gap: 10px; }
.phone { width: min(260px, 70vw); aspect-ratio: 540/1192; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); background: #000; box-shadow: 0 30px 80px -30px rgba(217,180,90,.35); }
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media figcaption { font-size: 13px; color: var(--muted); }
.sec-head { margin-bottom: 18px; }
.sec-head .tag { display: block; font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 8px; }
.sec-head h2 { font-size: clamp(24px, 6.5vw, 34px); line-height: 1.1; letter-spacing: -.02em; }
.wins-recent { display: grid; gap: 12px; }
.wins-recent .win-shots { flex-direction: column; }
.wins-recent .win-shots button, .wins-recent .win-shots img { max-height: none; height: auto; }
.wins-recent .win-note { font-style: italic; }
.road, .clips { padding: 32px 0; border-top: 1px solid var(--line); }
.steps { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.steps li { background: var(--panel); padding: 18px 16px; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; }
.steps .n { grid-row: span 2; font-family: var(--mono); color: var(--accent); font-size: 14px; padding-top: 2px; }
.steps p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.steps li:last-child { background: linear-gradient(135deg, #17140c, var(--panel)); }
.clip-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.clip-row video { width: 100%; aspect-ratio: 540/1192; object-fit: cover; border-radius: 14px; border: 1px solid var(--line-2); background: #000; display: block; }

.built { margin-top: 20px; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(135deg, #17140c, var(--panel)); }
.built h3 { font-size: 20px; line-height: 1.25; }
.built p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.built-link { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; text-decoration: none; }

@media (min-width: 900px) {
  .screen#landing { max-width: 1160px; padding-left: 40px; padding-right: 40px; }
  .hero { grid-template-columns: 1.25fr .75fr; align-items: center; gap: 64px; padding: 64px 0 72px; }
  .hero h1 { font-size: 60px; }
  .hero .sub { font-size: 18px; max-width: 34em; }
  .hero .cta, .cta.inline, .close .cta { width: auto; display: inline-flex; padding: 0 40px; }
  .hero .fine { text-align: left; }
  .phone { width: 300px; }
  .wins-recent { display: block; columns: 2; column-gap: 16px; }
  .wins-recent > * { break-inside: avoid; margin-bottom: 16px; }
  .wins-recent > :nth-child(3) { break-after: column; }
  .wins-recent > :nth-child(1) .win-shots { flex-direction: row; }
  .wins-recent > :nth-child(1) .win-shots button { flex: 1 1 0; min-width: 0; }
  .clips { display: grid; grid-template-columns: minmax(0, 720px) minmax(280px, 1fr); gap: 0 40px; align-items: center; }
  .clips .sec-head { grid-column: 1 / -1; }
  .built { margin-top: 0; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { display: block; padding: 24px 20px; }
  .steps .n { display: block; margin-bottom: 14px; }
  .clip-row { grid-template-columns: repeat(4, 1fr); max-width: 820px; }
  .clip-row .clip-wide { display: block; }
  .wins-grid { grid-template-columns: repeat(4, 1fr); }
  .wins-more { margin: 16px 0 0; }
  .close { text-align: center; padding: 56px 0 32px; }
  .close h2 { font-size: 40px; }
}
.wins-recent .win-shots button { flex: none; }

.gmv-stat { font-size: clamp(20px, 3.2vw, 28px); font-weight: 600; margin: 6px 0 10px; line-height: 1.25; }
.gmv-stat b { color: var(--accent, #d9b45a); font-size: 1.6em; letter-spacing: -.02em; margin-right: 6px; }
