/* ==========================================================================
   Counsel of Many: site styles (v2 design)
   One file for the whole site. Colors are the "Teal Commons" palette.
   Fonts are self-hosted in /fonts (no outside requests).
   ========================================================================== */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --color-primary: #2A7A74;        /* buttons, links, key headings */
  --color-primary-dark: #1F5F5A;   /* hover, pressed, focus ring */
  --color-primary-deep: #1A4F4B;   /* signature bands (white text 9.3:1) */
  --color-charcoal: #2B2E30;       /* body text, headings, footer */
  --color-gold: #D4A944;           /* decorative; gold buttons with charcoal text (6.2:1) */
  --color-gold-light: #E8C670;     /* small gold TEXT on deep teal (5.6:1; brand gold is only 4.2:1 there) */
  --color-gold-tint: #FBF4E3;      /* soft gold callouts */
  --color-cream: #FAF8F3;          /* page background */
  --color-tint: #E6F2F0;           /* pale teal sections */
  --color-text-secondary: #55595C; /* supporting text; never lighter */
  --color-on-deep-muted: #D7E6E3;  /* supporting text on deep teal (7.2:1) */
  --color-white: #FFFFFF;
  --color-error: #A3241C;

  --font-heading: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --border-soft: 1px solid #E7E2D8;
  --radius-card: 14px;
  --radius-button: 10px;
  --shadow-card: 0 1px 2px rgba(43, 46, 48, 0.04), 0 8px 24px rgba(43, 46, 48, 0.06);
  --shadow-card-strong: 0 2px 4px rgba(43, 46, 48, 0.06), 0 16px 40px rgba(43, 46, 48, 0.1);

  --measure: 70ch;
  --container: 72.5rem; /* 1160px */
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-space: 4rem;
  --header-height: 80px;
}

@media (min-width: 768px) {
  :root {
    --section-space: 5.5rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-space: 7rem;
  }
}

/* ---------- Base ---------- */

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Keeps anchor targets and focused elements clear of the sticky header */
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px */
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-charcoal);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.875rem, 1.5rem + 1.3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.375rem;
  line-height: 1.3;
}

p,
ul,
ol {
  margin: 0 0 1.1em;
}

li + li {
  margin-top: 0.4em;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration-thickness: 2px;
}

strong {
  font-weight: 600;
}

blockquote {
  margin: 0 0 1.25em;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 3px solid var(--color-gold);
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

/* Visible focus ring everywhere (3px primary-dark with offset) */
:focus-visible {
  outline: 3px solid var(--color-primary-dark);
  outline-offset: 3px;
}

[tabindex="-1"]:focus {
  outline: none;
}

.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: 1rem;
  top: -10rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--color-white);
  color: var(--color-primary-dark);
  font-weight: 600;
  border: 2px solid var(--color-primary-dark);
  border-radius: var(--radius-button);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Layout helpers ---------- */

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

.prose {
  max-width: var(--measure);
}

.section {
  padding: var(--section-space) 0;
}

.section--white {
  background: var(--color-white);
}

.section--tint {
  background: var(--color-tint);
}

.section--deep {
  background: var(--color-primary-deep);
  color: var(--color-white);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 3rem;
}

.section-head > :last-child {
  margin-bottom: 0;
}

/* Eyebrow label above headings */
.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* Teal text is only 4.4:1 on the pale tint, so use the darker teal there */
.section--tint .eyebrow,
.panel-tint .eyebrow {
  color: var(--color-primary-dark);
}

.section--deep .eyebrow {
  color: var(--color-gold-light);
}

.muted {
  color: var(--color-text-secondary);
}

.two-steps {
  max-width: var(--measure);
  padding-left: 1.4rem;
}

.lead {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.section--deep .lead {
  color: var(--color-on-deep-muted);
}

/* Two-column layout used by several sections */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  min-width: 44px;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-button);
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:active {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  text-decoration: none;
}

