/* Dealer Agent Analytics — trust palette: navy, white, one blue accent; amber only for warnings */
:root {
  --bg: #f6f8fb;
  --bg-2: #ffffff;
  --navy: #0e2440;
  --navy-2: #143158;
  --line: #dfe5ee;
  --line-2: #c9d3e0;
  --ink: #0e1b2e;
  --ink-2: #44546b;
  --ink-3: #6e7d93;
  --blue: #1f5fbf;
  --blue-2: #184d9c;
  --blue-tint: #e8f0fb;
  --green: #1e8e5a;
  --amber: #b86e00;
  --red: #c0392b;
  /* dark panel tokens */
  --p-ink: #eef3fa;
  --p-ink-2: #b9c6d8;
  --p-ink-3: #7f91a8;
  --p-line: #24405f;
  --p-green: #5fd38d;
  --p-blue: #7fb4ff;
  --p-amber: #ffc457;
  --radius: 10px;
  --max: 1180px;
  --font-display: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  /* faint blueprint grid behind the hero */
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 900px; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(14,36,64,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,36,64,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1), transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1), transparent);
}
main, header, footer { position: relative; z-index: 1; }

a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.02; font-weight: 800; }
h1 em { font-style: normal; color: var(--blue); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.12; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: 1rem;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  animation: pulse 1.8s ease-out infinite;
  display: inline-block;
}
.hero-panel .live-dot { background: var(--p-green); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30,142,90,.5);} 100% { box-shadow: 0 0 0 10px rgba(30,142,90,0);} }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
  font-weight: 600; text-decoration: none;
  padding: .85rem 1.3rem; border-radius: 8px; border: 0;
  font-family: var(--font-body); font-size: 1rem; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 2px rgba(14,27,46,.15);
}
.btn:hover { background: var(--blue-2); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31,95,191,.25); }
.btn:disabled { opacity: .7; cursor: default; transform: none; }
.btn-sm { padding: .55rem .95rem; font-size: .92rem; }
.btn-full { width: 100%; padding: 1rem; }
.link-arrow { color: var(--blue); text-decoration: none; font-weight: 600; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { color: var(--blue-2); text-decoration: underline; }
.fineprint { color: var(--ink-3); font-size: .9rem; }

/* NAV */
.nav {
  max-width: var(--max); margin: 0 auto; padding: 1.1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--navy); white-space: nowrap; }
.nav .btn-sm { white-space: nowrap; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); display: inline-block; }
.nav-links { display: flex; gap: 1.5rem; white-space: nowrap; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--navy); }

/* HERO */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 3.5rem 1.25rem 4rem;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
}
.lede { font-size: 1.15rem; color: var(--ink-2); margin-top: 1.4rem; max-width: 36rem; }
.hero-actions { display: flex; align-items: center; gap: 1.4rem; margin-top: 2rem; flex-wrap: wrap; }
.hero .fineprint { margin-top: 1.1rem; }

