/* cover.css - the locked Cover look (see design/README.md): real-product style, Plus Jakarta Sans
   with one serif quote per page, bright green accent. Used by every page on the site. */

/* Main font: Plus Jakarta Sans from Google Fonts (chosen by Tanner, Nov 2026). */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200..800&display=swap");
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Regular.ttf"); }

:root {
  --ink: #14181C;
  --body: #4A525A;
  --muted: #6B747C;
  --line: #E6E9EC;
  --bg: #FFFFFF;
  --soft: #F5F7F6;
  --mint: #EAF8F0;
  --green: #22C67A;       /* bright accent: buttons, bars, checks */
  --green-dark: #0B6B47;  /* green text on white */
  --deep: #0C2B24;        /* dark sections */
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; } /* hidden always wins over a layout style */
html { -webkit-font-smoothing: antialiased; }
body { font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; gap: 32px; font-size: 15px; font-weight: 500; color: var(--body); }
.brand-text { font-weight: 750; font-size: 19px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--deep); color: var(--green); display: grid; place-items: center; }
.brand-mark svg { width: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; padding: 13px 22px; border-radius: 10px; line-height: 1; white-space: nowrap; }
.btn-primary { background: var(--green); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-lg { padding: 17px 28px; font-size: 16px; }

/* Type */
.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); }
h1 { font-size: 64px; line-height: 1.02; letter-spacing: -.035em; font-weight: 750; }
h2 { font-size: 44px; line-height: 1.08; letter-spacing: -.03em; font-weight: 720; }
h3 { font-size: 21px; letter-spacing: -.015em; font-weight: 680; line-height: 1.25; }
.lead { font-size: 20px; color: var(--body); line-height: 1.5; }
.serif { font-family: "Instrument Serif", serif; font-weight: 400; letter-spacing: -.01em; }
.section { padding: 112px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head p { margin-top: 14px; color: var(--body); font-size: 18px; }

/* Progress */
.bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shadow { box-shadow: 0 1px 2px rgba(20,24,28,.04), 0 12px 32px rgba(20,24,28,.08); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--soft); color: var(--body); }
.pill.green { background: var(--mint); color: var(--green-dark); }
.check { width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: var(--ink); display: inline-grid; place-items: center; flex: none; }
.check svg { width: 13px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0; color: var(--muted); font-size: 14px; }
.footer .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .nav .container { height: 62px; }
  .nav-links { display: none; }
  .nav .container { gap: 12px; }
  .brand-text { font-size: 16px; min-width: 0; }
  .brand-text > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav .btn { padding: 11px 14px; font-size: 14px; }
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .lead { font-size: 18px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 34px; }
  .footer .container { flex-direction: column; align-items: flex-start; }
}