.button--secondary {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.button--secondary:hover,
.button--secondary:active {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

/* Text-style button with an arrow (same height as a regular button) */
.button--text {
  background: transparent;
  border-color: transparent;
  color: var(--color-primary-dark);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.button--text:hover,
.button--text:active {
  background: transparent;
  border-color: transparent;
  color: var(--color-charcoal);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.button__arrow {
  width: 20px;
  height: 20px;
  flex: none;
}

@media (prefers-reduced-motion: no-preference) {
  .button__arrow {
    transition: transform 0.2s ease;
  }

  .button--text:hover .button__arrow {
    transform: translateX(3px);
  }
}

/* Gold button with charcoal text: for dark bands (6.2:1) */
.button--gold {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-charcoal);
}

.button--gold:hover,
.button--gold:active {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-charcoal);
}

/* Gold outlined button for dark bands */
.button--gold-outline {
  background: transparent;
  border-color: var(--color-gold);
  color: var(--color-gold-light);
}

.button--gold-outline:hover,
.button--gold-outline:active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-charcoal);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
}

/* On dark bands, focus rings and links switch to gold/white */
.section--deep :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--color-gold);
}

.section--deep a:not(.button) {
  color: var(--color-white);
}

.section--deep a:not(.button):hover {
  color: var(--color-gold-light);
}

.section--deep .button--text {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.section--deep .button--text:hover {
  color: var(--color-gold-light);
}

/* Links on the tint use the darker teal (6.4:1) */
.section--tint a:not(.button),
.callout a:not(.button) {
  color: var(--color-primary-dark);
}

.section--tint a:not(.button):hover,
.callout a:not(.button):hover {
  color: var(--color-charcoal);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid #EEEAE2;
}

@media (prefers-reduced-motion: no-preference) {
  .site-header {
    transition: box-shadow 0.2s ease;
  }
}

.site-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(43, 46, 48, 0.08);
}

/* On very short screens (phones in landscape, high zoom) a sticky header takes too much room */
@media (max-height: 500px) {
  .site-header {
    position: static;
  }

  html {
    scroll-padding-top: 1rem;
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: var(--color-charcoal);
  text-decoration: none;
}

.brand:hover {
  color: var(--color-charcoal);
  text-decoration: none;
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.menu-toggle {
  display: none; /* shown only when JS is running on small screens */
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-primary-dark);
  border-radius: var(--radius-button);
  background: var(--color-white);
  color: var(--color-primary-dark);
  font: 600 1.125rem/1 var(--font-body);
  cursor: pointer;
}

.menu-toggle__icon {
  width: 22px;
  height: 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__links li + li {
  margin-top: 0;
}

.site-nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  color: var(--color-charcoal);
  font-weight: 600;
  text-decoration: none;
}

/* 2px teal underline that slides in on hover and focus */
.site-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left center;
}

.site-nav__links a:hover::after,
.site-nav__links a:focus-visible::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: no-preference) {
  .site-nav__links a::after {
    transition: transform 0.2s ease;
  }
}

.site-nav__links a:hover {
  color: var(--color-primary-dark);
}

.site-nav__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-nav__actions .button {
  min-height: 46px;
  padding: 0.5rem 1.1rem;
}

@media (max-width: 1119px) {
  .js .menu-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    width: 100%;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1.25rem;
    border-top: 1px solid #EEEAE2;
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .js .site-nav__links {
    flex-direction: column;
    gap: 0;
  }

  .js .site-nav__links a {
    justify-content: flex-start;
    width: 100%;
    padding: 0.35rem 0;
  }

  .js .site-nav__links a::after {
    right: auto;
    width: 3rem;
  }

  .js .site-nav__actions {
    flex-direction: column;
    padding-top: 0.75rem;
  }

  .js .site-nav__actions .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  :root {
    --header-height: 68px;
  }

  .site-header__inner {
    column-gap: 0.5rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand__name {
    font-size: 1.25rem;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .menu-toggle {
    padding: 0.5rem 0.7rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6.5rem);
  background: var(--color-cream);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 55fr 45fr;
    gap: 3rem;
  }
}

.hero__verse {
  margin: 0 0 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-primary-dark);
}

/* Gold rule: kept only in the hero and the scripture band */
.hero__verse::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-bottom: 1rem;
  background: var(--color-gold);
}

.hero__verse cite {
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.hero h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 0.5em;
}

