/* Vuno — cooperative input finance. Shared stylesheet. */

:root {
  --ink: #16140F;
  --paper: #FCFBF8;
  --wash: #EFF1E8;
  --line: #DCD9CF;
  --mute: #736E64;
  --field: #5F7148;
  --accent: #4E5D3A;
  --accent-hover: #3D4A2D;
  --font-display: Fraunces, Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 30, 'WONK' 1;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.96;
  margin: 0;
}

p { margin: 0; }
ul, li { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: var(--font-body); }
input::placeholder, textarea::placeholder { color: #A8A497; }

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 56px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 400;
  background: var(--accent);
  color: var(--paper);
  padding: 12px 18px;
  font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; }

@keyframes hero-scale { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes cue-travel {
  0% { transform: translateY(0); opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { transform: translateY(32px); opacity: 0; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

.util-bar {
  background: var(--ink);
  position: relative;
  z-index: 1;
  transition: transform 220ms ease;
}
.site-header.hide-util .util-bar { transform: translateY(-34px); }

.util-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 56px);
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  position: relative;
}

.util-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: 500 13px var(--font-body);
  color: rgba(252, 251, 248, 0.7);
  cursor: pointer;
}
.util-btn:hover { color: var(--paper); }
.util-btn:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }

.util-divider {
  width: 1px;
  height: 14px;
  background: rgba(252, 251, 248, 0.3);
}

.search-form { display: flex; align-items: center; gap: 8px; }
.search-form[hidden] { display: none; }
.search-input {
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(252, 251, 248, 0.5);
  color: var(--paper);
  font: 400 13px var(--font-body);
  padding: 2px 0;
  width: min(180px, 42vw);
}
.search-input:focus { outline: none; border-bottom-color: var(--paper); }
.search-close {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: rgba(252, 251, 248, 0.7);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.search-close:hover { color: var(--paper); }

.search-results {
  position: absolute;
  top: 34px;
  right: 0;
  width: min(340px, 90vw);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px -16px rgba(22, 20, 15, 0.35);
  z-index: 5;
  display: none;
}
.search-results.open { display: block; }
.search-results a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--wash);
}
.search-results a:hover { background: var(--wash); color: var(--accent); }

.main-nav {
  height: 76px;
  margin-top: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  color: var(--paper);
  transition: background 240ms ease, border-color 240ms ease, color 240ms ease,
    backdrop-filter 240ms ease, margin-top 220ms ease;
}
.site-header.hide-util .main-nav { margin-top: -34px; }
.site-header.solid .main-nav,
.site-header.past .main-nav {
  background: rgba(252, 251, 248, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.main-nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 56px);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 30, 'WONK' 1;
  font-weight: 700;
  font-size: 31px;
  letter-spacing: -0.015em;
  color: currentColor;
}
.wordmark .dot { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 38px); }
.nav-links .divider { width: 1px; height: 16px; background: currentColor; opacity: 0.25; }

.nav-link {
  font: 500 16px var(--font-body);
  color: currentColor;
  text-decoration: none;
  transition: opacity 180ms ease;
  opacity: 0.92;
}

