/* ==========================================================================
   Legacy Fundraising — design tokens (from design handoff, "Hometown" 2a)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Work+Sans:wght@400;500;600&display=swap');

:root{
  /* color */
  --paper:#F7F3EC;
  --card:#FFFFFF;
  --ink:#1C1A17;
  --muted:#4A453D;
  --hairline:#D6CFC3;
  --red:#C8242A;
  --red-dark:#A81E23;
  --gold:#CBAE6E; /* fallback for browsers without oklch */
  --gold-ink:#1C1A17;
  --dark-band:#1C1A17;
  --paper-on-dark:#F7F3EC;

  /* type */
  --font-serif:'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-sans:'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* layout */
  --container:1200px;
  --gutter:56px;
  --section-pad:104px;
  --radius:8px;
  --radius-pill:999px;
}

@supports (color: oklch(0.5 0.1 85)){
  :root{ --gold: oklch(0.82 0.11 85); }
}

@media (max-width:900px){
  :root{ --gutter:24px; --section-pad:64px; }
}
@media (max-width:560px){
  :root{ --gutter:18px; --section-pad:48px; }
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-sans);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3,h4{ font-family:var(--font-serif); font-weight:400; margin:0; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
.container{
  max-width:var(--container);
  margin:0 auto;
  padding-left:var(--gutter);
  padding-right:var(--gutter);
}
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ==========================================================================
   Type scale
   ========================================================================== */
h1, .h1{ font-size:clamp(2.5rem, 2rem + 3.2vw, 6rem); line-height:1.02; letter-spacing:-.01em; }
h2, .h2{ font-size:clamp(2rem, 1.5rem + 2.2vw, 3.5rem); line-height:1.05; }
h3, .h3{ font-size:clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem); line-height:1.1; }
.eyebrow{
  font-size:14px; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  color:var(--red);
}
.lede{ font-size:clamp(1.05rem,1rem + .3vw,1.3125rem); line-height:1.55; color:var(--muted); }
.italic{ font-style:italic; }
.text-red{ color:var(--red); }
.text-gold{ color:var(--gold); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border-radius:var(--radius-pill);
  padding:16px 26px;
  font-weight:600; font-size:16px;
  text-decoration:none; border:2px solid transparent;
  transition:transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-1px); }
