/*
  Outcomes By Page — marketing site.
  Brand tokens: primary purple #7C3AED (~5.7:1 on white), deep ink #24143F (13:1+ on
  white), soft surface #F4F0FF. One purple, used consistently for links, buttons, and
  accents; ink carries body text so contrast never depends on the accent hue.
  Typography scale below is duplicated (not shared) in public/app/app.css — this site and
  the dashboard are served from separate static roots. Keep both in sync by hand.
*/

/* Self-hosted (public/site/vendor/fonts, OFL-licensed) rather than a Google Fonts request,
   so this page keeps making zero third-party network calls — same reasoning as vendoring
   Bootstrap. Each file is the variable-font build, so one file covers every weight from
   100-900 (and therefore "semibold" at 600) rather than needing a static file per weight. */
@font-face {
  font-family: 'Roboto';
  src: url('/vendor/fonts/Roboto-Variable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/vendor/fonts/Roboto-Italic-Variable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;

  --purple: #7C3AED;
  --purple-dark: #5B21B6;   /* hover/active state of the one brand purple */
  --ink: #24143F;
  --ink-soft: #4B4459;      /* secondary text; verified >= 4.5:1 on white and on --surface */
  --surface: #F4F0FF;
  --surface-line: #E1D6FA;
  --white: #FFFFFF;
  --danger: #B3261E;
  --ok: #146C43;

  --font-family: 'Roboto', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --fw-heading: 700;
  --fw-body: 400;
  --fw-medium: 600;
  --lh-heading: 1.2;
  --lh-body: 1.65;

  /* One modular scale (~1.25 ratio), fluid between mobile and desktop. Every heading
     level differs only in size — never in family, weight, or line-height. */
  --fs-h1: clamp(2.25rem, 1.85rem + 1.6vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  --fs-h3: clamp(1.4rem, 1.25rem + .6vw, 1.85rem);
  --fs-h4: clamp(1.2rem, 1.1rem + .4vw, 1.45rem);
  --fs-h5: 1.15rem;
  --fs-h6: 1rem;
  --fs-body: 1.0625rem;
  --fs-small: .9rem;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(36, 20, 63, .06), 0 8px 24px rgba(36, 20, 63, .07);

  --bs-font-sans-serif: var(--font-family);
  --bs-body-font-family: var(--font-family);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--white);
  --bs-primary: var(--purple);
  --bs-primary-rgb: 124, 58, 237;
  --bs-link-color: var(--purple-dark);
  --bs-link-hover-color: var(--purple);
  --bs-border-radius: var(--radius);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-family);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--white);
}

/* Headings: identical family/weight/line-height at every level; size is the only variable. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: var(--fw-heading);
  line-height: var(--lh-heading);
  color: var(--ink);
  margin: 0 0 .55em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

/* Every <p> on the site shares one weight, line-height, and size regardless of section. */
p {
  font-family: var(--font-family);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  font-size: var(--fs-body);
  color: var(--ink);
  margin: 0 0 1.1em;
}
p:last-child { margin-bottom: 0; }
p.lead { font-size: calc(var(--fs-body) * 1.2); color: var(--ink-soft); }
small, .fs-small { font-size: var(--fs-small); }

a { color: var(--bs-link-color); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--bs-link-hover-color); }
a.btn, nav a, footer a { text-decoration: none; }

/* Visible on every interactive element, including inside the purple surfaces. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--purple-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ink); color: var(--white); padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --- Layout --- */
.container-narrow { max-width: 960px; margin-inline: auto; }

.site-header {
  border-bottom: 1px solid var(--surface-line);
  background: var(--white);
  position: sticky; top: 0; z-index: 40;
}
.site-header .navbar-brand {
  font-weight: var(--fw-heading);
  font-size: 1.15rem;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: .5rem;
}
.brand-mark {
  width: 1.6rem; height: 1.6rem; border-radius: 6px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  display: inline-block; flex: none;
}
.site-nav a {
  color: var(--ink); font-weight: var(--fw-medium); text-decoration: none;
  padding: .5rem .75rem; border-radius: 8px;
}
.site-nav a:hover { background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--purple-dark); background: var(--surface); }

.nav-toggle {
  display: none;
  background: var(--surface); border: 1px solid var(--surface-line); border-radius: 8px;
  padding: .4rem .6rem; font: inherit; font-weight: var(--fw-medium); color: var(--ink);
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .site-nav { display: none; flex-direction: column; align-items: stretch; width: 100%; padding-top: .5rem; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .65rem .5rem; }
}

.eyebrow {
  display: inline-block; font-weight: var(--fw-medium); font-size: var(--fs-small);
  letter-spacing: .06em; text-transform: uppercase; color: var(--purple-dark);
  background: var(--surface); border: 1px solid var(--surface-line);
  padding: .3rem .75rem; border-radius: 999px; margin-bottom: 1rem;
}

.hero { padding: 4.5rem 0 3rem; }
.hero .btn + .btn { margin-left: .75rem; }

.card-soft {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
}
.card-plain {
  background: var(--white);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  height: 100%;
}
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--purple); color: var(--white); font-weight: var(--fw-heading);
  margin-bottom: .85rem;
}

.btn-primary {
  background: var(--purple); border-color: var(--purple); color: var(--white);
  font-weight: var(--fw-medium); padding: .65rem 1.4rem; border-radius: 8px;
}
.btn-primary:hover, .btn-primary:active {
  background: var(--purple-dark) !important; border-color: var(--purple-dark) !important; color: var(--white);
}
.btn-outline-primary {
  color: var(--purple-dark); border-color: var(--purple);
  font-weight: var(--fw-medium); padding: .65rem 1.4rem; border-radius: 8px;
}
.btn-outline-primary:hover {
  background: var(--purple); border-color: var(--purple); color: var(--white);
}
/* Minimum comfortable target size for pointer and touch input at every interactive control. */
.btn, .nav-toggle, .site-nav a { min-height: 44px; display: inline-flex; align-items: center; }

.section { padding: 3.5rem 0; }
.section-muted { background: var(--surface); }
.table-plain th, .table-plain td { padding: .85rem 1rem; border-bottom: 1px solid var(--surface-line); }
.table-plain th { color: var(--ink-soft); font-weight: var(--fw-medium); text-align: left; }

.site-footer {
  border-top: 1px solid var(--surface-line);
  background: var(--surface);
  padding: 2.5rem 0;
  margin-top: 2rem;
}
.site-footer a { color: var(--ink-soft); font-weight: var(--fw-medium); }
.site-footer a:hover { color: var(--purple-dark); }
.footer-legal { color: var(--ink-soft); font-size: var(--fs-small); }

.legal p, .legal li { color: var(--ink); }
.legal h2 { margin-top: 2rem; }
.legal .updated { color: var(--ink-soft); }

/* FAQ: native disclosure widgets, so every answer is reachable without script. */
.faq { border-bottom: 1px solid var(--surface-line); padding: .25rem 0; }
.faq summary { cursor: pointer; padding: .9rem 0; font-weight: var(--fw-medium); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--purple-dark); font-weight: var(--fw-heading); flex: none; }
.faq[open] summary::after { content: '\2212'; }
.faq p, .faq li { color: var(--ink); }
.faq > :not(summary) { margin-bottom: .75rem; }
.faq code { background: var(--surface); border: 1px solid var(--surface-line); border-radius: 4px; padding: .05rem .35rem; color: var(--purple-dark); }
