:root {
  --ink: #2e2e2e;
  --ink-soft: #5d5d5d;
  --paper: #ffffff;
  --paper-soft: #f5f4f1;
  --line: rgba(46, 46, 46, 0.16);
  --shadow: 0 24px 60px rgba(46, 46, 46, 0.12);
  --radius-image: 20px;
  --radius-button: 32px;
  --page: min(1440px, calc(100% - 48px));
  --font-body: "Lato", sans-serif;
  --font-heading: "Playfair Display", serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

body.is-locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--paper);
  border: 1px solid var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.preview-banner {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.preview-banner span {
  opacity: 0.72;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--page);
  min-height: 68px;
  margin: 0 auto;
}

.wordmark {
  display: inline-grid;
  place-items: center;
}

.wordmark picture {
  display: contents;
}

.wordmark__image {
  display: block;
  width: 54px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 0;
}

.menu-button > span:not(.visually-hidden) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 28%);
  width: var(--page);
  min-height: 168px;
  margin: 12px auto 0;
  overflow: hidden;
  border-radius: var(--radius-image);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 32px;
  background: var(--paper-soft);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.6);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-heading);
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.hero__intro {
  max-width: 840px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.hero .eyebrow { margin-bottom: 8px; font-size: 10px; }
.hero__help { font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.hero__help span { display: inline-block; margin-left: 4px; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-button);
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(46, 46, 46, 0.28);
  outline-offset: 3px;
}

.button--primary {
  background: var(--ink);
  color: var(--paper);
}

.button--primary:hover {
  background: #111111;
}

.button--secondary {
  background: transparent;
  color: var(--ink);
}

.button--wide {
  width: 100%;
}

.hero__art,
.goal-visual {
  position: relative;
  overflow: hidden;
}

.hero__art {
  background: #d3c39f;
}

.hero__art picture {
  display: contents;
}

.hero__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
}

.goal-visual {
  background: #1d1d1d;
  color: white;
}

.goal-visual::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 30%, rgba(255, 255, 255, 0.12), transparent 23%),
    radial-gradient(circle at 76% 66%, rgba(255, 255, 255, 0.07), transparent 30%);
  content: "";
}

.goal-visual--image::before {
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.28), transparent 38%, rgba(0,0,0,.08));
}