.nav-cta {
  font: 500 16px var(--font-body);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 2px;
  border: 1.5px solid var(--paper);
  background: transparent;
  color: var(--paper);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.site-header.solid .nav-cta,
.site-header.past .nav-cta {
  border-color: var(--accent);
  background: var(--accent);
}
.nav-cta:hover { background: var(--paper); color: var(--ink); }
.site-header.solid .nav-cta:hover,
.site-header.past .nav-cta:hover { background: var(--accent-hover); color: var(--paper); border-color: var(--accent-hover); }

.burger {
  display: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 7px;
  cursor: pointer;
  color: currentColor;
}
.burger:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.burger span { display: block; width: 26px; height: 1.5px; background: currentColor; }

.mobile-panel {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 300;
  display: none;
  flex-direction: column;
  padding: 0 clamp(24px, 6vw, 48px) max(28px, env(safe-area-inset-bottom));
}
.mobile-panel.open { display: flex; }

.mobile-panel-top {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
}
.mobile-panel-top .wordmark { color: var(--ink); font-size: 28px; }

.mobile-close {
  appearance: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  margin-right: -10px;
  position: relative;
}
.mobile-close:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.mobile-close span {
  position: absolute;
  top: 10px;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: currentColor;
}
.mobile-close span:first-child { transform: rotate(45deg); }
.mobile-close span:last-child { transform: rotate(-45deg); }

.mobile-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  gap: 2px;
  padding: 24px 0;
}
.mobile-links a {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 30, 'WONK' 1;
  font-weight: 600;
  font-size: clamp(34px, 9vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.16;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 0;
}
.mobile-panel.open .mobile-links a {
  animation: fade-up 340ms cubic-bezier(.2,.75,.3,1) both;
}
.mobile-links a:nth-child(1) { animation-delay: 40ms; }
.mobile-links a:nth-child(2) { animation-delay: 85ms; }
.mobile-links a.talk { color: var(--accent); animation-delay: 130ms; }
.mobile-links .signin-link {
  font: 500 17px var(--font-body);
  color: var(--mute);
  text-decoration: none;
  padding: 14px 0 0;
  animation-delay: 175ms;
}

.mobile-panel-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  flex: 0 0 auto;
}
.mobile-panel-bottom .locale { font-size: 14px; color: var(--mute); }
.lang-btn-mobile {
  appearance: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  min-height: 40px;
  padding: 8px 16px;
  font: 500 13px var(--font-body);
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
}
.lang-btn-mobile:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }

@media (max-width: 899px) {
  .nav-links { display: none; }
  .burger { display: flex; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero--tall { min-height: max(660px, 92vh); padding-top: clamp(150px, 20vh, 220px); }
.hero--short { min-height: max(460px, 58vh); padding-top: clamp(140px, 18vh, 200px); }

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media--index { filter: saturate(0.8) brightness(0.9) contrast(1.04); animation: hero-scale 13s cubic-bezier(.16,.84,.24,1) both; will-change: transform; }
.hero-media--lenders { filter: saturate(0.84) brightness(0.94); animation: hero-scale 12s cubic-bezier(.16,.84,.24,1) both; }
.hero-media--coop { object-position: center 30%; filter: grayscale(1) brightness(0.5) contrast(0.95) blur(1.5px); transform: scale(1.08); }

.scrim { position: absolute; inset: 0; pointer-events: none; }
.scrim--index-top { background: linear-gradient(to top, rgba(22,20,15,0.94) 0%, rgba(22,20,15,0.66) 46%, rgba(22,20,15,0.24) 74%, rgba(22,20,15,0) 94%); }
.scrim--bottom-fade { background: linear-gradient(to bottom, rgba(22,20,15,0.55) 0%, rgba(22,20,15,0) 26%); }
.scrim--right-index { background: linear-gradient(to right, rgba(22,20,15,0.82) 0%, rgba(22,20,15,0.4) 42%, rgba(22,20,15,0) 70%); }
.scrim--short-top { background: linear-gradient(to top, rgba(22,20,15,0.90) 0%, rgba(22,20,15,0.62) 52%, rgba(22,20,15,0.28) 78%, rgba(22,20,15,0) 96%); }
.scrim--right-short { background: linear-gradient(to right, rgba(22,20,15,0.78) 0%, rgba(22,20,15,0.34) 45%, rgba(22,20,15,0) 72%); }
.scrim--coop-tint { background: linear-gradient(155deg, rgba(78,93,58,0.55), rgba(22,20,15,0.7)); }
.scrim--coop-top { background: linear-gradient(to top, rgba(22,20,15,0.94) 0%, rgba(22,20,15,0.72) 52%, rgba(22,20,15,0.4) 78%, rgba(22,20,15,0.08) 96%); }
.scrim--coop-right { background: linear-gradient(to right, rgba(22,20,15,0.7) 0%, rgba(22,20,15,0.3) 45%, rgba(22,20,15,0) 72%); }

.hero-body { position: relative; width: 100%; }
.hero-body-inner { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 clamp(24px,5vw,56px) clamp(56px,7vh,84px); }
.hero--short .hero-body-inner { padding-bottom: clamp(44px,6vh,68px); }
.hero-copy { width: min(100%, 720px); }

.hero h1 { font-size: clamp(44px, 5.6vw, 80px); color: var(--paper); max-width: 17ch; text-wrap: pretty; }
.hero--short h1 { font-size: clamp(42px, 5.2vw, 74px); }
.hero-lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: rgba(252,251,248,0.78); max-width: 48ch; margin-top: 24px; text-wrap: pretty; }

.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 34px; }

