/* =====================================================================
   The Funding Village — shared design system
   Fixed DESIGN TOKENS; identical across root chooser, Site A, Site B.
   Mobile-first. Exactly one breakpoint: @media (min-width: 768px).
   ===================================================================== */

:root {
  --bg:          #FFFDF9;
  --text:        #12312E;    /* deep teal-charcoal (near-black) */
  --muted:       #5C6E6E;    /* teal-gray */
  /* Primary brand is now warm TEAL (the --aubergine* names are kept so the
     whole system keeps working; the VALUES are teal). Gold stays the CTA. */
  --aubergine:   #0C6B69;    /* primary teal */
  --aubergine-2: #084543;    /* deep teal, for depth/headers/footers */
  --aqua:        #17C4BC;    /* bright cheerful aqua accent (large shapes only) */
  --aqua-2:      #4FE0D8;    /* lighter aqua for glows */
  --gold:        #C99A2E;
  --gold-2:      #E4B84B;    /* lighter gold for glows, derived */
  --emerald:     #146B4A;    /* secondary green — success/verified, community door */
  --emerald-2:   #1C8C61;    /* lighter emerald, derived */
  --section-alt: #F5EFE6;
  --line:        #E7DECF;    /* warm hairline border */
  --error:       #B23A48;    /* on-brand muted red for form errors */

  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(12, 41, 40,.06), 0 2px 8px rgba(12, 41, 40,.05);
  --shadow-md: 0 10px 30px rgba(12, 41, 40,.10), 0 2px 8px rgba(12, 41, 40,.06);
  --shadow-lg: 0 24px 60px rgba(12, 41, 40,.16);

  --pad-y: 4rem;             /* section padding, mobile */
  --font-head: 'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;               /* belt-and-braces against 375px scroll */
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
section { padding-block: var(--pad-y); }
.section-alt { background: var(--section-alt); }
.eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--emerald);
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--gold); border-radius: 2px; }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: .9rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: .5rem; z-index: 100;
  background: var(--gold); color: var(--text); padding: .6rem 1rem;
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip:focus { left: .5rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: normal; text-align: center; max-width: 100%;
}
.btn--gold      { background: var(--gold); color: var(--text); box-shadow: var(--shadow-sm); }
.btn--gold:hover{ background: var(--gold-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--aubergine      { background: var(--aubergine); color: #fff; box-shadow: var(--shadow-sm); }
.btn--aubergine:hover{ background: var(--aubergine-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost      { background: transparent; color: var(--aubergine); border-color: currentColor; }
.btn--ghost:hover{ background: rgba(12, 107, 105,.06); transform: translateY(-2px); }
.btn--ghost-light      { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover{ background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
:focus-visible { outline: 3px solid var(--emerald-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 69, 67,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.10);
  color: #fff;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand .brand-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; letter-spacing: .06em; color: var(--gold-2); text-transform: lowercase; }
.nav-links { display: none; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,.86); font-weight: 600; font-size: .95rem; padding: .4rem .2rem; transition: color .15s ease; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: none; }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; padding: 10px; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; gap: .25rem; padding: .5rem 0 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; color: rgba(255,255,255,.9); font-weight: 600; padding: .7rem .4rem; border-radius: 8px; }
.mobile-menu a:hover { background: rgba(255,255,255,.08); }
.mobile-menu .btn { margin-top: .6rem; }

/* ---------- hero + aurora ---------- */
.hero { position: relative; overflow: hidden; background: var(--aubergine-2); color: #fff; isolation: isolate; }
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.aurora { position: absolute; inset: -30% -10%; z-index: 0; filter: blur(60px); opacity: .9; pointer-events: none; }
.aurora span { position: absolute; display: block; border-radius: 50%; mix-blend-mode: screen; }
.aurora .a1 { width: 46%; height: 60%; left: -6%;  top: -8%;  background: radial-gradient(circle at 30% 30%, var(--aubergine) 0%, transparent 70%); animation: drift1 22s ease-in-out infinite; }
.aurora .a2 { width: 42%; height: 55%; right: -8%; top: 5%;   background: radial-gradient(circle at 60% 40%, var(--gold) 0%, transparent 68%); opacity: .55; animation: drift2 26s ease-in-out infinite; }
.aurora .a3 { width: 50%; height: 60%; left: 20%;  bottom: -25%; background: radial-gradient(circle at 50% 50%, var(--aqua) 0%, transparent 70%); opacity: .55; animation: drift3 30s ease-in-out infinite; }
.hero-grain { position: absolute; inset: 0; z-index: 1; opacity: .06; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(6%,4%) scale(1.08)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-5%,6%) scale(1.12)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(4%,-5%) scale(1.1)} }

.hero h1 { font-size: clamp(2.1rem, 6.4vw, 3.9rem); max-width: 16ch; }
.hero .sub { font-size: clamp(1.05rem, 2.6vw, 1.3rem); color: rgba(255,255,255,.86); max-width: 40rem; margin-top: 1.25rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 2rem; color: rgba(255,255,255,.8); font-size: .9rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: .5rem; }
.tick { color: var(--gold-2); font-weight: 800; }

/* ---------- pills / tags ---------- */
.pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; background: rgba(20,107,74,.1); color: var(--emerald); border: 1px solid rgba(20,107,74,.2); }

/* ---------- generic grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--muted); }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #DCCFBB; }
.card .ic { width: 46px; height: 46px; margin-bottom: 1rem; }

/* problem stat blocks */
.stat-grid { display: grid; gap: 1.25rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 6vw, 2.8rem); color: var(--aubergine); line-height: 1; }
.stat .num .unit { color: var(--gold); }
.stat .lbl { margin-top: .6rem; color: var(--muted); font-size: .98rem; }

/* ---------- partner section ---------- */
.feature-split { display: grid; gap: 2rem; align-items: center; }
.feature-art { background: linear-gradient(135deg, var(--aubergine), var(--emerald)); border-radius: var(--radius); padding: 2rem; color: #fff; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.feature-art .pill { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
.node-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.25rem; }
.node { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-sm); padding: .8rem; text-align: center; font-size: .82rem; font-weight: 600; }

/* ---------- tiers ---------- */
.billing-toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 2rem; box-shadow: var(--shadow-sm); }
.billing-toggle button { border: 0; background: transparent; font-family: var(--font-body); font-weight: 700; font-size: .95rem; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer; color: var(--muted); }
.billing-toggle button[aria-pressed="true"] { background: var(--aubergine); color: #fff; }
.save-note { display: inline-block; margin-left: .75rem; color: var(--emerald); font-weight: 700; font-size: .9rem; }

.tier-grid { display: grid; gap: 1.25rem; }
.tier {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.tier--featured { border: 2px solid var(--emerald); box-shadow: var(--shadow-md); position: relative; }
.tier--featured::before { content: "Most popular"; position: absolute; top: -.8rem; left: 1.5rem; background: var(--emerald); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; }
.tier h3 { font-size: 1.35rem; }
.tier .band { color: var(--muted); font-size: .95rem; margin-top: .2rem; }
.tier .price { font-family: var(--font-head); font-weight: 700; font-size: 2.1rem; margin-top: 1rem; line-height: 1; }
.tier .price .per { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--muted); }
.tier .price-alt { color: var(--muted); font-size: .92rem; margin-top: .35rem; min-height: 1.2em; }
.tier ul { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .55rem; }
.tier li { padding-left: 1.6rem; position: relative; font-size: .96rem; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 800; }
.tier .btn { margin-top: auto; }
.tier-note { text-align: center; margin-top: 1.5rem; font-weight: 700; color: var(--aubergine); }

/* ---------- how it works ---------- */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.5rem 4rem; position: relative; box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 1.25rem; top: 1.35rem; width: 2rem; height: 2rem; background: var(--gold); color: var(--text); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }

/* ---------- trust strip ---------- */
.trust { background: var(--aubergine); color: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md); }
.trust .big { font-size: clamp(1.4rem, 3.5vw, 2rem); font-family: var(--font-head); font-weight: 700; }
.trust .zero { color: var(--gold-2); }
.trust p { color: rgba(255,255,255,.85); margin-top: .75rem; }
.trust .who { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.8); font-size: .96rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; max-width: 48rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.25rem; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); transition: transform .2s ease; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.25rem 1.2rem; color: var(--muted); }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-md); max-width: 42rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .4rem; }
.field .hint { color: var(--muted); font-weight: 400; font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: .75rem .85rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--aubergine); box-shadow: 0 0 0 3px rgba(12, 107, 105,.12); outline: none; }
.field textarea { min-height: 7rem; resize: vertical; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.err { color: var(--error); font-size: .85rem; font-weight: 600; margin-top: .35rem; display: none; }
.field.invalid .err { display: block; }
.form-success { display: none; background: rgba(20,107,74,.08); border: 1.5px solid var(--emerald); border-radius: var(--radius); padding: 1.5rem; color: var(--text); }
.form-success.show { display: block; }
.form-success h3 { color: var(--emerald); margin-bottom: .4rem; }
.inline-newsletter { display: grid; gap: .75rem; }

/* ---------- root chooser ---------- */
.chooser { min-height: 100svh; display: flex; flex-direction: column; }
.chooser-main { flex: 1; display: grid; place-items: center; }
.chooser-cards { display: grid; gap: 1.25rem; width: 100%; }
.choice {
  display: block; text-decoration: none; color: #fff; position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 2rem; min-height: 15rem; border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow-md); transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.choice:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.choice--org { background: linear-gradient(150deg, var(--aubergine) 0%, var(--aubergine-2) 60%, #06302E 100%); }
.choice--pub { background: linear-gradient(150deg, var(--emerald) 0%, #0f5238 60%, #0b3d2a 100%); }
.choice .pill { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); align-self: flex-start; margin-bottom: auto; }
.choice h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); margin-bottom: .4rem; }
.choice p { color: rgba(255,255,255,.86); }
.choice .go { margin-top: 1rem; font-weight: 700; color: var(--gold-2); display: inline-flex; align-items: center; gap: .5rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--aubergine-2); color: rgba(255,255,255,.82); padding-block: 3rem 2rem; }
.footer-grid { display: grid; gap: 2rem; }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: 1rem; margin-bottom: .75rem; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { display: grid; gap: .5rem; }
.footer-cross { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.footer-cross a { color: var(--gold-2); font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.5rem; font-size: .88rem; color: rgba(255,255,255,.65); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- category filter (Site B) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.chip { font-family: var(--font-body); font-weight: 700; font-size: .9rem; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: all .15s ease; }
.chip[aria-pressed="true"] { background: var(--aubergine); color: #fff; border-color: var(--aubergine); }
.cat-card .emoji { font-size: 1.8rem; }
.demo-tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: .15rem .55rem; margin-bottom: .75rem; }

/* ---------- reveal (progressive; safe without JS) ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- utilities ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.stack-sm > * + * { margin-top: .75rem; }
.muted { color: var(--muted); }

/* =====================================================================
   Breakpoint — the ONLY one
   ===================================================================== */
@media (min-width: 768px) {
  :root { --pad-y: 6rem; }
  body { font-size: 1.09rem; }
  .wrap { padding-inline: 2rem; }

  .nav-links { display: flex; align-items: center; gap: 1.5rem; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }

  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .tier-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .feature-split { grid-template-columns: 1.1fr .9fr; }
  .chooser-cards { grid-template-columns: 1fr 1fr; max-width: var(--maxw); }
  .choice { min-height: 20rem; padding: 2.5rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .hero h1 { font-size: clamp(2.6rem, 5vw, 3.9rem); }
}

/* =====================================================================
   Reduced motion — disable ALL non-essential motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .aurora span { animation: none !important; }
  /* never hide reveal content when motion is reduced */
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover, .card--hover:hover, .choice:hover { transform: none !important; }
}
