/* ============================================================================
   Holdline — design system
   One accent, generous whitespace, system fonts (no webfont round-trip).
   Mobile-first: every rule below is the small-screen rule; media queries only
   ever add. Dark mode is honoured, not bolted on.
   ========================================================================= */

:root {
  --ink: #14161a;
  --ink-2: #3d434e;
  --ink-3: #6b7280;
  --line: #e6e4df;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --accent: #0f7a5a;
  --accent-soft: #e6f4ef;
  --accent-ink: #0a5a42;
  --warn: #a8580a;
  --warn-soft: #fdf3e6;
  --danger: #b02a1f;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, 0.05), 0 1px 3px rgba(20, 22, 26, 0.04);
  --shadow-md: 0 4px 12px rgba(20, 22, 26, 0.06), 0 12px 32px rgba(20, 22, 26, 0.06);
  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f1ee;
    --ink-2: #b9bcc4;
    --ink-3: #8b909a;
    --line: #2a2d34;
    --bg: #101216;
    --surface: #171a1f;
    --accent: #3fbf94;
    --accent-soft: #12251f;
    --accent-ink: #7fd8b8;
    --warn: #e0a25c;
    --warn-soft: #2a2117;
    --danger: #f08579;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 620px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.021em; margin: 0 0 0.5em; font-weight: 660; }
h1 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: -0.026em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1.1em; color: var(--ink-2); }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
small { font-size: 0.86rem; color: var(--ink-3); }

/* ── header ─────────────────────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .bar { display: flex; align-items: center; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 680; letter-spacing: -0.02em; color: var(--ink); font-size: 1.06rem; }
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 11px; height: 11px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
header.site nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
header.site nav a { color: var(--ink-2); font-size: 0.94rem; font-weight: 520; }
@media (max-width: 640px) { header.site nav a.hide-sm { display: none; } }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.985); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-ink); box-shadow: var(--shadow-md); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #06120e; } }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn-lg { padding: 16px 30px; font-size: 1.06rem; }
.btn-block { width: 100%; }

/* ── layout blocks ──────────────────────────────────────────────────────── */
section { padding: 68px 0; }
section.tight { padding: 44px 0; }
.hero { padding: 70px 0 56px; }
.hero p.lede { font-size: clamp(1.06rem, 2.4vw, 1.28rem); color: var(--ink-2); max-width: 34em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 640;
  letter-spacing: 0.045em; text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent-soft); padding: 7px 13px; border-radius: 999px; margin-bottom: 20px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }

.step-n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; margin-bottom: 14px;
}

.stat { border-left: 3px solid var(--accent); padding-left: 16px; }
.stat .n { font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.stat .l { color: var(--ink-3); font-size: 0.92rem; }

/* ── forms ──────────────────────────────────────────────────────────────── */
label { display: block; font-weight: 600; font-size: 0.94rem; margin-bottom: 7px; }
input[type="tel"], input[type="text"], input[type="email"], select {
  width: 100%; padding: 14px 15px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
input:focus, select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}
.field { margin-bottom: 20px; }
.hint { font-size: 0.85rem; color: var(--ink-3); margin-top: 6px; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 0.88rem; color: var(--ink-2); line-height: 1.5; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

.choice {
  display: flex; gap: 13px; align-items: flex-start; padding: 15px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  cursor: pointer; margin-bottom: 10px; transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.choice:hover { border-color: var(--ink-3); }
.choice input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.choice.sel { border-color: var(--accent); background: var(--accent-soft); }
.choice .n { font-weight: 620; color: var(--ink); }
.choice .m { font-size: 0.85rem; color: var(--ink-3); }
.choice[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

.alert { padding: 13px 16px; border-radius: var(--radius); font-size: 0.92rem; margin-bottom: 18px; }
.alert-err { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-ok { background: var(--accent-soft); color: var(--accent-ink); }

/* ── live status ────────────────────────────────────────────────────────── */
.pulse {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 26px;
  background: var(--accent-soft); display: grid; place-items: center; position: relative;
}
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--accent); animation: ring 2.1s var(--ease) infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: 0.65; } 100% { transform: scale(1.65); opacity: 0; } }
.pulse .glyph { font-size: 34px; line-height: 1; }
.pulse.done { background: var(--accent); }
.pulse.done::after { display: none; }
.pulse.stop { background: var(--warn-soft); }
.pulse.stop::after { display: none; }

.timeline { list-style: none; margin: 26px 0 0; padding: 0; }
.timeline li {
  display: flex; gap: 13px; padding: 11px 0; border-top: 1px solid var(--line);
  font-size: 0.93rem; color: var(--ink-2); animation: slide 0.3s var(--ease);
}
@keyframes slide { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.timeline time { color: var(--ink-3); font-variant-numeric: tabular-nums; flex: none; width: 68px; }

table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th { text-align: left; color: var(--ink-3); font-weight: 600; padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.data td { padding: 11px 10px; border-bottom: 1px solid var(--line); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 620; background: var(--accent-soft); color: var(--accent-ink); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.mute { background: var(--line); color: var(--ink-3); }

/* ── disclaimer + footer ────────────────────────────────────────────────── */
.disclaimer {
  border: 1px solid var(--line); border-left: 3px solid var(--warn);
  background: var(--surface); border-radius: var(--radius);
  padding: 16px 18px; font-size: 0.87rem; color: var(--ink-2); line-height: 1.55;
}
footer.site { border-top: 1px solid var(--line); padding: 42px 0 60px; margin-top: 40px; color: var(--ink-3); font-size: 0.88rem; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }
footer.site a { color: var(--ink-2); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 620; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; font-size: 0.95rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-3 { margin-top: 26px; }