.btn-solid {
  font: 500 16px var(--font-body);
  background: var(--accent);
  color: var(--paper);
  padding: 14px 24px;
  border-radius: 2px;
  text-decoration: none;
  border: 0;
  display: inline-block;
  transition: background 180ms ease, transform 180ms ease;
  cursor: pointer;
}
.btn-solid:hover { background: var(--accent-hover); color: var(--paper); transform: translateY(-1px); }

.btn-text-light {
  font: 400 16px var(--font-body);
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(252,251,248,0.6);
  padding-bottom: 2px;
}
.btn-text-light:hover { border-bottom-color: var(--paper); color: var(--paper); }

.btn-text-dark {
  font: 500 16px var(--font-body);
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(252,251,248,0.5);
  padding-bottom: 2px;
}
.btn-text-dark:hover { border-bottom-color: var(--paper); }

.scroll-cue {
  position: absolute;
  right: clamp(24px, 5vw, 56px);
  bottom: clamp(48px, 6vh, 72px);
  width: 1px;
  height: 44px;
  background: rgba(252,251,248,0.28);
  overflow: hidden;
}
.scroll-cue span {
  display: block;
  width: 1px;
  height: 12px;
  background: var(--paper);
  animation: cue-travel 2.4s cubic-bezier(.4,0,.6,1) infinite;
}

.hero-in { opacity: 0; }
.hero-in.in { animation: hero-in-anim 850ms cubic-bezier(.2,.75,.3,1) both; }
@keyframes hero-in-anim { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Sections ---------- */

section { background: var(--paper); }
.section-pad { padding: clamp(72px, 9vw, 120px) 0; }
.section-pad-lg { padding: clamp(96px, 11vw, 160px) 0; }
.bg-wash { background: var(--wash); }
.bg-ink { background: var(--ink); }

.eyebrow {
  font: 500 12px var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 16px;
}

h2 { font-size: clamp(34px, 4.4vw, 56px); }
.section-lede { color: var(--mute); max-width: 62ch; margin-top: 16px; margin-bottom: clamp(28px,4vw,48px); }

.reveal { opacity: 0; }
.reveal.in { animation: reveal-anim 720ms cubic-bezier(.2,.75,.3,1) both; }
@keyframes reveal-anim { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.card-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(20px, 3vw, 36px);
  box-shadow: 0 1px 2px rgba(22,20,15,0.04), 0 20px 40px -28px rgba(22,20,15,0.35);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.problem-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: saturate(0.9) contrast(1.02); }
.problem-copy h2 { max-width: 18ch; text-wrap: pretty; }
.problem-copy .paras { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; max-width: 62ch; }

.rule { height: 2px; background: var(--ink); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(28px, 3vw, 44px);
  padding-top: 36px;
}
.card-grid--wide { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-grid--structure { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: clamp(32px,4vw,52px); padding-top: 0; }

.step-card {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 28px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(22,20,15,0.04), 0 16px 32px -22px rgba(22,20,15,0.3);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(22,20,15,0.05), 0 24px 40px -20px rgba(22,20,15,0.4); }
.step-card--wash { background: var(--wash); }

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #F7F8F2, #E9ECE0 60%, #DDE1D3);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 1px rgba(252,251,248,0.95), inset 0 -2px 3px rgba(22,20,15,0.07), 0 8px 16px -10px rgba(22,20,15,0.4);
  margin-bottom: 22px;
}
.step-icon span {
  display: block;
  width: 26px;
  height: 26px;
  background-color: var(--accent);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}
.step-icon--pool span { -webkit-mask-image: url(images/icon-pool.png); mask-image: url(images/icon-pool.png); }
.step-icon--order span { -webkit-mask-image: url(images/icon-order.png); mask-image: url(images/icon-order.png); }
.step-icon--finance span { -webkit-mask-image: url(images/icon-finance.png); mask-image: url(images/icon-finance.png); }
.step-icon--repay span { -webkit-mask-image: url(images/icon-repay.png); mask-image: url(images/icon-repay.png); }

.step-card h3 { font-size: 25px; }
.step-date { font-size: 14px; color: var(--mute); margin-top: 6px; }
.step-p { margin-top: 12px; max-width: 34ch; }
.step-p--wide { max-width: 52ch; }

.close-section { text-align: center; }
.close-rule { display: inline-block; width: 36px; height: 1px; background: var(--accent); margin-bottom: 28px; }
.close-section h2 { max-width: 18ch; margin: 0 auto; color: var(--paper); }
.close-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 36px; margin-top: 40px; }

