/* BackDesk Systems — site styles. Tokens mirror brand/tokens/tokens.css (v1.0). */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bd-navy-900: #0A2733; --bd-navy-800: #0F3B4C; --bd-navy-700: #164D61; --bd-navy-600: #1E6A82;
  --bd-navy-100: #E1EEF2; --bd-navy-50: #F1F7F9;
  --bd-brass-500: #C8892B; --bd-brass-700: #8A5A12;
  --bd-success: #1F7A4D; --bd-success-bg: #E5F3EC;
  --bd-warning: #9A5B0B; --bd-warning-bg: #FBF0DC;
  --bd-danger: #B42318; --bd-danger-bg: #FCE9E7;
  --bg: #FAFAF7; --surface: #FFFFFF; --surface-muted: #EEF2F3;
  --text: #13232B; --text-muted: #3F4F57; --text-subtle: #5A6B73;
  --border: #C9D3D7; --divider: #DFE6E9;
  --primary: #0F3B4C; --primary-hover: #164D61; --on-primary: #FFFFFF;
  --link: #1E6A82; --accent: #C8892B; --focus: #1E6A82;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px;
  --shadow-1: 0 1px 2px rgba(19,35,43,.06), 0 1px 1px rgba(19,35,43,.04);
  --shadow-2: 0 4px 12px rgba(19,35,43,.08);
  --content-max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-sans); font-feature-settings: "cv11";
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
h1 { font-size: clamp(2.25rem, 4.6vw + 0.6rem, 3rem); line-height: 1.1; }
h2 { font-size: clamp(1.625rem, 2vw + 0.9rem, 2.25rem); line-height: 1.15; }
h3 { font-size: 1.125rem; line-height: 1.4; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-size: .9em; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.eyebrow {
  font: 500 12px/1.4 var(--font-sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-subtle); margin-bottom: 12px;
}
.lead { font-size: 1.125rem; color: var(--text-muted); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: 600 15px/1 var(--font-sans); padding: 13px 18px; border-radius: var(--radius-md);
  border: 1px solid var(--primary); text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--primary); }
.btn-secondary:hover { background: var(--bd-navy-50); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgba(250,250,247,.92);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--divider);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--primary); }
.nav .btn { padding: 10px 14px; font-size: 14px; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 380px) { .brand img { height: 30px; } .nav .btn span { display: none; } }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { margin-top: 14px; color: var(--text-muted); font-size: 1.0625rem; }
.alt { background: var(--surface); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
@media (max-width: 640px) { section { padding: 64px 0; } }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--text-subtle); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }

/* Sample report card */
.report {
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2); overflow: hidden;
}
.report-head {
  background: var(--primary); color: var(--on-primary); padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.report-head strong { font-weight: 600; font-size: 15px; }
.report-head span { font-size: 12px; color: #B9CBD3; }
.report-rule { height: 2px; background: var(--accent); }
.report-body { padding: 18px 20px 20px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { background: var(--bg); border: 1px solid var(--divider); border-radius: var(--radius-md); padding: 12px; }
.kpi .k { font-size: 12px; color: var(--text-subtle); }
.kpi .v { font-size: 18px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.report table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 13.5px; }
.report th { text-align: left; font-weight: 600; color: var(--text-muted); background: var(--surface-muted); padding: 8px 10px; }
.report td { padding: 9px 10px; border-bottom: 1px solid var(--divider); }
.report td:last-child, .report th:last-child { text-align: right; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1.2 var(--font-sans);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ok { color: var(--bd-success); background: var(--bd-success-bg); }
.wa { color: var(--bd-warning); background: var(--bd-warning-bg); }
.er { color: var(--bd-danger); background: var(--bd-danger-bg); }
.report-foot { margin-top: 12px; font-size: 12px; color: var(--text-subtle); }
@media (max-width: 420px) { .kpis { grid-template-columns: 1fr 1fr; } .kpis .kpi:last-child { grid-column: span 2; } }

/* Services grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-1);
}
.alt .card { background: var(--bg); box-shadow: none; }
.card .ico {
  width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--bd-navy-50);
  color: var(--primary); display: grid; place-items: center; margin-bottom: 16px;
}
.card .ico svg { width: 22px; height: 22px; }
.card p { margin-top: 8px; color: var(--text-muted); font-size: 15px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--border); }
.step { padding: 24px 24px 0 0; counter-increment: s; }
.step::before {
  content: "0" counter(s); display: block; font: 500 13px/1 var(--font-mono); color: var(--bd-brass-700);
  margin-bottom: 14px;
}
.step p { margin-top: 8px; color: var(--text-muted); font-size: 15px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .step { padding: 22px 0; border-bottom: 1px solid var(--divider); } }

/* Who */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-md);
  padding: 10px 14px; font-weight: 500; font-size: 15px;
}

/* Proof */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.proof blockquote { margin: 0; font-size: 1.25rem; line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--divider); color: var(--text-muted); }
.facts li:first-child { border-top: 1px solid var(--divider); }
.facts svg { width: 20px; height: 20px; color: var(--bd-success); flex: none; margin-top: 2px; }
@media (max-width: 800px) { .proof { grid-template-columns: 1fr; gap: 28px; } }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } }
.price { display: flex; flex-direction: column; }
.price .amt { margin-top: 14px; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.price .amt small { font-size: 14px; font-weight: 500; color: var(--text-subtle); letter-spacing: 0; }
.price .then { color: var(--text-muted); font-size: 15px; margin-top: 2px; }
.price ul { margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--text-muted); }
.price li { padding: 7px 0 7px 24px; position: relative; }
.price li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 2px; background: var(--primary); }
.price.featured { border-color: var(--primary); border-width: 1.5px; }
.price-note { margin-top: 20px; font-size: 14px; color: var(--text-subtle); max-width: 80ch; }

/* Boundaries */
.nots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .nots { grid-template-columns: 1fr; } }
.nots h3 { font-size: 1rem; }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.about p + p { margin-top: 14px; }
.about p { color: var(--text-muted); }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; gap: 20px; } }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-side p { color: var(--text-muted); margin-top: 14px; }
.contact-lines { margin-top: 24px; display: grid; gap: 12px; }
.contact-lines a, .contact-lines div { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; font-weight: 500; }
.contact-lines svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
form.lead-form { display: grid; gap: 16px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
label .opt { color: var(--text-subtle); font-weight: 400; }
input, select, textarea {
  width: 100%; font: 400 16px/1.4 var(--font-sans); color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 12px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-muted); font-weight: 400; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--primary); }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 15px; padding: 12px 14px; border-radius: var(--radius-md); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--bd-success-bg); color: var(--bd-success); }
.form-status.er { background: var(--bd-danger-bg); color: var(--bd-danger); }

/* Footer */
.site-footer { background: var(--bd-navy-900); color: #B9CBD3; padding: 48px 0 32px; font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.site-footer img { height: 34px; width: auto; }
.site-footer a { color: #E1EEF2; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-base { grid-column: 1 / -1; border-top: 1px solid #1D4252; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 30; display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 12px 16px; border-radius: 999px; box-shadow: 0 6px 18px rgba(10,39,51,.28);
}
.wa-float:hover { background: var(--primary-hover); }
.wa-float svg { width: 20px; height: 20px; }

/* Prose pages */
.prose { max-width: 72ch; padding: 64px 0 88px; }
.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.375rem; margin-top: 36px; }
.prose p, .prose li { color: var(--text-muted); margin-top: 12px; }
.prose ul { padding-left: 20px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-header, .wa-float, .site-footer { display: none; } }
@media (max-width: 480px) { .wa-float { padding: 12px; } .wa-float span { display: none; } }
