/* Shared by index, privacy and terms. One file keeps the first paint to a single request. */

:root {
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --surface: #ffffff;
  --text: #14202e;
  --muted: #4a5a6c;
  --border: #cfd8e3;
  --primary: #0b5cad;
  --primary-hover: #084a8c;
  --on-primary: #ffffff;
  --accent-bg: #fff4d6;
  --accent-text: #5c4300;
  --error: #b00020;
  --ok-bg: #e6f5ec;
  --ok-text: #0d5a2b;
  --focus: #b45309;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dark values are tuned so body text and the primary button both stay above 4.5:1. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e151d;
    --bg-alt: #151e29;
    --surface: #1a2532;
    --text: #e8eef5;
    --muted: #a9b7c6;
    --border: #33445a;
    --primary: #6db3ff;
    --primary-hover: #8cc4ff;
    --on-primary: #06121f;
    --accent-bg: #3a2f10;
    --accent-text: #ffe39a;
    --error: #ff8a9b;
    --ok-bg: #12331f;
    --ok-text: #8fe0ad;
    --focus: #ffb74d;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; }

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }

/* Visible on every interactive element; color chosen to contrast with both themes. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  background: var(--primary);
  color: var(--on-primary);
  padding: 12px 16px;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 8px; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

section { padding: 48px 0; }
section.alt { background: var(--bg-alt); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(1.9rem, 6vw, 2.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 14px; }
.lede { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.1rem; display: inline-flex; align-items: center; min-height: 44px; }
.header-call { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

/* Buttons: 48px tall to clear the 44px minimum with margin for gloves and thumbs. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn[disabled] { opacity: 0.65; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.secondary { background: transparent; color: var(--primary); }
.btn.secondary:hover { background: var(--bg-alt); color: var(--primary-hover); }

/* Hero */
.hero { padding: 40px 0 48px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-note { margin-top: 14px; font-size: 0.95rem; color: var(--muted); }

/* Steps and cards */
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary);
  font-weight: 700; margin-bottom: 10px;
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 6px 0 6px 28px; position: relative; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; font-weight: 700; color: var(--primary); }
.limits li::before { content: "!"; color: var(--accent-text); }

.callout { background: var(--accent-bg); color: var(--accent-text); border-radius: var(--radius); padding: 16px 20px; }

/* Pricing */
.price-card { max-width: 440px; margin: 0 auto; text-align: center; border: 2px solid var(--primary); }
.price { font-size: 3rem; font-weight: 800; line-height: 1; }
.price small { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.price-card .checklist { text-align: left; margin: 20px 0; }
.badge { display: inline-block; background: var(--ok-bg); color: var(--ok-text); font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; font-size: 0.95rem; }

/* FAQ: native details keeps it keyboard accessible with zero JS. */
details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 16px; min-height: 48px; font-weight: 600; list-style-position: inside; display: flex; align-items: center; }
details[open] summary { border-bottom: 1px solid var(--border); }
details p { padding: 14px 16px 2px; }

/* Form */
form { display: grid; gap: 18px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.req { color: var(--error); }
input[type="text"], input[type="tel"], input[type="email"], select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  /* 16px+ stops iOS Safari from zooming the page on focus. */
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 10px;
}
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 8px 0; }
.check input[type="checkbox"] { width: 24px; height: 24px; margin: 2px 0 0; flex: 0 0 24px; accent-color: var(--primary); }
.check label { font-weight: 400; margin: 0; }
.areas { display: grid; gap: 4px; }
.error-msg { color: var(--error); font-size: 0.95rem; margin-top: 6px; min-height: 0; }
.error-msg:empty { display: none; }
.hint { font-size: 0.9rem; color: var(--muted); margin-top: 4px; }
.consent { background: var(--bg-alt); border-radius: var(--radius); padding: 12px 14px; }
.consent .check label { font-size: 0.95rem; }

/* Honeypot: moved off-screen rather than display:none, since some bots skip display:none fields. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { border-radius: var(--radius); padding: 14px 16px; }
.form-status:empty { display: none; }
.form-status.error { background: var(--accent-bg); color: var(--accent-text); border: 1px solid var(--error); }
.form-status.info { background: var(--bg-alt); border: 1px solid var(--border); }
.success { background: var(--ok-bg); color: var(--ok-text); border-radius: var(--radius); padding: 24px 20px; }
.success:focus { outline-offset: 4px; }
.success a { color: inherit; font-weight: 700; }
[hidden] { display: none !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; font-size: 0.95rem; color: var(--muted); }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 16px; }
.site-footer address { font-style: normal; }

/* Legal pages */
.legal h2 { margin-top: 32px; font-size: 1.35rem; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.placeholder { background: var(--accent-bg); color: var(--accent-text); padding: 0 4px; border-radius: 4px; }

/* Screen-reader-only text for the "(required)" cue next to the decorative asterisk. */
.sr-only-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