.goal-visual__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  width: var(--page);
  margin: 0 auto;
  padding: 64px 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 60px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading > p {
  margin-bottom: 4px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.section-heading--compact {
  grid-template-columns: 1fr;
}

.wishlist-section { padding-top: 28px; scroll-margin-top: 20px; }
.wishlist-heading { grid-template-columns: 1fr auto; gap: 20px; margin-bottom: 16px; align-items: center; }
.wishlist-heading h2 { display: flex; align-items: center; gap: 12px; font-size: 30px; }
.item-count { padding: 5px 9px; border: 1px solid var(--line); border-radius: 99px; font: 700 11px/1 var(--font-body); letter-spacing: 0; white-space: nowrap; }
.wishlist-sort { display: flex; gap: 10px; align-items: center; color: var(--ink-soft); font-size: 12px; }
.wishlist-sort select { max-width: 100%; padding: 10px 28px 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); cursor: pointer; font-size: 13px; }
.priority-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.priority-filters button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 700; }
.priority-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.priority-filters button:hover { box-shadow: 0 0 0 1px var(--ink); }
.priority-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.priority-dot--high { background: #bb6247; }
.priority-dot--medium { background: #b48630; }
.priority-dot--low { background: #628676; }
.priority-badge { position: absolute; bottom: 12px; left: 12px; z-index: 2; padding: 5px 10px; border-radius: 99px; font-size: 11px; font-weight: 900; line-height: 1.4; text-transform: capitalize; box-shadow: 0 1px 5px #0000000d; }
.priority-badge--high { background: #fae5db; color: #873d28; }
.priority-badge--medium { background: #fbefce; color: #76530b; }
.priority-badge--low { background: #e1eee4; color: #345b43; }

.featured-goal {
  display: grid;
  gap: 28px;
  min-height: 430px;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) 1.1fr;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-image);
}

.goal-visual {
  min-height: 320px;
}

.goal-visual__label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 5px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visual-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 164px;
  height: 164px;
  transform: translate(-50%, -50%);
}

.visual-icon::before,
.visual-icon::after,
.visual-icon span {
  position: absolute;
  content: "";
}

.visual-signal::before,
.visual-signal::after,
.visual-signal span {
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
}

.visual-signal::before { inset: 4px; }
.visual-signal::after { inset: 34px; }
.visual-signal span { inset: 68px; background: white; }

.visual-power::before {
  top: 8px;
  right: 22px;
  bottom: 8px;
  left: 22px;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 18px;
}

.visual-power::after {
  top: -3px;
  left: 65px;
  width: 34px;
  height: 12px;
  background: white;
  border-radius: 8px 8px 0 0;
}

.visual-power span {
  top: 44px;
  left: 70px;
  width: 24px;
  height: 74px;
  background: white;
  clip-path: polygon(48% 0, 100% 0, 66% 38%, 100% 38%, 22% 100%, 42% 52%, 0 52%);
}

.visual-camera::before {
  top: 38px;
  right: 12px;
  bottom: 28px;
  left: 12px;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 20px;
}

.visual-camera::after {
  top: 56px;
  left: 55px;
  width: 52px;
  height: 52px;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: inset 0 0 0 13px rgba(255,255,255,.16);
}

.visual-camera span {
  top: 25px;
  left: 35px;
  width: 48px;
  height: 18px;
  background: white;
  border-radius: 8px 8px 0 0;
}

.featured-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 6vw, 76px);
}

.featured-card h3 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.05;
}

.featured-card__description {
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.progress {
  margin-bottom: 26px;
}

.progress__labels,
.progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.progress__labels {
  align-items: end;
  margin-bottom: 12px;
}

.progress__labels strong {
  font-family: var(--font-heading);
  font-size: 27px;
}

.progress__labels span,
.progress__meta {
  color: var(--ink-soft);
  font-size: 13px;
}

.progress__track {
  height: 10px;
  overflow: hidden;
  background: #e4e2dd;
  border-radius: 999px;
}

.progress__bar {
  width: var(--progress, 0%);
  height: 100%;
  background: var(--ink);
  border-radius: inherit;
  transition: width 700ms cubic-bezier(.2,.8,.2,1);
}

.progress__meta {
  margin-top: 10px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.card-actions__note {
  color: var(--ink-soft);
  font-size: 13px;
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.goal-grid > .empty-card, .goal-grid > .loading-card { grid-column: 1 / -1; }

.goal-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-image);
}

.goal-card .goal-visual {
  min-height: 0;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
}

.goal-card .visual-icon { transform: translate(-50%, -50%) scale(.65); }

.goal-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.goal-card h3,
.completed-card h3 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.3;
}

.goal-card__body > p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.goal-card .progress { margin-top: auto; margin-bottom: 18px; }
.goal-card .progress__labels { gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.goal-card .progress__track { height: 6px; }
.goal-card .progress__meta { gap: 6px; margin-top: 8px; font-size: 11px; flex-wrap: wrap; }
.goal-card .progress__labels span { font-size: 12px; }

.goal-card .progress__labels strong {
  font-family: var(--font-body);
  font-size: 18px;
}

.goal-card .button {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  font-size: 13px;
}

.how-it-works {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  width: var(--page);
  margin: 64px auto 0;
  padding: clamp(48px, 7vw, 84px);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-image);
}

.how-it-works__intro {
  padding-right: 60px;
}

.how-it-works__description { margin: 24px 0 0; color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.6; }

.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 54px 145px 1fr;
  gap: 18px;
  align-items: start;
  padding: 25px 0;
  border-top: 1px solid rgba(255,255,255,.2);
}

