/* ============================================================
   Burt marketing site — the LOCKED monochrome brand system.
   One accent token (--accent), currently = ink. Rebrand = swap it.
   ============================================================ */
:root {
  --ink: #14161A;
  --graphite: #2C313A;
  --slate: #565E69;
  --steel: #828A95;
  --mist: #AEB5BE;
  --line: #E4E7EB;
  --line-soft: #EEF0F2;
  --surface: #FFFFFF;
  --surface-2: #F8F9FA;
  --ground: #F2F4F5;
  --ink-inv: #FFFFFF;

  --accent: #14161A;
  --accent-press: #000000;
  --on-accent: #FFFFFF;

  --ok: #2E7D52;      --ok-soft: #E7F1EB;
  --warn: #8A6A1E;    --warn-soft: #F3EDDF;
  --alert: #A6362B;   --alert-soft: #F3E4E1;
  --note: #3E4A5B;    --note-soft: #EAEDF1;

  --radius: 6px; --radius-lg: 11px; --radius-xl: 16px;
  --shadow-1: 0 1px 2px rgba(16,20,26,.05), 0 1px 1px rgba(16,20,26,.04);
  --shadow-2: 0 2px 4px rgba(16,20,26,.05), 0 8px 24px rgba(16,20,26,.07);

  --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', Georgia, sans-serif;
  --font-body: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Browser surfaces carry the design too */
::selection { background: var(--ink); color: var(--ink-inv); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
* { scrollbar-width: thin; scrollbar-color: var(--mist) transparent; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-press); }

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky; top: 0; z-index: 50;
}
.nav-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: 8px; }
.nav-brand svg { display: block; }
.nav-brand span { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { text-decoration: none; font-size: 15.5px; font-weight: 500; color: var(--slate); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }

/* mobile hamburger — hidden on desktop */
.nav-burger {
  display: none; order: 1; margin-left: auto; background: none; border: 0;
  padding: 10px; cursor: pointer; border-radius: var(--radius);
}
.nav-burger:hover { background: var(--surface-2); }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav[data-open="1"] .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav[data-open="1"] .nav-burger span:nth-child(2) { opacity: 0; }
.nav[data-open="1"] .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  font: inherit; font-weight: 600; font-size: 15.5px; line-height: 1.2;
  border-radius: var(--radius); cursor: pointer; padding: 11px 20px; min-height: 44px;
  border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .04s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-press); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--steel); }
.btn-ghost { background: transparent; color: var(--slate); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn-lg { font-size: 17px; padding: 14px 26px; }
.btn-on-ink.btn-primary { background: var(--surface); color: var(--ink); }
.btn-on-ink.btn-primary:hover { background: var(--ground); color: var(--ink); }
.btn-on-ink.btn-secondary { background: transparent; color: var(--surface); border-color: var(--graphite); }
.btn-on-ink.btn-secondary:hover { border-color: var(--steel); }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-ink { background: var(--ink); color: var(--surface); border-top: none; }
.section-ink + .section { border-top: none; }
.section-tint { background: var(--surface-2); }

.h-xl { font-size: clamp(38px, 5.6vw, 64px); font-weight: 600; }
.h-lg { font-size: clamp(30px, 4vw, 44px); font-weight: 600; }
.h-md { font-size: clamp(23px, 2.6vw, 30px); font-weight: 600; }
.lede { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; color: var(--slate); max-width: 62ch; }
.section-ink .lede { color: var(--mist); }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1em; }

.footnote { font-family: var(--font-mono); font-size: 12px; color: var(--slate); }

/* ── Hero stage: the case file assembling ────────────────── */
.hero { padding: 72px 0 88px; }
.hero-head { max-width: 820px; display: flex; flex-direction: column; gap: 22px; margin-bottom: 56px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 14.5px; color: var(--slate); }

.stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; position: relative; }
.stage-link {
  position: absolute; left: calc(41.5% - 14px); top: 44%;
  color: var(--mist); display: flex; align-items: center;
}

