/* abforabortion donate page: standalone stylesheet, MOBILE FORWARD.
   360px is the design target; desktop inherits from min-width: 700px blocks.
   Palette lifted from the saved site CSS (cream #fefdfc, wild-rose #ffaec7,
   rose-hip #d8306d/#b14069, darkest #0c0c0b) and the dark-to-rose hero
   gradient rule. Display type: clean condensed system stack (no Impact);
   body floor 16px; tap targets 44px minimum, amount pills 64px. */

:root {
  --cream-lightest: #fefdfc;
  --cream: #f8f2e5;
  --cream-darker: #63605b;
  --neutral-darkest: #0c0c0b;
  --neutral-darker: #242423;
  --wild-rose: #ffaec7;
  --wild-rose-dark: #fa82bc;
  --wild-rose-lighter: #ffeef3;
  --rose-hip: #d8306d;
  --rose-hip-dark: #b14069;
  --danger: #df1b41;
  --radius: 1rem;
  --font-heading: "Helvetica Neue Condensed", "Arial Narrow", "Roboto Condensed", Inter, system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tap: 44px;
  /* the garland's own band at the hero's bottom edge: decoration lives only
     below this height; hero padding-bottom is computed from it, so no copy
     can ever fall inside the garland's box, at any viewport width */
  --foliage-h: clamp(3.5rem, 13vw, 12rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background-color: var(--neutral-darkest);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem; /* 16px floor */
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

[hidden] { display: none !important; }

/* their focus rule, verbatim color */
:focus-visible {
  outline: 0.125rem solid #4d65ff;
  outline-offset: 0.125rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  background: var(--cream-lightest);
  color: var(--neutral-darkest);
  border-radius: 100px;
  padding: 0.75rem 1.25rem;
  min-height: var(--tap);
  transition: top 0.2s;
}
.skip-link:focus { top: 0.75rem; }

.container {
  width: 100%;
  padding-inline: 1rem;
  margin-inline: auto;
}

a { color: inherit; }

.display {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* ---------- hero: the stacked mark IS the headline ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(180deg, var(--neutral-darkest), var(--rose-hip-dark));
  /* garland zone + one clean gap: the text column ends above the decor box */
  padding-bottom: calc(var(--foliage-h) + 1.5rem);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3.75rem 0 1.5rem;
}

.hero-mark { margin: 0; }

/* black png on transparency; brightness(0) invert(1) renders it pure white
   and keeps the transparent background. Rose tint tested badly against the
   rose-heavy gradient at the bottom of the hero: white reads cleanest. */
.logo-stacked {
  width: min(100%, 19rem);
  height: auto;
  filter: brightness(0) invert(1);
}

.tagline {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--wild-rose);
  font-size: clamp(1.15rem, 5vw, 1.75rem);
  margin: 1.25rem 0 0;
}

.hero .lede {
  max-width: 34rem;
  margin: 0.875rem auto 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-foliage {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: var(--foliage-h);
  width: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0.9;
}

/* corner rose: shrunk, anchored to the hero's bottom edge and riding the
   garland's corner like on their site; on phones it is removed entirely.
   Its box is capped below the reserved padding, so it never reaches copy. */
.hero-flower {
  position: absolute;
  right: 1%;
  bottom: 0;
  width: clamp(3.5rem, 6.5vw, 5rem);
  height: auto;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 699.5px) {
  .hero-flower { display: none; }
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 100px;
  min-height: 48px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  font-size: 1rem;
  transition: opacity 0.2s, background-color 0.2s, border-color 0.2s;
}

.button.is-donate {
  background-color: var(--wild-rose-dark);
  color: var(--neutral-darkest);
  min-height: 56px;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.button.is-donate:hover { background-color: var(--rose-hip); }
.button.is-donate:disabled { opacity: 0.55; cursor: not-allowed; }
.button.is-fullwidth { width: 100%; }

.button.is-plain {
  background-color: transparent;
  border: 1px solid rgba(12, 12, 11, 0.35);
  color: var(--neutral-darkest);
}
.button.is-plain:hover { border-color: var(--rose-hip); }

.button.is-gofundme {
  background-color: var(--wild-rose-dark);
  color: var(--neutral-darkest);
  font-weight: 700;
  min-height: 52px;
}
.button.is-gofundme:hover { background-color: var(--rose-hip); }

.error {
  color: var(--danger);
  font-size: 0.95rem;
  margin: 0.75rem 0 0;
}

/* ---------- donate portal card ---------- */

.portal-section { padding: 0 0 2rem; }

.portal-card {
  background-color: var(--cream-lightest);
  color: var(--neutral-darkest);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem 1.5rem;
  text-align: center;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 6.5vw, 2.5rem);
}

/* --- amount step: 2x2 thumb grid --- */

.step-intro {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  color: var(--cream-darker);
}

.amount-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.amount-btn {
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  min-height: 64px;
  border-radius: 100px;
  border: 1px solid rgba(12, 12, 11, 0.25);
  background-color: #fff;
  color: var(--neutral-darkest);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.amount-btn:hover { border-color: var(--rose-hip); }
.amount-btn.is-selected {
  background-color: var(--neutral-darkest);
  color: #fff;
  border-color: var(--neutral-darkest);
}

.custom-amount {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--cream-darker);
}
.custom-amount input {
  flex: 1;
  font: inherit;
  font-size: 1.05rem;
  min-height: 56px;
  border-radius: 100px;
  border: 1px solid rgba(12, 12, 11, 0.25);
  color: var(--neutral-darkest);
  text-align: center;
  -moz-appearance: textfield;
}
.custom-amount input::-webkit-outer-spin-button,
.custom-amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.amount-cta { margin-bottom: 0.25rem; }

@keyframes ringpulse {
  0% { box-shadow: 0 0 0 0 rgba(216, 48, 109, 0.55); }
  100% { box-shadow: 0 0 0 16px rgba(216, 48, 109, 0); }
}
.amount-row.pulse { animation: ringpulse 0.7s ease-out 2; border-radius: 1.25rem; }

/* --- intake step: bottom sheet on phones, centered card on desktop --- */

.loading-note { font-size: 0.95rem; color: var(--cream-darker); }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background-color: rgba(12, 12, 11, 0.55);
}

.sheet {
  position: fixed;
  z-index: 50;
  left: 50%;
  transform: translate(-50%, 0);
  bottom: 0;
  width: 100%;
  max-width: 34rem;
  max-height: 88vh;
  overflow-y: auto;
  background-color: var(--cream-lightest);
  color: var(--neutral-darkest);
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 0.5rem 1.15rem calc(1.25rem + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(12, 12, 11, 0.45);
  text-align: left;
}

.sheet-grip {
  width: 3rem;
  height: 5px;
  border-radius: 100px;
  background-color: rgba(12, 12, 11, 0.25);
  margin: 0.35rem auto 0.75rem;
}

/* heading row: honest short title left, the skip is the first control
   so nobody reads the fields as a requirement */
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.sheet-head .skip-link-btn { flex: none; padding: 0.5rem 0.75rem; }

.sheet-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--neutral-darker);
  margin: 0;
  line-height: 1.3;
}

