/* style.css — Horizon Community Funding design system + components */

/* === DESIGN TOKENS === */

:root,
[data-theme='light'] {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6vw, 5.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Horizon palette — navy blue + gold, civic trust */
  --color-bg: #faf9f6;
  --color-surface: #f4f2ed;
  --color-surface-2: #efece6;
  --color-surface-offset: #e8e5dd;
  --color-divider: #dcd8d0;
  --color-border: #ccc7bc;

  --color-text: #1a1f25;
  --color-text-muted: #5c615b;
  --color-text-faint: #9a9d97;
  --color-text-inverse: #faf9f6;

  --color-primary: #1a2a3f;
  --color-primary-hover: #121d2e;
  --color-primary-active: #0a1520;
  --color-primary-highlight: #d4dce8;
  --color-accent: #b8860b;
  --color-accent-hover: #a07608;
  --color-accent-highlight: #f0e6d0;

  --color-success: #3d7a22;
  --color-error: #a12c2c;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 31, 37, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 31, 37, 0.08);
  --shadow-lg: 0 16px 40px rgba(26, 31, 37, 0.12);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Fonts */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #0f1620;
  --color-surface: #141c28;
  --color-surface-2: #1a2330;
  --color-surface-offset: #1d2735;
  --color-divider: #2a3340;
  --color-border: #333d4d;

  --color-text: #d8dcd6;
  --color-text-muted: #8a8f88;
  --color-text-faint: #5c615b;
  --color-text-inverse: #0f1620;

  --color-primary: #6fa3d4;
  --color-primary-hover: #5c93c4;
  --color-primary-active: #4a83b4;
  --color-primary-highlight: #1e2f44;
  --color-accent: #d4a945;
  --color-accent-hover: #c49835;
  --color-accent-highlight: #2e2818;

  --color-success: #6daa45;
  --color-error: #d16363;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* System dark mode fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0f1620;
    --color-surface: #141c28;
    --color-surface-2: #1a2330;
    --color-surface-offset: #1d2735;
    --color-divider: #2a3340;
    --color-border: #333d4d;
    --color-text: #d8dcd6;
    --color-text-muted: #8a8f88;
    --color-text-faint: #5c615b;
    --color-text-inverse: #0f1620;
    --color-primary: #6fa3d4;
    --color-primary-hover: #5c93c4;
    --color-primary-active: #4a83b4;
    --color-primary-highlight: #1e2f44;
    --color-accent: #d4a945;
    --color-accent-hover: #c49835;
    --color-accent-highlight: #2e2818;
    --color-success: #6daa45;
    --color-error: #d16363;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  }
}

/* === LAYOUT === */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

/* === HEADER === */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.header__logo {
  flex-shrink: 0;
}

.header__name {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.header__name-sub {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1.2;
  margin-top: 1px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.header__nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}

.header__nav a:hover {
  color: var(--color-primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

[data-theme-toggle] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

[data-theme-toggle]:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* === BUTTONS === */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-interactive);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: 1px solid var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* === HERO === */

.hero {
  position: relative;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, var(--color-primary-highlight), transparent),
    radial-gradient(ellipse 50% 60% at 20% 80%, var(--color-accent-highlight), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 760px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}

.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.hero__title em {
  font-style: italic;
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 58ch;
  margin-bottom: var(--space-8);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Hero honesty note */
.hero__honesty {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 54ch;
  line-height: 1.6;
  padding-left: var(--space-4);
  border-left: 2px solid var(--color-primary);
}

.hero__honesty a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.hero__honesty a:hover,
.hero__honesty a:focus-visible {
  color: var(--color-text);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* === SECTION HEADER === */

.section-header {
  max-width: 640px;
  margin-bottom: var(--space-12);
}

.section-header--centered {
  margin-inline: auto;
  text-align: center;
}

.section-header__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.section-header__description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* === PAIN POINTS === */

.pain-points__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.pain-point {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}

.pain-point__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.pain-point__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.pain-point__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* === SERVICES === */

.services {
  background: var(--color-surface);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-interactive);
}

.service-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.service-card--featured {
  border-color: var(--color-accent);
  border-width: 2px;
  position: relative;
}

.service-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: var(--space-6);
  background: var(--color-accent);
  color: var(--color-text-inverse);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.service-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-2);
}

.service-card__price {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}

.service-card__price strong {
  font-size: var(--text-lg);
  color: var(--color-text);
  font-weight: 600;
}

.service-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex-grow: 1;
}

.service-card__features li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.service-card__features li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.service-card .btn {
  align-self: stretch;
  justify-content: center;
}