/* ---------- Season chart ---------- */

.season-chart { display: flex; flex-direction: column; gap: 0; }
.chart-plot { position: relative; height: clamp(220px, 26vw, 340px); border-bottom: 1px solid var(--ink); }
.chart-baseline { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); z-index: 2; pointer-events: none; }
.chart-baseline-label {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-16px);
  font: 500 12px var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  z-index: 3;
  background: var(--paper);
  padding-left: 8px;
  pointer-events: none;
}
.chart-underwater {
  position: absolute;
  left: 8.3333%;
  width: 50%;
  top: 50%;
  bottom: 0;
  border: 1.5px dashed var(--ink);
  background: rgba(22,20,15,0.045);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.chart-underwater span {
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: 500 clamp(10px,2.2vw,12px) var(--font-body);
  letter-spacing: 0.04em;
  padding: 5px 8px;
  text-align: center;
  line-height: 1.3;
  max-width: 92%;
}
.chart-bars {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  z-index: 1;
}
.chart-month-btn {
  position: relative;
  appearance: none;
  background: none;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0;
  cursor: pointer;
  height: 100%;
}
.chart-month-btn:last-child { border-right: 0; }
.chart-month-btn:hover { background: rgba(22,20,15,0.03); }
.chart-month-btn:focus-visible { outline: 2.5px solid var(--ink); outline-offset: -3px; }
.chart-bar {
  position: absolute;
  left: 18%;
  right: 18%;
  transform-origin: bottom;
  display: block;
}
.chart-bar--pos { background: var(--field); bottom: 50%; transform-origin: bottom; }
.chart-bar--neg { background: var(--ink); top: 50%; transform-origin: top; }
.chart-labels { display: grid; grid-template-columns: repeat(12, 1fr); padding-top: 10px; }
.chart-labels span { text-align: center; font-size: clamp(10px, 2.4vw, 14px); color: var(--mute); }
.chart-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  min-height: 132px;
}
.chart-readout-month {
  flex: 0 0 auto;
  min-width: 120px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 27px;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--accent);
}
.chart-readout-note { flex: 1 1 320px; max-width: 62ch; font-size: 17px; line-height: 1.6; margin: 0; }

/* ---------- Cooperatives page ---------- */

.eligibility-list { list-style: none; padding: 0; margin: clamp(32px,4vw,52px) 0 0; border-top: 1px solid var(--line); }
.eligibility-list li {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  align-items: baseline;
  padding: clamp(18px, 2.4vw, 26px) 0;
  border-bottom: 1px solid var(--line);
}
.eligibility-num {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--accent);
  line-height: 1;
  width: 2ch;
}
.eligibility-list p { max-width: 60ch; }

.get-card { background: var(--wash); border: 1px solid var(--line); border-radius: 2px; padding: 28px; box-shadow: 0 1px 2px rgba(22,20,15,0.04), 0 16px 32px -22px rgba(22,20,15,0.3); transition: transform 200ms ease, box-shadow 200ms ease; }
.get-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(22,20,15,0.05), 0 24px 40px -20px rgba(22,20,15,0.4); }
.get-card h3 { font-size: 25px; }
.get-card p { margin-top: 12px; max-width: 34ch; }

.apply-section-inner { max-width: 640px; margin: 0 auto; }
.apply-heading { text-align: center; }

.apply-form {
  margin: clamp(32px,4vw,48px) auto 0;
  max-width: 640px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(28px,3.5vw,40px);
  box-shadow: 0 1px 2px rgba(22,20,15,0.04), 0 30px 60px -30px rgba(22,20,15,0.4);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font: 500 11px var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.field input, .field select {
  font: 400 17px var(--font-body);
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
  width: 100%;
  border-radius: 0;
}
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--accent); border-bottom-width: 2px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px; }