.hero .lead {
  max-width: 36rem;
}

@media (max-width: 599px) {
  .hero .button-row .button {
    width: 100%;
  }

  .hero .button--text {
    justify-content: center;
  }
}

/* Trust row under the hero buttons */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin: 2.25rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid #E7E2D8;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.trust svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--color-primary);
}

/* Hero product-preview composition */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
}

.hero__table {
  display: none;
}

@media (min-width: 960px) {
  .hero__visual {
    max-width: none;
    aspect-ratio: 1 / 1;
  }

  .hero__table {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 88%;
    height: auto;
  }
}

.post {
  background: var(--color-white);
  border: var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-strong);
}

.post--front {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.4rem 1.1rem;
}

.post--behind {
  position: relative;
  z-index: 1;
  width: 82%;
  margin: 0 0 -1.25rem auto;
  padding: 0.9rem 1.1rem 1.9rem;
  box-shadow: var(--shadow-card);
}

@media (min-width: 960px) {
  .post--front {
    position: absolute;
    left: 0;
    bottom: 6%;
    width: 78%;
  }

  .post--behind {
    position: absolute;
    left: 8%;
    bottom: 47%;
    width: 56%;
    margin: 0;
  }
}

.post__label {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--color-gold-tint);
  border: 1px solid #EBD9A8;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-charcoal);
}

.post__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.post__user {
  font-weight: 600;
  color: var(--color-charcoal);
}

.post__time {
  margin-left: auto;
  color: var(--color-text-secondary);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 1rem;
}

.avatar--small {
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0.875rem;
  background: var(--color-text-secondary);
}

.post__question {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-charcoal);
}

.post__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #EEEAE2;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.post__votes {
  font-weight: 600;
  color: var(--color-primary);
}

.post__bar {
  display: block;
  height: 0.6rem;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: #E9E6DF;
}

.post__bar--short {
  width: 65%;
}

/* ---------- Chips (weight elders carry) ---------- */

.chips {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  padding: 1rem 1.4rem;
  background: var(--color-white);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  font-size: 1.2rem;
  font-weight: 600;
}

.chips li::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  flex: none;
  border-radius: 50%;
  background: var(--color-primary);
}

@media (min-width: 960px) {
  .chips li:nth-child(even) {
    margin-left: 2.5rem;
  }
}

/* ---------- Cards ---------- */

.card {
  padding: 2rem;
  background: var(--color-white);
  border: var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card--wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 1.5rem;
    align-items: center;
  }

  .card--wide .icon-badge {
    grid-row: span 2;
    margin-bottom: 0;
  }
}

/* Icons inside 56px soft teal circles */
.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--color-tint);
  color: var(--color-primary-dark);
}

.icon-badge svg {
  width: 28px;
  height: 28px;
}

/* ---------- How it works ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li + li {
  margin-top: 0;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  /* Dashed gold line connecting the numbers */
  .steps::before {
    content: "";
    position: absolute;
    top: 23px;
    left: 24px;
    right: calc(33.333% - 24px);
    border-top: 2px dashed var(--color-gold);
  }
}

.step {
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 6px var(--color-white);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
}

.step h3 {
  margin-bottom: 0.4em;
}

.step p {
  margin-bottom: 0;
  color: var(--color-text-secondary);
}

/* ---------- Anonymity (signature deep band) ---------- */

.section--deep h2,
.section--deep h3 {
  color: var(--color-white);
}

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

.commitments li {
  margin: 0;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.04);
}

@media (min-width: 640px) {
  .commitments {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .commitments {
    grid-template-columns: repeat(4, 1fr);
  }
}

.commitments svg {
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 1rem;
  color: var(--color-gold);
}

.commitments h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35em;
}

.commitments p {
  margin: 0;
  color: var(--color-on-deep-muted);
}

.admin-note {
  max-width: var(--measure);
  margin-bottom: 0;
  font-size: 1.125rem;
  color: var(--color-on-deep-muted);
}

/* ---------- Flock (network illustration) ---------- */

