:root {
  --navy: #1c3f75;
  --steel: #94b4cc;
  --powder: #c8dbed;
  --yellow: #ffd06d;
  --red: #a43138;
  --pink: #f491a7;
  --cream: #fbf7ef;
  --ink: #1d2433;
  --muted: #5a6478;
  --line: #dfe6ef;
  --radius: 14px;
  --head: "Archivo Black", "Arial Black", sans-serif;
  --body: "Archivo", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--body); color: var(--ink); background: var(--cream); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 18px; }
.small { font-size: 13px; color: var(--muted); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 10px 18px; background: var(--navy); }
.topbar-logo img { height: 34px; width: auto; }
.topbar-nav { display: none; gap: 22px; margin-left: auto; }
.topbar-nav a { color: var(--powder); text-decoration: none; font-weight: 600; font-size: 15px; }
.topbar-nav a:hover { color: var(--yellow); }
.cart-btn { margin-left: auto; background: var(--yellow); color: var(--navy); border: 0; border-radius: 999px; padding: 8px 14px; font: 700 14px var(--body); cursor: pointer; display: flex; gap: 8px; align-items: center; }
.cart-btn span { background: var(--navy); color: var(--yellow); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; padding: 0 6px; }
@media (min-width: 760px) { .topbar-nav { display: flex; } .cart-btn { margin-left: 8px; } }