.apply-submit {
  font: 500 16px var(--font-body);
  background: var(--accent);
  color: var(--paper);
  border: 0;
  border-radius: 2px;
  padding: 14px 24px;
  cursor: pointer;
  transition: background 180ms ease;
}
.apply-submit:hover { background: var(--accent-hover); }
.apply-submit:disabled { background: var(--mute); cursor: default; }
.apply-submit:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.apply-status { font-size: 14px; color: var(--accent); margin-top: 20px; min-height: 24px; text-align: center; }

/* ---------- Lenders page ---------- */

.risk-table { margin-top: clamp(32px,4vw,48px); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; box-shadow: 0 1px 2px rgba(22,20,15,0.04), 0 24px 48px -30px rgba(22,20,15,0.35); }
.risk-head { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 16px clamp(16px,3vw,24px); background: var(--ink); }
.risk-head span { font: 500 12px var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(252,251,248,0.6); }
.risk-head span:first-child { flex: 1 1 190px; }
.risk-head span:last-child { flex: 2 1 300px; }
.risk-row { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 20px clamp(16px,3vw,24px); border-top: 1px solid var(--line); background: var(--paper); }
.risk-row:nth-child(even) { background: #FBFAF6; }
.risk-row .risk-name { flex: 1 1 190px; font-weight: 500; color: var(--accent); }
.risk-row .risk-detail { flex: 2 1 300px; color: var(--ink); }

.ledger-section { text-align: center; }
.ledger-inner { max-width: 900px; margin: 0 auto; }
.ledger-inner h2 { max-width: 16ch; margin: 0 auto; }
.ledger-paras { display: flex; flex-direction: column; gap: 22px; margin-top: 32px; max-width: 62ch; margin-left: auto; margin-right: auto; text-align: left; }

/* ---------- Talk to us page ---------- */

.talk-hero-section { background: var(--wash); padding: clamp(164px,17vw,220px) 0 clamp(72px,9vw,120px); }
.talk-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(24px,5vw,56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,330px), 1fr));
  gap: clamp(44px,7vw,96px);
  align-items: start;
}
.talk-intro { animation: rise-in 700ms cubic-bezier(.2,.75,.3,1) both; }
.talk-intro h1 { font-size: clamp(34px,4.4vw,58px); max-width: 16ch; text-wrap: pretty; }
.talk-intro .email-line { margin-top: 18px; font-size: 17px; color: var(--mute); }
.talk-intro .email-line a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.talk-intro .email-line a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.talk-photo { display: block; width: 100%; max-width: min(520px, 100%); margin: clamp(32px,4vw,56px) auto 0; aspect-ratio: 5/4; object-fit: cover; filter: saturate(0.92) contrast(1.02); }

.talk-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  animation: rise-in 700ms cubic-bezier(.2,.75,.3,1) 120ms both;
}
.talk-form .field label { font-size: 14px; color: var(--mute); text-transform: none; letter-spacing: normal; }
.talk-form .field label .req { color: var(--accent); }
.talk-form .field input, .talk-form .field textarea {
  font-size: 16px;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid #C9CDBC;
  padding: 6px 0;
  width: 100%;
  transition: border-color 180ms ease;
  resize: vertical;
}
.talk-form .field input:focus, .talk-form .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.talk-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.talk-form legend { font-size: 14px; color: var(--mute); padding: 0; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 10px 24px; }
.role-grid label { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.role-grid input { accent-color: var(--accent); width: 15px; height: 15px; }

.talk-submit {
  font: 500 15px var(--font-body);
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 2px;
  padding: 13px 26px;
  cursor: pointer;
  align-self: start;
  margin-top: 4px;
  transition: background 180ms ease, transform 180ms ease;
}
.talk-submit:hover { background: var(--accent); transform: translateY(-1px); }
.talk-submit:disabled { background: var(--mute); cursor: default; transform: none; }
.talk-submit:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }

.talk-sent { animation: rise-in 500ms cubic-bezier(.2,.75,.3,1) both; padding-top: 8px; display: none; }
.talk-sent.show { display: block; }
.talk-sent .close-rule { margin-bottom: 24px; }
.talk-sent h2 { font-size: clamp(28px,3vw,36px); max-width: 14ch; }
.talk-sent p { margin-top: 16px; max-width: 36ch; color: var(--mute); }

/* ---------- Sign in page ---------- */

