/* Affiliate Agent Kit — Marketing Site FUV
   Design tokens from SPEC.md
   Palette: deep navy #12233A, warm off-white #FAF7F2, electric lime #C8F135
   Type: system sans-serif, bold headlines, generous whitespace
   Mobile-first, no external dependencies. */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FAF7F2;
  color: #12233A;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
               Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: #12233A;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
a:hover { color: #000; }

/* Visible focus for keyboard users */
:focus-visible {
  outline: 3px solid #C8F135;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 56px 0; }
section + section { border-top: 1px solid #E8E2D5; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: #12233A;
}

h1 { font-size: clamp(2rem, 5vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.5vw + 1rem, 2.25rem); margin-bottom: 12px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }

p { margin: 0 0 16px; }

ul, ol { padding-left: 1.25rem; margin: 0 0 16px; }
li { margin-bottom: 6px; }

small, .small { font-size: 0.875rem; }

.lead {
  font-size: 1.125rem;
  color: #2A3B55;
  max-width: 60ch;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #12233A;
  color: #FAF7F2;
  padding: 12px 16px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header / nav ---------- */
.site-header {
  background: #12233A;
  color: #FAF7F2;
  border-bottom: 4px solid #C8F135;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FAF7F2;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: #C8F135;
  border-radius: 6px;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: #12233A;
  border-radius: 3px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.nav a {
  color: #FAF7F2;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a:focus-visible {
  color: #C8F135;
  border-bottom-color: #C8F135;
}
.nav a[aria-current="page"] {
  color: #C8F135;
  border-bottom-color: #C8F135;
}

/* ---------- Hero ---------- */
.hero {
  background: #12233A;
  color: #FAF7F2;
  padding: 72px 0 64px;
  border-bottom: 4px solid #C8F135;
}
.hero h1 { color: #FAF7F2; }
.hero .lead { color: #D8DEE9; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

@media (min-width: 880px) {
  .hero { padding: 96px 0 80px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: transform 0.05s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: #C8F135;
  color: #12233A;
  border-color: #C8F135;
}
.btn-primary:hover { background: #B6E020; border-color: #B6E020; color: #12233A; }

.btn-secondary {
  background: transparent;
  color: #FAF7F2;
  border-color: #FAF7F2;
}
.btn-secondary:hover { background: #FAF7F2; color: #12233A; }

.btn-dark {
  background: #12233A;
  color: #FAF7F2;
  border-color: #12233A;
}
.btn-dark:hover { background: #1E3354; border-color: #1E3354; color: #FAF7F2; }

/* ---------- Principles bar ---------- */
.principles {
  background: #FAF7F2;
  padding: 40px 0;
  border-bottom: 1px solid #E8E2D5;
}
.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.principle {
  border-left: 4px solid #C8F135;
  padding: 6px 0 6px 14px;
  font-weight: 600;
}
.principle strong { color: #12233A; }
.principle span { color: #2A3B55; font-weight: 400; display: block; font-size: 0.95rem; }

@media (min-width: 720px) {
  .principles-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 32px; }
}
@media (min-width: 1024px) {
  .principles-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #F7F2E7;
  border: 1px solid #E8E2D5;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h3 { margin: 0; }
.card p { margin: 0; color: #2A3B55; }
.card .card-link { margin-top: auto; padding-top: 8px; font-weight: 700; }

.card-availability {
  font-size: 0.85rem;
  color: #2A3B55;
  font-style: italic;
  margin-top: 4px;
}

/* Pathway cards (homepage section 3) */
.pathway { border-top: 4px solid #C8F135; }

/* ---------- Hero / workflow image ---------- */
.workflow-figure {
  margin: 0;
  background: #0E1B2D;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #1E3354;
}
.workflow-figure img { border-radius: 8px; }
.workflow-figure figcaption {
  color: #B6C2D4;
  font-size: 0.85rem;
  margin-top: 8px;
  padding: 0 4px;
}

/* ---------- Section eyebrow ---------- */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  color: #12233A;
  background: #C8F135;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* ---------- Featured article card ---------- */
.featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) { .featured { grid-template-columns: repeat(2, 1fr); } }

.feature-card {
  background: #12233A;
  color: #FAF7F2;
  border-radius: 12px;
  padding: 24px;
}
.feature-card h3 { color: #FAF7F2; }
.feature-card .meta { color: #B6C2D4; font-size: 0.85rem; margin: 4px 0 12px; }
.feature-card p { color: #D8DEE9; }
.feature-card .cat {
  display: inline-block;
  background: #C8F135;
  color: #12233A;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Kit / dark feature panel ---------- */
.kit-panel {
  background: #12233A;
  color: #FAF7F2;
  padding: 64px 0;
  border-top: 4px solid #C8F135;
  border-bottom: 4px solid #C8F135;
}
.kit-panel h2, .kit-panel h3 { color: #FAF7F2; }
.kit-panel p, .kit-panel li { color: #D8DEE9; }
.kit-panel .lead { color: #D8DEE9; }
.kit-panel a { color: #C8F135; }
.kit-panel a:hover { color: #E5FF85; }

.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 720px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
.feature-list li {
  position: relative;
  padding-left: 24px;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  background: #C8F135;
  border-radius: 2px;
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.faq details {
  background: #F7F2E7;
  border: 1px solid #E8E2D5;
  border-radius: 10px;
  padding: 14px 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  position: relative;
  padding-right: 28px;
  color: #12233A;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.4rem;
  color: #C8F135;
  background: #12233A;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 800;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 10px; color: #2A3B55; }

/* ---------- Pricing ---------- */
.pricing {
  background: #FAF7F2;
  border: 2px solid #12233A;
  border-radius: 14px;
  padding: 28px;
  max-width: 680px;
  margin: 0 auto;
}
.pricing .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #12233A;
  line-height: 1.1;
}
.pricing .price small { font-size: 1rem; color: #2A3B55; font-weight: 600; display: block; margin-top: 4px; }
.pricing ul { margin: 16px 0; }

/* ---------- Demo cards (homepage section 7) ---------- */
.demo-card {
  background: #F7F2E7;
  border: 1px solid #E8E2D5;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-card .label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  background: #12233A;
  color: #C8F135;
  padding: 3px 8px;
  border-radius: 3px;
  align-self: flex-start;
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: #12233A;
  color: #FAF7F2;
  padding: 56px 0;
  border-top: 4px solid #C8F135;
}
.newsletter h2 { color: #FAF7F2; }
.newsletter p { color: #D8DEE9; }
.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.newsletter input[type="email"] {
  flex: 1 1 240px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 2px solid #1E3354;
  background: #FAF7F2;
  color: #12233A;
  font-size: 1rem;
  font-family: inherit;
}
.newsletter input[type="email"]:focus-visible {
  outline: 3px solid #C8F135;
  outline-offset: 2px;
}
.newsletter .consent { color: #B6C2D4; font-size: 0.85rem; margin-top: 12px; }

/* ---------- Disclaimer callout ---------- */
.disclaimer {
  background: #F9EFC7;
  border-left: 4px solid #C8F135;
  padding: 12px 16px;
  font-size: 0.92rem;
  color: #2A3B55;
  border-radius: 4px;
  margin: 16px 0;
}
.kit-panel .disclaimer {
  background: #1E3354;
  color: #FAF7F2;
  border-left-color: #C8F135;
}
.kit-panel .disclaimer strong { color: #C8F135; }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  background: #12233A;
  color: #FAF7F2;
  padding: 56px 0 48px;
  border-bottom: 4px solid #C8F135;
}
.page-hero h1 { color: #FAF7F2; }
.page-hero .lead { color: #D8DEE9; }

/* ---------- Placeholder markers ---------- */
.placeholder {
  background: #F9EFC7;
  border: 1px dashed #B89C2A;
  color: #6B5A12;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
.placeholder-dark {
  background: #1E3354;
  border: 1px dashed #C8F135;
  color: #C8F135;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* ---------- Tables ---------- */
.kit-table {
  width: 100%;
  border-collapse: collapse;
  background: #F7F2E7;
  border: 1px solid #E8E2D5;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.95rem;
}
.kit-table th, .kit-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #E8E2D5;
  vertical-align: top;
}
.kit-table th { background: #12233A; color: #FAF7F2; font-weight: 700; }
.kit-table tr:last-child td { border-bottom: none; }

/* ---------- Workflow steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: #F7F2E7;
  border: 1px solid #E8E2D5;
  border-top: 4px solid #C8F135;
  border-radius: 10px;
  padding: 20px;
}
.step .num {
  display: inline-block;
  background: #C8F135;
  color: #12233A;
  font-weight: 800;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.step h3 { margin-top: 0; }

/* ---------- Article (legal / placeholder) ---------- */
.prose {
  max-width: 70ch;
  margin: 0 auto;
}
.prose h2 { margin-top: 32px; }
.prose ul li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0B1726;
  color: #B6C2D4;
  padding: 40px 0 24px;
  border-top: 4px solid #C8F135;
  font-size: 0.9rem;
}
.site-footer a { color: #C8F135; text-decoration: none; }
.site-footer a:hover { color: #E5FF85; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 24px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h4 {
  color: #FAF7F2;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid #1E3354;
  padding-top: 16px;
  color: #7A8AA0;
  font-size: 0.8rem;
}

/* ---------- Notice banner (placeholder pages) ---------- */
.notice {
  background: #F9EFC7;
  border: 1px solid #E6D17A;
  border-left: 4px solid #C8F135;
  border-radius: 6px;
  padding: 16px 18px;
  margin: 16px 0;
  color: #2A3B55;
}

/* ---------- Mockup figure (kit page) ---------- */
.mockup-figure {
  margin: 0;
  background: #0E1B2D;
  border: 1px solid #1E3354;
  border-radius: 12px;
  padding: 14px;
}
.mockup-figure img { border-radius: 8px; }
.mockup-figure figcaption {
  color: #B6C2D4;
  font-size: 0.85rem;
  margin-top: 10px;
  text-align: center;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-md { margin-top: 24px; }
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ---------- Fix: button text must never inherit panel link colors ---------- */
.kit-panel a.btn-primary,
.newsletter a.btn-primary,
.page-hero a.btn-primary,
.site-footer a.btn-primary,
.hero a.btn-primary { color: #12233A; }
.kit-panel a.btn-secondary,
.newsletter a.btn-secondary,
.page-hero a.btn-secondary,
.hero a.btn-secondary { color: #FAF7F2; }

/* ---------- Article pages (learn/<slug>/) ---------- */
.article { max-width: 760px; padding-top: 28px; padding-bottom: 56px; }
.crumb { font-size: 0.9rem; color: #2A3B55; margin-bottom: 18px; }
.crumb a { color: #12233A; font-weight: 600; }
.article h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.2; margin-bottom: 8px; }
.byline { color: #2A3B55; font-size: 0.95rem; margin-bottom: 6px; }
.article-toc {
  background: #F7F2E7; border: 1px solid #E8E2D5; border-radius: 10px;
  padding: 16px 22px; margin: 22px 0 30px;
}
.article-toc h2 { margin: 0 0 8px; font-size: 1.05rem; }
.article-toc ol { margin: 0; padding-left: 20px; }
.article-toc li { margin: 4px 0; }
.article h2 { margin-top: 36px; font-size: 1.45rem; }
.article h3 { margin-top: 24px; font-size: 1.15rem; }
.article p, .article li { line-height: 1.7; color: #2A3B55; }
.article ul, .article ol { padding-left: 24px; }
.article blockquote {
  border-left: 4px solid #C8F135; margin: 18px 0; padding: 8px 18px;
  background: #F9EFC7; border-radius: 0 8px 8px 0; color: #12233A;
}
.article-fig { margin: 30px 0; }
.article-fig img { width: 100%; height: auto; border-radius: 10px; border: 1px solid #E8E2D5; }
.article-fig figcaption { font-size: 0.9rem; color: #2A3B55; margin-top: 8px; text-align: center; }
.article pre { background: #12233A; color: #FAF7F2; padding: 16px 18px; border-radius: 10px; overflow-x: auto; }
.article code { background: #F7F2E7; padding: 1px 6px; border-radius: 4px; font-size: 0.92em; }
.article pre code { background: none; padding: 0; }
.table-wrap { overflow-x: auto; margin: 20px 0; }
.article table { border-collapse: collapse; width: 100%; background: #F7F2E7; border: 1px solid #E8E2D5; border-radius: 8px; }
.article th, .article td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #E8E2D5; color: #2A3B55; }
.article th { color: #12233A; font-weight: 700; }
.article-disclaimer { margin-top: 40px; padding-top: 16px; border-top: 1px solid #E8E2D5; font-size: 0.85rem; color: #2A3B55; }

/* ---------- Fix: feature cards are links now ---------- */
a.feature-card { text-decoration: none; color: inherit; display: block; }
a.feature-card:hover h3, a.feature-card:focus-visible h3 { color: #12233A; text-decoration: underline; text-decoration-color: #C8F135; text-decoration-thickness: 3px; }

/* ---------- Fix: category card titles are links where categories have live guides ---------- */
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover, .card h3 a:focus-visible { text-decoration: underline; text-decoration-color: #C8F135; text-decoration-thickness: 3px; }

/* ---------- Article "leave with" line ---------- */
.leave-with { font-size: .95rem; color: #12233A; background: #F9EFC7; border-left: 4px solid #C8F135; padding: 8px 14px; border-radius: 0 8px 8px 0; margin: 10px 0 4px; }

/* ---------- Display serif (approved 2026-08-22, headings only) ---------- */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-700.woff2") format("woff2");
}
h1, h2 { font-family: "Source Serif 4", Georgia, serif; }

/* ---------- Demo section: real-build card links ---------- */
.card-link-a { color: #12233A; font-weight: 700; text-decoration: none; border-bottom: 2px solid #C8F135; }
.card-link-a:hover, .card-link-a:focus-visible { border-bottom-color: #12233A; }

/* ---------- Fix: two-card demo grid fills the container like every other section ---------- */
@media (min-width: 720px) {
  .card-grid.duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}
