/* ---------- the pledge page: the cause up top, a stepped form, a live "your pledge would pay for" card ---------- */
.pl-hero { position: relative; overflow: hidden; background: var(--brass-soft); border-bottom: 1px solid #ecdcb4; }
.pl-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(169, 123, 31, 0.16) 1px, transparent 0); background-size: 22px 22px; mask-image: linear-gradient(100deg, transparent 30%, #000 85%); pointer-events: none; }
.pl-hero-in { position: relative; display: grid; justify-items: center; text-align: center; gap: 18px; padding-block: clamp(44px, 6vw, 80px); }
.pl-hero .eyebrow { color: var(--brass-ink); }
.pl-hero h1 { font: 600 clamp(2.4rem, 5vw, 3.9rem)/1.04 var(--serif); letter-spacing: -0.018em; color: var(--ink); }
.pl-hero h1 em { font-style: italic; color: var(--brass-ink); }
.pl-hero .lede { max-width: 56ch; }

.pl-cause { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; text-align: left; width: min(100%, 640px); margin-top: 8px; padding: 18px 22px 18px 18px; background: #fff; border: 1px solid #ecdcb4; border-radius: 20px; color: var(--ink); box-shadow: 0 1px 2px rgba(116, 83, 15, 0.08), 0 18px 40px -20px rgba(116, 83, 15, 0.5); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
a.pl-cause:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 1px 2px rgba(116, 83, 15, 0.08), 0 24px 48px -20px rgba(116, 83, 15, 0.6); }
.pl-cause .qd-icon { margin: 0; width: 66px; height: 66px; border-radius: 18px; }
.pl-cause small { display: block; font: 600 0.68rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-ink); }
.pl-cause b { display: block; margin: 7px 0 5px; font: 600 1.25rem/1.25 var(--serif); }
.pl-cause span:not(.qd-icon) { font-size: 0.85rem; color: var(--sub); }

.pl-promises { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: min(100%, 980px); text-align: left; }
.pl-promises li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 14px; background: rgba(255, 255, 255, 0.7); border: 1px solid #efe0bd; border-radius: 14px; }
.pl-promises li > span { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brass); color: #fff; }
.pl-promises b { display: block; font: 600 0.92rem/1.2 var(--sans); color: var(--ink); }
.pl-promises small { font-size: 0.78rem; color: var(--sub); line-height: 1.35; }
@media (max-width: 860px) { .pl-promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* layout */
.pl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(28px, 4vw, 56px); align-items: start; max-width: 1080px; margin-inline: auto; }
.pl-side { display: grid; gap: 16px; }
@media (min-height: 980px) and (min-width: 941px) { .pl-side { position: sticky; top: 92px; } }

/* a patient's video under the impact card */
.pl-story { margin: 0; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); }
.pl-story video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--ink); }
.pl-story-text { display: grid; gap: 6px; padding: 16px 20px 18px; }
.pl-story blockquote { margin: 0 0 4px; font: italic 400 1.02rem/1.5 var(--serif-text); color: var(--ink); }
.pl-story-text > b { font: 600 0.95rem/1.2 var(--sans); color: var(--ink); }
.pl-story-text > small { font-size: 0.8rem; color: var(--sub); }
.pl-story-text p { font-size: 0.86rem; line-height: 1.5; color: var(--ink-2); }
.pl-story-text a { font: 600 0.88rem/1.3 var(--sans); color: var(--pine); }
.pl-story-frame { position: relative; display: grid; place-items: center; align-content: center; gap: 12px; aspect-ratio: 16 / 9; background: var(--pine-wash); border-bottom: 1px solid var(--line); overflow: hidden; }
.pl-story-frame::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(18, 107, 80, 0.14) 1px, transparent 0); background-size: 18px 18px; }
.pl-story-frame > * { position: relative; }
.pl-play { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; padding-left: 4px; background: #fff; color: var(--pine); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.55), var(--sh-2); }
.pl-story-frame small { font: 600 0.68rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--pine-deep); }
@media (max-width: 940px) { .pl-grid { grid-template-columns: minmax(0, 1fr); } .pl-side { position: static; order: -1; } }

