/* AI Trades Solutions — site styles. Trade pages override --bg, --card, --accent, --accent-ink on <body>. */
:root {
  --bg: #16202c;
  --card: #243a57;
  --accent: #d98c55;
  --accent-ink: #1a1209;
  --base: #11151b;
  --panel: #1a2029;
  --panel-2: #0e1217;
  --line: #2b333e;
  --ink: #e9edf2;
  --ink-2: #b9c1cc;
  --ink-3: #8a94a2;
  --copper: #d98c55;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--base); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: inherit; }
img, svg { display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.draft { background: #b3261e; color: #fff; text-align: center; font: 600 13px/1.4 var(--mono); padding: 8px 16px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(14, 18, 23, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font: 800 26px/1 var(--display); letter-spacing: .01em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn-ghost { white-space: nowrap; }
.logo span { color: var(--copper); }
.btn-ghost { font: 600 14px/1 var(--sans); padding: 10px 16px; border: 1px solid #4a5361; border-radius: 999px; text-decoration: none; }
.btn-ghost:hover { border-color: var(--ink-2); }

/* type */
.eyebrow, .chip-label, .tag, .label, .src, .stamp, .missed, .phone-top, .demo-sub { font-family: var(--mono); }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.display, .stack, .h1, .h2, .h3, .trade-card h2, .timeline h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; line-height: 1.02; margin: 0; }
.display { font-size: clamp(40px, 7vw, 64px); margin-bottom: 16px; }
.h1 { font-size: clamp(36px, 6vw, 52px); margin-bottom: 24px; }
.h2 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 10px; }
.h3 { font-size: 24px; line-height: 1.1; }
.stack { display: grid; gap: 4px; font-size: clamp(26px, 4.6vw, 40px); color: #c9d0d9; margin: 8px 0 32px; }
.stack span:first-child { color: var(--ink); }
.stack .accent, .accent { color: var(--accent); }
.lede { font-size: 20px; color: var(--ink-2); margin: 0 0 28px; max-width: 46ch; }
.muted { color: var(--ink-3); margin: 0 0 12px; }
.fine { font-size: 13px; color: var(--ink-3); }
p { margin: 0 0 14px; }

/* sections */
.hero { background-color: var(--bg); padding: 64px 0 56px; }
.grid-bg { background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 28px 28px; }
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section.band { background: color-mix(in srgb, var(--bg) 70%, var(--base)); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 26px; }

/* home */
.trade-grid { display: grid; gap: 16px; margin: 32px 0 20px; }
@media (min-width: 860px) { .trade-grid { grid-template-columns: repeat(3, 1fr); } }
.trade-card { display: block; background: var(--card); border-radius: 8px; padding: 32px 30px; text-decoration: none; transition: transform .15s ease, filter .15s ease; }
.trade-card:hover { transform: translateY(-2px); filter: brightness(1.08); }
.trade-card .icon { width: 50px; height: 50px; color: var(--accent); margin-bottom: 22px; }
.trade-card h2 { font-size: 38px; }
.trade-card p { margin: 6px 0 20px; color: #dfe4ea; }
.trade-go { font: 700 17px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* phone mockup */
.chip-label { display: table; margin: 0 auto 16px; padding: 6px 12px; background: rgba(0,0,0,.35); border-radius: 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.phone { width: min(360px, 100%); margin: 0 auto 40px; background: #1b2028; border: 1px solid #333c48; border-radius: 26px; padding: 18px 16px 16px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.phone-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); padding: 0 4px 12px; border-bottom: 1px solid #2c343f; margin-bottom: 12px; }
.missed { text-align: center; font-size: 12px; color: #e0574f; margin: 0 0 10px; }
.msg { display: flex; }
.msg p { margin: 0; padding: 10px 13px; border-radius: 14px; font-size: 15px; line-height: 1.4; max-width: 84%; }
.msg.in p { background: #2b3440; border-bottom-left-radius: 4px; }
.msg.out { justify-content: flex-end; }
.msg.out p { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.stamp { font-size: 11.5px; color: var(--ink-3); margin: 5px 2px 12px; }
.stamp.out { text-align: right; }
.phone figcaption { font-size: 11.5px; color: var(--ink-3); text-align: center; margin-top: 10px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 16px 0 48px; }

/* buttons */
.btn, .btn-outline, .lead button, .demo-input button { font: 700 17px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; cursor: pointer; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 16px 22px; border: 0; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn-outline { display: inline-block; padding: 15px 20px; border: 1.5px solid #6b7480; color: var(--ink); text-decoration: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-block { width: 100%; padding: 18px; }

/* scenarios */
.cols3, .cols2 { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 860px) { .cols3 { grid-template-columns: repeat(3, 1fr); } .cols2 { grid-template-columns: 1fr 1fr; } }
.scen .h3 { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 4px; }
.tag.accent { color: var(--accent); }
.scen p:not(.tag) { margin-bottom: 14px; }

/* stats + calculator */
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink-2); margin: 28px 0 32px; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div { padding: 22px 16px 18px 0; border-bottom: 1px solid var(--line); }
.stat { font: 800 46px/1 var(--display); color: var(--accent); margin-bottom: 10px; }
.src { font-size: 12px; color: var(--ink-3); }
.calc .h3 { margin: 4px 0 6px; }
.slider { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; margin: 20px 0 6px; font-weight: 600; }
.slider output { font: 800 26px/1 var(--display); color: var(--accent); }
.slider input { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
.pkg-toggle { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 16px; }
.pkg-toggle label { display: flex; gap: 8px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-size: 15px; }
.pkg-toggle label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.pkg-toggle input { accent-color: var(--accent); }
.assume { border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--panel)); padding: 14px 16px; border-radius: 0 4px 4px 0; }
.assume b { color: var(--accent); }
.results { background: var(--panel-2); border-radius: 6px; padding: 24px 22px; margin-top: 18px; }
.label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px; }
.big { font: 800 56px/1 var(--display); color: var(--accent); margin: 0 0 20px; }
.mid { font: 800 36px/1 var(--display); margin: 0; }
.results dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 0 0 20px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.results dt { font: 500 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.results dd { margin: 4px 0 0; font: 800 26px/1 var(--display); }
.calc .fine { margin: 14px 0 0; }

/* packages */
.pkg { padding: 0; overflow: hidden; }
.pkg-head { background: var(--panel-2); padding: 22px 24px; }
.pkg > *:not(.pkg-head) { margin-left: 24px; margin-right: 24px; }
.price { display: flex; gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.amt { font: 800 30px/1 var(--display); margin: 0; }
.checks { list-style: none; padding: 0; margin-bottom: 24px; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid #5cc58a; border-bottom: 2px solid #5cc58a; transform: rotate(-45deg); }
.qualify { margin-top: 16px; background: color-mix(in srgb, var(--accent) 16%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.qualify .h3 { margin: 2px 0 16px; }
.notsure { border: 1px solid var(--accent); border-radius: 4px; padding: 14px 16px; font-weight: 600; background: rgba(0,0,0,.25); }
.notsure a { color: var(--accent); }
.reqs > div { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08); }
.reqs dt { font-weight: 600; }
.reqs dd { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }

/* quiz */
.quiz { margin-top: 24px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea { font: 16px/1.4 var(--sans); color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 13px 14px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.q { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 16px 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .q { grid-template-columns: 1fr auto; align-items: center; } }
.q legend { float: left; display: flex; gap: 14px; padding: 0; }
.qn { font: 500 13px/1.6 var(--mono); color: var(--accent); }
.q b { display: block; font-weight: 600; }
.q small { display: block; color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.seg { display: flex; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 9px 13px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 4px; font-size: 14px; font-weight: 600; }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.quiz-foot { display: flex; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.quiz-foot .muted { margin: 0; font-size: 14px; }
.quiz-result { margin-top: 20px; padding: 18px; border-radius: 6px; background: var(--panel-2); border-left: 3px solid var(--accent); }
.quiz-result h3 { font: 800 24px/1.1 var(--display); text-transform: uppercase; margin: 0 0 10px; }
.quiz-result ul { margin: 0 0 12px; padding-left: 20px; }

/* timeline */
.timeline { list-style: none; padding: 0 0 0 26px; margin: 36px 0 0; border-left: 2px solid var(--accent); }
.timeline li { position: relative; margin-bottom: 26px; }
.timeline li::before { content: ""; position: absolute; left: -35px; top: 2px; width: 14px; height: 14px; border: 2px solid var(--accent); border-radius: 50%; background: var(--base); }
.timeline .tag { color: var(--accent); }
.timeline h3 { font-size: 24px; margin: 2px 0 4px; }
.timeline p:last-child { color: var(--ink-2); margin: 0; }

/* lead form */
.sample { background: #262e39; border-radius: 12px; padding: 14px 16px; margin-bottom: 8px; }
.lead { margin-top: 28px; }
.group { border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px 2px; margin: 4px 0 18px; }
.group legend { font: 800 18px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; padding: 0 6px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 6px 0 20px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.consent a { color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 12px 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #5cc58a; }
.form-status.err { color: #ff8a80; }

/* demo */
.try { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 14px 20px; font: 700 18px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); background: #10141a; border: 2px solid var(--accent); border-radius: 999px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.try .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }
.demo { position: fixed; right: 18px; bottom: 86px; z-index: 31; width: min(400px, calc(100vw - 36px)); height: min(620px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #161b22; border: 1px solid #333c48; border-radius: 14px; box-shadow: 0 30px 70px rgba(0,0,0,.6); overflow: hidden; }
.demo[hidden] { display: none; }
.demo-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 18px; background: #10141a; border-bottom: 1px solid var(--line); }
.demo-title { font: 800 20px/1 var(--display); text-transform: uppercase; margin: 0 0 5px; }
.demo-sub { font-size: 12px; color: var(--ink-2); margin: 0; }
.demo-x { background: none; border: 0; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.demo-body { flex: 1; overflow-y: auto; padding: 18px; }
.demo-body .note { text-align: center; font: 12px/1.5 var(--mono); color: var(--ink-2); margin: 10px 0; }
.demo-body .count { text-align: center; font: 800 72px/1 var(--display); color: var(--accent); margin: 8px 0; }
.demo-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 14px; }
.demo-chips button { background: #252d38; color: var(--ink); border: 1px solid #39424f; border-radius: 999px; padding: 8px 14px; font: 500 14px/1.3 var(--sans); cursor: pointer; text-align: left; }
.demo-chips button:hover { border-color: var(--accent); }
.demo-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.demo-input input { flex: 1; font: 15px var(--sans); color: var(--ink); background: #0f1318; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; }
.demo-input button { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 0 16px; font-size: 15px; }
.demo-input :disabled { opacity: .5; cursor: default; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; background: #2b3440; border-radius: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }

/* legal pages */
.legal h2 { font: 800 26px/1.15 var(--display); text-transform: uppercase; margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--copper); }
.legal strong { color: #fff; }

/* footer */
.footer { border-top: 1px solid var(--line); background: #0d1015; padding: 30px 0 110px; font-size: 14px; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px 40px; }
.footer-col p { margin: 0 0 6px; }
.footer-col address { font-style: normal; margin-top: 10px; line-height: 1.5; }
.footer-brand { font-weight: 700; font-size: 16px; color: var(--ink); }
.footer-h { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px !important; }
.footer-col a { color: var(--ink); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-links a { color: var(--ink); }
.footer-fine { font-size: 13px; color: var(--ink-3); margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-fine a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 44px; }
  .section { padding: 56px 0; }
  .panel { padding: 20px; }
  .logo { font-size: 23px; }
  .big { font-size: 48px; }
  .try { right: 12px; bottom: 12px; padding: 12px 16px; font-size: 16px; }
  .demo { right: 12px; bottom: 72px; }
}