/* chat card */
.chat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2); overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft); background: var(--surface-2);
}
.chat-head-name { font-weight: 700; font-size: 15px; }
.chat-head-sub { font-size: 12.5px; color: var(--slate); }
.chat-stamp { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--slate); }
.chat-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 330px; }
.msg { max-width: 85%; padding: 11px 15px; font-size: 14.5px; line-height: 1.5; }
.msg-burt { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 14px 14px 14px 4px; align-self: flex-start; }
.msg-visitor { background: var(--ink); color: var(--surface); border-radius: 14px 14px 4px 14px; align-self: flex-end; }
.msg-photo {
  align-self: flex-end; width: 150px; height: 100px; border-radius: 10px;
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.msg-photo svg { display: block; width: 100%; height: 100%; }
.msg-photo figcaption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 3px 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  background: rgba(20,22,26,.78); color: var(--surface);
}

/* packet card — recreated from the real dashboard EvaluationPanel */
.packet-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2); padding: 22px; display: flex; flex-direction: column; gap: 16px;
}
.packet-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.packet-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.packet-badges { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.badge {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 100px;
  display: inline-flex; align-items: center; white-space: nowrap; border: 1px solid transparent;
}
.badge-success { background: var(--ok-soft); color: var(--ok); }
.badge-attention { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.badge-info { background: var(--note-soft); color: var(--note); }
.packet-score { text-align: right; }
.packet-score-value { font-family: var(--font-mono); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.packet-score-why { font-size: 12.5px; color: var(--slate); text-decoration: underline; text-underline-offset: 2px; }
.packet-rule { border: 0; border-top: 1px solid var(--line-soft); margin: 0; }
.packet-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 20px; }
.packet-fact dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); margin: 0; }
.packet-fact dd { font-size: 14.5px; margin: 3px 0 0; }
.packet-evidence { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.packet-evidence-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); width: 100%; }
.evidence-thumb {
  width: 74px; height: 54px; border-radius: 8px; border: 1px solid var(--line);
  overflow: hidden; display: block; position: relative;
}
.evidence-thumb svg { display: block; width: 100%; height: 100%; }
.evidence-more { font-family: var(--font-mono); font-size: 12px; color: var(--slate); }
.packet-contact { display: flex; gap: 10px 22px; align-items: center; flex-wrap: wrap; }
.packet-contact .mini-btn {
  font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none;
}
.packet-contact .mono { font-size: 13px; color: var(--slate); }

/* assembly animation — visible by default; JS opts in when motion is allowed */
.can-animate [data-step] { opacity: 0; transform: translateY(10px); }
.can-animate [data-step].is-in { opacity: 1; transform: none; transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1); }
.can-animate .evidence-thumb[data-step] { transform: translateX(-28px) scale(.85); }
.can-animate .evidence-thumb[data-step].is-in { transform: none; }

/* ── Feature rows (no identical card grids) ──────────────── */
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.feature-row + .feature-row { margin-top: 88px; }
.feature-row-flip > :first-child { order: 2; }
.feature-copy { display: flex; flex-direction: column; gap: 18px; }
.feature-copy h3 { font-size: clamp(24px, 2.8vw, 32px); }
.feature-copy p { color: var(--slate); }
.feature-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.feature-points svg { flex: 0 0 22px; margin-top: 2px; }

