/* ModWrx — single stylesheet for the one-pager and the MSA page. */

@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/barlow-condensed-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/barlow-condensed-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #0B0C0E;
  --bg-raised: #101114;
  --panel: #15171B;
  --panel-hover: #1A1D22;
  --ink: #B9BFC7;
  --ink-strong: #F4F5F7;
  --ink-muted: #878D95;
  --accent: #E8562A;
  --accent-hot: #FF6B3D;
  --accent-ink: #1C0F08;
  --accent-soft: rgba(232, 86, 42, 0.12);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --radius: 14px;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.shell { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink-strong);
  line-height: 1.05;
  text-wrap: balance;
  letter-spacing: 0.01em;
}

p { max-width: 70ch; }
a { color: var(--ink-strong); }

:focus-visible {
  outline: 2px solid var(--accent-hot);
  outline-offset: 3px;
  border-radius: 4px;
}

section { scroll-margin-top: 5rem; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: 4rem;
}
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: 0.06em; color: var(--ink-strong); text-decoration: none;
}
.wordmark .x { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--ink-strong); }
.header-cta {
  display: inline-block; padding: 0.5rem 1.1rem;
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  color: var(--ink-strong); border: 1px solid var(--line-strong);
  border-radius: 8px; white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.header-cta:hover { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 40rem) {
  .site-nav a:not(.header-cta) { display: none; }
}

/* ── Shared bits ────────────────────────────────────────── */
.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--accent);
}
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.7rem;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  text-decoration: none; border-radius: 10px;
  color: var(--accent-ink); background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset,
              0 8px 24px -8px rgba(232, 86, 42, 0.5);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  background: var(--accent-hot); transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset,
              0 12px 28px -8px rgba(232, 86, 42, 0.6);
}
.btn svg { flex-shrink: 0; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.7rem;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  color: var(--ink-strong); background: transparent;
  border: 1px solid var(--line-strong); border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }

section { padding: 6rem 0; }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin: 0.6rem 0 1rem; }
.section-head p { color: var(--ink-muted); font-size: 1.05rem; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 6.5rem 0 5.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60rem 30rem at 70% -10%, rgba(232, 86, 42, 0.10), transparent 60%),
    radial-gradient(40rem 24rem at 10% 110%, rgba(232, 86, 42, 0.05), transparent 60%);
}
/* faint dot grid, fading toward the bottom */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.hero .shell {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 4rem; align-items: center;
}
@media (max-width: 56rem) {
  .hero .shell { grid-template-columns: 1fr; gap: 3.5rem; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.9rem; margin-bottom: 1.5rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-strong); background: var(--accent-soft);
  border: 1px solid rgba(232, 86, 42, 0.35); border-radius: 999px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 8px rgba(255, 107, 61, 0.9);
}
.hero h1 { font-size: clamp(2.9rem, 6.5vw, 4.6rem); margin-bottom: 1.25rem; max-width: 16ch; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: 1.2rem; color: var(--ink); max-width: 50ch; margin-bottom: 2.25rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.75rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; padding: 0; margin: 0; list-style: none; }
.hero-points li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; color: var(--ink-muted);
}
.hero-points svg { color: var(--accent); flex-shrink: 0; }

/* Chat mock — a CSS-only rendering of Clare handling a lead */
.chat-card {
  position: relative;
  background: linear-gradient(180deg, var(--panel), var(--bg-raised));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 60px -30px rgba(0, 0, 0, 0.8),
    0 0 80px -30px rgba(232, 86, 42, 0.25);
  padding: 1.1rem 1.1rem 1.25rem;
  max-width: 26rem;
  justify-self: end;
  width: 100%;
}
@media (max-width: 56rem) { .chat-card { justify-self: start; } }
.chat-head {
  display: flex; align-items: center; gap: 0.7rem;
  padding-bottom: 0.9rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.chat-avatar {
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--display); font-weight: 700; font-size: 1rem;
}
.chat-title { font-size: 0.92rem; font-weight: 600; color: var(--ink-strong); line-height: 1.2; }
.chat-status { display: flex; align-items: center; gap: 0.4rem; font-size: 0.76rem; color: var(--ink-muted); }
.chat-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #3DBE6B; box-shadow: 0 0 6px rgba(61, 190, 107, 0.8);
}
.chat-body { display: flex; flex-direction: column; gap: 0.6rem; }
.msg {
  max-width: 85%; padding: 0.6rem 0.9rem;
  font-size: 0.9rem; line-height: 1.45; border-radius: 14px;
}
.msg-in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07); color: var(--ink-strong);
  border-bottom-left-radius: 4px;
}
.msg-out {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(232, 86, 42, 0.28), rgba(232, 86, 42, 0.16));
  border: 1px solid rgba(232, 86, 42, 0.3);
  color: var(--ink-strong);
  border-bottom-right-radius: 4px;
}
.chat-event {
  display: inline-flex; align-items: center; gap: 0.45rem;
  align-self: center; margin-top: 0.5rem;
  padding: 0.35rem 0.8rem; border-radius: 999px;
  font-size: 0.76rem; font-weight: 600; color: var(--ink);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
.chat-event svg { color: #3DBE6B; }

/* ── Capability strip ───────────────────────────────────── */
.strip { border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.strip .shell {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 1rem 2.5rem; padding-top: 1.4rem; padding-bottom: 1.4rem;
}
.strip span {
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-muted);
}

/* ── Capability cards ───────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.1rem; }
.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel), var(--bg-raised));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.card:hover {
  border-color: rgba(232, 86, 42, 0.4);
  background: linear-gradient(180deg, var(--panel-hover), var(--bg-raised));
  transform: translateY(-3px);
}
.card-icon {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; margin-bottom: 1.1rem;
  border-radius: 10px; background: var(--accent-soft);
  border: 1px solid rgba(232, 86, 42, 0.25); color: var(--accent);
}
.card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: var(--ink-muted); }

/* ── How it works ───────────────────────────────────────── */
#how { background: var(--bg-raised); border-block: 1px solid var(--line); }
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.5rem; counter-reset: step;
}
.step { counter-increment: step; position: relative; }
.step-num {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; margin-bottom: 1.1rem;
  border-radius: 50%; border: 1px solid rgba(232, 86, 42, 0.4);
  background: var(--accent-soft);
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--accent);
}
.step-num::before { content: counter(step); }
/* connector line between step chips on wide layouts */
@media (min-width: 56rem) {
  .step:not(:last-child)::before {
    content: ''; position: absolute; top: 1.3rem; left: 3.4rem; right: -1.7rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(232, 86, 42, 0.35), var(--line));
  }
}
.step h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.95rem; color: var(--ink-muted); }

