/* Weaverbird Works landing page. Colors from the Weaverbird logo: charcoal, golden yellow, nest straw. */
:root {
  --navy: #242724;
  --navy-50: #faf3df;
  --gold: #e9b92f;
  --gold-700: #d4a21f;
  --gold-text: #8a6510;
  --straw: #c5a878;
  --error: #a8111c;
  --green: #437d2a;
  --ink: #2b2e2a;
  --muted: #4a5568;
  --line: #e3ded2;
  --bg: #faf8f2;
  --bg-alt: #f5efe1;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(36, 39, 36, 0.16);
  --heading: "Rubik", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--heading); color: var(--navy); line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 700; letter-spacing: -0.5px; max-width: 900px; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0 0 16px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
.alt { background: var(--bg-alt); }
.kicker { font-size: 15px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px; }
.lede { font-size: 21px; color: var(--muted); max-width: 680px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--white); padding: 8px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(247, 248, 244, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--heading); font-size: 24px; font-weight: 600; color: var(--navy); }
.brand b { color: var(--gold-text); font-weight: 700; }
.brand img.brand-logo { width: auto; height: 64px; }
.header nav { display: flex; align-items: center; gap: 20px; }
.header nav a:not(.btn) { color: var(--ink); font-weight: 700; text-decoration: none; }
.header nav a:not(.btn):hover { color: var(--navy); text-decoration: underline; }