.steps li:last-child {
  border-bottom: 1px solid rgba(255,255,255,.2);
}

.step-number {
  color: rgba(255,255,255,.5);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.steps h3 {
  margin: 0;
  font-size: 16px;
}

.steps p {
  margin: 0;
  color: rgba(255,255,255,.67);
  line-height: 1.65;
}

.completed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.completed-card {
  padding: 28px;
  background: var(--paper-soft);
  border-radius: var(--radius-image);
}

.completed-card__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 36px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  font-weight: 900;
}

.completed-card__image {
  width: calc(100% + 56px);
  height: 180px;
  margin: -28px -28px 26px;
  object-fit: cover;
  border-radius: var(--radius-image) var(--radius-image) 0 0;
}

.completed-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.loading-card,
.empty-card {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 40px;
  background: var(--paper-soft);
  border-radius: var(--radius-image);
  color: var(--ink-soft);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  width: var(--page);
  margin: 120px auto 0;
  padding: 54px 0 38px;
  border-top: 1px solid var(--line);
}

.wordmark--footer {
  margin-bottom: 8px;
}

.wordmark--footer .wordmark__image {
  width: 76px;
}

.site-footer p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-content: start;
  justify-content: end;
  font-size: 14px;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

.site-footer__copyright {
  grid-column: 1 / -1;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.support-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  border: 0;
  border-radius: var(--radius-image);
  box-shadow: var(--shadow);
}

.support-dialog::backdrop {
  background: rgba(20,20,20,.72);
  backdrop-filter: blur(6px);
}

.support-form {
  padding: clamp(28px, 5vw, 48px);
}

.support-form__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.support-form__header h2 {
  font-size: clamp(32px, 5vw, 44px);
}

.icon-button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--paper-soft);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.support-form__goal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  padding: 14px 18px;
  background: var(--paper-soft);
  border-radius: 12px;
  font-size: 13px;
}

.amount-fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.amount-fieldset legend,
.field > span:first-child {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 700;
}

.field small {
  color: var(--ink-soft);
  font-weight: 400;
}

.amount-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.amount-options input {
  position: absolute;
  opacity: 0;
}