/* Funding block */
.funding { background: var(--powder); padding: 22px 18px 26px; border-bottom: 4px solid var(--navy); }
.funding-inner { max-width: 960px; margin: 0 auto; }
.extension { background: var(--red); color: #fff; font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 10px; margin-bottom: 18px; }
.extension:empty { display: none; }
.funding-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; align-items: end; }
.funding-numbers .raised { grid-column: 1 / -1; }
.funding-numbers > div > span { font-family: var(--head); color: var(--navy); display: block; line-height: 1; }
.funding-numbers .raised > span { font-size: clamp(44px, 11vw, 72px); }
.funding-numbers .stat > span { font-size: clamp(24px, 6vw, 34px); }
.funding-numbers small span { font-weight: 800; }
.funding-numbers small { display: block; color: var(--navy); font-size: 14px; font-weight: 600; margin-top: 4px; }
@media (min-width: 760px) { .funding-numbers { grid-template-columns: 2fr 1fr 1fr 1fr; } .funding-numbers .raised { grid-column: auto; } }
.bar { height: 16px; background: #fff; border-radius: 999px; margin: 18px 0 10px; overflow: hidden; border: 2px solid var(--navy); }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--pink)); transition: width .8s ease; max-width: 100%; }
.baseline { font-size: 13px; color: var(--navy); margin-bottom: 16px; }

/* Buttons */
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 13px 26px; font: 700 16px var(--body); text-decoration: none; cursor: pointer; transition: transform .1s ease, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Hero */
.hero { background: var(--navy); }
.hero-img { width: 100%; max-height: 560px; object-fit: cover; }
.hero-text { max-width: 960px; margin: 0 auto; padding: 22px 18px 30px; color: var(--powder); }
.hero-text h1 { color: var(--yellow); font-size: clamp(36px, 8vw, 64px); }
.byline { font-weight: 700; margin-top: 6px; }
.subhead { font-size: 19px; margin-top: 8px; color: #fff; }

/* Story */
.story { max-width: 720px; margin: 0 auto; padding: 44px 18px 20px; }
.story p { margin-bottom: 18px; }
.story h2 { margin-top: 38px; }
.story .lead { font-size: 22px; font-weight: 700; color: var(--navy); }
.story blockquote { font-family: var(--head); font-size: clamp(22px, 4.5vw, 30px); color: var(--red); line-height: 1.25; margin: 8px 0 26px; }
.story-img { margin: 26px 0; }
.story-img img { width: 100%; border-radius: var(--radius); }
.split { display: grid; gap: 20px; align-items: start; }
.split .story-img { margin: 0; }
@media (min-width: 640px) { .split { grid-template-columns: 240px 1fr; } }
.img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.img-pair .story-img { margin: 0; }
.img-pair img { aspect-ratio: 1; object-fit: cover; }
.help-list { margin: 0 0 18px 20px; }
.help-list li { margin-bottom: 8px; }

/* Team */
.team { max-width: 1100px; margin: 0 auto; padding: 30px 18px; }
.team-grid { display: grid; gap: 26px; }
@media (min-width: 860px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.person { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 20%; }
.person h3 { font-size: 22px; padding: 18px 18px 6px; }
.person h3 span { display: block; font: 600 14px var(--body); color: var(--red); margin-top: 4px; letter-spacing: 0; }
.person p { padding: 0 18px 12px; font-size: 15.5px; }
.person .loves { color: var(--muted); font-style: italic; padding-bottom: 20px; }

/* Rewards + add-ons */
.rewards, .addons, .wall, .risks { max-width: 1180px; margin: 0 auto; padding: 40px 18px; }
.section-note { color: var(--muted); margin: -8px 0 22px; }
.section-note:empty { display: none; }
.tier-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tier-grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.card.featured { border: 3px solid var(--red); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font: 700 11px var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; z-index: 2; }
.badge.left { background: var(--navy); left: auto; right: 10px; }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--powder); }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 19px; }
.price { font-family: var(--head); font-size: 24px; color: var(--red); margin: 4px 0 10px; }
.price s { font-family: var(--body); font-size: 15px; color: var(--muted); margin-left: 6px; font-weight: 400; }
.intro { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.items { list-style: none; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.items li { padding: 3px 0 3px 14px; position: relative; line-height: 1.45; }
.items li::before { content: "•"; position: absolute; left: 0; color: var(--steel); }
.items li.new { color: var(--navy); font-weight: 700; }
.items li.new::before { color: var(--red); }
.items.collapsed li.old { display: none; }
.toggle-items { background: none; border: 0; color: var(--navy); font: 600 13px var(--body); text-decoration: underline; cursor: pointer; text-align: left; margin: -6px 0 12px; }
.card .note { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.card .btn { margin-top: auto; }
.addon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 760px) { .addon-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .addon-grid { grid-template-columns: repeat(5, 1fr); } }
.addon .card-body { padding: 12px 12px 14px; }
.addon h3 { font-size: 15px; font-family: var(--body); font-weight: 700; }
.addon .price { font-size: 19px; margin: 2px 0 6px; }
.addon p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.addon .btn { padding: 9px 14px; font-size: 14px; }
.card .added { font-size: 13px; color: var(--red); font-weight: 700; margin-top: 8px; text-align: center; }

/* Wall */
.wall-names { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.wall-names li { background: var(--powder); color: var(--navy); font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.wall:has(.wall-names:empty) { display: none; }

.risks p { max-width: 720px; }

/* Footer */
.footer { background: var(--navy); color: var(--powder); text-align: center; padding: 36px 18px 44px; margin-top: 30px; }
.footer-logo { height: 46px; width: auto; margin: 0 auto 14px; }
.footer a { color: var(--yellow); }
.footer .small { color: var(--steel); margin-top: 8px; }

/* Drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 25, 45, .5); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: var(--cream); z-index: 50; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--navy); }
.drawer-head h2 { color: var(--yellow); font-size: 24px; margin: 0; }
.drawer-close { background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 18px 18px; background: #fff; }
.empty { color: var(--muted); }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.line h4 { font-size: 15px; color: var(--navy); }
.line .meta { font-size: 13px; color: var(--muted); }
.line .amt { font-weight: 700; color: var(--navy); }
.line .remove { background: none; border: 0; color: var(--red); font-size: 13px; text-decoration: underline; cursor: pointer; margin-top: 4px; }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 28px; height: 28px; border-radius: 999px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font-weight: 700; cursor: pointer; }
.choices { margin-top: 10px; display: grid; gap: 8px; }
.field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.field select, .field input { font: 15px var(--body); padding: 9px 10px; border: 1.5px solid var(--steel); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.field.missing select { border-color: var(--red); background: #fff4f5; }
.subtotal { display: flex; justify-content: space-between; font-family: var(--head); color: var(--navy); font-size: 20px; margin-bottom: 12px; }
.drawer-error { color: var(--red); font-size: 14px; font-weight: 600; min-height: 0; margin-bottom: 8px; }
.drawer-error:empty { display: none; }

/* Thanks page */
.thanks { max-width: 640px; margin: 0 auto; padding: 50px 18px; text-align: center; }
.thanks img.badge-img { width: 220px; margin: 0 auto 20px; }
.thanks ul { list-style: none; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 20px 0; }
.thanks li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.thanks li:last-child { border: 0; }
