/* Paisley — static rebuild of the Wix site. Palette and type lifted from the live site. */
:root {
  --navy: #0B1C4D;      /* body text, Wix "dark" */
  --indigo: #231F56;    /* headings, header, CTA band */
  --royal: #283C8F;     /* benefit cards */
  --teal: #0BA9C2;      /* primary buttons, DeFi Coop band */
  --lime: #CAD22C;      /* accent, notify band, rules */
  --white: #FFFFFF;
  --mist: #F4F6FA;
  --line: #E2E5EE;
  --radius: 10px;
  --wrap: 1120px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--navy); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--indigo); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--lime); color: var(--indigo); padding: 8px 12px; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header { background: var(--indigo); color: var(--white); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 24px; }
.brand img { width: 110px; height: auto; }
#site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 22px; flex-wrap: wrap; justify-content: flex-end; }
#site-nav a { text-decoration: none; font-weight: 300; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
#site-nav a:hover, #site-nav a[aria-current="page"] { border-color: var(--lime); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; background: var(--white); margin: 4px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  #site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--indigo); max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  #site-nav.open { max-height: 480px; border-top: 1px solid rgba(255,255,255,.12); }
  #site-nav ul { flex-direction: column; padding: 8px 16px 16px; gap: 0; }
  #site-nav a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- buttons ---------- */
.btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-width: 180px; padding: 12px 26px; border-radius: var(--radius); font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid transparent; transition: transform .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-primary { background: var(--teal); border-color: var(--teal); color: var(--indigo); }
.btn-ghost { background: transparent; border-color: var(--white); color: var(--lime); }
.btn-dark { background: var(--indigo); border-color: var(--white); color: var(--lime); }

/* ---------- home ---------- */
.hero { background: var(--indigo); color: var(--white); text-align: center; padding: 72px 0 80px; }
.hero h1 { color: var(--white); font-size: clamp(28px, 4vw, 40px); }
.hero .lead { font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; margin-bottom: 18px; }
.hero .sub { font-size: 16px; max-width: 460px; margin: 0 auto; }

.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.eyebrow { text-transform: lowercase; letter-spacing: .08em; font-size: 13px; color: var(--teal); font-weight: 700; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 32px); }
.section-head p { font-weight: 700; font-size: 17px; }

.features { display: grid; gap: 56px; max-width: 760px; margin: 0 auto; }
.feature { display: grid; grid-template-columns: 1fr 120px; gap: 32px; align-items: center; }
.feature:nth-child(even) { grid-template-columns: 120px 1fr; }
.feature:nth-child(even) .feature-icon { order: -1; }
.feature h3 { font-size: 28px; padding-bottom: 10px; border-bottom: 2px solid var(--lime); display: inline-block; min-width: 60%; }
.feature .tag { font-weight: 700; font-size: 15px; }
.feature p { font-size: 15px; }
.feature-icon { color: var(--indigo); display: flex; justify-content: center; }
.feature-icon svg { width: 84px; height: 84px; }

.coop { background: var(--teal); }
.coop .section-head h2 { color: var(--indigo); }
.coop .section-head p { color: var(--navy); }
.coop-list { list-style: none; padding: 0; margin: 0 auto; max-width: 560px; }
.coop-list li { display: grid; grid-template-columns: 48px 1fr; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 2px solid var(--lime); }
.coop-list li:last-child { border-bottom: 0; }
.coop-list svg { width: 40px; height: 40px; color: var(--indigo); }
.coop-list p { margin: 0; font-size: 15px; }
.coop .btns { margin-top: 36px; }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.benefit { background: var(--royal); color: var(--white); padding: 40px 22px; text-align: center; min-height: 230px; display: flex; flex-direction: column; justify-content: center; }
.benefit h3 { color: var(--lime); font-size: 20px; letter-spacing: .02em; }
.benefit p { font-size: 14px; font-weight: 700; margin: 0; }
@media (max-width: 900px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .benefits { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature-icon { order: -1; justify-content: flex-start; }
  .feature-icon svg { width: 56px; height: 56px; }
}

.cta-band { background: var(--indigo); color: var(--white); text-align: center; padding: 64px 0; }
.cta-band h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 34px); }
.cta-band p { font-size: clamp(17px, 2vw, 22px); max-width: 560px; margin: 0 auto; }

/* ---------- interior pages ---------- */
.page-hero { background: var(--indigo); color: var(--white); padding: 64px 0 56px; }
.page-hero h1 { color: var(--white); font-size: clamp(28px, 4vw, 42px); margin: 0; }
.page-hero .sub { color: var(--lime); font-weight: 700; font-size: clamp(18px, 2.4vw, 24px); margin: 10px 0 0; }
.page-hero.has-bg { background-size: cover; background-position: center; position: relative; }
.page-hero.has-bg::before { content: ""; position: absolute; inset: 0; background: rgba(35, 31, 86, .78); }
.page-hero.has-bg .wrap { position: relative; }