/* channel band — one ruled list, not cards */
.channel-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.channel {
  padding: 26px 26px 30px 0; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.channel + .channel { border-left: 1px solid var(--line-soft); padding-left: 26px; }
.channel:nth-child(3n + 1) { border-left: none; padding-left: 0; }
.channel h3 { font-size: 19px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.channel p { font-size: 15px; color: var(--slate); }

/* ── Diagrams ────────────────────────────────────────────── */
.diagram { width: 100%; height: auto; display: block; }
.diagram-wide { min-width: 760px; }
.diagram-mid { min-width: 440px; }
.diagram-frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; overflow-x: auto; }
.section-ink .diagram-frame { background: transparent; border-color: var(--graphite); }

/* ── Ledger / pricing ────────────────────────────────────── */
.ledger { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.ledger-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 15px 22px; border-bottom: 1px solid var(--line-soft); font-size: 16px;
}
.ledger-row:last-child { border-bottom: none; }
.ledger-row .mono { font-size: 15px; }
.ledger-zero { color: var(--slate); }
.ledger-zero .mono { color: var(--slate); }
.ledger-total { background: var(--surface-2); font-weight: 700; }

.price-card {
  border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 34px 36px;
  box-shadow: var(--shadow-2); background: var(--surface);
}
.price-line { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.price-line:last-of-type { border-bottom: none; }
.price-line span:first-child { color: var(--slate); font-size: 16px; }
.price-line .mono { font-weight: 600; font-size: 15.5px; white-space: nowrap; }

/* comparison table */
.compare { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-x: auto; background: var(--surface); }
.compare table { border-collapse: collapse; width: 100%; min-width: 760px; }
.compare th, .compare td { text-align: center; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.compare th { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; }
.compare th:first-child, .compare td:first-child {
  text-align: left; font-weight: 600; padding-left: 20px;
  position: sticky; left: 0; z-index: 1; background: var(--surface);
  box-shadow: inset -1px 0 0 var(--line-soft);
}
.compare thead th:first-child { z-index: 2; }
.compare thead th.burt-col { background: var(--ink); color: var(--surface); }
.compare td.burt-col { background: var(--surface-2); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare .mini { font-family: var(--font-mono); font-size: 11.5px; color: var(--slate); }
.compare .na { font-family: var(--font-mono); color: var(--slate); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px;
  align-items: center; padding: 20px 4px; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: 0 0 18px; transition: transform .18s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .faq-a { padding: 0 4px 22px; color: var(--slate); max-width: 64ch; }
.faq .faq-a p + p { margin-top: .8em; }

/* ── Steps (sequence carries information) ────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--surface);
  background: var(--ink); width: 30px; height: 30px; border-radius: 100px;
  display: flex; align-items: center; justify-content: center;
}
.section-ink .step::before { background: var(--surface); color: var(--ink); }
.step h3 { font-size: 18px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.step p { font-size: 15px; color: var(--slate); }
.section-ink .step p { color: var(--mist); }

/* ── Forms (Netlify) ─────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.form label { font-weight: 600; font-size: 15px; display: flex; flex-direction: column; gap: 7px; }
.form input, .form textarea {
  font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); color: var(--ink); caret-color: var(--ink);
}
.form input::placeholder, .form textarea::placeholder { color: var(--slate); }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }

/* ── Footer ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 48px 0 56px; background: var(--surface-2); }
.footer-grid { display: flex; gap: 48px; justify-content: space-between; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand span { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col strong { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); font-family: var(--font-mono); font-weight: 500; }
.footer-col a { text-decoration: none; font-size: 15px; color: var(--slate); }
.footer-col a:hover { color: var(--ink); }
.footer-legal { margin-top: 40px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--slate); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; }
  /* Stacked cards: the connector becomes a down arrow between chat and packet. */
  .stage-link { position: static; justify-self: center; margin: -6px 0; transform: rotate(90deg); }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row-flip > :first-child { order: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-band { grid-template-columns: 1fr; }
  .channel, .channel + .channel { border-left: none; padding-left: 0; }
  .packet-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Mobile navigation: hamburger reveals links + CTAs in a stacked panel. */
@media (max-width: 768px) {
  .nav-burger { display: block; }
  .nav-row { flex-wrap: wrap; height: auto; min-height: 64px; gap: 0 16px; }
  .nav-links, .nav-cta { display: none; }
  .nav[data-open="1"] .nav-links {
    display: flex; order: 2; flex-basis: 100%; flex-direction: column; align-items: stretch;
    gap: 0; border-top: 1px solid var(--line-soft); margin-top: 4px;
  }
  .nav[data-open="1"] .nav-links a {
    padding: 14px 2px; font-size: 16px; color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav[data-open="1"] .nav-cta {
    display: flex; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch;
    margin: 12px 0 14px; gap: 10px;
  }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .steps { grid-template-columns: 1fr; }
  .footer-cols { gap: 36px; }
  .footer-col { gap: 4px; }
  .footer-col a { padding: 6px 0; }
  .price-card { padding: 24px 20px; }
  .diagram-frame { padding: 18px; }
  .form { max-width: none; }
  .form button[type="submit"] { width: 100%; }
}

@media (max-width: 420px) {
  .packet-facts { grid-template-columns: 1fr; }
}