.network {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

/* ---------- Founder note ---------- */

.founder {
  max-width: 47.5rem; /* 760px */
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--color-white);
  border: var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.founder p {
  font-size: 1.2rem;
}

.founder__sign {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid #EEEAE2;
}

.founder__photo {
  width: 96px;
  height: 96px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-gold);
}

.founder__byline {
  margin: 0;
}

.founder__name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
}

.founder__role {
  display: block;
  font-size: 1.05rem;
  color: var(--color-text-secondary);
}

.draft-flag {
  margin: 0 0 1.5rem;
  padding: 0.6rem 1rem;
  background: var(--color-gold-tint);
  border-left: 4px solid var(--color-gold);
  border-radius: 6px;
  font-size: 1rem !important;
  font-weight: 600;
}

/* ---------- Scripture band ---------- */

.scripture {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background: var(--color-tint);
  border-top: 2px solid var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
  text-align: center;
}

.scripture__mark {
  display: block;
  margin: 0 auto 0.25rem;
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 0.8;
  color: var(--color-gold);
}

.scripture__verses {
  max-width: 50rem;
  margin: 0 auto;
  min-height: 10rem;
  display: grid;
  align-items: center;
}

.scripture__verse {
  margin: 0;
}

.scripture__verse[hidden] {
  display: none;
}

.scripture__text {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 1rem + 1.6vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-charcoal);
}

.scripture__text p {
  margin: 0;
}

.scripture__ref {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}

.scripture__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 2rem;
}

.scripture__controls[hidden] {
  display: none;
}

.scripture__buttons {
  display: flex;
  gap: 0.25rem;
}

/* 44px tap area, 36px visible circle */
.scripture__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-primary-dark);
  cursor: pointer;
}

.scripture__button[hidden] {
  display: none;
}

.scripture__button-face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--color-primary-dark);
  border-radius: 50%;
  background: var(--color-white);
}

.scripture__button:hover .scripture__button-face {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.scripture__button svg {
  width: 16px;
  height: 16px;
}

.scripture__button svg[hidden] {
  display: none;
}

.scripture__button:focus-visible {
  outline: none;
}

.scripture__button:focus-visible .scripture__button-face {
  outline: 3px solid var(--color-primary-dark);
  outline-offset: 2px;
}

/* Dot indicators (visual only; position is announced by each verse's label) */
.scripture__dots {
  display: flex;
  gap: 0.5rem;
}

.scripture__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary-dark);
  background: transparent;
}

.scripture__dots span.is-active {
  background: var(--color-primary-dark);
}

@media (prefers-reduced-motion: no-preference) {
  .scripture__verse {
    transition: opacity 0.6s ease;
  }

  .scripture__verse.is-fading {
    opacity: 0;
  }
}

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .pricing {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

.price-card {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--color-white);
  border: var(--border-soft);
  border-top: 4px solid var(--color-gold);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-strong);
}

.price-card__amount {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--color-charcoal);
}

.price-card__per {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.price-card__daily {
  margin: 0.4rem 0 1.5rem;
  color: var(--color-text-secondary);
}

.checklist {
  margin: 0 0 1.75rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid #EEEAE2;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.4em;
  width: 0.55rem;
  height: 0.95rem;
  border: solid var(--color-primary);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.price-card .button {
  width: 100%;
}

.secure-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 1rem 0 0;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.secure-line svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.callout-gold {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--color-gold-tint);
  border: 1px solid #EFE0B5;
  border-radius: var(--radius-card);
  color: var(--color-charcoal);
}

.callout-gold svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.2rem;
  color: #9A7A26; /* darker gold for the decorative icon: 3.7:1 on the gold tint */
}

.callout-gold p {
  margin: 0;
}

/* ---------- Details (Creed + FAQ) ---------- */

summary {
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

/* Rotating chevron */
.chevron {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-tint);
  color: var(--color-primary-dark);
}

.chevron svg {
  width: 18px;
  height: 18px;
}

details[open] > summary .chevron svg {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: no-preference) {
  .chevron svg {
    transition: transform 0.2s ease;
  }
}

