/* Contract Dispatch — site styles. Brand tokens from docs/brand/BRAND.md. No external fonts or trackers. */

:root {
  --ink: #0f1b2d;
  --ink-2: #24344d;
  --teal: #0e7c7b;
  --teal-dark: #0a5f5e;
  --teal-light: #5fd4cf;
  --teal-tint: #e7f4f3;
  --amber: #f5a524;
  --amber-tint: #fff4e0;
  --paper: #f7f8fa;
  --white: #ffffff;
  --slate: #5b6b7e;
  --line: #dfe4ea;
  --danger: #a1342a;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.06), 0 8px 24px rgba(15, 27, 45, 0.08);
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff;
  padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.brand span b { color: var(--teal); font-weight: 800; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--teal); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { padding: 9px 16px; font-size: 0.92rem; }
.btn[aria-disabled="true"] { background: var(--line); color: var(--slate); cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700;
  color: var(--teal-dark); background: var(--teal-tint); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.fine { font-size: 0.88rem; color: var(--slate); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 0.92rem; color: var(--ink-2); }
.facts li::before { content: "✓"; color: var(--teal); font-weight: 800; margin-right: 7px; }

/* ---------- Digest card (hero + sample) ---------- */
.digest {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; font-size: 0.95rem;
}
.digest-head { background: var(--ink); color: #fff; padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.digest-head img { width: 30px; height: 30px; }
.digest-head small { display: block; color: #b8c4d3; font-size: 0.8rem; }
.digest-body { padding: 8px 20px 16px; }
.opp { padding: 16px 0; border-bottom: 1px solid var(--line); }
.opp:last-child { border-bottom: 0; }
.opp h4 { margin: 0 0 4px; font-size: 1rem; line-height: 1.35; }
.opp .meta { color: var(--slate); font-size: 0.85rem; margin-bottom: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag { font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.tag.match { background: var(--teal-tint); color: var(--teal-dark); border-color: transparent; }
.tag.warn { background: var(--amber-tint); color: #7a4d00; border-color: transparent; }
.why { font-size: 0.9rem; margin: 0 0 6px; }
.note { font-size: 0.85rem; color: #7a4d00; background: var(--amber-tint); padding: 8px 10px; border-radius: var(--radius-sm); margin: 6px 0; }
.sample-label {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--slate); margin: 0 0 4px;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.steps p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal-dark); margin-bottom: 14px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare > div { border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); background: var(--white); }
.compare > div.ours { border: 2px solid var(--teal); }
.compare ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.compare li { margin-bottom: 8px; }

.sample-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }

/* ---------- Pricing ---------- */
.price-card {
  max-width: 520px; margin: 0 auto; background: var(--white); border: 2px solid var(--teal);
  border-radius: 18px; padding: 34px; box-shadow: var(--shadow); text-align: left;
}
.price { font-size: 3.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: 1.05rem; font-weight: 600; color: var(--slate); letter-spacing: 0; }
.checklist { list-style: none; padding: 0; margin: 22px 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--ink-2); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 800; }
.status-banner {
  background: var(--amber-tint); color: #6b4300; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.93rem; margin: 0 0 18px;
}

/* ---------- FAQ ---------- */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 16px; color: var(--ink-2); }

/* ---------- Contact / CTA band ---------- */
.band { background: var(--ink); color: #fff; border-radius: 18px; padding: 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.band h2 { color: #fff; }
.band p { color: #c9d3e0; }
.band a:not(.btn) { color: var(--teal-light); }
.band .btn-ghost { color: #fff; border-color: #3a4c66; }
.band .btn-ghost:hover { border-color: #fff; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 10px; }
.contact-list span { display: block; font-size: 0.8rem; color: #8fa0b6; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d3e0; padding: 48px 0 32px; margin-top: 72px; font-size: 0.92rem; }
.site-footer a { color: #e6edf5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-grid h3 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.disclaimer { border-top: 1px solid #2c3e57; padding-top: 22px; font-size: 0.85rem; color: #9fb0c4; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0; }
.legal h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal .updated { color: var(--slate); font-size: 0.95rem; }
.legal .callout { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius-sm); padding: 16px 20px; margin: 20px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .sample-wrap, .band { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .nav-toggle { display: inline-block; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 0 14px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 8px 0; }
  .nav a.btn { padding: 10px 18px; margin-top: 8px; }
  .js-off .nav { display: flex; }
  .js-off .nav-toggle { display: none; }
  .steps, .grid-3, .compare, .footer-grid { grid-template-columns: 1fr; }
  .band { padding: 28px 22px; }
  .price-card { padding: 26px 22px; }
  .cta-row .btn { width: 100%; }
}