/* the form */
.pl-form { display: grid; gap: 18px; }
.pl-step { margin: 0; padding: 22px 24px 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--sh); display: grid; gap: 16px; min-width: 0; }
.pl-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; font: 600 1.18rem/1.2 var(--serif); color: var(--ink); }
.pl-step legend + * { clear: both; }
.pl-step legend span { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 0.82rem/1 var(--sans); }
.pl-amount-show { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 6px 0 2px; }
.pl-big { font: 600 clamp(3rem, 6vw, 4.2rem)/1 var(--serif); color: var(--brass-ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pl-amount-show small { font-size: 0.9rem; color: var(--sub); }
.pl-amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pl-amounts button { min-height: 52px; border-radius: 14px; border: 1px solid #e5d3a6; background: #fffdf8; color: var(--brass-ink); font: 600 1.05rem/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; transition: transform 0.12s var(--ease), background 0.12s, box-shadow 0.12s; }
.pl-amounts button:hover { transform: translateY(-1px); border-color: var(--brass); }
.pl-amounts button.on { background: var(--brass-ink); border-color: var(--brass-ink); color: #fff; box-shadow: 0 8px 18px -8px rgba(116, 83, 15, 0.85); }
.pl-custom { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; overflow: hidden; }
.pl-custom span { padding: 0 4px 0 16px; font: 600 1.05rem/1 var(--sans); color: var(--sub); }
.pl-custom input { flex: 1; border: 0 !important; box-shadow: none !important; padding: 14px 14px 14px 4px; font: 500 1rem/1 var(--sans); background: transparent; }
.pl-custom:focus-within { border-color: var(--pine-2); box-shadow: 0 0 0 3px var(--pine-soft); }
.pl-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .pl-two, .pl-amounts { grid-template-columns: 1fr 1fr; } }
.pl-form textarea { min-height: 84px; }

.pl-toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 0.92rem; color: var(--ink-2); }
.pl-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.pl-toggle i { width: 40px; height: 24px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background 0.15s; }
.pl-toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.18s var(--ease); }
.pl-toggle input:checked + i { background: var(--pine); }
.pl-toggle input:checked + i::after { transform: translateX(16px); }
.pl-toggle input:focus-visible + i { box-shadow: 0 0 0 3px var(--pine-soft); }

.pl-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pl-rules button { display: grid; gap: 5px; align-content: start; text-align: left; padding: 14px 14px 14px 40px; position: relative; border-radius: 14px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.pl-rules button::before { content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; }
.pl-rules button.on { border-color: var(--pine); background: var(--pine-wash); }
.pl-rules button.on::before { border-color: var(--pine); box-shadow: inset 0 0 0 4px #fff; background: var(--pine); }
.pl-rules b { font: 600 0.9rem/1.25 var(--sans); color: var(--ink); }
.pl-rules small { font-size: 0.78rem; line-height: 1.4; color: var(--sub); }
@media (max-width: 720px) { .pl-rules { grid-template-columns: minmax(0, 1fr); } }

.pl-change summary { cursor: pointer; font: 600 0.88rem/1.3 var(--sans); color: var(--pine); }
.pl-change[open] summary { margin-bottom: 10px; }
.pl-agree { padding: 14px 16px; background: var(--wash); border-radius: 14px; }
.pl-submit { display: grid; justify-items: center; gap: 4px; width: 100%; min-height: 64px; padding: 12px; border: 0; border-radius: 18px; background: var(--brass); color: #fff; cursor: pointer; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 30px -12px rgba(116, 83, 15, 0.9); transition: transform 0.15s var(--ease), background 0.15s, box-shadow 0.15s; }
.pl-submit span { font: 600 1.18rem/1 var(--sans); }
.pl-submit b { font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-submit small { font-size: 0.78rem; opacity: 0.85; }
.pl-submit:hover { background: var(--brass-ink); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 20px 38px -14px rgba(116, 83, 15, 0.95); }
.pl-submit:disabled { opacity: 0.7; transform: none; cursor: wait; }

/* the live impact card */
.pl-impact { border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); }
.pl-impact-head { display: grid; gap: 6px; padding: 22px 24px 18px; background: var(--pine-deep); color: #fff; position: relative; overflow: hidden; }
.pl-impact-head::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.1) 1px, transparent 0); background-size: 16px 16px; }
.pl-impact-head > * { position: relative; }
.pl-impact-head small { font: 600 0.68rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #a9d3bf; }
.pl-impact-head b { font: 600 2.6rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.pl-impact-bar { display: flex; gap: 3px; height: 8px; margin: 18px 22px 4px; }
.pl-impact-bar i { border-radius: 999px; }
.s0 { background: #74530f; } .s1 { background: #a97b1f; } .s2 { background: #c9a24f; } .s3 { background: #dfc58a; }
.pl-impact-rows { list-style: none; margin: 0; padding: 6px 22px 4px; display: grid; }
.pl-impact-rows li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.pl-impact-rows li:last-child { border-bottom: 0; }
.pl-impact-rows .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; }
.pl-impact-rows b { display: block; font: 600 0.9rem/1.3 var(--sans); color: var(--ink); }
.pl-impact-rows small { display: block; margin-top: 2px; font-size: 0.76rem; line-height: 1.4; color: var(--sub); }
.pl-impact-rows strong { font: 600 1.1rem/1.2 var(--serif); color: var(--brass-ink); font-variant-numeric: tabular-nums; }
.pl-impact-foot { margin: 0; padding: 14px 22px 20px; font-size: 0.78rem; line-height: 1.5; color: var(--sub); background: var(--wash); }

/* after a pledge */
.pl-thanks { display: grid; justify-items: center; text-align: center; gap: 14px; padding: clamp(32px, 5vw, 56px); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--sh-2); animation: st-in 0.5s var(--ease) both; }
.pl-thanks-mark { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--pine); color: #fff; box-shadow: 0 0 0 10px var(--pine-soft); animation: stamp 0.5s 0.1s var(--ease) both; }
.pl-thanks h2 { font: 600 clamp(1.7rem, 3vw, 2.3rem)/1.15 var(--serif); }
.pl-thanks p { max-width: 50ch; color: var(--ink-2); }
.pl-thanks-go { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* how the money is shared: four step cards, each split between contributors */
.c0 { background: var(--pine); } .c1 { background: #5fa98a; } .c2 { background: #b9dccb; }
.pl-flow { display: grid; gap: 18px; }
.pl-flow-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 12px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 0.86rem; color: var(--ink-2); justify-self: start; }
.pl-flow-legend > span:first-child { font-weight: 600; color: var(--sub); }
.pl-flow-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.pl-flow-legend b { color: var(--ink); }
.pl-flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.pl-flow-step { display: grid; grid-template-rows: auto 1fr; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.pl-flow-step:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.pl-flow-top { display: grid; gap: 4px; padding: 18px 20px; color: #fff; position: relative; overflow: hidden; }
.pl-flow-top::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); }
.pl-flow-top.s3 { color: var(--brass-ink); }
.pl-flow-top span { font: 600 0.66rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.pl-flow-top b { font: 600 2.3rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.pl-flow-top small { font-size: 0.8rem; opacity: 0.9; }
.pl-flow-body { display: grid; gap: 10px; align-content: start; padding: 18px 20px 20px; }
.pl-flow-body h3 { font: 600 1.06rem/1.3 var(--serif); }
.pl-flow-body p { font-size: 0.84rem; line-height: 1.5; color: var(--sub); }
.pl-flow-bar { display: flex; gap: 2px; height: 10px; margin-top: 4px; border-radius: 999px; overflow: hidden; }
.pl-flow-body dl { margin: 0; display: grid; gap: 6px; }
.pl-flow-body dl > div { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8rem; }
.pl-flow-body dt { color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.pl-flow-body dt i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.pl-flow-body dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .pl-flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pl-flow-steps { grid-template-columns: minmax(0, 1fr); } .pl-flow-legend { border-radius: 16px; } }

/* the public pledge list */
.pl-none { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 26px 28px; background: #fff; border: 1.5px dashed #e3cf9d; border-radius: 20px; }
.pl-none-mark { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--brass-soft); color: var(--brass); }
.pl-none b { font: 600 1.2rem/1.3 var(--serif); color: var(--ink); }
.pl-none p { margin-top: 4px; font-size: 0.92rem; color: var(--sub); }
@media (max-width: 640px) { .pl-none { grid-template-columns: minmax(0, 1fr); justify-items: start; } }
.pl-list { display: grid; gap: 10px; }
.pl-entry { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.pl-entry b { font-weight: 600; }
.pl-entry small { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--sub); }
.pl-entry p { margin-top: 6px; font: italic 400 0.94rem/1.5 var(--serif-text); color: var(--ink-2); }
.pl-entry strong { font: 600 1.3rem/1.2 var(--serif); color: var(--brass-ink); font-variant-numeric: tabular-nums; }

/* fine print */
.pl-fine summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
.pl-fine summary::-webkit-details-marker { display: none; }
.pl-fine summary::after { content: "+"; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pine-wash); color: var(--pine); font: 400 1.2rem/1 var(--sans); transition: transform 0.2s var(--ease); }
.pl-fine details[open] summary::after { transform: rotate(45deg); }
.pl-fine details { transition: box-shadow 0.2s; }
.pl-fine details:hover { box-shadow: var(--sh); }
.pl-fine { display: grid; gap: 10px; }
.pl-fine details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.pl-fine summary { cursor: pointer; padding: 16px 0; font: 600 0.98rem/1.3 var(--sans); color: var(--ink); }
.pl-fine details[open] summary { border-bottom: 1px solid var(--line-2); }
.pl-fine ul, .pl-fine p { margin: 14px 0 18px; padding-left: 20px; display: grid; gap: 8px; font-size: 0.92rem; color: var(--ink-2); }
.pl-fine p { padding-left: 0; display: block; }

/* the home page pledge band: amount + promises on the left, the live impact card on the right */
.hf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(24px, 4vw, 48px); align-items: start; }
.hf-pick { display: grid; gap: 18px; }
.hf-step { gap: 12px; }
.hf-promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hf-promises li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 14px; background: rgba(255, 255, 255, 0.75); border: 1px solid #efe0bd; border-radius: 14px; }
.hf-promises li > span { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brass); color: #fff; }
.hf-promises b { display: block; font: 600 0.9rem/1.25 var(--sans); color: var(--ink); }
.hf-promises small { font-size: 0.78rem; line-height: 1.4; color: var(--sub); }
.hf-go { display: grid; justify-items: center; gap: 10px; text-align: center; }
a.hf-submit, a.hf-submit:hover { align-content: center; color: #fff; text-decoration: none; }
@media (max-width: 940px) { .hf-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .hf-promises { grid-template-columns: minmax(0, 1fr); } }