.hero-panel {
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  border: 1px solid var(--p-line); border-radius: 14px;
  box-shadow: 0 30px 70px rgba(14,36,64,.28), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  transform: rotate(-1.2deg);
  color: var(--p-ink);
}
.panel-head, .panel-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 1rem; font-family: var(--font-mono); font-size: .78rem; color: var(--p-ink-3);
}
.panel-head { border-bottom: 1px solid var(--p-line); }
.panel-foot { border-top: 1px solid var(--p-line); gap: 1.2rem; justify-content: flex-start; }
.panel-foot b { color: var(--p-ink); font-weight: 500; }
.panel-foot .warn b { color: var(--p-amber); }
.panel-title { color: var(--p-ink-2); }
.panel-meta { display: inline-flex; align-items: center; gap: .45rem; color: var(--p-green); }
.log { list-style: none; margin: 0; padding: .4rem 0; height: 300px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.log li {
  display: grid; grid-template-columns: 54px 118px 1fr auto; gap: .7rem; align-items: center;
  padding: .45rem 1rem; font-family: var(--font-mono); font-size: .76rem; color: var(--p-ink-2);
  animation: slidein .35s ease-out both;
  border-top: 1px solid rgba(255,255,255,.04);
}
@keyframes slidein { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none;} }
.log .t { color: var(--p-ink-3); }
.log .a { color: var(--p-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log .p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log .s { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .45rem; border-radius: 4px; border: 1px solid; }
.s.ok { color: var(--p-green); border-color: rgba(95,211,141,.4); }
.s.cache { color: var(--p-blue); border-color: rgba(127,180,255,.4); }
.s.bad { color: var(--p-amber); border-color: rgba(255,196,87,.5); background: rgba(255,196,87,.1); }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal .7s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .3s; } .d4 { animation-delay: .4s; }
@keyframes reveal { to { opacity: 1; transform: none; } }
.revealed .reveal { opacity: 1; transform: none; animation: none; }
/* no JavaScript: never hide the hero */
@media (scripting: none) { .reveal { opacity: 1; transform: none; animation: none; } }

/* PROOF */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.proof-grid { max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.25rem 1.25rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.stat { display: flex; flex-direction: column; gap: .5rem; border-left: 3px solid var(--blue); padding-left: 1rem; }
.stat-n { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--navy); }
.stat-l { color: var(--ink-2); font-size: .95rem; }
.proof-note { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem 2.5rem; color: var(--ink-3); font-size: .95rem; max-width: 52rem; }

/* sections */
section { scroll-margin-top: 80px; }
.section-head { max-width: 44rem; margin-bottom: 2.2rem; }
.section-head p:not(.eyebrow) { color: var(--ink-2); margin-top: .8rem; }
.views, .how, .why, .faq, .roster, .inbox { max-width: var(--max); margin: 0 auto; padding: 5rem 1.25rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .8rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(14,36,64,.08); }
.card-accent { border-color: rgba(31,95,191,.35); background: linear-gradient(180deg, var(--blue-tint), var(--bg-2)); }
.card-n { font-family: var(--font-mono); color: var(--blue); font-size: .78rem; letter-spacing: .1em; }
.card p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { font-family: var(--font-mono); font-size: .72rem; padding: .25rem .55rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); background: var(--bg); }
.mini-list { display: flex; flex-direction: column; gap: .35rem; font-family: var(--font-mono); font-size: .74rem; color: var(--ink-2); }
.mini-list div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line-2); padding-bottom: .3rem; }
.mini-list b { color: var(--ink); font-weight: 500; }
.bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line); }
.seg.ok { background: var(--green); } .seg.cache { background: var(--blue); } .seg.bad { background: var(--amber); }
.bar-key { display: flex; gap: 1rem; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); }
.bar-key i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: .35rem; vertical-align: middle; }
.bar-key .ok { background: var(--green);} .bar-key .cache { background: var(--blue);} .bar-key .bad { background: var(--amber);}

/* ROSTER */
.roster { border-top: 1px solid var(--line); }
.roster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.roster-col { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.roster-col h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.roster-col > p { color: var(--ink-2); font-size: .92rem; margin-bottom: 1rem; }
.roster-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.roster-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.roster-list li span:last-child { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); text-align: right; }
.roster-note { color: var(--ink-3); font-size: .92rem; margin-top: 1.4rem; max-width: 52rem; }

/* HOW */
.how { border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.step-n { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-tint); border: 1px solid rgba(31,95,191,.3); color: var(--blue); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--ink-2); font-size: .95rem; }