/* === SERVICE TIERS (within cards) === */

.service-card__intro {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}

.service-tiers {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex-grow: 1;
  margin-bottom: var(--space-6);
}

.service-tier {
  padding: var(--space-4);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-divider);
}

.service-tier--featured {
  border-color: var(--color-accent);
  border-width: 1.5px;
}

.service-tier__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.service-tier__name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}

.service-tier__price {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.service-tier__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.service-tier__features {
  list-style: none;
  padding: 0;
  margin: var(--space-2) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.service-tier__features li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  line-height: 1.4;
}

.service-tier__features li::before {
  content: '';
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 2px;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* === ONE-OFF SERVICES === */

.oneoff {
  padding-top: var(--space-12);
}

.oneoff__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.oneoff-item {
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  text-align: left;
  transition: all var(--transition-interactive);
  display: flex;
  flex-direction: column;
}

.oneoff-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.oneoff-item__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.oneoff-item__price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent);
  font-weight: 400;
  margin-bottom: var(--space-3);
}

.oneoff-item__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}

.oneoff-item__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.oneoff-item__features li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  position: relative;
  line-height: 1.4;
}

.oneoff-item__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* === PROCESS === */

.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
}

.process-step__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-accent);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: var(--space-3);
}

.process-step__title {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.process-step__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* === TRUST / WHY US === */

.trust {
  background: var(--color-surface);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-8);
}

.trust__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.trust__item-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  line-height: 1;
}

.trust__item-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* === FAQ === */

.faq__list {
  max-width: var(--content-default);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__summary::after {
  content: '+';
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform var(--transition-interactive);
}

.faq-item[open] .faq-item__summary::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* === CTA === */

.cta {
  text-align: center;
}

.cta__box {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-12), 6vw, var(--space-20));
  position: relative;
  overflow: hidden;
}

.cta__box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(184,134,11,0.15), transparent);
  pointer-events: none;
}

.cta__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-4);
  position: relative;
}

.cta__text {
  font-size: var(--text-base);
  opacity: 0.85;
  margin-bottom: var(--space-8);
  position: relative;
}

.cta__box .btn {
  position: relative;
}

.cta__box .btn--primary {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border-color: var(--color-accent);
}

.cta__box .btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.cta__box .btn--outline {
  color: var(--color-text-inverse);
  border-color: rgba(255,255,255,0.3);
}

.cta__box .btn--outline:hover {
  border-color: rgba(255,255,255,0.6);
}

/* === FOOTER === */

.footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12) var(--space-8);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__brand-name {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
}

.footer__brand-tagline {
  font-size: var(--text-xs);
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__legal {
  flex: 1 1 100%;
  width: 100%;
  order: 10;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.footer__disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: 78ch;
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ==========================================================================
   Honest Expectations
   ========================================================================== */

.honesty {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.honesty__lead {
  max-width: 68ch;
  margin: 0 auto var(--space-16);
}

.honesty__lead p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

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

.honesty__lead strong {
  color: var(--color-text);
  font-weight: 600;
}

.honesty__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.honesty__col {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: 6px;
  padding: var(--space-8);
}

.honesty__col--no {
  border-top: 3px solid var(--color-text-faint);
}

.honesty__col--yes {
  border-top: 3px solid var(--color-primary);
}

.honesty__col-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-5);
  line-height: 1.3;
}

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

.honesty__list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.honesty__list li:last-child {
  margin-bottom: 0;
}

.honesty__col--no .honesty__list li::before {
  content: "\00d7";
  position: absolute;
  left: 0;
  top: -2px;
  font-size: 1.2em;
  font-weight: 700;
  color: var(--color-text-muted);
}

.honesty__col--yes .honesty__list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.95em;
  font-weight: 700;
  color: var(--color-primary);
}

.honesty__closing {
  max-width: 68ch;
  margin: 0 auto;
  padding: var(--space-8);
  background: var(--color-bg);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 6px 6px 0;
}

.honesty__closing p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 768px) {
  .honesty__grid {
    grid-template-columns: 1fr;
  }

  .honesty__closing {
    padding: var(--space-6);
  }

  .honesty__closing p {
    font-size: var(--text-base);
  }
}

.footer__contact {
  display: flex;
  gap: var(--space-6);
}

.footer__contact a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer__contact a:hover {
  color: var(--color-primary);
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .header__inner {
    gap: var(--space-3);
  }

  .header__actions .btn {
    padding-inline: var(--space-4);
    font-size: var(--text-xs);
    white-space: nowrap;
  }

  .header__name-sub {
    letter-spacing: 0.08em;
  }

  .hero__stats {
    gap: var(--space-8);
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__contact {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }
}

/* === ABOUT / FOUNDER === */

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-12);
  align-items: center;
}

