/* Broker Intelligence — shared styles for every page on this site.
   Tokens are lifted verbatim from the platform app (app/src/app/globals.css)
   so the front door and the product stay on one system. Re-sync from there
   rather than hand-editing hex values here. */

/* ── Tokens: lifted verbatim from the platform app (app/src/app/globals.css) ── */
:root{
  --bg:#0a0c14; --surface-0:#0e1019; --surface-1:#141826; --surface-2:#1b2030; --surface-3:#232a3d;
  --line:#262d40; --line-soft:#1d2331;
  --text-1:#f4f6fb; --text-2:#aab3c7; --text-3:#8b93a6;
  --brand:#8b5cf6; --brand-bright:#a78bfa; --brand-deep:#6d28d9;
  --brand-glow:rgba(139,92,246,.45); --brand-soft:rgba(139,92,246,.14); --brand-border:rgba(139,92,246,.35);
  --healthy:#22c55e; --attention:#f59e0b; --risk:#ef4444;
  --buyer:#38bdf8; --seller:#a78bfa; --lead:#fb923c;
  --r-card:14px; --r-hero:18px; --r-pill:999px;
  --shadow-card:0 1px 0 rgba(255,255,255,.02) inset, 0 1px 2px rgba(0,0,0,.4);
  --shadow-lift:0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px -12px rgba(0,0,0,.7);
  --shadow-glow:0 0 20px -4px rgba(139,92,246,.45);
  --maxw:1140px;
}
:root[data-theme='light']{
  --bg:#f3f4f9; --surface-0:#fbfcfe; --surface-1:#ffffff; --surface-2:#eef0f6; --surface-3:#e3e7f0;
  --line:#dfe3ee; --line-soft:#e9ecf4;
  --text-1:#171c2b; --text-2:#49536b; --text-3:#5f6980;
  --brand-bright:#6d28d9;
  --brand-glow:rgba(139,92,246,.22); --brand-soft:rgba(139,92,246,.1); --brand-border:rgba(139,92,246,.3);
  --shadow-card:0 1px 2px rgba(16,24,40,.05), 0 8px 24px -12px rgba(16,24,40,.12);
  --shadow-lift:0 2px 4px rgba(16,24,40,.06), 0 18px 40px -16px rgba(16,24,40,.18);
  --shadow-glow:0 0 20px -4px rgba(139,92,246,.25);
}
html{color-scheme:dark}
html[data-theme='light']{color-scheme:light}
/* Dark is the default regardless of system preference — same as the app.
   Light is opt-in via the header toggle. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--bg); color:var(--text-1);
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif;
  font-size:16.5px; line-height:1.6; letter-spacing:-.006em;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
img,svg{max-width:100%}
a{color:inherit; text-decoration:none}
.wrap{max-width:var(--maxw); margin-inline:auto; padding-inline:24px}

/* ── Atmosphere: one restrained brand wash, not a gradient soup ── */
.aura{position:fixed; inset:0; pointer-events:none; z-index:0; overflow:hidden}
.aura::before{
  content:''; position:absolute; top:-28vh; left:50%; transform:translateX(-50%);
  width:min(1200px,140vw); height:min(760px,84vh);
  background:radial-gradient(ellipse at center, rgba(139,92,246,.16), rgba(139,92,246,.05) 42%, transparent 70%);
  filter:blur(8px);
}
:root[data-theme='light'] .aura::before{background:radial-gradient(ellipse at center, rgba(139,92,246,.13), transparent 68%)}
.page{position:relative; z-index:1}

/* ── Header ── */
header{position:sticky; top:0; z-index:40; backdrop-filter:saturate(160%) blur(14px);
  background:color-mix(in srgb, var(--bg) 82%, transparent); border-bottom:1px solid var(--line-soft)}
