/* ---------- Self-hosted fonts (latin subset; was Google Fonts CDN) ---------- */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/archivo-400.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/archivo-500.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/archivo-600.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/archivo-700.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/archivo-800.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-mono-600.woff2') format('woff2'); }

:root {
  --ink: #10202E;
  --ink-soft: #44566A;
  --paper: #F4F6F8;
  --white: #FFFFFF;
  --blue: #1A56C4;
  --blue-deep: #0D2348;
  --panel: #0F1E33;
  --green: #2AA876;
  --line: #DDE3E9;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Archivo', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.contact a:focus-visible, .contact button:focus-visible,
.contact input:focus-visible, .contact select:focus-visible,
.contact textarea:focus-visible, footer a:focus-visible {
  outline-color: var(--white);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue); color: var(--white);
  padding: 12px 20px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.wordmark {
  display: inline-flex; align-items: center;
  font-weight: 800; font-size: 17px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
}
.wordmark span { color: var(--blue); }
.wordmark img { display: block; height: 48px; width: auto; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn, .nav-links a.btn:hover { color: #FFFFFF !important; }
.btn {
  display: inline-block; background: var(--blue); color: var(--white);
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 10px 20px; border-radius: 6px; border: none; cursor: pointer;
  font-family: var(--sans);
}
.btn:hover { background: #1448A6; }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: var(--white); border-color: var(--ink-soft); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: #E8EDF3; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 80px; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.eyebrow {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(34px, 4.5vw, 50px); font-weight: 800;
  line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 20px;
}
.hero p.lede, .page-section p.lede {
  font-size: 19px; color: var(--ink-soft); margin-bottom: 32px; max-width: 46ch;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--ink-soft);
}

/* Dashboard mock: the signature element */
.dash {
  background: var(--panel); border-radius: 12px; padding: 22px;
  box-shadow: 0 24px 60px rgba(13, 35, 72, 0.25);
  color: #DCE6F2;
}
.dash-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 12px; margin-bottom: 16px;
}
.dash-head .t { font-weight: 600; font-size: 14px; }
.dash-head .d { font-family: var(--mono); font-size: 11px; color: #8FA3BC; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: rgba(255,255,255,0.05); border-radius: 8px; padding: 12px; }
.kpi .label { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: #8FA3BC; margin-bottom: 6px; }
.kpi .val { font-family: var(--mono); font-size: 20px; font-weight: 600; color: var(--white); }
.kpi .delta { font-family: var(--mono); font-size: 11px; color: var(--green); margin-top: 2px; }
.kpi .delta.down { color: #E07A5F; }
.dash-chart .label { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: #8FA3BC; margin-bottom: 8px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 88px; }
.bar { flex: 1; background: #2E4A75; border-radius: 3px 3px 0 0; position: relative; }
.bar.hot { background: var(--blue); }
.bar small {
  position: absolute; bottom: -20px; left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: 9.5px; color: #8FA3BC;
}
.dash-foot { margin-top: 30px; font-family: var(--mono); font-size: 10.5px; color: #5E748E; }

/* ---------- Trades strip ---------- */
.strip { background: var(--blue-deep); color: #B9C8DE; padding: 18px 0; }
.strip .wrap {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
  list-style: none;
}
.strip li { white-space: nowrap; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
.sec-head p { color: var(--ink-soft); font-size: 18px; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 880px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 28px; display: flex; flex-direction: column;
}
.card .tag {
  font-family: var(--mono); font-size: 12px; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 12px;
}
.card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 18px; }
.card ul { list-style: none; margin-bottom: 22px; }
.card li {
  font-size: 15px; padding: 7px 0 7px 26px; position: relative; color: var(--ink);
  border-top: 1px solid var(--paper);
}
.card li::before { content: "\2713"; position: absolute; left: 2px; color: var(--green); font-weight: 700; }
.card .price {
  margin-top: auto; font-family: var(--mono); font-size: 15px; font-weight: 600;
  border-top: 2px solid var(--ink); padding-top: 14px;
}
.card .price del { color: var(--ink-soft); font-weight: 400; text-decoration-thickness: 1px; margin-right: 4px; }
.card .price em { display: block; font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

/* How it works */
.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.step .num {
  font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--blue);
  margin-bottom: 12px; display: block;
}
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }
.works-with {
  margin-top: 48px; padding: 18px 24px; background: var(--paper); border-radius: 8px;
  font-size: 15px; color: var(--ink-soft);
}
.works-with strong { color: var(--ink); }

/* FAQ */
.faq { max-width: 760px; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 0 22px; margin-bottom: 12px;
}
.faq summary {
  font-weight: 600; font-size: 16.5px; padding: 18px 0; cursor: pointer;
  list-style: none; position: relative; padding-right: 32px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px;
  font-family: var(--mono); font-size: 20px; color: var(--blue);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-soft); font-size: 15.5px; padding-bottom: 18px; }

/* ---------- Contact ---------- */
.contact { background: var(--panel); color: var(--white); }
.contact .sec-head h2 { color: var(--white); }
.contact .sec-head p { color: #AEBFD6; }
.contact-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start;
}
.contact-aside {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 28px;
}
.contact-aside h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.contact-aside .btn { width: 100%; text-align: center; }
.contact-email { display: block; margin-top: 16px; font-family: var(--mono); font-size: 14px; color: #AEBFD6; }
.contact-email a { color: var(--white); }

/* Form */
.lead-form { max-width: 620px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 14.5px; font-weight: 600; color: #DCE6F2;
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; font-size: 16px;
  font-family: var(--sans); color: var(--ink);
  background: var(--white); border: 1.5px solid transparent; border-radius: 6px;
}
.field select { appearance: auto; }
.field textarea { resize: vertical; min-height: 96px; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: #E07A5F;
}
.field-error {
  margin-top: 6px; font-size: 13.5px; font-weight: 500; color: #FFB4A2;
}
.form-alert {
  background: rgba(224,122,95,0.15); border: 1px solid #E07A5F;
  border-radius: 6px; padding: 12px 16px; margin-bottom: 20px;
  font-size: 15px; color: #FFC9BA;
}
.form-fineprint {
  margin-top: 14px; font-family: var(--mono); font-size: 12.5px; color: #AEBFD6;
}

/* Honeypot: visually removed, still in the DOM for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Inner pages (thanks, legal, errors) ---------- */
.page-section { padding: 72px 0 96px; }
.page-section h1 { margin-bottom: 18px; }
.next-box {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 28px; max-width: 520px;
}
.next-box p { margin-bottom: 16px; }
.back-link { margin-top: 32px; }

.legal h1 { font-size: clamp(30px, 4vw, 40px); }
.legal-date { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); margin-bottom: 32px; }
.legal h2 { font-size: 21px; font-weight: 700; margin: 32px 0 10px; }
.legal p { color: var(--ink-soft); margin-bottom: 14px; max-width: 68ch; }
.legal p strong { color: var(--ink); }

/* ---------- Footer ---------- */
footer {
  background: var(--blue-deep); color: #7E92AE; padding: 28px 0;
  font-family: var(--mono); font-size: 12.5px;
}
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.footer-brand { margin-bottom: 18px; }
.footer-brand img { display: block; height: 50px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: #B9C8DE; }
.footer-fineprint { margin-top: 14px; opacity: 0.75; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid, .cards, .steps, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  section { padding: 56px 0; }
  .nav-links a:not(.btn) { display: none; }
  .dash { max-width: 480px; }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .hero { padding: 36px 0 48px; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .dash { padding: 16px; }
  .kpis { gap: 8px; }
  .kpi { padding: 10px 8px; }
  .kpi .val { font-size: 17px; }
  .card { padding: 22px 18px; }
  .contact-aside { padding: 22px 18px; }
}
