/* Go Fred LLC site styles. Committed light theme, brand palette from the
   FRED mark: navy #0F172A, orange #FF7A00. No external assets except
   Google Fonts (loaded from the pages with a system fallback stack).

   ONE ORANGE, 2026-09-02. There were two. The design system, the render
   runbook, the dashboard map and all ten character render specs record the
   approved brand orange as #FF7A00; this site used #F97316, which is Tailwind
   orange-500 and appears in no approval record anywhere in the repository. So
   EVERY contrast figure written down here was measured against a colour the
   public site did not serve, which is the second half of finding N4 and the
   reason the binding dark-text rule was never applied to this file.

   The site now serves the approved value. The choice is one line and reverting
   it is one line; what must not come back is two of them.

   THE THREE MEASURED VALUES, and each is a decision rather than a shade:

     --orange       #FF7A00  the brand fill. Text on it is ALWAYS --navy:
                             6.83:1, where white is 2.61:1 and fails both AA
                             thresholds. The rule has no decorative exemption.
     --orange-deep  #B34700  the brand as TEXT and as a focus ring on a light
                             ground. 5.50:1 on white and 5.26:1 on --surface.
                             It is the design system's own `brand-line`, so the
                             site and the portal now name one value rather than
                             two. The old #C2560B measured 4.54:1 on white and
                             4.34:1 on --surface, so it FAILED AA on the alt
                             section ground, which no pass had checked.
     --orange-hover #E56D00  the pressed state of a brand-filled button, under
                             --navy: 5.54:1. The old literal #EA6A0A was white
                             text at 3.20:1.

   site-contrast.test.ts derives all of this from THIS FILE on every run, so a
   figure in a comment can no longer disagree with the value that ships. */

:root {
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --orange: #ff7a00;
  --orange-deep: #b34700;
  --orange-hover: #e56d00;
  --orange-darker: #8a3800;
  /* TEXT ON NAVY. These three were hex literals scattered through the file and
     nothing measured any of them. They pass comfortably (14.48:1, 12.02:1 and
     10.35:1 against the grounds they sit on) and that is exactly why they are
     tokens now: a value that passes and that nothing checks is one edit from a
     value that does not. */
  --on-navy: #e2e8f0;
  --on-navy-soft: #cbd5e1;
  --ink-soft: #334155;
  --ink: #0f172a;
  --muted: #475569;
  --faint: #94a3b8;
  --bg: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--orange-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* A LINK HOVER ON A LIGHT GROUND, and it used to be --orange at 2.61:1.
   The nav, the hero and the footer sit on navy and keep --orange there; this
   rule is the body copy one, and body copy is the ground where the brand fill
   is unreadable as text. */
a:hover {
  color: var(--orange-darker);
}

/* THE FOCUS RING IS NOT DECORATION, AND IT IS TWO COLOURS BECAUSE ONE CANNOT
   COVER FOUR GROUNDS.

   WCAG 1.4.11 holds a focus indicator to 3:1 against what it sits on. --orange
   was 2.61:1 on white, so the ring a keyboard user depends on was the least
   visible thing on the page, and it was replaced with --orange-deep on
   2026-09-01: 5.50 on white, 5.26 on the alt-section ground, 3.25 on navy.

   THE SHIP GATE FOUND THE GROUND THAT WAS MISSED (finding S1, 2026-09-02). The
   hero paints a gradient from --navy to --navy-soft, and --orange-deep on
   --navy-soft measures 2.66:1 — under the floor — while the OLD token measured
   5.60 there. The primary call-to-action buttons sit at that end of the
   gradient. The non-text pairs in site-contrast.test.ts omitted --navy-soft,
   which is the only reason the suite was green: a guard whose window is
   narrower than its claim.

   NO SINGLE COLOUR CLEARS ALL FOUR GROUNDS. --orange-deep fails on --navy-soft
   at 2.66; --on-navy is 11.87 on --navy-soft and 14.48 on --navy but 1.23 on
   white. So the ring is a TWO-COLOUR INDICATOR, which is WCAG's own answer
   (technique G195): an inner --orange-deep ring and an outer --on-navy halo.

     · on a LIGHT ground the inner ring carries it — 5.50 on white, 5.26 on the
       alt section;
     · on a DARK ground the outer halo carries it — 14.48 on navy, 11.87 on
       navy-soft;
     · and EVERYWHERE the two rings contrast with each other at 4.46, so the
       indicator is distinguishable even where one half melts into the ground.

   site-contrast.test.ts asserts that RULE rather than a list of pairs: for every
   ground the site paints, at least one ring colour clears 3:1, and the two ring
   colours clear 3:1 against each other. Adding a ground to the palette without
   checking it now fails. */
:focus-visible {
  outline: 3px solid var(--orange-deep);
  outline-offset: 2px;
  border-radius: 2px;
  /* The outer half. Drawn from the border box outward, so it shows in the
     2px offset gap and again outside the 3px outline. */
  box-shadow: 0 0 0 8px var(--on-navy);
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header */

.site-header {
  background: var(--navy);
  color: #fff;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.brand-name {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.brand-by {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--faint);
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
}

.site-nav a {
  color: var(--on-navy);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.25rem 0;
}

.site-nav a:hover {
  color: var(--orange);
}

/* Hero */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: 4.25rem 0 4.5rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--on-navy-soft);
  max-width: 44rem;
  margin: 0 0 1.25rem;
}