.about__image {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--color-primary-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-divider);
  overflow: hidden;
}

.about__image svg {
  width: 60%;
  height: auto;
  opacity: 0.4;
}

.about__content h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  margin-bottom: var(--space-4);
  letter-spacing: -0.015em;
}

.about__content p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.about__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.about__highlight {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.about__highlight svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}

/* === COMPARISON TABLE === */

.comparison__table {
  max-width: var(--content-default);
  margin-inline: auto;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.comparison__table table {
  border: none;
}

.comparison__table th,
.comparison__table td {
  padding: var(--space-4) var(--space-6);
  text-align: left;
  border-bottom: 1px solid var(--color-divider);
}

.comparison__table th {
  font-size: var(--text-sm);
  font-weight: 600;
  background: var(--color-surface);
}

.comparison__table th:first-child {
  width: 30%;
}

.comparison__table th:nth-child(2) {
  color: var(--color-text-muted);
}

.comparison__table th:nth-child(3) {
  color: var(--color-primary);
  background: var(--color-primary-highlight);
}

.comparison__table td {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.comparison__table td:nth-child(3) {
  background: color-mix(in oklab, var(--color-primary-highlight) 50%, transparent);
  color: var(--color-text);
  font-weight: 500;
}

.comparison__table tr:last-child td {
  border-bottom: none;
}

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

.comparison__yes {
  color: var(--color-success);
  font-weight: 600;
}

/* === GRANT FUNDS GRID === */

.grant-funds__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}

.grant-fund-card {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  transition: all var(--transition-interactive);
}

.grant-fund-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.grant-fund-card__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.grant-fund-card__amount {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.grant-fund-card__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

.grant-funds__note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-6);
  text-align: center;
}

/* === LEAD MAGNET === */

.lead-magnet__box {
  display: grid;
  grid-template-columns: 190px 1fr 300px;
  gap: var(--space-10);
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-16));
}

.lead-magnet__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-3);
}

.lead-magnet__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.lead-magnet__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.lead-magnet__form[hidden],
.lead-magnet__success[hidden] {
  display: none;
}

.lead-magnet__form input {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  background: var(--color-bg);
  color: var(--color-text);
}

.lead-magnet__form input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.lead-magnet__preview a {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(26, 42, 63, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lead-magnet__preview a:hover,
.lead-magnet__preview a:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(26, 42, 63, 0.28);
}

.lead-magnet__preview img {
  display: block;
  width: 100%;
  height: auto;
}

.lead-magnet__list {
  list-style: none;
  margin: var(--space-4) 0 var(--space-4);
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.lead-magnet__list li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-text);
}

.lead-magnet__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent, #B8860B);
}

.lead-magnet__meta {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.lead-magnet__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.lead-magnet__success:not([hidden]) {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}

.lead-magnet__success-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
}

.lead-magnet__success a {
  color: var(--color-primary);
}

/* === TESTIMONIALS === */

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.testimonial-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.testimonial-card__quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.testimonial-card__author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.testimonials__placeholder {
  text-align: center;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  max-width: var(--content-default);
  margin-inline: auto;
}

.testimonials__placeholder p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* === CONTACT FORM === */

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
  max-width: var(--content-wide);
  margin-inline: auto;
}

.contact__info h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  margin-bottom: var(--space-4);
  letter-spacing: -0.015em;
}

.contact__info p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.contact__calendly {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}

.contact__form label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-1);
}