/* Creed */
.creed {
  max-width: 46rem;
  margin-top: 2rem;
  background: var(--color-white);
  border: var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.creed > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.85rem 1.25rem 0.85rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.creed > summary:hover {
  color: var(--color-primary-dark);
}

.creed__body {
  padding: 0.5rem clamp(1.25rem, 5vw, 3.5rem) 2.5rem;
  text-align: center;
}

.creed__ornament {
  display: block;
  width: 28px;
  height: 40px;
  margin: 0 auto 1.25rem;
  color: var(--color-gold);
}

.creed__text {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0;
  border: 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.85;
}

.creed__text p {
  margin: 0;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 960px) {
  .faq-layout {
    grid-template-columns: 1fr 1.7fr;
    gap: 4rem;
    align-items: start;
  }

  .faq-layout__intro {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
  }
}

.faq-list {
  border-top: 1px solid #DDD8CD;
}

.faq-list details {
  border-bottom: 1px solid #DDD8CD;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 72px;
  padding: 1rem 0.25rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

.faq-list summary:hover {
  color: var(--color-primary-dark);
}

.faq-list .details__body {
  padding: 0 3.5rem 1.5rem 0.25rem;
}

.details__body p:last-child {
  margin-bottom: 0;
}

/* ---------- Closing call to action ---------- */

.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36rem;
  height: 36rem;
  transform: translate(-50%, -50%);
  color: var(--color-white);
  opacity: 0.05;
  pointer-events: none;
}

.cta .container {
  position: relative;
}

.cta h2 {
  max-width: 36rem;
  margin: 0 auto;
}

.cta .button-row {
  justify-content: center;
}

/* ---------- Inner pages ---------- */

.page-header {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.page-header .lead {
  max-width: var(--measure);
}

.page-body {
  padding-bottom: var(--section-space);
}

.callout {
  max-width: var(--measure);
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-tint);
  border-left: 4px solid var(--color-primary);
  border-radius: 10px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout--draft {
  border-left-color: var(--color-gold);
  background: var(--color-gold-tint);
}

/* Two-step progress indicator */
.progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.progress li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.progress__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid var(--color-text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
}

.progress li[aria-current="step"] {
  color: var(--color-charcoal);
}

.progress li[aria-current="step"] .progress__num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.progress li.is-done .progress__num {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.progress__arrow {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-text-secondary);
}

/* Enroll layout: form + side panel */
.enroll-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .enroll-layout {
    grid-template-columns: minmax(0, 1fr) 21rem;
    gap: 3rem;
    align-items: start;
  }

  .enroll-aside {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }
}

.enroll-aside {
  padding: 1.75rem;
  background: var(--color-white);
  border: var(--border-soft);
  border-top: 4px solid var(--color-gold);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.enroll-aside h2 {
  font-size: 1.375rem;
  margin-bottom: 0.25rem;
}

.enroll-aside .price-card__amount {
  font-size: 2.5rem;
}

.enroll-aside .checklist {
  margin-bottom: 1.25rem;
}

.enroll-aside__anon {
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--color-tint);
  border-radius: 10px;
  font-size: 1.05rem;
}

.enroll-aside__anon a {
  color: var(--color-primary-dark);
}

/* ---------- Forms ---------- */

.form {
  max-width: 46rem;
}

.form-card {
  margin: 0 0 2rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--color-white);
  border: var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.form-card > h2 {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.form fieldset {
  margin: 1.75rem 0 0;
  padding: 1.5rem 0 0;
  border: 0;
  border-top: 1px solid #EEEAE2;
}

.form legend {
  padding: 0 0.5rem 0 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.field {
  margin-bottom: 1.5rem;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.req,
.opt {
  font-weight: 400;
  color: var(--color-text-secondary);
}

.hint {
  display: block;
  margin: -0.1rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--color-text-secondary);
}

.form input[type="text"],
.form input[type="email"],
.form textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0.65rem 0.85rem;
  border: 2px solid #6B7072; /* 4.9:1 against white for the field edge */
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-charcoal);
  font: inherit;
}

.form textarea {
  min-height: 9rem;
  resize: vertical;
}

.form input:focus-visible,
.form textarea:focus-visible {
  border-color: var(--color-primary-dark);
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.check + .check {
  margin-top: 1.25rem;
}

.check input[type="checkbox"] {
  width: 26px;
  height: 26px;
  margin: 0.15rem 0 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.check label {
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.check .error-message {
  grid-column: 2;
}

.error-message {
  display: block;
  margin: 0.2rem 0 0.4rem;
  font-weight: 600;
  color: var(--color-error); /* 6.9:1 on white */
}

.error-message[hidden] {
  display: none;
}

.error-message::before {
  content: "Error: ";
}

.form [aria-invalid="true"] {
  border-color: var(--color-error);
}

.check input[aria-invalid="true"] {
  outline: 2px solid var(--color-error);
  outline-offset: 2px;
}

.error-summary {
  max-width: 46rem;
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-white);
  border: 3px solid var(--color-error);
  border-radius: var(--radius-card);
}

.error-summary[hidden] {
  display: none;
}

.error-summary h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.error-summary ul {
  margin: 0;
}

.error-summary a {
  color: var(--color-error);
  font-weight: 600;
}

.privacy-note {
  max-width: 46rem;
  margin: 0 0 1.5rem;
}

.honeypot {
  display: none;
}

/* ---------- Thank-you page ---------- */

.next-steps {
  max-width: var(--measure);
  padding-left: 1.4rem;
}

.next-steps li {
  padding-left: 0.35rem;
}

/* ---------- Covenant page ---------- */

.doc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .doc-layout {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }

  .toc {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }
}

.toc {
  padding: 1.25rem 1.5rem;
  background: var(--color-white);
  border: var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.toc h2 {
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li + li {
  margin-top: 0;
}

.toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0;
  line-height: 1.35;
  color: var(--color-charcoal);
  text-decoration: none;
}

.toc a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.doc {
  max-width: var(--measure);
}

.doc section {
  padding-top: 0.5rem;
  margin-bottom: 3rem;
}

.doc h2 {
  font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2rem);
}

.doc h3 {
  margin-top: 1.75rem;
}

.sec-num {
  color: var(--color-primary);
  margin-right: 0.15em;
}

.doc .duty {
  padding: 1.75rem;
  background: var(--color-tint);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-card);
}

.doc .duty .sec-num {
  color: var(--color-primary-dark);
}

.doc .duty a {
  color: var(--color-primary-dark);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25em;
  border: var(--border-soft);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  font-size: 1.05rem;
}

th,
td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #EEEAE2;
  text-align: left;
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0;
}