.hero .lede {
  max-width: 46rem;
  color: var(--on-navy);
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font);
}

/* Dark text on the brand orange, per the binding contrast rule. Re-measured
   2026-09-02 against the orange that now ships: white on --orange is 2.61:1
   and on --orange-hover 3.22:1, both failing AA for normal text; --navy on the
   same two grounds is 6.83:1 and 5.54:1 and both pass. The rule has no
   decorative exemption. */
.button-primary {
  background: var(--orange);
  color: var(--navy);
}

.button-primary:hover {
  background: var(--orange-hover);
  color: var(--navy);
}

.button-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.button-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* Sections */

section {
  padding: 3.5rem 0;
}

section.alt {
  background: var(--surface);
}

.kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 0.4rem;
}

section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
}

section .section-intro {
  max-width: 46rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

/* Feature cards */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.1rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
}

section.alt .feature-card {
  background: #ffffff;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-card .mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--orange);
  margin-bottom: 0.8rem;
}

/* Plain lists */

.check-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  max-width: 46rem;
}

.check-list li {
  margin-bottom: 0.55rem;
}

.check-list li strong {
  color: var(--ink);
}

/* Pricing */

.pricing-card {
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 46rem;
}

.pricing-card h3 {
  margin: 0 0 0.6rem;
  color: #fff;
  font-size: 1.2rem;
}

.pricing-card p {
  margin: 0 0 1rem;
}

.pricing-card p:last-of-type {
  margin-bottom: 1.4rem;
}

.pricing-card a.button-primary {
  color: var(--navy);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  align-items: start;
}

.contact-direct p {
  color: var(--muted);
  max-width: 30rem;
}

.contact-email {
  font-size: 1.05rem;
  font-weight: 600;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: var(--faint);
  padding: 2.25rem 0;
  font-size: 0.9rem;
}

.site-footer .container {
  display: grid;
  gap: 0.4rem;
}

.site-footer a {
  color: var(--on-navy);
}

.site-footer a:hover {
  color: var(--orange);
}

.site-footer .legal {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  max-width: 52rem;
}

/* Privacy page */

.page-title {
  background: var(--navy);
  color: #fff;
  padding: 2.75rem 0 2.5rem;
}

.page-title h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
}

.page-title .updated {
  color: var(--faint);
  margin: 0;
}

.policy {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.policy h2 {
  font-size: 1.35rem;
  margin: 2.2rem 0 0.6rem;
  line-height: 1.3;
}

.policy h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.4rem;
}

.policy p,
.policy li {
  color: var(--ink-soft);
}

.policy ul {
  padding-left: 1.35rem;
}

.policy li {
  margin-bottom: 0.4rem;
}