.contact__form input,
.contact__form select,
.contact__form textarea {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact__form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* === FOOTER SOCIAL === */

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.footer__social a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* === RESPONSIVE ADDITIONS === */

@media (max-width: 768px) {
  .about__inner {
    grid-template-columns: 1fr;
  }
  .lead-magnet__box {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .lead-magnet__preview {
    max-width: 170px;
  }
  .contact__inner {
    grid-template-columns: 1fr;
  }
  .contact__form-row {
    grid-template-columns: 1fr;
  }
  .comparison__table {
    font-size: var(--text-xs);
  }
  .comparison__table th,
  .comparison__table td {
    padding: var(--space-3);
  }
}

/* === SCROLL REVEAL === */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* === SMALL SCREEN REFINEMENTS === */

@media (max-width: 560px) {
  .header__name-sub {
    display: none;
  }

  .header__actions .btn {
    padding-inline: var(--space-3);
  }

  .header__cta .header__cta-long {
    display: none;
  }

  .header__cta .header__cta-short {
    display: inline;
  }
}

.contact__form input,
.contact__form textarea,
.contact__form select,
.lead-magnet__form input {
  max-width: 100%;
  box-sizing: border-box;
}

.header__cta-short {
  display: none;
}

.header__actions {
  flex-shrink: 0;
}

.header__brand {
  min-width: 0;
}

.contact__inner > *,
.contact__form-row > * {
  min-width: 0;
}

.contact__form select {
  width: 100%;
  max-width: 100%;
}

/* === LEAD MAGNET FORM STATES === */

.lead-magnet__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lead-magnet__error {
  font-size: var(--text-xs);
  line-height: 1.5;
  color: #a1362c;
  font-weight: 500;
}

.lead-magnet__error[hidden] {
  display: none;
}

[data-theme="dark"] .lead-magnet__error {
  color: #e08b82;
}

.lead-magnet__form .btn:disabled {
  opacity: 0.65;
  cursor: progress;
}

.lead-magnet__form .lead-magnet__label:not(:first-child) {
  margin-top: var(--space-2);
}

/* === MAILERLITE EMBEDDED FORM === */

#mlFormContainer {
  width: 100%;
}

#mlFormContainer iframe {
  width: 100% !important;
  max-width: 100% !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
}

#mlFormContainer > p > a.btn {
  display: inline-block;
  margin-top: var(--space-3);
}

/* ==========================================================================
   LEGAL PAGES (privacy policy)
   ========================================================================== */

.legal-hero {
  padding: calc(var(--space-24) + 4rem) 0 var(--space-12);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}

.legal-hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-3);
}

.legal-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text);
  margin: 0 0 var(--space-4);
}

.legal-hero__meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-5);
}

.legal-hero__intro {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 64ch;
  margin: 0;
}

.legal__inner {
  max-width: 46rem;
}

/* Summary box */
.legal__summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-10);
}

.legal__summary-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 var(--space-4);
}

.legal__summary-list {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
}

.legal__summary-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
}

.legal__summary-list li:last-child { margin-bottom: 0; }

.legal__summary-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.legal__summary-note {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}

/* Table of contents */
.legal__toc {
  margin-bottom: var(--space-12);
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}

.legal__toc-title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-4);
}

.legal__toc-list {
  margin: 0;
  padding-left: 1.4rem;
  columns: 2;
  column-gap: var(--space-8);
}

.legal__toc-list li {
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.5;
  break-inside: avoid;
  color: var(--color-text-muted);
}

.legal__toc-list a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.legal__toc-list a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Body content */
.legal__h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-text);
  margin: var(--space-12) 0 var(--space-4);
  padding-top: var(--space-2);
  scroll-margin-top: 6rem;
}

.legal__h2:first-of-type { margin-top: 0; }

.legal__p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-4);
}

.legal__p strong { color: var(--color-text); font-weight: 600; }

.legal__p a,
.legal__summary-note a,
.legal__callout-text a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__p a:hover { color: var(--color-primary-hover); }

.legal__list {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
}

.legal__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-muted);
}

.legal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

.legal__list li strong { color: var(--color-text); font-weight: 600; }

.legal__list a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Tables */
.legal__table-wrap {
  margin: 0 0 var(--space-6);
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.legal__table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.legal__table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-offset);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.legal__table td {
  padding: var(--space-4);
  line-height: 1.6;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-divider);
  vertical-align: top;
}

.legal__table tbody tr:last-child td { border-bottom: none; }

.legal__table td strong { color: var(--color-text); font-weight: 600; }

.legal__table td a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Callout */
.legal__callout {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin: 0 0 var(--space-6);
}

.legal__callout-title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-3);
}

.legal__callout-text {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--color-text-muted);
  margin: 0;
}

/* Footnote */
.legal__footnote {
  margin-top: var(--space-12);
  padding: var(--space-5);
  border-top: 1px solid var(--color-divider);
}

.legal__footnote p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-faint);
  margin: 0;
}

/* CTA */
.legal__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

@media (max-width: 768px) {
  .legal-hero { padding: calc(var(--space-20) + 3rem) 0 var(--space-10); }
  .legal-hero__intro { font-size: var(--text-base); }
  .legal__toc-list { columns: 1; }
  .legal__summary { padding: var(--space-5); }
  .legal__cta .btn { width: 100%; text-align: center; }
}

/* Inline privacy notices at data-collection points */
.form__privacy {
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-text-faint);
  margin: var(--space-4) 0 0;
  max-width: 46ch;
}

.form__privacy a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__privacy a:hover { color: var(--color-primary); }