/* INBOX (agents that email instead) */
.inbox { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.inbox-copy p { color: var(--ink-2); margin-top: 1rem; }
.inbox-steps { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.inbox-steps li { display: flex; gap: .9rem; align-items: flex-start; }
.inbox-steps .tag { flex: 0 0 auto; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .5rem; border-radius: 4px; margin-top: .25rem; }
.tag.now { background: var(--blue-tint); color: var(--blue); }
.tag.next { background: #f1f3f6; color: var(--ink-3); }
.inbox-steps h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.inbox-steps p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.playbook { background: var(--navy); color: var(--p-ink); border-radius: 14px; padding: 1.6rem; box-shadow: 0 24px 60px rgba(14,36,64,.25); }
.playbook .eyebrow { color: var(--p-amber); }
.playbook h3 { color: #fff; font-size: 1.3rem; margin-bottom: .6rem; }
.playbook > p { color: var(--p-ink-2); font-size: .95rem; }
.playbook ol { margin: 1.2rem 0 0; padding-left: 1.2rem; color: var(--p-ink); display: flex; flex-direction: column; gap: .7rem; font-size: .95rem; }
.playbook ol b { color: #fff; }
.playbook .fineprint { color: var(--p-ink-3); margin-top: 1.2rem; }

/* AUDIT */
.audit { background: var(--navy); color: var(--p-ink); display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 5rem max(1.25rem, calc((100% - var(--max)) / 2)); }
.audit .eyebrow { color: var(--p-blue); }
.audit h2 { color: #fff; }
.audit p { color: var(--p-ink-2); margin-top: 1rem; }
.audit .fineprint { color: var(--p-ink-3); }
.scorecard { background: #fff; color: var(--ink); border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.25); overflow: hidden; }
.sc-head, .sc-row, .sc-total { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: .85rem 1.2rem; position: relative; }
.sc-head { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.sc-row { border-bottom: 1px solid #eef2f7; }
.sc-row i { position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--w) * 4%); background: var(--blue); }
.sc-total { font-weight: 600; background: var(--bg); }

/* WHY */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.why-grid h3 { margin-bottom: .5rem; }
.why-grid p { color: var(--ink-2); font-size: .95rem; }

/* PILOT */
.pilot { border-top: 1px solid var(--line); background: var(--bg-2); display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 5rem max(1.25rem, calc((100% - var(--max)) / 2)); }
.pilot-copy p { color: var(--ink-2); margin-top: 1rem; }
.checklist { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; color: var(--ink); }
.checklist li::before { content: "\2713"; color: var(--green); margin-right: .6rem; font-weight: 700; }
.form { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-full { grid-column: 1 / -1; }
.form label { font-size: .85rem; color: var(--ink-2); font-weight: 500; }
.form .opt { color: var(--ink-3); font-size: .75rem; margin-left: .3rem; font-weight: 400; }
.form input, .form select, .form textarea {
  width: 100%; background: #fff; color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px;
  padding: .7rem .8rem; font: inherit; font-size: .98rem;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.form button, .form-status, .form .fineprint { grid-column: 1 / -1; }
.form-status { min-height: 1.2em; font-size: .92rem; color: var(--green); }
.form-status.err { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
.faq-list { max-width: 52rem; display: flex; flex-direction: column; }
details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-weight: 400; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--ink-2); margin-top: .7rem; max-width: 46rem; }

/* FOOT */
.foot { border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.25rem 3rem; color: var(--ink-3); font-size: .9rem; display: flex; flex-direction: column; gap: .8rem; }
.foot-brand { display: flex; align-items: center; gap: .6rem; color: var(--navy); font-family: var(--font-display); font-weight: 700; }
.foot a { color: var(--ink-2); }
.foot-legal { font-size: .8rem; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .roster-list li { flex-direction: column; gap: .1rem; }
  .roster-list li span:last-child { text-align: left; }
}
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps, .why-grid, .roster-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .roster-list li { flex-direction: row; }
  .roster-list li span:last-child { text-align: right; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 2rem; gap: 2.5rem; }
  .hero-panel { transform: none; }
  .log { height: 240px; }
  .log li { grid-template-columns: 48px 96px 1fr auto; }
  .proof-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .audit, .pilot, .inbox { grid-template-columns: 1fr; gap: 2rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .views, .how, .why, .faq, .roster { padding: 3.5rem 1.25rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { padding: .9rem 1rem; }
  .brand { font-size: .95rem; }
  .brand-name { white-space: nowrap; }
  .btn-sm { white-space: nowrap; padding: .5rem .8rem; font-size: .85rem; }
  h1 { font-size: 2.3rem; }
  .cards { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 1.2rem; }
  .log li { grid-template-columns: 1fr auto; }
  .log .t, .log .p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .log li { animation: none; }
  .live-dot { animation: none; }
  html { scroll-behavior: auto; }
}
