/*
  Single stylesheet for the ExamQ landing site. Mobile-first, system font
  stack (no web font requests), no external stylesheet imports. Palette is
  the brand blue token and the parrot palette from
  `ios/Packages/ExamQKit/Sources/ExamQDesignSystem/Palette.swift` and
  `docs/brand/palette.md`: `--eq-accent` is `#006FF6`, the same value as
  `Palette.accent`.
*/

:root {
  --eq-accent: #006ff6;
  --eq-accent-hover: #003dc2;
  --eq-accent-text: #0a5fd0;
  --eq-navy: #29456f;
  /* Text-safe beak navy (Palette.beakNavyText): unlike --eq-navy, this one
     is redefined in dark mode below, so it stays readable on a dark
     background. Used for headings on a tinted panel, never as a fixed
     background colour. */
  --eq-navy-text: #29456f;
  --eq-blue-100: #e8effe;
  --eq-ink: #101522;
  --eq-muted: #4a5268;
  --eq-paper: #ffffff;
  --eq-border: #d7dcec;
  --eq-focus: #ff9f1c;
  --eq-success: #0a7a3d;
  --eq-error: #b3231c;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  background: var(--eq-paper);
  color: var(--eq-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--eq-accent-text);
}

a:hover,
a:focus {
  color: var(--eq-accent-hover);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--eq-navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10;
}

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

:focus-visible {
  outline: 3px solid var(--eq-focus);
  outline-offset: 2px;
}

.wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  border-bottom: 1px solid var(--eq-border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--eq-ink);
}

.brand img {
  border-radius: 0.35rem;
}

.site-header nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--eq-ink);
}

.hero,
.provenance,
.exams,
.page {
  padding: 2.5rem 0;
}

.hero {
  background: var(--eq-blue-100);
}

.hero-layout {
  display: flex;
  flex-direction: column-reverse;
  gap: 1.5rem;
  align-items: center;
}

.hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.hero h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--eq-navy-text);
}

.lede {
  font-size: 1.1rem;
}

.feature-list {
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.hero-mascot {
  flex: 0 0 auto;
  margin: 0;
  text-align: center;
}

.hero-mascot img {
  margin: 0 auto;
  width: 10rem;
  height: auto;
}

.mascot-bubble {
  margin-top: 0.5rem;
  display: inline-block;
  background: #fff;
  border: 1px solid var(--eq-border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--eq-navy);
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  background: var(--eq-accent);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 0.4rem;
  font-weight: 700;
}

.button:hover,
.button:focus {
  background: var(--eq-accent-hover);
  color: #fff;
}

.button-disabled {
  background: var(--eq-border);
  color: var(--eq-muted);
  cursor: default;
}

.exam-category {
  margin-top: 2rem;
}

.exam-category h3 {
  color: var(--eq-accent-text);
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.exam-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.exam-card {
  border: 1px solid var(--eq-border);
  border-radius: 0.5rem;
  padding: 1.1rem 1.25rem;
}

.exam-name {
  margin: 0;
  font-size: 1.05rem;
}

.exam-disclaimer {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--eq-muted);
}

.effective-date {
  font-weight: 600;
  color: var(--eq-muted);
}

.data-categories dt {
  font-weight: 700;
  margin-top: 1rem;
}

.data-categories dd {
  margin-left: 0;
  color: var(--eq-muted);
}

.site-footer {
  border-top: 1px solid var(--eq-border);
  margin-top: 2rem;
  padding: 1.5rem 0;
  color: var(--eq-muted);
  font-size: 0.9rem;
}

.site-footer .disclaimer {
  margin: 0 0 0.75rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  margin: 0 0 0.75rem;
}

.footer-links a {
  color: var(--eq-muted);
}

.copyright {
  margin: 0;
}

@media (min-width: 40rem) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .exam-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --eq-ink: #eef1fb;
    --eq-muted: #b7bedb;
    --eq-paper: #0a0f22;
    --eq-border: #263063;
    --eq-blue-100: #142055;
    --eq-accent-text: #63a4ff;
    --eq-navy-text: #9db4d9;
  }

  .site-header nav a,
  .brand {
    color: var(--eq-ink);
  }

  .exam-card {
    background: #0f1533;
  }

  .mascot-bubble {
    background: #0f1533;
    color: var(--eq-ink);
  }
}
