/* ==========================================================================
   Collin Burkhart — shared site styles
   Used by every page (homepage + every tool under /tools/).
   Theme: dark navy + white, one teal accent. Edit tokens in :root.
   ========================================================================== */

:root {
  /* Brand palette */
  --navy-900: #071630;
  --navy-800: #0b1f3f;
  --navy-700: #13294f;
  --navy-600: #223a66;
  --ink: #0b1f3f;          /* body text on white */
  --muted: #4a5873;        /* secondary text on white (AA contrast) */
  --line: #dfe4ec;         /* borders */
  --surface: #ffffff;
  --surface-alt: #f5f7fa;

  /* Single accent: teal. Darker shade for text/buttons on white,
     lighter shade for use on navy backgrounds. */
  --teal: #0b7a70;
  --teal-hover: #08645c;
  --teal-light: #4fd1c0;
  --teal-tint: #e6f4f2;

  /* Risk badge colours (paired bg/text pass WCAG AA) */
  --ok-bg: #e3f5ea;   --ok-fg: #17633a;
  --warn-bg: #fdf1d8; --warn-fg: #7a4b00;
  --high-bg: #fde4e4; --high-fg: #9b1c1c;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(7, 22, 48, 0.04), 0 8px 24px rgba(7, 22, 48, 0.06);
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

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

img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-hover); }

:focus-visible {
  outline: 3px solid var(--teal-light);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--navy-900);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand:hover { color: #fff; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--teal);
  display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700;
}
.nav-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0; padding: 0;
}
.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.08); }

@media (max-width: 680px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .site-nav a { display: block; padding: 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, 0.3); background: transparent; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(79, 209, 192, 0.12), transparent 60%),
    var(--navy-900);
  color: #fff;
  padding: 112px 0 120px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  max-width: 16ch;
  margin-bottom: 24px;
}
.hero .lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 58ch;
  margin-bottom: 40px;
}
.hero-meta {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
  display: block;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}
.about-bio p { font-size: 1.15rem; color: var(--ink); }
.focus-list {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.focus-list li {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Tool cards */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) { .tool-grid { grid-template-columns: 1fr; } }

.tool-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.tool-card h3 { font-size: 1.25rem; margin: 0; }
.tool-card p { color: var(--muted); margin: 0; flex: 1; }
.tool-card .card-foot { margin-top: 12px; font-weight: 600; font-size: 0.95rem; }
.tool-card.is-live:hover,
.tool-card.is-live:focus-within {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
/* Whole live card is clickable via the stretched link */
.tool-card.is-live a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.tool-card.is-live a.stretched { text-decoration: none; }
.tool-card.is-soon { background: var(--surface-alt); }
.tool-card.is-soon .card-foot { color: var(--muted); font-weight: 500; }

.status {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.status-live { background: var(--teal-tint); color: var(--teal-hover); }
.status-soon { background: #e9edf3; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  padding: 48px 0;
  font-size: 0.92rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--teal-light); }
.footer-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }

/* ==========================================================================
   Tool pages (shared by every tool under /tools/)
   ========================================================================== */
.tool-hero {
  background: var(--navy-900);
  color: #fff;
  padding: 64px 0 56px;
}
.tool-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.tool-hero p { color: rgba(255, 255, 255, 0.8); max-width: 64ch; margin: 0; }
.breadcrumb { font-size: 0.88rem; margin-bottom: 20px; }
.breadcrumb a { color: rgba(255, 255, 255, 0.72); }
.breadcrumb a:hover { color: #fff; }

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(79, 209, 192, 0.12);
  color: var(--teal-light);
  font-size: 0.9rem;
  font-weight: 600;
}

.tool-body { padding: 48px 0 96px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.panel + .panel { margin-top: 24px; }
.panel h2 { font-size: 1.2rem; margin-bottom: 6px; }
.panel .hint { color: var(--muted); font-size: 0.95rem; }