.chosen-amount {
  font-size: 0.95rem;
  color: var(--cream-darker);
  margin: 0 0 1rem;
}

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.req-hint { color: var(--cream-darker); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  min-height: 48px;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(12, 12, 11, 0.25);
  border-radius: 0.625rem;
  background-color: #fff;
  color: var(--neutral-darkest);
}
.field textarea { resize: vertical; }

.interests {
  border: 0;
  padding: 0 0 0.5rem;
}
.interests legend {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0;
  margin-bottom: 0.4rem;
}

.check-line {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  min-height: var(--tap);
  padding: 0.35rem 0;
  font-size: 1rem;
  cursor: pointer;
}
.check-line input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0.15rem 0 0;
  accent-color: var(--rose-hip);
}

.consent { margin: 0.75rem 0 1rem; }

.intake-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.skip-link-btn {
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.95rem;
  color: var(--rose-hip-dark);
  cursor: pointer;
  min-height: var(--tap);
  padding: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}
.skip-link-btn:hover { color: var(--rose-hip); }

.linkback {
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--rose-hip-dark);
  cursor: pointer;
  min-height: var(--tap);
  padding: 0.35rem 0;
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}
.linkback:hover { color: var(--rose-hip); }

/* --- gofundme fallback --- */

#donate-fallback { margin-top: 1.5rem; }
.donate-fallback .hint {
  font-size: 0.9rem;
  color: var(--cream-darker);
  margin: 0 0 0.6rem;
}
.subtle-note {
  font-size: 0.85rem;
  color: var(--cream-darker);
  margin: 0.75rem 0 0;
}

/* ---------- sticky bottom donate bar (phones) ---------- */

.sticky-donate-btn { display: none; }

