/*
  Foundit — App Legal Pages shared stylesheet
  Colors: the 5 hex values below (cream excluded) are copied verbatim from
  FOUNDIT_brand_reference.pdf ("Approved Production Colors" table, confirmed
  against production design tokens at package-assembly time). Cream is the
  background color documented from Andy-supplied reference screenshots in
  the project's website-status notes — treat it as best-available direction,
  not a formally token-verified value the way the other five are.
  Typography: no brand typeface has been approved (confirmed in
  FOUNDIT_brand_reference.pdf — "UNRESOLVED — no approved brand typeface
  exists at this time"). This stylesheet therefore uses a plain system-font
  stack rather than guessing at a brand font.
*/

:root {
  --cream: #FBF2E6;
  --navy: #16202F;
  --coral: #FC4E3D;
  --coral-companion: #F76F59;
  --blue: #0E5C96;
  --gold: #CE8B28;
  --teal: #0D9488;
  --hairline: rgba(22, 32, 47, 0.14);
  --max-width: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--navy); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* Draft-status banner */
.draft-banner {
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
}
.draft-banner a { color: var(--navy); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--hairline);
  padding: 1.1rem 1.5rem;
}
.site-header .wrap {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-header .logo-link { display: inline-flex; align-items: center; }
.site-header img.wordmark { height: 26px; width: auto; display: block; }
.header-back {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Main content */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.75rem 1.5rem 4rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--coral);
  padding-bottom: 0.2rem;
  margin-bottom: 0.9rem;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.dek {
  font-size: 1.1rem;
  color: rgba(22, 32, 47, 0.75);
  margin: 0 0 1.5rem;
  max-width: 56ch;
}

.meta-line {
  font-size: 0.9rem;
  color: rgba(22, 32, 47, 0.68);
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--hairline);
}

h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 0.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--navy);
}
main > h2:first-of-type { border-top: none; padding-top: 0; }

h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.6rem;
  color: var(--navy);
}

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
li { margin-bottom: 0.45rem; }

strong { color: var(--navy); }

/* Review-status callout for preserved counsel-review placeholders */
.review-note {
  background: #FFF8EA;
  border: 1px solid var(--gold);
  border-left-width: 5px;
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  margin: 0.9rem 0 1.4rem;
  font-size: 0.95rem;
}
.review-note .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8A5A0F;
  margin-bottom: 0.35rem;
}

/* Product-decision callout: an operational/engineering open item, not a legal
   one — visually distinct from .review-note so counsel-facing items and
   product-facing items are never conflated. */
.review-note.product {
  background: #EAF2FA;
  border-color: var(--blue);
}
.review-note.product .tag { color: #0E5C96; }

.effective-date-note {
  font-size: 0.9rem;
  color: rgba(22, 32, 47, 0.68);
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--hairline);
  font-style: italic;
}

/* Intro / disclosure card */
.intro-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  margin: 0 0 2rem;
  font-size: 0.97rem;
}
.intro-card p:last-child { margin-bottom: 0; }

.contact-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  margin: 1.5rem 0;
}
.contact-card h3 { margin-top: 0; }
.contact-card a { font-weight: 600; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
  list-style: none;
  padding: 0;
}
.link-grid li { margin: 0; }
.link-grid a {
  display: block;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}
.link-grid a:hover, .link-grid a:focus { border-color: var(--blue); color: var(--blue); }

.pip-flourish {
  width: 56px;
  height: auto;
  display: block;
  margin: 0 0 1rem;
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
}
.btn:hover, .btn:focus { background: var(--navy); color: #fff; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  margin-top: 3rem;
}
.site-footer .wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.site-footer img.wordmark { height: 22px; width: auto; margin-bottom: 1rem; }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
  padding: 0;
}
.site-footer nav a {
  color: var(--cream);
  opacity: 0.88;
  font-size: 0.95rem;
  text-decoration: none;
}
.site-footer nav a:hover, .site-footer nav a:focus { opacity: 1; text-decoration: underline; }
.site-footer .fine-print {
  font-size: 0.82rem;
  opacity: 0.65;
  border-top: 1px solid rgba(251, 242, 230, 0.15);
  padding-top: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
