:root {
  --ink: #14181f;
  --muted: #5a6472;
  --line: #e3e7ee;
  --bg: #f6f8fb;
  --card: #ffffff;
  --brand: #1a5fb4;
  --brand-dark: #14488a;
  --err-bg: #fdf2f2;
  --err-line: #f0b8b8;
  --err-ink: #8c1c1c;
  --ok: #1f7a4d;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

/* ---------------------------------------------------------------- chrome */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  max-width: 780px; margin: 0 auto; padding: 1.25rem 1.25rem 0;
}
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.site-header nav { display: flex; gap: 1.1rem; font-size: .93rem; }

main { max-width: 780px; margin: 0 auto; padding: 1.5rem 1.25rem 2rem; }

.site-footer {
  max-width: 780px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem;
}
.site-footer p { margin: .3rem 0; }
.site-footer .legal { font-size: .84rem; }

/* ------------------------------------------------------------------ cards */
.card, .doc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card.center { text-align: center; }

h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 .6rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
h3 { font-size: 1.02rem; margin: 1.4rem 0 .35rem; }
.lede { color: var(--muted); margin-top: 0; }
.updated { color: var(--muted); font-size: .9rem; margin-top: 0; }

/* ------------------------------------------------------------------ forms */
.row { display: flex; gap: 1rem; flex-wrap: wrap; }
.row .field { flex: 1 1 200px; }
.field { margin-bottom: 1rem; }

label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.req { color: #b3261e; }

input[type=text], input[type=email], input[type=tel] {
  width: 100%; padding: .7rem .75rem; font-size: 1rem;
  border: 1px solid #c8cfda; border-radius: 8px; background: #fff; color: var(--ink);
}
input:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}

.hint { color: var(--muted); font-size: .84rem; margin: .3rem 0 0; }

/* Honeypot — visually gone, still reachable to naive bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Consent blocks are deliberately prominent: carriers review this page. */
.consent {
  margin: 1.1rem 0; padding: .9rem 1rem;
  background: #f2f6fc; border: 1px solid #d3e0f4; border-radius: 8px;
}
.consent.optional { background: #fafbfd; border-color: var(--line); }

.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; }
.checkbox input[type=checkbox] {
  flex: 0 0 auto; width: 18px; height: 18px; margin-top: .18rem; accent-color: var(--brand);
}
.checkbox span { font-size: .9rem; line-height: 1.55; }

button[type=submit] {
  width: 100%; margin-top: .5rem; padding: .85rem 1rem;
  font-size: 1rem; font-weight: 600; color: #fff;
  background: var(--brand); border: 0; border-radius: 8px; cursor: pointer;
}
button[type=submit]:hover { background: var(--brand-dark); }

.fineprint { color: var(--muted); font-size: .82rem; margin-top: .9rem; }

.btn-secondary {
  display: inline-block; margin-top: .5rem; padding: .6rem 1.1rem;
  border: 1px solid var(--line); border-radius: 8px; text-decoration: none;
}

/* ----------------------------------------------------------------- states */
.errors {
  background: var(--err-bg); border: 1px solid var(--err-line);
  color: var(--err-ink); border-radius: 8px; padding: .85rem 1rem; margin-bottom: 1.1rem;
}
.errors p { margin: 0 0 .3rem; }
.errors ul { margin: 0; padding-left: 1.2rem; }

.tick {
  width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 50%;
  background: #e6f4ec; color: var(--ok);
  font-size: 1.7rem; line-height: 54px; font-weight: 700;
}

/* ------------------------------------------------------------- legal docs */
.doc { line-height: 1.7; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: .55rem; }
.doc address { font-style: normal; color: var(--muted); }

/* The carrier-mandated no-sharing clause. Made visually distinct so a human
   reviewer finds it in seconds. */
.callout {
  background: #f2f6fc; border-left: 4px solid var(--brand);
  padding: .9rem 1.1rem; border-radius: 6px; margin: 1rem 0 1.4rem;
}
.callout p { margin: 0; }

@media (max-width: 560px) {
  .card, .doc { padding: 1.25rem; }
  h1 { font-size: 1.4rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9edf3; --muted: #a3aebd; --line: #2b323d;
    --bg: #12151a; --card: #191d24;
    --brand: #6ea8fe; --brand-dark: #8fbcff;
    --err-bg: #2a1a1a; --err-line: #6b3030; --err-ink: #f3b5b5;
  }
  .brand { color: var(--ink); }
  input[type=text], input[type=email], input[type=tel] {
    background: #10131a; border-color: #39414e; color: var(--ink);
  }
  .consent { background: #17202e; border-color: #2c3a4f; }
  .consent.optional { background: #161a21; border-color: var(--line); }
  .callout { background: #17202e; }
  .tick { background: #14291f; color: #6ee7a8; }
  button[type=submit] { color: #0d1117; }
}
