:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --white: #fff;
  --ink: #181c28;
  --muted: #5f6474;
  --blue: #2149d8;
  --deep: #1636ae;
  --pale: #ebefff;
  --line: #e1e0dc;
  --soft: #f1f0eb;
  --green: #23604f;
  font: 16px/1.55 "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); }
main { flex: 1; min-width: 0; outline: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #647ef2; outline-offset: 4px; }
.skip { position: absolute; transform: translateY(-130%); padding: 10px; background: white; z-index: 5; }
.skip:focus { transform: none; }
.topbar, .footer { display: flex; justify-content: space-between; align-items: center; padding: 22px max(28px, calc((100vw - 1250px)/2)); gap: 16px; }
.topbar { border-bottom: 1px solid #eeede9; }
.brand { display: inline-flex; gap: 9px; align-items: center; font-weight: 760; font-size: 19px; letter-spacing: -.9px; white-space: nowrap; }
.brand-icon { display: grid; place-items: center; width: 32px; height: 32px; background: var(--blue); color: white; border-radius: 9px; font: 25px/1 -apple-system, sans-serif; padding-bottom: 2px; }
.brand-muted { font-weight: 500; }
.topbar nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); font-size: 13px; font-weight: 650; }
.topbar nav a:hover, .footer a:hover, .text-link:hover { color: var(--blue); }
.nav-supplier { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; white-space: nowrap; }
.nav-supplier span { margin-left: 4px; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding-top: 18px; padding-bottom: 18px; }
.home { width: min(760px, calc(100% - 36px)); margin: auto; text-align: center; padding: clamp(56px, 9vh, 108px) 0 clamp(43px, 7vh, 72px); }
.home h1 { font-size: clamp(3.25rem, 9vw, 6.5rem); line-height: .96; letter-spacing: -.089em; margin: 0 0 24px; font-weight: 770; }
.home h1 span { display: block; color: var(--blue); }
.home p { margin: 0 auto 32px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); max-width: 480px; }
.savings { width: min(1000px, calc(100% - 36px)); margin: 0 auto; padding: 30px 0 44px; border-top: 1px solid var(--line); }
.savings h2 { margin-bottom: 7px; font-size: clamp(1.65rem, 4vw, 2.45rem); }
.savings-intro { max-width: 62ch; margin: 0; color: var(--muted); }
.search { display: flex; align-items: center; gap: 12px; padding: 7px 7px 7px 19px; border: 1px solid #d7d9e4; border-radius: 15px; background: var(--white); box-shadow: 0 5px 25px #252d4710; text-align: left; }
.search:focus-within { border-color: #6b83ea; box-shadow: 0 0 0 3px #2149d818; }
.search input { flex: 1; min-width: 0; border: 0; color: var(--ink); outline: none; background: transparent; padding: 10px 0; }
.search input:focus-visible { outline: none; }
.search input::placeholder { color: #696f7e; }
.search-icon { width: 15px; height: 15px; border: 1.7px solid #697086; border-radius: 50%; display: inline-block; position: relative; margin: 0 4px 3px 0; flex: none; }
.search-icon::after { content: ""; width: 7px; height: 1.7px; background: #697086; position: absolute; top: 12px; left: 10px; transform: rotate(46deg); }
.btn { display: inline-flex; gap: 9px; align-items: center; justify-content: center; background: var(--blue); color: var(--white); border: 1px solid var(--blue); border-radius: 9px; font-weight: 690; font-size: 14px; padding: 11px 17px; line-height: 1.35; min-height: 43px; }
.btn:hover { background: var(--deep); border-color: var(--deep); }
.btn:disabled { opacity: .65; cursor: wait; }
.btn.secondary { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn.secondary:hover { background: var(--pale); border-color: #c4cff8; color: var(--blue); }
.btn.full { width: 100%; }
.chips { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 21px; font-size: 13px; color: var(--muted); }
.chip { border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 4px 11px; border-radius: 24px; }
.chip:hover { color: var(--blue); background: var(--pale); border-color: #c4cff8; }
.wrap { width: min(1000px, calc(100% - 40px)); margin: auto; padding: 42px 0 76px; }
.wrap.narrow { max-width: 690px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.045em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.45rem); margin-bottom: 12px; }
h2 { font-size: 1.72rem; margin-bottom: 12px; }
h3 { font-size: 1.17rem; margin-bottom: 8px; }
.muted, .lede { color: var(--muted); }
.lede { max-width: 660px; font-size: 1.08rem; margin-bottom: 26px; }
.breadcrumb { display: inline-block; margin-bottom: 22px; color: var(--muted); font-size: 13px; font-weight: 640; }
.breadcrumb:hover { color: var(--blue); }
.box { padding: clamp(16px, 3vw, 25px); border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.section { margin-top: 30px; }
.result-list, .list { display: grid; gap: 12px; }
.result { min-height: 83px; padding: 15px 18px; display: flex; align-items: center; gap: 15px; }
.result:hover { border-color: #bdc9f5; }
.result h2 { margin-bottom: 5px; font-size: 1.15rem; }
.result .muted { font-size: 13px; margin: 0; }
.result-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.thumb { width: 53px; height: 53px; flex: none; border-radius: 9px; object-fit: cover; }
.arrow { color: var(--blue); font-size: 20px; }
.search-heading { margin: 24px 0 14px; }
.pill { display: inline-block; color: #1739ab; background: #edf1ff; border-radius: 20px; padding: 5px 12px; font-size: .875rem; font-weight: 700; }
.pill.ready { color: var(--green); background: #e4f3ea; }
.pill.neutral { color: #53596b; background: #efeff2; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 9px; overflow: hidden; background: var(--soft); }
.progress::-webkit-progress-bar { background: var(--soft); }
.progress::-webkit-progress-value { background: var(--blue); border-radius: 9px; }
.progress::-moz-progress-bar { background: var(--blue); }
.fine { font-size: 13px; color: var(--muted); }
.box p:last-child { margin-bottom: 0; }
.offer { margin-top: 10px; padding: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; }
.offer p { margin-bottom: 6px; overflow-wrap: anywhere; }
.offer .row { align-items: baseline; flex-wrap: wrap; }
.offer a { color: var(--blue); text-decoration: underline; }
.price { color: var(--blue); font-weight: 760; white-space: nowrap; }
.plans .box p { margin-bottom: 12px; }
.plans .box p:last-child { margin-bottom: 0; }
.plans ul { margin: 5px 0 0; padding-left: 20px; }
.plans li + li { margin-top: 6px; }
dialog { width: min(510px, calc(100vw - 30px)); max-height: calc(100svh - 30px); border: 1px solid var(--line); padding: 0; border-radius: 16px; color: var(--ink); background: var(--white); box-shadow: 0 20px 80px #18204540; }
dialog::backdrop { background: #12182f62; }
#dialog-body { padding: clamp(18px, 5vw, 28px); }
.dialog-head { align-items: start; margin-bottom: 8px; }
.dialog-head h2 { margin: 4px 0 0; }
.close { background: var(--soft); color: var(--ink); border: 0; border-radius: 8px; width: 34px; height: 34px; font-size: 21px; line-height: 1; flex: none; }
.form { display: grid; gap: 13px; }
.field { display: grid; gap: 5px; font-size: 13px; font-weight: 700; }
.field input, .field textarea { width: 100%; border: 1px solid #d6d7de; border-radius: 8px; padding: 9px 10px; background: white; color: var(--ink); font-size: 15px; font-weight: 400; }
.field textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.error { color: #a12432; margin: 0; font-size: 13px; }
#toast:empty { display: none; }
#toast { position: fixed; z-index: 4; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: calc(100vw - 30px); padding: 10px 17px; border-radius: 9px; background: var(--ink); color: white; font-size: 14px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.noscript { text-align: center; }
@media (max-width: 650px) {
  .topbar, .footer { padding-left: 15px; padding-right: 15px; }
  .topbar { gap: 9px; }
  .brand { font-size: 16px; gap: 5px; }
  .brand-icon { width: 27px; height: 27px; font-size: 21px; }
  .topbar nav { gap: 10px; font-size: 12px; }
  .nav-supplier { padding: 5px 6px; }
  .nav-supplier span { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .wrap { padding-top: 29px; }
  .savings { padding-top: 23px; }
}
@media (max-width: 360px) {
  .topbar nav { gap: 6px; }
  .brand { font-size: 14px; }
  .search { padding-left: 10px; gap: 8px; }
}

.group-page { max-width: 1080px; }
.group-hero {
  border-radius: 24px;
  padding: clamp(25px, 6vw, 64px);
  margin-bottom: 22px;
  color: white;
  background: radial-gradient(ellipse at 100% 0%, #355bdc, transparent 72%), linear-gradient(115deg, #14235b, #1d3a9e);
}
.group-heading { max-width: 820px; margin: 16px 0 0; overflow-wrap: anywhere; }
.group-hero p { max-width: 620px; margin: 16px 0 0; color: #edf1ff; font-size: clamp(1rem, 2vw, 1.15rem); overflow-wrap: anywhere; }
.group-stack { grid-column: 1; grid-row: 1; display: grid; gap: 16px; min-width: 0; }
.group-page .box { border-radius: 18px; box-shadow: 0 6px 22px #202e5510; }
.group-page h2 { font-size: 1.38rem; }
.offer-empty { margin-top: 15px; padding: 17px; border-radius: 12px; background: var(--paper); }
.offer-empty h3 { margin-bottom: 6px; }
.group-options .actions { margin-top: 16px; }
.saved-overview { color: var(--muted); overflow-wrap: anywhere; }
.choice-preview { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 14px; }
.choice-preview h3 { font-size: 15px; letter-spacing: 0; margin-bottom: 9px; }
.choice-preview ul { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: 6px; }
.choice-preview li { background: var(--soft); border-radius: 8px; padding: 4px 10px; font-size: 14px; overflow-wrap: anywhere; }
.sources { margin-top: 18px; color: var(--muted); font-size: 14px; }
.sources a { color: var(--blue); text-decoration: underline; }
.sources ul { padding-left: 21px; overflow-wrap: anywhere; }
.sources summary, .form-extra summary { cursor: pointer; }
.pledge-panel { grid-column: 2; grid-row: 1; position: sticky; top: 18px; }
.goal-progress { margin: 18px 0; }
.goal-progress .row { align-items: baseline; flex-wrap: wrap; gap: 2px 8px; color: var(--muted); font-size: .875rem; }
.goal-progress strong { color: var(--ink); font-size: 1.18rem; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.goal-progress .progress { display: block; margin-top: 6px; }
.pledge-panel .actions { align-items: stretch; }
.pledge-panel .actions > .btn { flex: 1 1 105px; padding-inline: 10px; text-align: center; }
.pledge-note { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 16px; }
.pledge-note strong { color: var(--ink); }
.field-hint, .form-note { color: var(--muted); font-size: 13px; font-weight: 400; margin: 0; }
.form-extra { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.form-extra > :not(summary) { margin: 11px 0 0; }
.form-extra summary { font-weight: 700; font-size: 14px; color: var(--deep); }
.contact-list { list-style: none; margin: 0; padding: 0; overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .pledge-panel, .group-stack { grid-area: auto; }
  .pledge-panel { position: static; }
  .group-hero { border-radius: 16px; }
}