.prose { padding: 56px 0 72px; font-size: 17px; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 21px; margin-top: 1.4em; color: var(--navy); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--teal); }
.prose a { color: var(--royal); text-decoration-color: var(--teal); text-underline-offset: 3px; }
.prose strong { color: var(--indigo); }
.prose .btns { justify-content: flex-start; }
.prose figure { margin: 28px 0; }
.prose .callout { background: var(--mist); border-left: 4px solid var(--lime); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 0 52px; margin-bottom: 1.4em; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: var(--indigo); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.steps ul { margin-top: .5em; }

.legal { font-size: 15px; }
.legal h2 { font-size: 20px; }
.legal h3 { font-size: 17px; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; list-style: none; padding: 0; margin: 0; }
.member { text-align: center; }
.member img { width: 100%; aspect-ratio: 443 / 431; object-fit: cover; border-radius: var(--radius); background: var(--mist); }
.member h3 { font-size: 18px; margin: 14px 0 2px; }
.member .role { font-size: 14px; margin: 0 0 8px; }
.member .links { display: flex; gap: 10px; justify-content: center; }
.member .links a { color: var(--indigo); display: inline-flex; padding: 4px; }
.member .links a:hover { color: var(--teal); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* blog */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.post-card a { display: grid; grid-template-columns: 260px 1fr; gap: 28px; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.post-card a:hover { box-shadow: 0 8px 28px rgba(11, 28, 77, .12); transform: translateY(-2px); }
.post-card img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.post-card-body { padding: 24px 24px 24px 0; }
.post-card h2 { font-size: 22px; }
.post-card p:last-child { margin: 0; font-size: 15px; }
.post-meta { font-size: 13px; color: #5A6385; margin-bottom: 8px; }
@media (max-width: 680px) {
  .post-card a { grid-template-columns: 1fr; gap: 0; }
  .post-card img { min-height: 0; aspect-ratio: 16 / 9; }
  .post-card-body { padding: 20px; }
}
.post { padding-top: 40px; }
.crumb { font-size: 14px; }
.crumb a { color: var(--royal); }
.post-head h1 { font-size: clamp(28px, 4vw, 40px); }
.post-cover { margin: 24px 0 0; }
.post-cover img { width: 100%; border-radius: var(--radius); }
.post .prose { padding-top: 32px; padding-bottom: 40px; }
.recent { border-top: 1px solid var(--line); padding: 32px 0 72px; }
.recent-head { display: flex; justify-content: space-between; align-items: baseline; }
.recent-head h2 { font-size: 20px; }
.recent-head a { color: var(--royal); font-size: 14px; }
.recent ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.recent li a { display: block; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 700; color: var(--indigo); font-size: 15px; }
.recent li a:hover { border-color: var(--teal); }
@media (max-width: 680px) { .recent ul { grid-template-columns: 1fr; } }

/* forms */
.form-page { background: var(--indigo) center / cover no-repeat; padding: 64px 0 80px; }
.form-card { background: var(--white); border-radius: 16px; padding: 36px; max-width: 620px; margin: 0 auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.form-card h1 { font-size: clamp(24px, 3vw, 30px); }
.form-card .intro { font-size: 15px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--indigo); }
.field input, .field select { width: 100%; font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid #C9CEDD; border-radius: 8px; background: var(--white); color: var(--navy); }
.field input:focus, .field select:focus { border-color: var(--teal); outline: 2px solid rgba(11,169,194,.25); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } .form-card { padding: 24px 20px; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 8px 0 20px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal); }
.form-card button[type="submit"] { width: 100%; background: var(--teal); color: var(--indigo); border: 0; border-radius: var(--radius); padding: 14px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.form-card button[type="submit"]:hover { filter: brightness(1.08); }
.form-msg { margin: 14px 0 0; font-weight: 700; min-height: 1.2em; }
.form-msg.ok { color: #157A3B; }
.form-msg.err { color: #B42318; }
form.sending button { opacity: .6; pointer-events: none; }

/* notify band + footer */
.notify { background: var(--lime); padding: 48px 0 28px; text-align: center; }
.notify h2 { font-size: 18px; color: var(--navy); max-width: 640px; margin: 0 auto 20px; }
.notify-form { display: flex; max-width: 520px; margin: 0 auto; flex-wrap: wrap; }
.notify-form input[type="email"] { flex: 1 1 240px; font: inherit; padding: 13px 16px; border: 1px solid var(--indigo); border-right: 0; background: var(--white); min-width: 0; }
.notify-form button { background: var(--teal); color: var(--white); border: 0; font: inherit; font-weight: 700; font-size: 17px; padding: 0 28px; cursor: pointer; min-height: 48px; }
.notify-form .form-msg { flex-basis: 100%; color: var(--indigo); }
@media (max-width: 460px) {
  .notify-form input[type="email"] { border-right: 1px solid var(--indigo); }
  .notify-form button { flex: 1 1 100%; }
}
.legal-links { margin: 16px 0 0; font-size: 12px; }
.legal-links a { margin: 0 8px; }

.site-footer { background: var(--indigo); color: var(--white); text-align: center; padding: 40px 0; font-size: 13px; }
.footer-inner { display: grid; justify-items: center; gap: 10px; }
.site-footer p { margin: 0; }
.site-footer a { text-decoration-color: rgba(255,255,255,.4); }
.social { list-style: none; display: flex; gap: 14px; padding: 0; margin: 6px 0; }
.social a { display: inline-flex; padding: 6px; }
.social a:hover { color: var(--lime); }
.copy { opacity: .85; }