/* ---------- Sponsor page (give.html) ---------- */

  .hero { padding: 72px 0 96px; }
  .hero .container { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
  .hero h1 { margin: 16px 0 22px; }
  .hero .actions { display: flex; gap: 12px; margin-top: 34px; }
  .hero .trust { display: flex; align-items: center; gap: 10px; margin-top: 30px; font-size: 15px; color: var(--muted); }
  .hero-media { position: relative; }
  .hero-media img { border-radius: 24px; aspect-ratio: 5/4.3; object-fit: cover; width: 100%; }
  .float { position: absolute; background: #fff; border-radius: 14px; padding: 18px 20px; }
  .float.goal { left: -40px; bottom: 36px; width: 300px; }
  .float.goal .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
  .float.goal b { font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
  .float.new { right: -24px; top: 34px; display: flex; gap: 12px; align-items: center; font-size: 14px; }
  .float.new strong { display: block; font-size: 15px; }
  .float.new span { color: var(--muted); }


  .filters { display: flex; gap: 8px; margin-bottom: 28px; }
  .filters span { white-space: nowrap; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--body); }
  .filters span.on { background: var(--ink); color: #fff; border-color: var(--ink); }
  .items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .items.four { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .item img { aspect-ratio: 4/3.2; object-fit: cover; width: 100%; }
  .item .body { padding: 20px 22px 22px; }
  .item .top { display: flex; justify-content: space-between; align-items: center; }
  .item p { color: var(--body); font-size: 15px; margin: 6px 0 18px; }
  .item .foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; }
  .item .sponsors { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
  .item .btn { padding: 11px 18px; font-size: 14px; }

  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .step { padding: 30px; border-radius: var(--radius); background: var(--soft); }
  .step .n { width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 22px; }
  .step p { color: var(--body); font-size: 16px; margin-top: 8px; }

  .promise { background: var(--deep); color: #fff; }
  .promise .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
  .promise blockquote { font-size: 54px; line-height: 1.08; }
  .promise blockquote em { font-style: normal; color: var(--green); }
  .promise cite { display: block; font-style: normal; margin-top: 26px; color: rgba(255,255,255,.65); font-size: 16px; }
  .promise img { border-radius: 20px; aspect-ratio: 4/4.6; object-fit: cover; }

  .biz .container { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .biz img { border-radius: 20px; aspect-ratio: 5/4; object-fit: cover; }
  .biz ul { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
  .biz li { display: flex; gap: 12px; align-items: flex-start; color: var(--body); }
  .biz .example { margin-top: 30px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; font-size: 15px; }
  .biz .example .logo { width: 44px; height: 44px; border-radius: 10px; background: #F2E6D3; display: grid; place-items: center; font-weight: 750; color: #7A5A2B; }
  .biz .example span { color: var(--muted); font-size: 13px; display: block; }

  .faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; }
  .faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
  .faq summary { font-weight: 650; font-size: 18px; list-style: none; display: flex; justify-content: space-between; }
  .faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
  .faq details[open] summary::after { content: "–"; }
  .faq details p { color: var(--body); margin-top: 10px; }

  .powered { display: flex; align-items: center; gap: 8px; }
  .powered img { height: 18px; }

  @media (max-width: 760px) {
    .hero { padding: 36px 0 56px; }
    .hero .container { grid-template-columns: 1fr; gap: 40px; }
    .hero .actions { flex-direction: column; }
    .hero .actions .btn { justify-content: center; }
    .float.goal { left: 12px; right: 12px; width: auto; bottom: 12px; }
    .float.new { right: 12px; top: 12px; }
      .filters { overflow-x: auto; }
    .items, .items.four, .steps { grid-template-columns: 1fr; gap: 20px; }
    .promise .container, .biz .container, .faq { grid-template-columns: 1fr; gap: 36px; }
    .promise blockquote { font-size: 38px; }
  }

/* ---------- Sponsor pop-up ---------- */
.sponsor-dialog { margin: auto; border: 0; padding: 0; border-radius: 22px; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 30px 80px rgba(12,43,36,.3); color: var(--ink); }
.sponsor-dialog::backdrop { background: rgba(12,20,18,.55); backdrop-filter: blur(3px); }
.dialog-head { display: flex; gap: 16px; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.dialog-head img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.dialog-head h2 { font-size: 22px; letter-spacing: -.02em; }
.dialog-head p { color: var(--muted); font-size: 14px; }
.dialog-close { margin-left: auto; align-self: flex-start; width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--soft); font-size: 20px; line-height: 1; cursor: pointer; color: var(--body); }
.dialog-body { padding: 22px 24px 26px; }
.flow-step[hidden] { display: none; }
.field-group { display: grid; gap: 6px; margin-bottom: 16px; }
.field-group label { font-size: 14px; font-weight: 600; }
.field-group input { font: inherit; font-size: 16px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); }
.field-group input:focus { outline: none; border-color: var(--green-dark); box-shadow: 0 0 0 3px var(--mint); }
.field-group input[aria-invalid="true"] { border-color: #C4382B; }
.field-error { color: #B2321F; font-size: 13px; min-height: 0; }
.toggle { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--body); margin-bottom: 12px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green-dark); }
.fine { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 14px; }
.btn-block { width: 100%; justify-content: center; border: 0; cursor: pointer; font-family: inherit; }
.pay-box { background: var(--soft); border-radius: 14px; padding: 18px; margin-bottom: 16px; font-size: 15px; color: var(--body); }
.pay-box strong { color: var(--ink); display: block; font-size: 17px; margin-bottom: 4px; }
.demo-note { border: 1.5px dashed #E2B04A; background: #FFF8E6; color: #6E5214; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; margin-top: 12px; cursor: pointer; text-decoration: underline; }

/* The thank-you moment */
.done { text-align: center; padding: 8px 0 4px; }
.stamp { width: 92px; height: 92px; border-radius: 50%; background: var(--green); color: var(--ink); display: grid; place-items: center; margin: 6px auto 22px; }
.stamp svg { width: 54px; }
.stamp.thud { animation: thud .55s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes thud { 0% { transform: scale(1.9) rotate(-14deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(0); } }
.note { text-align: left; background: var(--soft); border-radius: 16px; padding: 22px; margin-bottom: 18px; }
.note h3 { font-size: 22px; }
.note p { color: var(--body); margin-top: 8px; }
.note .sig { font-family: "Instrument Serif", serif; font-size: 26px; color: var(--green-dark); margin-top: 12px; }

/* Page reacting to a new sponsor */
.item.just-joined { box-shadow: 0 0 0 3px var(--green); transition: box-shadow .4s; }
.float.new.pop { animation: pop .5s ease-out; }
@keyframes pop { 0% { transform: scale(.9); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
.bar i { transition: width .9s ease-out; }

@media (prefers-reduced-motion: reduce) {
  .stamp.thud, .float.new.pop { animation: none; }
  .bar i { transition: none; }
}
@media (max-width: 760px) {
  .dialog-head, .dialog-body { padding-left: 18px; padding-right: 18px; }
}

/* Stripe's card form inside the pop-up */
.pay-status { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.pay-status.error { color: #B2321F; }
#pay-mount { min-height: 40px; }
.sponsor-dialog { overflow-y: auto; }