.signin-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: clamp(150px,18vw,200px) clamp(24px,5vw,56px) 72px; background: var(--wash); }
.signin-card { width: 100%; max-width: 420px; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: clamp(32px,4vw,44px); box-shadow: 0 1px 2px rgba(22,20,15,0.04), 0 30px 60px -30px rgba(22,20,15,0.35); }
.signin-card h1 { font-size: 28px; }
.signin-card .lede { color: var(--mute); margin-top: 10px; font-size: 15px; }
.signin-form { display: grid; gap: 18px; margin-top: 28px; }
.signin-form .field label { font: 500 12px var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.signin-form .field input {
  font: 400 16px var(--font-body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 11px 13px;
  width: 100%;
}
.signin-form .field input:focus { outline: 2.5px solid var(--accent); outline-offset: 3px; border-color: var(--accent); }
.signin-submit {
  font: 500 15px var(--font-body);
  background: var(--accent);
  color: var(--paper);
  border: 0;
  border-radius: 2px;
  padding: 13px 20px;
  cursor: pointer;
  transition: background 180ms ease;
}
.signin-submit:hover { background: var(--accent-hover); }
.signin-submit:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.signin-foot { margin-top: 24px; font-size: 14px; color: var(--mute); text-align: center; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(22,20,15,0.55);
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--paper);
  border-radius: 2px;
  max-width: 420px;
  width: 100%;
  padding: clamp(28px,4vw,36px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.5);
  animation: pop-in 220ms cubic-bezier(.2,.8,.3,1) both;
}
.modal-box .eyebrow { color: var(--accent); margin-bottom: 0; }
.modal-box h2 { font-size: 24px; margin-top: 12px; }
.modal-box p.body { margin-top: 12px; color: var(--ink); font-size: 15px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 16px; margin-top: 26px; }
.modal-actions a { font: 500 15px var(--font-body); color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 1px; align-self: center; }
.modal-close-btn { font: 500 15px var(--font-body); background: var(--ink); color: var(--paper); border: 0; border-radius: 2px; padding: 11px 20px; cursor: pointer; }
.modal-close-btn:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }

/* ---------- Legal pages (terms, privacy) ---------- */

.legal-section { background: var(--paper); padding: clamp(150px,17vw,220px) 0 clamp(96px,10vw,140px); }
.legal-inner { max-width: 760px; margin: 0 auto; padding: 0 clamp(24px,5vw,56px); }
.legal-inner h1 { font-size: clamp(40px,5vw,64px); }
.legal-updated { color: var(--mute); margin-top: 14px; }
.legal-blocks { display: flex; flex-direction: column; gap: 32px; margin-top: clamp(40px,5vw,56px); }
.legal-blocks h2 { font-size: 22px; }
.legal-blocks p { margin-top: 10px; }

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

.site-footer {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.footer-hairline { height: 1px; background: linear-gradient(to right, transparent, rgba(78,93,58,0.7), transparent); }
.footer-glow {
  position: absolute;
  left: 50%;
  top: 0;
  width: 900px;
  height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at top, rgba(78,93,58,0.18), transparent 70%);
  pointer-events: none;
}
.footer-inner { position: relative; max-width: 1320px; margin: 0 auto; padding: clamp(72px,9vw,120px) clamp(24px,5vw,56px) 40px; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 32px;
  padding-bottom: clamp(36px,5vw,60px);
  border-bottom: 1px solid rgba(252,251,248,0.12);
}
.footer-wordmark { font-family: var(--font-display); font-variation-settings: 'SOFT' 30, 'WONK' 1; font-weight: 700; font-size: clamp(38px,6vw,68px); letter-spacing: -0.03em; line-height: 0.92; display: block; }
.footer-wordmark .dot { color: var(--accent); }
.footer-tagline { font-size: 16px; color: rgba(252,251,248,0.7); max-width: 34ch; }

.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: clamp(28px,4vw,40px) 32px; padding: clamp(36px,5vw,56px) 0; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h2 { font: 500 12px var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(252,251,248,0.5); margin: 0; }
.footer-col a { font-size: 16px; color: rgba(252,251,248,0.82); text-decoration: none; }
.footer-col a:hover { color: var(--paper); }

.footer-rule { height: 1px; background: rgba(252,251,248,0.12); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; padding-top: 28px; font-size: 14px; color: rgba(252,251,248,0.5); text-align: center; }

@media (max-width: 430px) {
  .footer-cols { grid-template-columns: 1fr; }
}