thead th {
  background: var(--color-tint);
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 3.5rem 0 2.5rem;
  background: var(--color-charcoal);
  color: var(--color-cream);
}

.site-footer a {
  color: var(--color-cream);
}

.site-footer a:hover {
  color: var(--color-gold);
}

.duty-line {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin: 0 0 3rem;
  padding: 1.1rem 1.25rem;
  border: 2px solid var(--color-gold);
  border-radius: 8px;
  font-size: 1.125rem;
  line-height: 1.55;
}

.duty-line svg {
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: 0.1rem;
  color: var(--color-gold);
}

.duty-line a {
  color: var(--color-white);
  font-weight: 600;
}

.duty-line a:hover {
  color: var(--color-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 3rem;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-gold);
}

.footer-mission {
  max-width: 22rem;
  margin: 0;
  color: #D8D6D0; /* 10:1 on charcoal */
}

.footer-heading {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold); /* gold text on charcoal: 6.2:1 */
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
}

.footer-contact {
  margin: 0.6rem 0 0;
  color: #D8D6D0;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
  margin: 0;
  font-size: 1rem;
  color: #D8D6D0;
}

/* Crossway's required ESV copyright notice */
.footer-bottom .footer-scripture {
  margin-top: 0.75rem;
  max-width: 75ch;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- 404 ---------- */

.not-found {
  padding: var(--section-space) 0;
}

/* ---------- Print ---------- */

@media print {
  .site-header,
  .skip-link,
  .scripture__controls,
  .menu-toggle,
  .hero__visual,
  .cta__watermark {
    display: none !important;
  }

  .section--deep,
  .site-footer {
    background: none;
    color: #000;
  }

  .section--deep h2,
  .section--deep h3,
  .section--deep p,
  .site-footer a,
  .duty-line a {
    color: #000;
  }
}