/* Buttons */
.btn { display: inline-block; font: 700 17px var(--body); text-decoration: none; border-radius: 10px; padding: 13px 22px; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-700); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy-50); }
.btn-small { padding: 8px 14px; font-size: 15px; white-space: nowrap; background: var(--navy); color: var(--white); }
.btn-small:hover { background: #3b3f3a; }
.btn-small .short { display: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.hero { padding: 96px 0 88px; }

/* Apps */
.badge { display: inline-block; background: var(--navy); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.badge-live { background: var(--green); }
.app { background: var(--white); border: 1px dashed #d6cdb8; border-radius: var(--radius); padding: 28px; }
.app h3 { font-size: 24px; margin: 12px 0 6px; }
.app-lead { color: var(--muted); margin-bottom: 12px; }
.app-list { margin: 0; padding-left: 20px; color: var(--muted); font-size: 16px; }
.app-list li { margin-bottom: 4px; }
.app-live { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 32px 0 24px; border: 2px solid var(--green); box-shadow: var(--shadow); }
.app-live .app-lead { font-size: 19px; }
.apps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

/* Why */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
.why h3 { font-size: 20px; }
.why p { color: var(--muted); margin: 0; }

/* Form */
.form-card { max-width: 820px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-copy { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 24px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; font: 16px var(--body); color: var(--ink); background: var(--white); border: 1px solid #d6cdb8; border-radius: 10px; padding: 11px 12px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(36, 39, 36, 0.18); }
.picks { border: 0; padding: 0; margin: 0; }
.picks legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; padding: 0; }
.picks label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-weight: 600; font-size: 16px; margin: 0 0 8px; cursor: pointer; }
.picks input[type="checkbox"] { width: 18px; height: 18px; margin: 0 4px 0 0; padding: 0; flex: none; align-self: center; accent-color: var(--navy); }
.picks .opt { font-size: 14px; }
.hp { position: absolute; left: -5000px; }
.form-status { margin: 12px 0 0; font-weight: 600; }
.gated [data-gated] { display: none !important; }
.tip { position: relative; display: inline-block; vertical-align: middle; margin-left: 4px; }
.tip-btn { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #b8ab8c; background: var(--white); color: var(--muted); font: 700 12px/1 var(--body); cursor: help; padding: 0; }
.tip-btn:hover, .tip-btn:focus-visible, .tip.open .tip-btn { border-color: var(--navy); color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(36, 39, 36, 0.15); }
.tip-text { display: none; position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 8px); transform: translateX(calc(-50% + var(--shift, 0px))); width: min(300px, calc(100vw - 24px)); background: var(--ink); color: #fff; font-size: 14px; font-weight: 400; line-height: 1.45; text-align: left; padding: 10px 12px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.tip-text a { color: #f0c94f; }
.tip-text.tip-wide { width: min(360px, calc(100vw - 24px)); }
.tip-line { display: block; }
.pick-grid label { flex-wrap: nowrap; align-items: flex-start; line-height: 1.4; }
.pick-grid input[type="checkbox"] { align-self: flex-start; margin-top: 2px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 20px; }
.tip-line + .tip-line { margin-top: 6px; }
.tip:hover .tip-text, .tip-btn:focus-visible + .tip-text, .tip.open .tip-text { display: block; }
.tip.hushed .tip-text { display: none; }
.form-need { font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.field-error { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--error); }
.field.invalid input, .field.invalid select { border-color: var(--error); box-shadow: 0 0 0 3px rgba(203, 21, 34, 0.12); }
fieldset.field.invalid { border-radius: 10px; outline: 2px solid var(--error); outline-offset: 6px; }
.form-status.error { color: var(--error); }
.form-done { text-align: center; }
.fine { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Funding guide (/funding/) */
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.page-hero { padding: 64px 0 40px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 48px; font-size: clamp(24px, 3vw, 32px); }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.note { background: var(--navy-50); border-left: 4px solid var(--gold); border-radius: 8px; padding: 14px 18px; margin: 24px 0; font-size: 16px; }
.note p:last-child { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }
.card .more { margin-top: auto; font-weight: 700; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 18px 68px; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; border-radius: 999px; background: var(--gold); color: var(--navy); font: 700 18px var(--heading); display: grid; place-items: center; }
.steps h3 { font-size: 19px; margin: 0 0 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
.fit-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 16px; background: var(--white); border-radius: 12px; overflow: hidden; }
.fit-table th, .fit-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fit-table th { background: var(--bg-alt); font-size: 15px; }
.table-scroll { overflow-x: auto; }
.fit { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.fit-strong { background: #e3efd9; color: #2f5a1d; }
.fit-some { background: var(--navy-50); color: var(--gold-text); }
.fit-low { background: #eef0f2; color: #4a5568; }
.finder { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
.finder-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.finder-results { display: grid; gap: 14px; }
.result { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.result h3 { font-size: 19px; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.result p { margin: 0 0 6px; font-size: 16px; color: var(--muted); }
.result h4 { font-size: 17px; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.result p strong { color: var(--ink, inherit); }
.more-funds { margin-top: 40px; }
.more-funds-title { font-size: 24px; margin: 0 0 6px; }
.more-funds-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-top: 18px; }
.link-button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.narrative textarea { width: 100%; min-height: 220px; font: 15px/1.5 var(--body); border: 1px solid #d6cdb8; border-radius: 10px; padding: 12px; background: var(--white); color: var(--ink); }
.choice { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.choice label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 16px; cursor: pointer; }
.choice input { width: 18px; height: 18px; accent-color: var(--navy); }

/* Footer */
.footer { padding: 32px 0; background: var(--white); border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; color: var(--muted); font-size: 15px; }
.footer b { color: var(--navy); }

@media (max-width: 1000px) {
  .why { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .app-live, .apps-grid, .cards, .finder { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .btn-small .long { display: none; }
  .btn-small .short { display: inline; }
}
@media (max-width: 560px) {
  section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .header nav a:not(.btn) { display: none; }
  .brand { font-size: 19px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .brand img.brand-logo { width: auto; height: 52px; }
  .btn-small { padding: 7px 12px; font-size: 14px; }
  .form-grid, .why { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .app { padding: 20px; }
  .app h3 { font-size: 21px; }
  .page-hero { padding: 40px 0 24px; }
  .steps li { padding-left: 60px; }
}
@media (max-width: 360px) {
  .wrap { padding: 0 16px; }
  .brand { font-size: 17px; gap: 6px; }
  .brand img { width: 24px; height: 24px; }
  .brand img.brand-logo { width: auto; height: 46px; }
}