.nav{display:flex; align-items:center; justify-content:space-between; gap:20px; height:66px}
.brand{display:flex; align-items:center; gap:11px; font-weight:640; letter-spacing:-.022em; font-size:16.5px}
.mark{width:33px; height:33px; border-radius:9px; flex:none; display:grid; place-items:center;
  background:#fff; border:1px solid rgba(255,255,255,.14); box-shadow:var(--shadow-glow)}
:root[data-theme='light'] .mark{border-color:var(--line); box-shadow:var(--shadow-card)}
.mark img{display:block; width:24px; height:24px}
.nav-links{display:flex; align-items:center; gap:4px}
/* :not(.btn) so these never reach the Log in CTA — `.nav-links a` outranks
   `.btn-primary`, which would repaint the button's text with --text-2. */
.nav-links a:not(.btn){padding:8px 13px; border-radius:9px; color:var(--text-2); font-size:14.5px; font-weight:500;
  transition:color .16s ease, background .16s ease}
.nav-links a:not(.btn):hover{color:var(--brand-bright); background:var(--surface-2)}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; cursor:pointer;
  font:inherit; font-weight:580; letter-spacing:-.012em; border-radius:11px; transition:transform .16s ease, box-shadow .16s ease, background .16s ease}
.btn-primary{background:linear-gradient(135deg,var(--brand) 0%,var(--brand-deep) 100%); color:#fff;
  padding:11px 20px; box-shadow:var(--shadow-glow)}
.btn-primary:hover{transform:translateY(-1px); box-shadow:0 0 30px -3px var(--brand-glow)}
.btn-ghost{background:var(--surface-2); color:var(--text-1); padding:11px 19px; border:1px solid var(--line)}
.btn-ghost:hover{background:var(--surface-3); transform:translateY(-1px)}
.btn-lg{padding:15px 27px; font-size:16.5px; border-radius:13px}
.login-cta{padding:9px 17px !important; font-size:14.5px}
.theme-toggle{display:grid; place-items:center; width:34px; height:34px; margin-right:6px; flex:none;
  background:transparent; border:1px solid var(--line); border-radius:10px; color:var(--text-2);
  cursor:pointer; transition:color .16s ease, background .16s ease, border-color .16s ease}
.theme-toggle:hover{color:var(--brand-bright); background:var(--surface-2); border-color:var(--brand-border)}
.theme-toggle .moon{display:none}
:root[data-theme='light'] .theme-toggle .moon{display:block}
:root[data-theme='light'] .theme-toggle .sun{display:none}

/* ── Hero ── */
/* padding-block only — .hero shares its element with .wrap, and a `padding`
   shorthand here would zero out .wrap's padding-inline. */
.hero{padding-block:84px 24px}
.hero-grid{display:grid; grid-template-columns:1.06fr .94fr; gap:60px; align-items:center}
.eyebrow{display:inline-flex; align-items:center; gap:9px; padding:6px 13px 6px 8px; border-radius:var(--r-pill);
  background:var(--brand-soft); border:1px solid var(--brand-border); color:var(--brand-bright);
  font-size:13px; font-weight:560; letter-spacing:-.005em; margin-bottom:26px}
.eyebrow b{background:var(--brand); color:#fff; border-radius:var(--r-pill); padding:2px 9px; font-size:11.5px;
  font-weight:660; letter-spacing:.02em; text-transform:uppercase}
h1{font-size:clamp(2.6rem,5.1vw,4rem); line-height:1.03; letter-spacing:-.038em; font-weight:660; margin:0 0 22px}
h1 .accent{background:linear-gradient(105deg,var(--brand-bright),var(--brand) 58%,var(--brand-deep));
  -webkit-background-clip:text; background-clip:text; color:transparent}
.lede{font-size:18.5px; line-height:1.62; color:var(--text-2); margin:0 0 34px; max-width:34em}
.hero-cta{display:flex; flex-wrap:wrap; gap:12px; align-items:center}
.microcopy{margin-top:16px; font-size:13.5px; color:var(--text-3)}

/* ── Briefing artifact: show the product, don't describe it ── */
.artifact{background:var(--surface-0); border:1px solid var(--line); border-radius:var(--r-hero);
  box-shadow:var(--shadow-lift); overflow:hidden}
.artifact-bar{display:flex; align-items:center; gap:8px; padding:13px 16px; border-bottom:1px solid var(--line-soft);
  background:var(--surface-1)}
.dot{width:9px; height:9px; border-radius:50%; background:var(--surface-3)}
.artifact-title{margin-left:6px; font-size:12.5px; color:var(--text-3); font-weight:520; letter-spacing:.01em}
.artifact-body{padding:22px}
.brief-head{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:18px}
.brief-head h3{margin:0; font-size:17px; font-weight:620; letter-spacing:-.02em}
.brief-time{font-size:12.5px; color:var(--text-3); font-variant-numeric:tabular-nums}
.brief-item{display:flex; gap:13px; padding:13px 0; border-top:1px solid var(--line-soft)}
.brief-item:first-of-type{border-top:0; padding-top:0}
.pip{width:7px; height:7px; border-radius:50%; margin-top:8px; flex:none}
.brief-item h4{margin:0 0 3px; font-size:14.5px; font-weight:585; letter-spacing:-.012em}
.brief-item p{margin:0; font-size:13.6px; line-height:1.5; color:var(--text-2)}
.tag{display:inline-block; font-size:11px; font-weight:600; letter-spacing:.045em; text-transform:uppercase;
  padding:2px 8px; border-radius:var(--r-pill); margin-bottom:5px}