.amount-options span {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

.amount-options input:checked + span {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.amount-options input:focus-visible + span {
  outline: 3px solid rgba(46,46,46,.22);
  outline-offset: 2px;
}

.field {
  display: block;
  margin-bottom: 20px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  resize: vertical;
}

.money-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.money-input > span {
  padding-left: 15px;
  font-weight: 700;
}

.money-input input {
  border: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
}

.toggle-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  margin-bottom: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.toggle-field input {
  position: absolute;
  opacity: 0;
}

.toggle-field__control {
  position: relative;
  width: 42px;
  height: 24px;
  background: #d7d5d0;
  border-radius: 999px;
}

.toggle-field__control::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  content: "";
  transition: transform 160ms ease;
}

.toggle-field input:checked + .toggle-field__control {
  background: var(--ink);
}

.toggle-field input:checked + .toggle-field__control::after {
  transform: translateX(18px);
}

.support-summary {
  margin: 26px 0 18px;
  padding: 20px;
  background: var(--paper-soft);
  border-radius: 14px;
}

.support-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.support-summary p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.checkout-handoff {
  margin: 0 0 18px;
  padding: 18px 20px;
  background: #edf5ef;
  border: 1px solid rgba(53, 99, 74, .24);
  border-radius: 14px;
}

.checkout-handoff strong,
.checkout-handoff code {
  display: block;
}

.checkout-handoff code {
  margin: 8px 0;
  padding: 9px 11px;
  overflow-wrap: anywhere;
  background: white;
  border-radius: 8px;
  color: #254b37;
  font: 700 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.checkout-handoff p {
  margin: 0;
  color: #35634a;
  font-size: 12px;
}

.support-notice {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: min(380px, calc(100vw - 48px));
  padding: 16px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: toast-in 280ms ease both;
}

.toast__mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  background: white;
  color: var(--ink);
  border-radius: 50%;
  font-weight: 900;
}

.toast div {
  display: grid;
}

.toast span:last-child {
  color: rgba(255,255,255,.68);
  font-size: 13px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1199px) {
  .goal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root {
    --page: calc(100% - 32px);
  }

  .site-header {
    min-height: 62px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    display: none;
    padding: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 6px;
  }

  .featured-card,
  .how-it-works {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 25%;
    min-height: 0;
  }

  .hero__copy {
    padding: 22px 24px;
  }

  .hero__art {
    min-height: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  .wishlist-heading { grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
  .wishlist-heading h2 { font-size: 28px; }
  .wishlist-sort { display: grid; gap: 4px; }
  .goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .featured-card .goal-visual {
    min-height: 380px;
  }

  .how-it-works__intro {
    padding: 0 0 42px;
  }

  .completed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --page: calc(100% - 24px);
  }

  .preview-banner {
    flex-wrap: wrap;
  }

  .wordmark__image {
    width: 46px;
  }

  .hero {
    grid-template-columns: 1fr;
    margin-top: 6px;
  }

  .hero__copy {
    padding: 16px 20px;
  }

  .hero__art {
    display: none;
  }

  h1 {
    font-size: 26px;
  }

  .hero__intro { font-size: 13px; }
  .hero__intro { margin-bottom: 0; }
  .hero__actions { display: none; }

  .section {
    padding-top: 48px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .wishlist-section { padding-top: 24px; }
  .wishlist-heading { grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
  .wishlist-sort { display: flex; justify-content: space-between; }
  .wishlist-sort select { padding: 8px 24px 8px 10px; font-size: 12px; }
  .priority-filters { flex-wrap: nowrap; gap: 6px; margin-bottom: 14px; }
  .priority-filters button { min-height: 38px; padding: 7px 10px; font-size: 11px; }
  .priority-dot { width: 6px; height: 6px; }

  .featured-card__body {
    padding: 28px 22px;
  }

  .featured-card .goal-visual {
    min-height: 280px;
  }

  .card-actions {
    display: grid;
  }

  .completed-grid {
    grid-template-columns: 1fr;
  }

  .goal-grid { gap: 10px; }
  .goal-card__body { padding: 12px; }
  .goal-card h3 { font-size: 15px; }
  .goal-card__body > .goal-card__description { -webkit-line-clamp: 2; font-size: 12px; }
  .goal-card .progress__labels strong { font-size: 16px; }
  .goal-card .visual-icon { transform: translate(-50%, -50%) scale(.45); }
  .goal-visual__label { top: 8px; left: 8px; max-width: calc(100% - 16px); font-size: 8px; padding: 4px 7px; }
  .priority-badge { bottom: 8px; left: 8px; font-size: 10px; padding: 4px 7px; }

  .how-it-works {
    margin-top: 48px;
    padding: 46px 24px;
  }

  .steps li {
    grid-template-columns: 36px 1fr;
  }

  .steps p {
    grid-column: 2;
  }

  .site-footer {
    grid-template-columns: 1fr;
    margin-top: 90px;
  }

  .site-footer nav {
    justify-content: start;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .amount-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 359px) {
  .goal-grid { grid-template-columns: 1fr; }
  .priority-filters { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html.is-embedded {
  scroll-padding-top: 0;
}

.payment-status {
  margin: 28px auto 0;
  width: min(1160px, calc(100% - 40px));
  padding: 20px 24px;
  border: 1px solid #e4b94f;
  border-radius: 14px;
  background: #fff8e5;
  color: #2e2e2e;
}

.payment-status p { margin: 0; }
.payment-status button { margin-top: 14px; }
.payment-status[hidden], .payment-status button[hidden] { display: none; }

.is-embedded .preview-banner,
.is-embedded .site-header,
.is-embedded .site-footer {
  display: none !important;
}

.is-embedded main {
  padding-bottom: 72px;
}

.is-embedded .hero {
  margin-top: 0;
}