body.sticky-ready .sticky-donate-btn {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 56px;
  padding: 0 1rem 0;
  padding-bottom: env(safe-area-inset-bottom);
  border: 0;
  cursor: pointer;
  background-image: linear-gradient(135deg, var(--rose-hip), var(--rose-hip-dark));
  color: #fff;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 -8px 24px rgba(12, 12, 11, 0.4);
}
body.sticky-ready .sticky-donate-btn.is-ready { background-image: linear-gradient(135deg, var(--wild-rose-dark), var(--rose-hip)); color: var(--neutral-darkest); }
body.sticky-ready .sticky-donate-btn:active { filter: brightness(0.94); }

/* room so fixed bar never covers the last bits of content */
body.sticky-ready { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
body.sheet-open .sticky-donate-btn,
body.checkout-active .sticky-donate-btn { display: none; }
body.checkout-active { padding-bottom: 0; }

/* ---------- billboard strip ---------- */

.billboard {
  background-color: var(--cream-lightest);
  color: var(--neutral-darkest);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 2rem;
}
.billboard img { width: 100%; }
.billboard figcaption {
  padding: 0.9rem 1.15rem 1.15rem;
  font-size: 0.9rem;
}
.billboard figcaption a {
  font-size: inherit;
  font-weight: 600;
  color: var(--rose-hip-dark);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.6rem;
}

h3.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
  font-size: 1.6rem;
}

/* ---------- cta cards: stacked, thumb wide ---------- */

.ctas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0 0 2.5rem;
}

.cta-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background-color: var(--cream-lightest);
  color: var(--neutral-darkest);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  transition: background-color 0.2s;
}
.cta-card:hover { background-color: var(--wild-rose-lighter); }
.cta-card.is-static { background-color: var(--cream); }
.cta-card.is-static:hover { background-color: var(--wild-rose-lighter); }
.cta-card p { margin: 0.25rem 0 0; font-size: 0.95rem; }
.cta-card ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 1rem;
}
.cta-card .arrow { margin-top: auto; padding-top: 1rem; font-weight: 600; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem 0 1.75rem;
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-mark { width: 5.5rem; opacity: 0.9; flex: none; }

.insta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  min-height: var(--tap);
}
.insta img { width: 1.35rem; height: auto; }
.insta:hover { color: var(--wild-rose); }

.footer-right { margin-left: auto; }

.exit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--rose-hip);
  color: #fff;
  border-radius: 100px;
  min-height: var(--tap);
  padding: 0 1.25rem;
  text-decoration: none;
  font-weight: 600;
}
.exit:hover { background-color: var(--rose-hip-dark); }

.tiny {
  width: 100%;
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* ---------- return page ---------- */

.return-wrap {
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 3rem 0;
}
.return-wrap h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  font-size: clamp(2.25rem, 9vw, 4.5rem);
}
.return-links { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.return-links .button {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.return-links .button:hover { border-color: var(--wild-rose); }

/* ---------- desktop (700px+): same structure, more air ---------- */

@media (min-width: 700px) {
  body { font-size: 1.0625rem; }

  .container { width: min(76rem, 88%); padding-inline: 0; }

  /* garland stays anchored to the hero's bottom edge (its height rides the
     --foliage-h variable); no extra padding override is needed here */
  .hero-inner { padding: 7rem 0 2rem; }
  .logo-stacked { width: min(60%, 27rem); }
  .hero .lede { font-size: 1.15rem; margin-top: 1.25rem; }
  .tagline { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-top: 1.5rem; }
  .hero-flower { display: block; }

  .portal-card {
    max-width: 36rem;
    margin-inline: auto;
    padding: 2.5rem 2.75rem 2.5rem;
  }
  .portal-section { padding-bottom: 3.5rem; }

  .amount-row { grid-template-columns: repeat(4, 1fr); }
  .custom-amount { grid-column: 1 / -1; margin-top: 0.25rem; }
  .step-intro { font-size: 1rem; }
  .amount-cta { margin-bottom: 0; }

  .billboard { max-width: 56rem; margin-inline: auto; margin-bottom: 2.5rem; }
  .billboard figcaption { padding: 1rem 2rem 1.5rem; font-size: 1rem; }

  /* the sheet moves from bottom sheet to centered dialog on wide screens */
  .sheet {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: var(--radius);
    max-height: 90vh;
    padding: 2rem 2.25rem 2rem;
  }
  .sheet-grip, .skip-link-btn { text-align: center; }

  .ctas { grid-template-columns: 1fr 1fr; max-width: 56rem; margin-inline: auto; margin-bottom: 4rem; gap: 1.25rem; }
  .cta-card { padding: clamp(1.75rem, 3.5vw, 3rem); }
  .cta-card p { font-size: 1rem; }

  .footer { padding: 2.25rem 0 2.5rem; font-size: 0.95rem; }
  .footer-mark { width: 7rem; }
  .tiny { margin-top: 0.5rem; }
}