/* Semantic tags. The app never puts these hues on a tint as small caps, so light
   theme needs darker text variants — the pale originals fail contrast on #fbfcfe. */
.tag-risk{color:var(--risk); background:rgba(239,68,68,.12)}
.tag-lead{color:var(--lead); background:rgba(251,146,60,.12)}
.tag-market{color:var(--buyer); background:rgba(56,189,248,.12)}
:root[data-theme='light'] .tag-risk{color:#b91c1c; background:rgba(239,68,68,.1)}
:root[data-theme='light'] .tag-lead{color:#b45309; background:rgba(251,146,60,.15)}
:root[data-theme='light'] .tag-market{color:#0369a1; background:rgba(56,189,248,.15)}

/* ── Section furniture ── */
section{padding:88px 0; position:relative}
.sec-head{max-width:640px; margin-bottom:52px}
.kicker{font-size:12.5px; font-weight:620; letter-spacing:.1em; text-transform:uppercase; color:var(--brand-bright); margin-bottom:14px}
h2{font-size:clamp(1.95rem,3.5vw,2.65rem); line-height:1.12; letter-spacing:-.032em; font-weight:645; margin:0 0 16px}
.sec-head p{margin:0; font-size:17.5px; line-height:1.62; color:var(--text-2)}
.rule{height:1px; background:linear-gradient(90deg,transparent,var(--line),transparent)}

/* ── Engines: hairline grid, not floating cards ── */
.engines{display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line-soft);
  border:1px solid var(--line-soft); border-radius:var(--r-hero); overflow:hidden}
.engine{background:var(--bg); padding:32px 28px; transition:background .2s ease}
.engine:hover{background:var(--surface-0)}
.engine .ico{width:38px; height:38px; border-radius:10px; background:var(--brand-soft);
  border:1px solid var(--brand-border); display:grid; place-items:center; margin-bottom:18px; color:var(--brand-bright)}
.engine h3{margin:0 0 9px; font-size:16.5px; font-weight:610; letter-spacing:-.018em}
.engine p{margin:0; font-size:14.6px; line-height:1.58; color:var(--text-2)}

/* ── See it work ── */
.demo-panel{display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center;
  background:linear-gradient(180deg,var(--brand-soft),transparent 70%), var(--surface-0);
  border:1px solid var(--brand-border); border-radius:var(--r-hero); padding:44px}
.demo-copy h2{margin-bottom:14px}
.demo-copy p{margin:0 0 28px; font-size:17px; line-height:1.62; color:var(--text-2)}
.demo-list{list-style:none; margin:0; padding:0; display:grid; gap:1px; background:var(--line-soft);
  border:1px solid var(--line-soft); border-radius:var(--r-card); overflow:hidden}
.demo-list li{display:flex; gap:13px; padding:20px 22px; background:var(--surface-0)}
.tick{width:19px; height:19px; border-radius:50%; flex:none; margin-top:2px;
  background:var(--brand-soft); border:1px solid var(--brand-border); position:relative}
.tick::after{content:''; position:absolute; left:5.5px; top:4.5px; width:5px; height:8px;
  border:solid var(--brand-bright); border-width:0 1.8px 1.8px 0; transform:rotate(42deg)}
.demo-list h4{margin:0 0 4px; font-size:15px; font-weight:590; letter-spacing:-.014em}
.demo-list p{margin:0; font-size:14px; line-height:1.5; color:var(--text-2)}

/* ── Roadmap ── */
.road{display:grid; grid-template-columns:repeat(4,1fr); gap:18px}
.road-item{border:1px solid var(--line); border-radius:var(--r-card); padding:22px; background:var(--surface-0)}
.chip{display:inline-block; font-size:11px; font-weight:620; letter-spacing:.05em; text-transform:uppercase;
  color:var(--attention); background:rgba(245,158,11,.12); border:1px solid rgba(245,158,11,.28);
  padding:2px 9px; border-radius:var(--r-pill); margin-bottom:13px}
.road-item h3{margin:0 0 8px; font-size:15.5px; font-weight:600; letter-spacing:-.016em}
.road-item p{margin:0; font-size:14px; line-height:1.55; color:var(--text-2)}
.road-note{margin-top:22px; font-size:14.5px; color:var(--text-3)}

/* ── Founders ── */
.founders{display:grid; grid-template-columns:1fr 1fr; gap:26px}
.founder{background:var(--surface-0); border:1px solid var(--line); border-radius:var(--r-hero); padding:32px}
.f-head{display:flex; align-items:center; gap:14px; margin-bottom:20px}
.avatar{width:58px; height:58px; border-radius:14px; flex:none; object-fit:cover; object-position:center top;
  border:1px solid var(--line); background:var(--surface-2); box-shadow:var(--shadow-card)}
.f-head h3{margin:0; font-size:16.5px; font-weight:620; letter-spacing:-.018em}
.f-head span{display:block; font-size:13.2px; color:var(--text-3); font-weight:460; margin-top:2px}
.founder p{margin:0 0 13px; font-size:15px; line-height:1.66; color:var(--text-2)}
.founder p:last-of-type{margin-bottom:0}
.founder strong{color:var(--text-1); font-weight:580}
.creds{display:flex; flex-wrap:wrap; gap:7px; margin-top:20px}
.cred{font-size:12px; font-weight:520; color:var(--text-3); background:var(--surface-2);
  border:1px solid var(--line); border-radius:var(--r-pill); padding:4px 11px}

/* ── Pricing ── */
.pricing{display:grid; grid-template-columns:1fr 1fr; gap:20px; max-width:760px}
.price{border-radius:var(--r-hero); padding:30px; border:1px solid var(--line); background:var(--surface-0)}
.price.featured{border-color:var(--brand-border); background:
  linear-gradient(180deg,var(--brand-soft),transparent 60%), var(--surface-0); box-shadow:var(--shadow-glow)}
.price .label{font-size:13px; font-weight:600; letter-spacing:.03em; text-transform:uppercase; color:var(--text-3); margin-bottom:14px}
.price.featured .label{color:var(--brand-bright)}
.amount{display:flex; align-items:baseline; gap:5px; margin-bottom:12px}
.amount b{font-size:44px; font-weight:660; letter-spacing:-.04em; line-height:1}
.amount span{font-size:16px; color:var(--text-3)}
.price p{margin:0; font-size:14.5px; line-height:1.55; color:var(--text-2)}

/* ── Signup ── */
.signup{background:var(--surface-0); border:1px solid var(--brand-border); border-radius:var(--r-hero);
  padding:46px; text-align:center; box-shadow:var(--shadow-lift)}
.signup h2{margin-bottom:12px}
.signup > p{max-width:44em; margin:0 auto 28px; color:var(--text-2); font-size:17px}
.form-row{display:flex; gap:10px; max-width:470px; margin:0 auto; flex-wrap:wrap}
input[type=email]{flex:1; min-width:220px; background:var(--surface-2); border:1px solid var(--line);
  color:var(--text-1); border-radius:11px; padding:14px 16px; font:inherit; font-size:15.5px; outline:none;
  transition:border-color .16s ease, box-shadow .16s ease}
input[type=email]:focus{border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-soft)}
input[type=email]::placeholder{color:var(--text-3)}
.ok{display:none; margin-top:18px; color:var(--healthy); font-size:15px; font-weight:530}
.ok.show{display:block}

/* ── Footer ── */
footer{border-top:1px solid var(--line-soft); padding:38px 0; margin-top:40px}
.foot{display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap}
.foot p{margin:0; font-size:13.5px; color:var(--text-3)}
.foot nav{display:flex; gap:20px; font-size:13.5px}
.foot nav a{color:var(--text-3)}
.foot nav a:hover{color:var(--brand-bright)}

/* ── Responsive ── */
@media (max-width:960px){
  .hero-grid{grid-template-columns:1fr; gap:44px}
  .demo-panel{grid-template-columns:1fr; gap:32px; padding:32px}
  .engines{grid-template-columns:repeat(2,1fr)}
  .road{grid-template-columns:repeat(2,1fr)}
  .founders{grid-template-columns:1fr}
  .pricing{grid-template-columns:1fr}
}
@media (max-width:640px){
  .hero{padding-block:52px 12px} section{padding:64px 0}
  .engines{grid-template-columns:1fr}
  .road{grid-template-columns:1fr}
  .nav-links a:not(.login-cta):not(.nav-page){display:none}
  .demo-panel{padding:26px 22px}
  .demo-list li{padding:16px 18px}
  .signup{padding:32px 22px}
  .founder{padding:24px}
}
@media (prefers-reduced-motion:reduce){*{transition:none !important; animation:none !important}}

/* ── Setup page ─────────────────────────────────────────────────────────── */
.page-head{padding:74px 0 12px}
.page-head .kicker{margin-bottom:16px}
.page-head h1{font-size:clamp(2.2rem,4.2vw,3.1rem); margin-bottom:18px}
.page-head p{margin:0; font-size:18px; line-height:1.62; color:var(--text-2); max-width:36em}

.video-frame{position:relative; width:100%; padding-top:56.25%; border-radius:var(--r-hero);
  overflow:hidden; border:1px solid var(--line); background:var(--surface-0); box-shadow:var(--shadow-lift)}
.video-frame iframe{position:absolute; inset:0; width:100%; height:100%; border:0}
.video-meta{display:flex; flex-wrap:wrap; gap:14px; align-items:center; margin-top:14px;
  font-size:13.5px; color:var(--text-3)}

/* Numbered steps, so the video can be scanned instead of scrubbed */
.steps{list-style:none; margin:34px 0 0; padding:0; display:grid; gap:1px;
  background:var(--line-soft); border:1px solid var(--line-soft); border-radius:var(--r-hero); overflow:hidden}
.steps > li{display:grid; grid-template-columns:auto 1fr; gap:18px; padding:26px 28px; background:var(--bg)}
.step-n{width:30px; height:30px; border-radius:50%; display:grid; place-items:center; flex:none;
  background:var(--brand-soft); border:1px solid var(--brand-border); color:var(--brand-bright);
  font-size:13.5px; font-weight:660; font-variant-numeric:tabular-nums}
.steps h3{margin:0 0 8px; font-size:17px; font-weight:610; letter-spacing:-.018em}
.steps p{margin:0 0 10px; font-size:15px; line-height:1.6; color:var(--text-2)}
.steps p:last-child{margin-bottom:0}
.steps ul{margin:10px 0 0; padding:0; list-style:none; display:grid; gap:7px}
.steps ul li{position:relative; padding-left:19px; font-size:14.6px; line-height:1.55; color:var(--text-2)}
.steps ul li::before{content:''; position:absolute; left:2px; top:8px; width:5px; height:5px;
  border-radius:50%; background:var(--brand-border)}
.steps strong{color:var(--text-1); font-weight:580}

.callout{margin-top:12px; padding:13px 16px; border-radius:var(--r-card);
  background:rgba(245,158,11,.12); border:1px solid rgba(245,158,11,.28)}
.callout p{margin:0; font-size:14.2px; line-height:1.55; color:var(--text-2)}
.callout b{color:var(--text-1)}

.next-list{display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin-top:8px}
.next-item{border:1px solid var(--line); border-radius:var(--r-card); padding:24px; background:var(--surface-0)}
.next-item h3{margin:0 0 8px; font-size:16px; font-weight:600; letter-spacing:-.016em}
.next-item p{margin:0; font-size:14.4px; line-height:1.55; color:var(--text-2)}

.page-foot-note{margin-top:44px; padding-top:28px; border-top:1px solid var(--line-soft);
  font-size:15px; color:var(--text-3)}
.page-foot-note a{color:var(--brand-bright); font-weight:530}
.page-foot-note a:hover{text-decoration:underline}

@media (max-width:960px){ .next-list{grid-template-columns:1fr} }
@media (max-width:640px){
  .foot nav a{display:inline-block; padding:10px 4px} /* 44px-ish tap targets */
  .page-head{padding:48px 0 8px}
  .steps > li{padding:22px 20px; gap:14px}
}

/* Aside under Joe's story — answers the doubt his own story raises */
.founder-aside{margin-top:20px !important; padding-top:18px; border-top:1px solid var(--line-soft);
  font-size:14.6px !important; color:var(--text-3) !important}
.founder-aside a{color:var(--brand-bright); font-weight:540}
.founder-aside a:hover{text-decoration:underline}
