/* Brand palette. See BRAND.md. Inline styles in the pages use the same hex values. */
:root {
  --navy: #12202B;          /* Ink Navy: text, dark surfaces, logo */
  --accent: #FF7F11;        /* Bolt Orange: calls to action, logo bolt. Navy text on it, never white */
  --accent-bright: #FF7F11; /* Kept as an alias of --accent; one orange everywhere */
  --slate: #33424D;         /* body copy on light */
  --steel: #51606A;         /* secondary text, dividers on navy */
  --fog: #8F9BA3;           /* input and control borders, never text on white */
  --mist: #C3CDD3;          /* text on navy */
  --line: #D9DEDC;          /* hairlines and card borders */
  --paper: #F2F4F3;         /* tinted surfaces */
  --white: #FFFFFF;
  --error: #8A1C1C;
  --error-bg: #FDECEC;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
a { color: var(--navy); }
/* Orange text on white is too faint to read, so light-background links keep navy
   text and get an orange underline on hover. On navy, orange text is fine. */
a:hover { color: var(--navy); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
footer a:hover { color: var(--accent); }
[hidden] { display: none !important; }
[data-needs] { display: none; }
[data-needs].is-on { display: inline; }
p[data-needs].is-on { display: block; }
button[type="submit"]:hover,
a[style*="var(--accent)"]:hover { filter: brightness(0.92); color: var(--navy); text-decoration: none; }
button[type="submit"][disabled] { opacity: 0.6; cursor: progress; }
/* Orange ring with a navy inner ring, so focus stays visible on white and on orange. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 2px var(--navy);
}
footer a:focus-visible { box-shadow: none; }
.legal p { margin: 0 0 16px; color: var(--slate); }
.legal h2 { font-family: 'Archivo', 'Arial Narrow', Arial, sans-serif; font-size: 24px; margin: 32px 0 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Homepage hero on narrow screens: once the two columns stack, put the bill
   form straight after the headline and subhead, and the three reassurance
   points after the form. !important is needed to beat the inline styles. */
@media (max-width: 960px) {
  .hero { flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important; gap: 20px !important; padding: 40px 20px 56px !important; }
  .hero-copy { display: contents !important; }
  .hero-eyebrow { order: 1; font-size: 13px !important; }
  .hero-title { order: 2; }
  .hero-sub { order: 3; font-size: 18px !important; }
  .hero-form { order: 4; max-width: none !important; padding: 24px 20px !important; margin-top: 8px; }
  .hero-points { order: 5; margin-top: 12px !important; }
}
/* Phones: the bill form now sits in the first screen, so the header's anchor
   links and its duplicate CTA only push it down. Header becomes the logo alone. */
@media (max-width: 640px) {
  .nav-anchor, .nav-cta { display: none; }
}