/* ── Built for dealers ──────────────────────────────────── */
.trust-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem; align-items: start;
  background: linear-gradient(180deg, var(--panel), var(--bg-raised));
  border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.75rem, 4vw, 3.25rem);
}
@media (max-width: 56rem) { .trust-panel { grid-template-columns: 1fr; gap: 2rem; } }
.trust-panel h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); margin: 0.6rem 0 1rem; }
.trust-panel > div > p { color: var(--ink-muted); font-size: 1rem; }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.trust-list li {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.trust-list svg { color: var(--accent); flex-shrink: 0; margin-top: 0.15rem; }
.trust-list strong { display: block; color: var(--ink-strong); font-size: 0.98rem; margin-bottom: 0.15rem; }
.trust-list span { font-size: 0.9rem; color: var(--ink-muted); }

/* ── Closing CTA ────────────────────────────────────────── */
.cta-panel {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--line-strong); border-radius: 20px;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  background:
    radial-gradient(42rem 20rem at 50% 120%, rgba(232, 86, 42, 0.22), transparent 65%),
    linear-gradient(180deg, var(--panel), var(--bg-raised));
}
.cta-panel .eyebrow { display: block; margin-bottom: 0.4rem; }
.cta-panel h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.cta-panel p { margin: 0 auto 2.25rem; color: var(--ink); max-width: 46ch; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; font-size: 0.9rem; }
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 2rem; margin-bottom: 2.5rem;
}
.footer-brand .wordmark { font-size: 1.35rem; }
.footer-brand p { margin-top: 0.5rem; color: var(--ink-muted); font-size: 0.88rem; max-width: 34ch; }
.footer-links { display: flex; gap: 2.5rem; }
.footer-links a {
  color: var(--ink-muted); text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--ink-strong); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
  color: var(--ink-muted); font-size: 0.85rem;
}

/* ── MSA document sheet ─────────────────────────────────── */
.doc-sheet {
  background: #F7F7F5; color: #1B1C1E; border-radius: 12px;
  padding: 3.5rem clamp(1.5rem, 6vw, 4.5rem); margin: 3rem auto 5rem;
  max-width: 52rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.doc-sheet h1 { color: #111; font-size: 2.2rem; border-bottom: 2px solid #8A3B1F; padding-bottom: 0.75rem; }
.doc-sheet .updated { color: #6B6E73; font-size: 0.9rem; margin: 0.5rem 0 2.5rem; }
.doc-sheet .meta { color: #6B6E73; font-size: 0.9rem; margin: 0.5rem 0 1.5rem; }
.doc-sheet h2 { color: #111; font-size: 1.35rem; margin: 2.25rem 0 0.75rem; }
.doc-sheet h3 { color: #111; font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.doc-sheet p, .doc-sheet li { max-width: 68ch; font-size: 1rem; color: #2A2C2F; }
.doc-sheet ul { padding-left: 1.4rem; margin: 0.5rem 0; }
.doc-sheet .pending {
  border: 1px dashed #B9846F; background: #FBF1ED; color: #8A3B1F;
  border-radius: 6px; padding: 1rem 1.25rem; font-size: 0.95rem;
}
.doc-sheet .notice {
  background: #F1EEE9; border-left: 4px solid #8A3B1F;
  padding: 1rem 1.25rem; margin: 1rem 0 2rem; font-size: 0.95rem; color: #2A2C2F;
}
.doc-sheet .toc {
  background: #FBFAF8; border: 1px solid #E3E0DA; border-radius: 8px;
  padding: 1rem 1.4rem 1.25rem; margin: 1.25rem 0 2rem; font-size: 0.95rem;
}
.doc-sheet .toc h2 { margin-top: 0; font-size: 1rem; }
.doc-sheet .toc ol { padding-left: 1.4rem; margin: 0.4rem 0 0; columns: 2; column-gap: 2rem; }
.doc-sheet .toc li { margin: 0.2rem 0; break-inside: avoid; }
@media (max-width: 40rem) { .doc-sheet .toc ol { columns: 1; } }
.doc-sheet .contact {
  background: #FBFAF8; border: 1px solid #E3E0DA; border-radius: 8px;
  padding: 1rem 1.25rem; margin-top: 1.5rem;
}
.doc-sheet .placeholder { color: #B04B00; font-weight: 600; }
.doc-sheet .caps { text-transform: uppercase; }
.doc-sheet hr { border: 0; border-top: 1px solid #E3E0DA; margin: 2.5rem 0; }
.doc-sheet a { color: #8A3B1F; }

@media print {
  .site-header, .site-footer { display: none; }
  body { background: #fff; }
  .doc-sheet { background: #fff; margin: 0; padding: 0; border-radius: 0; max-width: none; box-shadow: none; }
}