.btn--primary{ background:var(--red); color:#fff; }
.btn--primary:hover{ background:var(--red-dark); }
.btn--dark{ background:var(--ink); color:var(--paper); }
.btn--dark:hover{ background:#000; }
.btn--white{ background:#fff; color:var(--red); }
.btn--white:hover{ background:#fff2f2; }
.btn--gold{ background:var(--gold); color:var(--gold-ink); }
.btn--outline-dark{ border-color:var(--ink); color:var(--ink); background:transparent; }
.btn--outline-white{ border-color:#fff; color:#fff; background:transparent; }
.btn--sm{ padding:10px 18px; font-size:14px; }
.link-underline{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:600; border-bottom:2px solid currentColor; padding-bottom:6px;
  text-decoration:none;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--paper);
  border-bottom:1px solid var(--hairline);
}
.site-header--on-hero{
  position:absolute; top:0; left:0; right:0;
  background:transparent; border-bottom:none;
}
.header-inner{
  max-width:var(--container); margin:0 auto; padding:20px var(--gutter);
  display:flex; align-items:center; justify-content:space-between;
}
.logo-img{ height:34px; width:auto; }
.logo-img.dark-logo{ display:block; }
.logo-img.light-logo{
  display:none;
  /* No dedicated reversed-color logo file yet — render the real logo as a
     solid white silhouette for use on the dark hero. Swap for a real
     assets/logo-horizontal-white.png and drop this filter once you have one. */
  filter:brightness(0) invert(1);
}
.site-header--on-hero .logo-img.dark-logo{ display:none; }
.site-header--on-hero .logo-img.light-logo{ display:block; }

.site-nav{ display:flex; align-items:center; }
.nav-menu{
  display:flex; align-items:center; gap:26px;
  font-size:15px; font-weight:500;
}
.nav-menu a:not(.btn){ text-decoration:none; }
.nav-menu a:not(.btn):hover{ color:var(--red); }
.site-header--on-hero .nav-menu{ color:#f1ebe1; }
.site-header--on-hero .nav-menu a:not(.btn):hover{ color:var(--gold); }

.nav-toggle{
  display:none; background:none; border:none; padding:6px; width:40px; height:40px;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.nav-toggle span{ display:block; width:22px; height:2px; background:currentColor; }

@media (max-width:900px){
  .nav-toggle{ display:flex; }
  .site-nav{ position:relative; }
  .nav-menu{
    position:absolute; top:52px; right:0; left:auto;
    background:var(--card); color:var(--ink);
    flex-direction:column; align-items:flex-start; gap:0;
    border:1px solid var(--hairline); border-radius:var(--radius);
    box-shadow:0 16px 40px rgba(0,0,0,.14);
    min-width:240px; padding:8px;
    display:none;
  }
  .nav-menu.is-open{ display:flex; }
  .nav-menu li{ width:100%; }
  .nav-menu li a:not(.btn){ display:block; padding:12px 14px; width:100%; border-radius:6px; }
  .nav-menu li a:not(.btn):hover{ background:var(--paper); }
  .nav-menu li:last-child{ padding:8px 6px 4px; }
  .nav-menu li:last-child a.btn{ display:flex; width:100%; }
  .site-header--on-hero .nav-menu{ color:var(--ink); }
}

/* ==========================================================================
   Hero (home only)
   ========================================================================== */
.hero{
  position:relative;
  min-height:760px;
  /* Reserves real flow-space for the absolutely-positioned header below,
     so a tall headline (large clamp() size on a wide-but-short viewport)
     is pushed down instead of rendering underneath the nav. */
  padding-top:120px;
  display:flex; flex-direction:column;
  background:
    linear-gradient(180deg, rgba(20,18,16,.55) 0%, rgba(20,18,16,.15) 35%, rgba(20,18,16,.9) 100%),
    repeating-linear-gradient(135deg,#2a2622 0 14px,#322d28 14px 28px);
  background-blend-mode:normal;
  color:#fff;
  overflow:hidden;
}
.hero-body{
  position:relative; margin-top:auto;
  max-width:980px;
  padding:0 var(--gutter) 56px;
  display:flex; flex-direction:column; gap:22px;
}
.hero-body p{ max-width:620px; color:#e9e2d6; }
.hero-ctas{ display:flex; flex-wrap:wrap; gap:14px 22px; align-items:center; margin-top:4px; }
.hero-support{
  position:relative; padding:0 var(--gutter) 0; margin-top:-8px;
  font-size:14px; color:#c9c1b4;
}

.stat-bar{
  position:relative;
  margin:28px var(--gutter) 0;
  border-top:1px solid rgba(255,255,255,.35);
  display:grid; grid-template-columns:repeat(4,1fr);
}
.stat-bar .stat{ padding:24px 24px 32px 0; display:flex; flex-direction:column; gap:4px; }
.stat-bar .stat + .stat{ padding-left:24px; }
.stat-num{ font-family:var(--font-serif); font-size:clamp(1.75rem,1.4rem + 1.4vw,2.5rem); line-height:1; }
.stat-label{ font-size:14px; color:#d9d1c4; }

@media (max-width:760px){
  .hero{ min-height:640px; }
  .stat-bar{ grid-template-columns:repeat(2,1fr); }
  .stat-bar .stat{ padding:20px 16px 20px 0; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section{ padding:var(--section-pad) 0; }
.section--dark{ background:var(--dark-band); color:var(--paper-on-dark); }
.section--card{ background:var(--card); }
.section-head{ display:flex; flex-direction:column; gap:14px; margin-bottom:48px; }
.section-head.max{ max-width:760px; }

.two-col{
  display:grid; grid-template-columns:4fr 7fr; gap:72px; align-items:start;
}
@media (max-width:900px){
  .two-col{ grid-template-columns:1fr; gap:32px; }
}

/* Steps grid (How it works summary) */
.steps-grid{ display:grid; grid-template-columns:1fr 1fr; gap:44px 48px; }
.step{ display:flex; flex-direction:column; gap:10px; }
.step-num{ font-family:var(--font-serif); font-size:22px; color:var(--red); }
.step-title{ font-family:var(--font-serif); font-size:clamp(1.375rem,1.2rem + .6vw,1.875rem); line-height:1.1; }
.step-body{ color:var(--muted); }
@media (max-width:640px){ .steps-grid{ grid-template-columns:1fr; } }

/* Process page (How It Works) — numbered phases */
.phase{
  display:grid; grid-template-columns:120px 1fr; gap:32px;
  padding:48px 0; border-top:1px solid var(--hairline);
}
.phase:last-child{ border-bottom:1px solid var(--hairline); }
.phase-num{ font-family:var(--font-serif); font-size:44px; color:var(--red); line-height:1; }
.phase-title{ font-family:var(--font-serif); font-size:clamp(1.5rem,1.3rem + .8vw,2.25rem); margin-bottom:14px; }
.phase ul{ display:flex; flex-direction:column; gap:8px; margin-top:14px; }
.phase li{ color:var(--muted); padding-left:22px; position:relative; }
.phase li::before{ content:"—"; position:absolute; left:0; color:var(--red); }
@media (max-width:640px){ .phase{ grid-template-columns:1fr; gap:12px; } }

/* Icons */
.icon{
  width:28px; height:28px; flex:none; display:block;
  color:var(--red);
}
.icon--lg{ width:34px; height:34px; }
.flywheel-num .icon{ width:20px; height:20px; color:#fff; stroke-width:2.25; }
.split-item .icon{ margin-bottom:14px; }
.phase-icon-col{ display:flex; flex-direction:column; gap:14px; align-items:flex-start; }

/* Cards */
.card{
  background:var(--card); border-radius:var(--radius);
  padding:28px; display:flex; flex-direction:column; gap:10px;
}
.card-title{ font-family:var(--font-serif); font-size:28px; }
.card-body{ color:var(--muted); font-size:16px; line-height:1.55; }
.card-link{ margin-top:auto; padding-top:8px; color:var(--red); font-weight:600; text-decoration:none; }
.card-link:hover{ text-decoration:underline; }
.card--gold{ background:var(--gold); color:var(--gold-ink); }
.card--gold .card-body{ color:#3a352e; }
.card--gold .card-link{ color:var(--ink); }
.card--gold .icon{ color:var(--ink); }

.card-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
@media (max-width:900px){ .card-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .card-grid{ grid-template-columns:1fr; } }

.feature-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:28px 40px; }
@media (max-width:700px){ .feature-grid{ grid-template-columns:1fr; } }
.feature{ display:flex; flex-direction:column; gap:8px; }
.feature-title{ font-weight:600; font-size:15px; letter-spacing:.02em; text-transform:uppercase; color:var(--red); }
.feature-body{ color:var(--muted); }

/* Flywheel (About page) */
.flywheel-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:36px; }
@media (max-width:900px){ .flywheel-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .flywheel-grid{ grid-template-columns:1fr; } }
.flywheel-num{
  width:44px; height:44px; border-radius:50%; background:var(--red); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-serif); font-size:22px; margin-bottom:12px;
}
.flywheel-title{ font-family:var(--font-serif); font-size:26px; margin-bottom:8px; }
.flywheel-body{ color:var(--muted); }
.flywheel-close{
  font-family:var(--font-serif); font-style:italic; font-size:clamp(1.25rem,1.1rem + .6vw,2.125rem);
  color:var(--red); text-align:center; padding-top:24px;
}

/* Audience / for-x split list */
.split-list{ display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--ink); }
.split-item{
  display:flex; justify-content:space-between; gap:24px;
  padding:32px; border-bottom:1px solid var(--hairline);
}
.split-item:nth-child(odd){ border-right:1px solid var(--hairline); padding-left:0; }
.split-item-title{ font-family:var(--font-serif); font-size:30px; margin-bottom:8px; }
.split-item-body{ color:var(--muted); }
.split-item-arrow{ font-size:24px; color:var(--red); flex:none; }
@media (max-width:700px){
  .split-list{ grid-template-columns:1fr; }
  .split-item:nth-child(odd){ border-right:none; padding-left:32px; }
}

/* Profit slider */
.slider-panel{
  background:var(--card); color:var(--ink); border-radius:var(--radius);
  padding:40px; display:flex; flex-direction:column; gap:26px;
}
.slider-row{ display:flex; justify-content:space-between; align-items:baseline; }
.slider-row .label{ font-size:16px; color:var(--muted); }
.slider-row .value{ font-family:var(--font-serif); font-size:40px; }
input[type="range"]{
  -webkit-appearance:none; appearance:none; width:100%; height:4px;
  background:var(--hairline); border-radius:999px; outline:none;
}
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none; width:22px; height:22px; border-radius:50%;
  background:var(--red); cursor:pointer; border:3px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.3);
}
input[type="range"]::-moz-range-thumb{
  width:22px; height:22px; border-radius:50%; background:var(--red); cursor:pointer;
  border:3px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.3);
}
.slider-result{ border-top:1px solid var(--hairline); padding-top:22px; display:flex; flex-direction:column; gap:6px; }
.slider-result .label{ font-size:16px; color:var(--muted); }
.slider-result .value{ font-family:var(--font-serif); font-size:clamp(2rem,1.6rem + 1.8vw,3.75rem); line-height:1; color:var(--red); }
.slider-footnote{ font-size:13px; color:#7a7266; line-height:1.5; }

/* Comparison table */
.table-wrap{ overflow-x:auto; border-radius:var(--radius); }
table.compare{
  width:100%; border-collapse:collapse; min-width:640px;
  background:var(--card); color:var(--ink); font-size:15px;
}
table.compare th, table.compare td{
  text-align:left; padding:16px 18px; border-bottom:1px solid var(--hairline);
  vertical-align:top; color:var(--ink);
}
table.compare thead th{
  font-family:var(--font-sans); font-weight:600; font-size:13px; letter-spacing:.04em;
  text-transform:uppercase; color:var(--muted); background:var(--paper);
}
table.compare tbody th{ font-weight:600; }
table.compare td.is-legacy, table.compare th.is-legacy{ background:#fbeceb; }

/* Table (profit — legacy simple stat rows, used sparingly) */
.stat-rows{ display:flex; flex-direction:column; }
.stat-rows .row{
  display:flex; justify-content:space-between; align-items:baseline;
  padding:20px 0; border-top:1px solid var(--hairline);
}
.stat-rows .row:last-of-type{ border-bottom:1px solid var(--hairline); }
.stat-rows .n{ font-family:var(--font-serif); font-size:36px; }
.stat-rows .v{ font-size:22px; font-weight:600; }

/* CTA band */
.cta-band{
  margin:0 var(--gutter) var(--gutter);
  background:var(--red); color:#fff; border-radius:var(--radius);
  padding:64px 48px;
  display:flex; justify-content:space-between; align-items:center; gap:40px; flex-wrap:wrap;
}
.cta-band h2{ max-width:640px; }
@media (max-width:700px){
  .cta-band{ margin:0 var(--gutter) 32px; flex-direction:column; align-items:flex-start; padding:44px 28px; }
}
.cta-band--section{ margin-top:64px; }

/* Footer */
.site-footer{
  max-width:var(--container); margin:0 auto;
  padding:32px var(--gutter); border-top:1px solid var(--hairline);
  display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap;
  font-size:15px; color:var(--muted);
}
.footer-links{ display:flex; gap:18px; flex-wrap:wrap; }
.footer-links a{ text-decoration:none; }
.footer-links a:hover{ color:var(--red); }

/* Inner page hero (non-home pages) */
.page-hero{ padding:64px 0 8px; }
.page-hero .eyebrow{ margin-bottom:14px; }
.page-hero p{ margin-top:18px; max-width:680px; }

/* Forecast form */
.form-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:22px 24px;
}
@media (max-width:700px){ .form-grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:8px; }
.field.full{ grid-column:1 / -1; }
.field label{ font-size:14px; font-weight:600; }
.field .req{ color:var(--red); }
.field input, .field select, .field textarea{
  font-family:inherit; font-size:16px; padding:14px 16px;
  border:1px solid var(--hairline); border-radius:6px; background:#fff; color:var(--ink);
  width:100%;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:2px solid var(--red); outline-offset:1px; border-color:var(--red);
}
.field textarea{ resize:vertical; min-height:110px; }
.form-note{ font-size:13px; color:var(--muted); }
.form-status{
  margin-top:22px; padding:18px 20px; border-radius:6px; display:none;
}
.form-status.is-success{ display:block; background:#eaf5ec; color:#1e4d2b; border:1px solid #bfe3c6; }
.form-status.is-error{ display:block; background:#fbeceb; color:#7a1d1d; border:1px solid #f0c2c0; }

/* FAQ accordion */
.faq-list{ display:flex; flex-direction:column; border-top:1px solid var(--hairline); }
.faq-item{ border-bottom:1px solid var(--hairline); }
.faq-q{
  width:100%; background:none; border:none; text-align:left;
  display:flex; justify-content:space-between; align-items:center; gap:20px;
  padding:26px 0; font-family:var(--font-serif); font-size:clamp(1.125rem,1rem + .5vw,1.5rem);
  color:var(--ink);
}
.faq-q .icon{ flex:none; font-size:22px; color:var(--red); transition:transform .2s ease; }
.faq-item.is-open .faq-q .icon{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.faq-a p{ padding:0 0 26px; color:var(--muted); max-width:760px; }

/* Utility */
.stack{ display:flex; flex-direction:column; gap:20px; }
.center{ text-align:center; }
.mt-8{ margin-top:8px; } .mt-16{ margin-top:16px; } .mt-24{ margin-top:24px; } .mt-40{ margin-top:40px; }
