:root {
  color-scheme: dark;
  --bg: #111613;
  --surface: #181f1b;
  --surface-soft: #1e2722;
  --line: #344039;
  --text: #f0f1e9;
  --muted: #adb7ad;
  --accent: #d4e2a7;
  --accent-ink: #1d281a;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); line-height: 1.55; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.site-header, .site-footer { width: min(1120px, calc(100% - 48px)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.site-header { min-height: 82px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; text-decoration: none; font-size: 16px; font-weight: 800; letter-spacing: .12em; line-height: 1.1; }
.wordmark span { color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: .1em; }
nav { display: flex; gap: 28px; color: var(--muted); font-size: 13px; }
nav a, .site-footer > a:last-child { text-decoration: none; }
nav a:hover, .site-footer > a:last-child:hover { color: var(--accent); }
.hero, .section-wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); gap: clamp(40px, 8vw, 112px); align-items: center; padding-block: clamp(68px, 10vw, 126px) clamp(76px, 9vw, 112px); }
.eyebrow, .sample-kicker, .card-number { color: var(--accent); font-family: var(--mono); font-size: 10px; letter-spacing: .16em; }
.eyebrow { margin: 0 0 18px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 700px; margin-bottom: 22px; font-size: clamp(42px, 6.4vw, 76px); font-weight: 560; line-height: .99; letter-spacing: -.065em; }
h1 em { color: var(--accent); font-style: normal; }
.hero-intro { max-width: 565px; margin-bottom: 30px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); font-size: 14px; font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.hero-note { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 26px; }
.note-heading { margin-bottom: 12px; font-size: 15px; font-weight: 650; }
.note-row { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding-block: 15px; border-top: 1px solid var(--line); }
.note-row span { color: var(--accent); font-family: var(--mono); font-size: 10px; padding-top: 3px; }
.note-row p { margin: 0; color: #d0d6ce; font-size: 13px; }
.note-foot { margin: 14px 0 0; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .025em; }
.section-wrap { padding-block: 42px 68px; }
.services { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 26px; }
.section-heading .eyebrow { margin-bottom: 10px; }
h2 { margin-bottom: 0; font-size: clamp(27px, 3.3vw, 40px); font-weight: 560; line-height: 1.08; letter-spacing: -.045em; }
.section-heading > p { max-width: 360px; margin-bottom: 3px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.service-grid { display: grid; grid-template-columns: 1.08fr 1fr 1fr; gap: 13px; }
.service-card { display: flex; min-height: 354px; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.service-card-featured { background: var(--surface-soft); border-color: #647354; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 23px; }
.card-number { color: var(--muted); font-size: 9px; }
.price { color: var(--accent); font-size: 21px; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.price span { color: var(--muted); font-size: 10px; font-weight: 450; letter-spacing: 0; }
.service-card h3 { margin-bottom: 8px; font-size: 21px; font-weight: 600; line-height: 1.2; letter-spacing: -.035em; }
.card-intro { min-height: 42px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.card-meta { margin: -4px 0 12px; color: var(--accent); font-family: var(--mono); font-size: 9px; }
.service-card ul { display: grid; gap: 8px; margin: 0 0 22px; padding-left: 16px; color: #dce0d9; font-size: 12px; }
.service-card li::marker { color: var(--accent); }
.order-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 12px 13px; border-radius: 3px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 750; text-decoration: none; }
.order-link:hover { background: #e1ecc1; }
.order-link span { font-size: 16px; }
.scope-note { margin: 15px 0 0; color: var(--muted); font-size: 10px; }
.samples { padding-top: 36px; border-top: 1px solid var(--line); }
.sample-heading { margin-bottom: 25px; }
.sample { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.sample-csv { padding: 23px; }
.sample-head { display: flex; align-items: start; justify-content: space-between; gap: 22px; margin-bottom: 20px; }
.sample-kicker { margin-bottom: 9px; font-size: 9px; }
.sample h3 { margin-bottom: 0; font-size: 18px; font-weight: 600; letter-spacing: -.03em; }
.row-count { display: grid; gap: 2px; text-align: right; }
.row-count strong { color: var(--accent); font-family: var(--mono); font-size: 16px; }
.row-count span { color: var(--muted); font-size: 10px; }
.table-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.table-shell { min-width: 0; border: 1px solid var(--line); border-radius: 4px; }
.cleaned-shell { border-color: #52604a; }
.table-label { display: flex; justify-content: space-between; padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.table-label span:first-child { color: var(--text); font-weight: 700; }
.cleaned-shell .table-label span:first-child { color: var(--accent); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 9px; text-align: left; white-space: nowrap; }
th, td { padding: 8px 9px; border-bottom: 1px solid #2a332d; }
th { color: var(--muted); font-size: 8px; font-weight: 500; }
td { color: #dce1da; }
.duplicate-row td { color: #d5a895; background: #3b2925; }
.cleaned-shell td { color: #e5ebdf; }
.sample-actions { display: flex; flex-wrap: wrap; gap: 8px 17px; margin-top: 15px; }
.sample-actions a { color: var(--accent); font-size: 10px; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.demo-label { margin: 12px 0 0; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .015em; }
.sample-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 13px; }
.sample-bug, .sample-workflow { padding: 22px; }
.bug-preview { display: block; width: min(100%, 400px); height: auto; margin: 17px 0 13px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.sample-copy { margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.sample-bug .sample-copy { max-width: 490px; }
.flow-demo { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 20px 14px; border: 1px solid var(--line); border-radius: 4px; background: #141a16; }
.flow-demo span:not(.flow-arrow) { flex: 1; padding: 12px 9px; border: 1px solid #637053; border-radius: 3px; color: #e7ecdf; font-family: var(--mono); font-size: 10px; text-align: center; }
.flow-arrow { color: var(--accent); }
.site-footer { min-height: 94px; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer .wordmark { color: var(--text); }
.site-footer p { margin: 0; font-size: 11px; }
.site-footer > a:last-child { color: var(--accent); font-size: 11px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 70px; }
  .hero-note { max-width: 520px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card:first-child { grid-column: 1 / -1; min-height: 320px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
}
@media (max-width: 560px) {
  .site-header, .site-footer, .hero, .section-wrap { width: min(100% - 32px, 1120px); }
  .site-header { min-height: 70px; }
  .wordmark { gap: 3px; font-size: 14px; }
  .wordmark span { font-size: 7px; letter-spacing: .07em; }
  nav { gap: 14px; font-size: 11px; }
  .hero { padding-block: 58px 68px; }
  h1 { font-size: clamp(39px, 12.1vw, 58px); }
  .hero-intro { font-size: 15px; }
  .section-wrap { padding-block: 32px 52px; }
  .service-grid, .sample-grid, .table-pair { grid-template-columns: 1fr; }
  .service-card, .service-card:first-child { grid-column: auto; min-height: 0; padding: 20px; }
  .card-intro { min-height: 0; }
  .sample-csv, .sample-bug, .sample-workflow { padding: 17px; }
  .sample-head { flex-direction: column; }
  .row-count { text-align: left; }
  .flow-demo { gap: 8px; padding: 14px 9px; }
  .flow-demo span:not(.flow-arrow) { padding: 10px 6px; font-size: 9px; }
  .site-footer { justify-content: flex-start; padding-block: 20px; }
  .site-footer p { width: 100%; order: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
