@import url('https://fonts.googleapis.com/css2?family=Chewy&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  font-family: 'Nunito', ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #39271f;
  background: #f7efd9;
  --cream: #fff9e9;
  --paper: rgba(255, 249, 233, .94);
  --ink: #39271f;
  --red: #df4534;
  --red-dark: #bd3227;
  --orange: #f08b25;
  --green: #315f49;
  --line: rgba(89, 62, 37, .18);
  --shadow: 0 14px 36px rgba(75, 48, 25, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body { background: linear-gradient(#fff8e7, #f2e5c7); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.app-shell { min-height: 100vh; padding: 14px 18px 24px; }
.topbar {
  max-width: 1600px; margin: 0 auto 12px; min-height: 72px;
  display: grid; grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-leaf { font-size: 34px; filter: drop-shadow(0 2px 2px #0002); }
.brand b { display: block; font-family: 'Chewy', cursive; font-size: 29px; font-weight: 400; letter-spacing: .01em; }
.brand small { display: block; margin-top: -2px; color: #786654; font-size: 13px; }
.main-nav {
  display: flex; gap: 3px; padding: 6px; border-radius: 999px;
  background: rgba(255,255,255,.74); border: 1px solid #ffffffcc; box-shadow: 0 8px 26px #5e452217;
}
.main-nav a { padding: 9px 13px; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 800; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: white; background: var(--red); }
.top-actions { display: flex; justify-content: flex-end; gap: 9px; }
.button {
  border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 900; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--red); box-shadow: 0 8px 18px #ae3a2b31; }
.button.primary:hover { background: var(--red-dark); }
.button.ghost { color: var(--ink); background: #fff9; border: 1px solid var(--line); }
.button.share-primary { color: white; background: var(--green); box-shadow: 0 8px 18px rgba(49,95,73,.28); }
.button.share-primary:hover { background: #244d3a; }
.button.full { width: 100%; }
.hero {
  position: relative; max-width: 1600px; margin: 0 auto; overflow: hidden;
  aspect-ratio: 1672 / 941; min-height: 690px; border-radius: 30px;
  border: 1px solid rgba(78, 105, 79, .22); box-shadow: 0 24px 70px rgba(69, 49, 26, .15);
  isolation: isolate; background: #d9edff;
}
.scene { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tree-layer { position: absolute; left: 50%; pointer-events: none; transform: translateX(-50%); }
.tree-layer > img { display: block; width: 100%; height: auto; transform-origin: 50% 82%; will-change: transform; }
.trunk { width: 34%; bottom: 8.5%; z-index: 4; }
.scene-bird {
  position: absolute; z-index: 7; width: 7.2%; left: 63.7%; top: 37.2%;
  filter: drop-shadow(0 4px 6px rgba(54,37,19,.16)); transform-origin: 50% 100%;
}
.scene-foreground { position: absolute; z-index: 9; left: 0; bottom: 0; width: 100%; height: auto; pointer-events: none; }
.leaf-stage { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; pointer-events: none; }
#leafLayer { pointer-events: all; }
.ambient-leaves { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; }
@keyframes bird-life { 0%,93%,100% { transform: translateY(0) rotate(0); } 95% { transform: translateY(-1px) rotate(-1deg); } 97% { transform: translateY(0) rotate(1deg); } }
.scene-bird { animation: bird-life 11s ease-in-out infinite; }

.falling-leaf {
  position: absolute; top: -12%; width: var(--size); height: var(--size);
  left: var(--left); opacity: var(--opacity); color: var(--leaf-colour);
  animation: leaf-fall var(--duration) linear var(--delay) infinite;
  filter: drop-shadow(0 2px 2px rgba(71,44,22,.12));
}
.falling-leaf svg { display: block; width: 100%; height: 100%; fill: currentColor; }
@keyframes leaf-fall {
  0% { transform: translate3d(0,-10%,0) rotate(var(--start-rot)); }
  45% { transform: translate3d(calc(var(--drift) * .55),55vh,0) rotate(calc(var(--start-rot) + 190deg)); }
  100% { transform: translate3d(var(--drift),118vh,0) rotate(calc(var(--start-rot) + 430deg)); }
}
.hero-copy {
  position: absolute; z-index: 20; left: 3.3%; top: 5%; width: 27%; max-width: 390px;
  padding: 17px 20px 18px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 28px;
  background: rgba(255,249,233,.82);
  box-shadow: 0 14px 36px rgba(66,42,24,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.hero-copy h1 { margin: 0; font-family: 'Chewy', cursive; font-size: clamp(44px, 4.45vw, 72px); line-height: .9; font-weight: 400; letter-spacing: .01em; color: #43251b; }
.hero-copy h1 span { color: #bf3d26; }
.hero-copy p { max-width: 390px; margin: 12px 0 0; color: #3f2d22; font-size: clamp(15px, 1.15vw, 20px); line-height: 1.42; font-weight: 700; }
.hero-copy p b { color: #cf3c28; }

.share-card {
  position: absolute; z-index: 21; left: 3.3%; top: 39%; width: 25%; max-width: 385px;
  padding: 16px 18px 14px; border-radius: 24px; background: var(--paper);
  border: 1px solid #fff; box-shadow: var(--shadow); backdrop-filter: blur(5px);
}
.card-kicker { display: block; font-size: 12px; font-weight: 900; letter-spacing: .035em; }
.share-card > strong { display: block; margin: 5px 0 2px; color: #3e2c22; font-family: 'Chewy', cursive; font-size: clamp(27px, 2.25vw, 38px); font-weight: 400; line-height: 1; }
.share-card > p { margin: 7px 0 11px; color: #5f4f42; font-size: 12px; font-weight: 700; line-height: 1.3; }
.social-share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; }
.social-button { border: 0; border-radius: 12px; padding: 8px 9px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; font-weight: 900; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.social-button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.social-button span { font-size: 14px; font-weight: 900; }
.social-button.facebook { color: white; background: #1877f2; }
.social-button.whatsapp { color: white; background: #278a52; }
.social-button.xshare { color: white; background: #252525; }
.social-button.email { color: #3e2c22; background: #f0dfb9; }
.social-button.copy { grid-column: 1 / -1; color: #315f49; background: #dfeadd; border: 1px solid #c4d5bf; }
.share-meta { display: block; margin-top: 8px; color: #766454; font-size: 10px; line-height: 1.3; text-align: center; }
.share-meta b { color: var(--green); }

.impact-card {
  position: absolute; z-index: 21; top: 5%; right: 3.1%; width: 25%; max-width: 390px;
  padding: 16px; border-radius: 25px; background: var(--paper); border: 1px solid #fff;
  box-shadow: var(--shadow); text-align: center; backdrop-filter: blur(5px);
}
.impact-title { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 21px; }
.impact-title span { font-size: 25px; }
.impact-card > strong { display: block; margin: 5px 0 0; color: var(--green); font-size: clamp(30px, 3vw, 48px); line-height: 1.05; }
.impact-subtitle { display: block; margin: 2px 0 12px; font-weight: 800; font-size: 12px; color: #695745; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.impact-grid div { min-height: 72px; padding: 8px 5px; border-radius: 15px; background: rgba(255,255,255,.57); }
.impact-grid b { display: block; font-size: 16px; }
.impact-grid span { display: block; margin-top: 2px; color: #705e4d; font-size: 10px; line-height: 1.15; }
.impact-card > small { display: block; margin-top: 10px; padding: 6px 8px; border-radius: 999px; background: #f8dda2; font-family: 'Chewy', cursive; font-size: 13px; }
.impact-show-leaves {
  width: 100%; margin-top: 8px; padding: 8px 11px; border: 1px solid #c5af82; border-radius: 999px;
  background: rgba(255,255,255,.72); color: var(--green); font-weight: 900; font-size: 12px; cursor: pointer;
  transition: transform .14s ease, background .14s ease, color .14s ease, border-color .14s ease;
}
.impact-show-leaves:hover { transform: translateY(-1px); background: #fffdf7; border-color: #9f8659; }
.impact-show-leaves[aria-pressed="true"] { background: var(--green); color: white; border-color: var(--green); }

#leafLayer.show-purchased-leaves .leaf.available { opacity: .018; }
#leafLayer.show-purchased-leaves .leaf.natural { opacity: .28; filter: saturate(.42) brightness(.86); }
#leafLayer.show-purchased-leaves .leaf.claimed-a,
#leafLayer.show-purchased-leaves .leaf.claimed-b,
#leafLayer.show-purchased-leaves .leaf.claimed-c { opacity: 1 !important; }

/* Purchased-leaf state artwork owns the visible state. These filters are a
   conservative fallback while individual state assets are loading. */
.leaf.leaf-state-base { opacity: .98; }
.leaf.leaf-state-glow {
  opacity: 1 !important;
  filter: brightness(1.08) saturate(1.12)
    drop-shadow(0 0 5px rgba(255,239,145,.72))
    drop-shadow(0 0 11px rgba(255,184,48,.52));
}
.leaf.leaf-state-new {
  opacity: 1 !important;
  filter: brightness(1.12) saturate(1.16)
    drop-shadow(0 0 7px rgba(255,244,171,.82))
    drop-shadow(0 0 14px rgba(255,174,38,.58));
  animation: maplewishLeafNew 1s ease-in-out 0s 3 alternate;
}
@keyframes maplewishLeafNew {
  from { opacity: .94; }
  to { opacity: 1; }
}

/* Enlarged pointer target only. The old visible SVG rings are intentionally gone. */
.purchased-leaf-halo {
  pointer-events: none;
  fill: transparent;
  stroke: transparent;
}
.purchased-leaf-halo-hit {
  pointer-events: all;
  fill: rgba(255,255,255,.001);
  stroke: transparent;
  cursor: pointer;
}

.tree-counter {
  position: absolute; z-index: 22; left: 50%; bottom: 17.3%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  background: rgba(255,249,233,.96); border: 1px solid #fff; box-shadow: 0 8px 24px rgba(76,49,24,.14);
  white-space: nowrap; font-size: 12px;
}
.counter-leaf { font-size: 20px; }
.tree-counter b { color: #a52e22; font-size: 21px; }
.tree-counter small { color: #765f4b; }
.counter-divider { font-size: 23px; color: #744d35; }

.hero-steps {
  position: absolute; z-index: 23; left: 10%; right: 10%; bottom: 2%;
  display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 22px; overflow: hidden;
  background: rgba(255,250,238,.96); border: 1px solid #fff; box-shadow: var(--shadow);
}
.hero-steps > div { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-right: 1px solid #e9b76b; }
.hero-steps > div:last-child { border-right: 0; }
.step-icon { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff0cf; font-size: 26px; }
.hero-steps p { margin: 0; min-width: 0; }
.hero-steps b { display: block; font-size: 15px; }
.hero-steps small { display: block; margin-top: 2px; color: #766351; font-size: 11px; line-height: 1.25; }

/* SVG leaf rotation attributes already include their absolute pivot. Keep the CSS transform origin at the SVG viewBox origin or Chromium applies the pivot twice and moves leaves off-canvas. */
.leaf { cursor: pointer; pointer-events: bounding-box; transform-box: view-box; transform-origin: 0 0; transition: opacity .16s ease, filter .16s ease, transform .16s ease; }
.leaf.available { opacity: .025; filter: saturate(.4) brightness(.9); }
.leaf.natural { opacity: .58; filter: saturate(.72) brightness(.94); }
.leaf.claimed-a, .leaf.claimed-b, .leaf.claimed-c { opacity: .96; }
.leaf:hover, .leaf:focus-visible { opacity: 1; filter: brightness(1.12) saturate(1.1) drop-shadow(0 2px 4px rgba(48,29,13,.48)); outline: none; }

.below-fold {
  max-width: 1180px; margin: 30px auto 8px; padding: 28px 30px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px;
  background: rgba(255,249,233,.66); border: 1px solid var(--line); border-radius: 24px;
}
.below-fold h2 { margin: 4px 0 0; font-family: 'Chewy', cursive; font-size: 38px; font-weight: 400; }
.below-fold p { margin: 0; align-self: center; color: #6f5e4e; line-height: 1.55; }

.stories-section {
  max-width: 1180px; margin: 34px auto 10px; padding: 30px;
  background: rgba(255,249,233,.72); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 16px 44px rgba(75,48,25,.08);
}
.stories-heading {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: end; margin-bottom: 22px;
}
.stories-heading h2 { margin: 5px 0 0; font-family: 'Chewy', cursive; font-size: 42px; line-height: 1; font-weight: 400; }
.stories-heading p { margin: 0; color: #6f5e4e; line-height: 1.55; }
.wish-card {
  display: grid; grid-template-columns: minmax(250px, 34%) 1fr; overflow: hidden;
  background: #fffdf6; border: 1px solid rgba(89,62,37,.14); border-radius: 24px;
  box-shadow: 0 12px 30px rgba(75,48,25,.09);
}
.wish-photo-placeholder {
  min-height: 330px; display: grid; place-items: center; align-content: center; gap: 5px;
  padding: 24px; text-align: center; color: #6f5947;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.72), transparent 36%),
    linear-gradient(145deg, #ead7a7, #d9e4c7);
  border-right: 1px solid rgba(89,62,37,.12);
}
.wish-photo-placeholder span { font-size: 58px; filter: drop-shadow(0 3px 3px rgba(75,48,25,.12)); }
.wish-photo-placeholder b { font-family: 'Chewy', cursive; font-size: 28px; font-weight: 400; color: #4f3829; }
.wish-photo-placeholder small { font-size: 11px; font-weight: 800; color: #7e6a56; }
.wish-card-body { padding: 27px 30px 25px; }
.wish-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #7d6b59; font-size: 11px; font-weight: 900; letter-spacing: .05em; }
.wish-badge { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: #f7dfaa; color: #6d4c2a; }
.wish-card h3 { margin: 10px 0 8px; font-family: 'Chewy', cursive; font-size: 36px; line-height: 1; font-weight: 400; color: #43251b; }
.wish-summary { margin: 0 0 20px; color: #655446; line-height: 1.55; }
.wish-progress-heading { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 7px; font-size: 12px; }
.wish-progress-heading strong { color: var(--green); }
.wish-progress-heading span { color: #6e5c4a; font-weight: 900; }
.wish-progress { height: 11px; overflow: hidden; border-radius: 999px; background: #eadfc8; box-shadow: inset 0 1px 2px rgba(75,48,25,.09); }
.wish-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--red)); }
.wish-goal-note { margin: 8px 0 18px; color: #766453; font-size: 11px; line-height: 1.4; }
.wish-actions { display: flex; align-items: center; gap: 12px; }
.story-link { border: 0; padding: 10px 2px; background: transparent; color: var(--green); font-weight: 900; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.story-link:hover { color: #244d3a; }
.next-wishes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.next-wish-card { display: flex; gap: 13px; align-items: flex-start; padding: 17px 18px; border: 1px dashed #c8b691; border-radius: 18px; background: rgba(255,255,255,.46); }
.wish-slot-number { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #efe3c9; color: #8a6540; font-weight: 900; font-size: 11px; }
.next-wish-card b { display: block; margin-top: 1px; font-size: 13px; }
.next-wish-card p { margin: 3px 0 0; color: #776553; font-size: 11px; line-height: 1.4; }

.modal.story-modal { width: min(680px, calc(100vw - 28px)); max-height: min(88vh, 860px); overflow: auto; }
.story-modal-photo {
  min-height: 175px; margin: -4px -4px 20px; display: grid; place-items: center; align-content: center; gap: 4px;
  border-radius: 18px; background: linear-gradient(145deg, #ead7a7, #d9e4c7); color: #6f5947; text-align: center;
}
.story-modal-photo span { font-size: 52px; }
.story-modal-photo small { font-weight: 900; }
.story-preview-note, .story-placeholder-copy { padding: 12px 14px; border-radius: 13px; background: #f7e9c7; color: #65513f !important; font-size: 12px; }
.story-transparency { margin: 18px 0; padding: 15px 16px; border: 1px solid #d8c9aa; border-radius: 16px; background: rgba(255,255,255,.58); }
.story-transparency > b { display: block; margin-bottom: 8px; font-size: 13px; }
.story-transparency dl { margin: 0; }
.story-transparency dl div { display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; padding: 7px 0; border-top: 1px solid #e8dcc5; font-size: 12px; }
.story-transparency dl div:first-child { border-top: 0; }
.story-transparency dt { color: #776553; font-weight: 700; }
.story-transparency dd { margin: 0; text-align: right; font-weight: 900; color: #4d392b; }

.eyebrow { font-size: 11px; font-weight: 900; letter-spacing: .14em; color: var(--green); }
footer {
  max-width: 1180px; margin: 0 auto 10px; padding: 18px 4px; display: grid;
  grid-template-columns: auto 1fr; gap: 8px 22px; align-items: center; color: #756452; font-size: 12px;
}
footer nav { justify-self: end; display: flex; gap: 16px; }
footer small { grid-column: 1 / -1; color: #8a7865; }

.modal {
  width: min(500px, calc(100vw - 28px)); border: 1px solid var(--line); border-radius: 24px;
  padding: 28px; background: var(--cream); color: var(--ink); box-shadow: 0 28px 80px #2f261966;
}
.modal::backdrop { background: rgba(35,29,20,.5); backdrop-filter: blur(4px); }
.modal h2 { margin: 7px 0 9px; font-family: 'Chewy', cursive; font-size: 31px; font-weight: 400; }
.modal p { color: #716756; line-height: 1.5; }
.close { position: absolute; right: 14px; top: 12px; border: 0; background: none; font-size: 28px; cursor: pointer; }
label { display: block; margin: 14px 0; font-size: 13px; font-weight: 800; }
input, select { display: block; width: 100%; margin-top: 6px; padding: 12px 13px; border: 1px solid #cbbfa8; border-radius: 12px; background: white; color: var(--ink); outline: none; }
input:focus, select:focus { border-color: #805f39; box-shadow: 0 0 0 3px #805f3915; }
label.check { display: flex; align-items: flex-start; gap: 9px; font-weight: 600; line-height: 1.35; }
label.check input { width: auto; margin: 2px 0 0; }
label.check em { font-weight: 400; }
.modal > small { display: block; margin-top: 10px; color: #776d5d; line-height: 1.4; }
.form-status { min-height: 20px; margin-bottom: 0 !important; font-weight: 800; }
.leaf-tier-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 17px 0 12px; }
.leaf-tier-option { min-height: 65px; border: 1px solid #d6c6a9; border-radius: 15px; background: #fffdf7; color: var(--ink); cursor: pointer; display: grid; place-items: center; align-content: center; gap: 1px; transition: transform .14s ease, border-color .14s ease, background .14s ease; }
.leaf-tier-option:hover { transform: translateY(-1px); border-color: #b89668; }
.leaf-tier-option.selected { border-color: var(--red); background: #fff0e8; box-shadow: 0 0 0 2px rgba(223,69,52,.12); }
.leaf-tier-option b { color: var(--red-dark); font-size: 20px; line-height: 1; }
.leaf-tier-option span { color: #776453; font-size: 10px; font-weight: 800; }
.custom-amount.hidden { display: none; }
.leaf-contribution { margin: 8px 0 4px; color: var(--green); font-size: 13px; font-weight: 900; }
.leaf.leaf-tier-25:not(.leaf-state-glow):not(.leaf-state-new) { filter: drop-shadow(0 2px 3px rgba(99,64,20,.16)); }
.leaf-card-number { font-size: 12px; font-weight: 900; letter-spacing: .12em; color: var(--green); }
.leaf-card-message { margin: 14px 0; padding: 14px; border-radius: 14px; background: #efe4cd; font-style: italic; }
@media (max-width: 1120px) {
  .topbar { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero { min-height: 720px; }
  .hero-copy { width: 34%; }
  .share-card { width: 30%; top: 40%; }
  .impact-card { width: 29%; }
  .hero-steps { left: 4%; right: 4%; }
}

@media (max-width: 760px) {
  .app-shell { padding: 8px; }
  .topbar { min-height: 60px; margin-bottom: 8px; gap: 8px; }
  .brand small { display: none; }
  .brand b { font-size: 22px; }
  .brand-leaf { font-size: 27px; }
  .top-actions .ghost { display: none; }
  .button { padding: 10px 13px; }
  .hero { aspect-ratio: auto; height: 880px; min-height: 0; border-radius: 22px; }
  .scene-bg { width: auto; min-width: 100%; left: 50%; transform: translateX(-50%); object-fit: cover; }
  .hero-copy { top: 3%; left: 5%; width: 72%; }
  .hero-copy h1 { font-size: 52px; }
  .hero-copy p { margin-top: 10px; font-size: 14px; }
  .impact-card { top: 3%; right: 4%; width: 40%; padding: 11px; transform: scale(.82); transform-origin: top right; }
  .share-card { left: 4%; top: 29%; width: 52%; padding: 12px; }
  .share-card > strong { font-size: 30px; }
  .share-card > p { font-size: 11px; }
  .social-share-grid { gap: 5px; }
  .social-button { padding: 7px 6px; font-size: 10px; }
  .tree-layer { transform: translateX(-50%) scale(1.28); }
  .trunk { bottom: 13%; }
  .scene-bird { width: 12%; left: 68%; top: 42%; }
  .scene-foreground { width: 155%; left: -27.5%; }
  .tree-counter { bottom: 25%; max-width: 90%; padding: 7px 12px; }
  .tree-counter small { display: none; }
  .hero-steps { left: 3%; right: 3%; bottom: 2%; grid-template-columns: 1fr; }
  .hero-steps > div { padding: 8px 12px; border-right: 0; border-bottom: 1px solid #ead5ad; }
  .hero-steps > div:last-child { border-bottom: 0; }
  .step-icon { width: 34px; height: 34px; font-size: 19px; }
  .below-fold { grid-template-columns: 1fr; padding: 20px; gap: 10px; }
  .stories-section { padding: 19px; margin-top: 20px; border-radius: 22px; }
  .stories-heading { grid-template-columns: 1fr; gap: 8px; margin-bottom: 16px; }
  .stories-heading h2 { font-size: 34px; }
  .stories-heading p { font-size: 13px; }
  .wish-card { grid-template-columns: 1fr; }
  .wish-photo-placeholder { min-height: 205px; border-right: 0; border-bottom: 1px solid rgba(89,62,37,.12); }
  .wish-card-body { padding: 20px; }
  .wish-card h3 { font-size: 31px; }
  .wish-summary { font-size: 13px; }
  .wish-actions { align-items: stretch; flex-direction: column; }
  .story-link { text-align: left; }
  .next-wishes { grid-template-columns: 1fr; }
  .story-modal { max-height: 90vh; padding: 20px; }
  .story-transparency dl div { grid-template-columns: 1fr; gap: 2px; }
  .story-transparency dd { text-align: left; }
  footer { grid-template-columns: 1fr; }
  footer nav { justify-self: start; flex-wrap: wrap; }
  footer small { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .scene-bird, .falling-leaf, .leaf-state-new { animation: none !important; }
  .ambient-leaves { display: none; }
}

.motion-paused .scene-bird,
.motion-paused .falling-leaf { animation-play-state: paused !important; }

.share-toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 10px 16px; border-radius: 999px; background: #30241e; color: white; font-size: 12px; font-weight: 900; box-shadow: 0 10px 28px rgba(36,25,17,.28); transition: opacity .18s ease, transform .18s ease; }
.share-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Applicant portal */
.apply-page { min-height: 100vh; background: radial-gradient(circle at top, #fffaf0, #efe2c2 72%); }
.apply-topbar { max-width: 1180px; margin: 0 auto; min-height: 78px; padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.apply-shell { max-width: 980px; margin: 0 auto; padding: 24px 18px 60px; }
.apply-intro { text-align: center; max-width: 800px; margin: 0 auto 22px; }
.apply-intro h1 { margin: 7px 0 10px; font-family: 'Chewy', cursive; font-size: clamp(42px, 6vw, 68px); line-height: .95; font-weight: 400; color: #43251b; }
.apply-intro > p { max-width: 760px; margin: 0 auto; color: #665548; line-height: 1.55; font-weight: 700; }
.privacy-strip { margin-top: 16px; display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; }
.privacy-strip span { padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--line); color: #5f5043; font-size: 11px; font-weight: 900; }
.apply-card { padding: 28px; border-radius: 26px; background: rgba(255,249,233,.92); border: 1px solid #fff; box-shadow: var(--shadow); }
.auth-card { max-width: 560px; margin: 0 auto; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border-radius: 999px; background: #efe3ca; margin-bottom: 20px; }
.auth-tab { border: 0; border-radius: 999px; padding: 10px 12px; background: transparent; color: #6c5948; font-weight: 900; cursor: pointer; }
.auth-tab.active { background: #fffdf7; color: var(--red-dark); box-shadow: 0 5px 14px rgba(76,49,24,.1); }
.auth-form h2, .application-heading h2 { margin: 3px 0 5px; font-family: 'Chewy', cursive; font-size: 32px; font-weight: 400; }
.auth-form > p { margin: 0 0 16px; color: #766554; font-size: 13px; line-height: 1.45; }
.application-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid #e6d8bd; }
.application-heading h2 { font-size: 36px; }
.applicant-account { text-align: right; color: #6e5d4d; font-size: 11px; font-weight: 800; }
.applicant-account span { display: block; margin-bottom: 4px; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--green); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.application-state { margin: 18px 0; padding: 13px 15px; border-radius: 14px; background: #eaf2e5; border: 1px solid #d0dfc8; }
.application-state b, .application-state span { display: block; }
.application-state b { color: #315f49; font-size: 13px; }
.application-state span { margin-top: 2px; color: #66705f; font-size: 11px; line-height: 1.4; }
.state-need_more_info { background: #fff0d1; border-color: #ead39f; }
.state-declined, .state-closed { background: #eee7df; border-color: #d8cbc0; }
.application-form fieldset { margin: 20px 0 0; padding: 20px; border: 1px solid #ddcfb4; border-radius: 18px; background: rgba(255,255,255,.38); }
.application-form legend { padding: 0 8px; font-family: 'Chewy', cursive; font-size: 24px; color: #4d3326; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-grid label, .application-form > fieldset > label { margin: 0; }
.form-grid .wide { grid-column: 1 / -1; }
.application-form textarea { width: 100%; margin-top: 6px; padding: 12px 13px; border: 1px solid #cbbfa8; border-radius: 12px; background: white; color: var(--ink); outline: none; resize: vertical; font: inherit; }
.application-form textarea:focus { border-color: #805f39; box-shadow: 0 0 0 3px #805f3915; }
.fieldset-copy { margin: -2px 0 14px; color: #766554; font-size: 12px; line-height: 1.45; }
.optional { color: #8f7d6c; font-size: 10px; font-weight: 700; }
.private-label { display: inline-flex; margin-left: 5px; padding: 3px 6px; border-radius: 999px; background: #e5eee1; color: #315f49; font-size: 9px; letter-spacing: .05em; }
.photo-upload-row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; }
.private-photo-preview { width: 150px; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; align-content: center; gap: 5px; border: 1px dashed #bda98a; border-radius: 14px; background: #eee4cf; color: #7b6957; text-align: center; }
.private-photo-preview span { font-size: 34px; }
.private-photo-preview small { font-size: 10px; font-weight: 800; }
.private-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-actions { display: flex; align-items: center; gap: 12px; margin: 9px 0 5px; }
.application-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.form-status[data-kind="error"] { color: #a72e24; }
.form-status[data-kind="success"] { color: #315f49; }
.application-cta { max-width: 1180px; margin: 14px auto 10px; padding: 22px 25px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-radius: 22px; background: #315f49; color: white; box-shadow: 0 14px 34px rgba(49,95,73,.18); }
.application-cta h3 { margin: 2px 0 4px; font-family: 'Chewy', cursive; font-size: 30px; font-weight: 400; }
.application-cta p { margin: 0; max-width: 700px; color: #eaf1eb; font-size: 12px; line-height: 1.45; }
.application-cta .eyebrow { color: #f7dda1; }
.application-cta .button { flex: 0 0 auto; background: #fff9e9; color: #315f49; text-decoration: none; }

@media (max-width: 760px) {
  .apply-topbar { min-height: 68px; padding: 8px 10px; }
  .apply-topbar .button { font-size: 11px; }
  .apply-shell { padding: 14px 8px 42px; }
  .apply-card { padding: 19px 15px; border-radius: 20px; }
  .apply-intro h1 { font-size: 44px; }
  .application-heading { flex-direction: column; }
  .applicant-account { text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .photo-upload-row { grid-template-columns: 1fr; }
  .private-photo-preview { width: 100%; max-width: 280px; }
  .application-actions { flex-direction: column; }
  .application-actions .button { width: 100%; }
  .application-cta { margin: 12px 8px 8px; align-items: stretch; flex-direction: column; }
  .application-cta .button { width: 100%; text-align: center; }
}

.auth-help-row { margin: -3px 0 14px; text-align: right; }
.auth-help-row a { color: var(--green); font-size: 11px; font-weight: 900; text-underline-offset: 3px; }
.verification-notice { margin: 18px 0 4px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #e5c878; border-radius: 14px; background: #fff1c9; }
.verification-notice b, .verification-notice span { display: block; }
.verification-notice b { color: #76521c; font-size: 13px; }
.verification-notice span { margin-top: 2px; color: #79674c; font-size: 11px; line-height: 1.4; }
.recovery-shell { max-width: 620px; margin: 0 auto; padding: 34px 18px 60px; }
.recovery-card { margin-top: 20px; }
.recovery-card h2 { margin: 5px 0 8px; font-family: 'Chewy', cursive; font-size: 34px; font-weight: 400; }
.recovery-card > p { color: #766554; font-size: 13px; line-height: 1.5; }
.recovery-link { display: block; text-align: center; text-decoration: none; margin-top: 16px; }

@media (max-width: 760px) {
  .verification-notice { align-items: stretch; flex-direction: column; }
  .recovery-shell { padding: 18px 8px 42px; }
}

/* Legal centre */
.legal-page { min-height: 100vh; background: radial-gradient(circle at top, #fffaf0, #efe2c2 72%); }
.legal-topbar { max-width: 1060px; margin: 0 auto; min-height: 76px; padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-shell { max-width: 960px; margin: 0 auto; padding: 24px 18px 60px; }
.legal-card { padding: 34px; border-radius: 26px; background: rgba(255,249,233,.94); border: 1px solid #fff; box-shadow: var(--shadow); line-height: 1.65; }
.legal-card h1 { margin: 6px 0 8px; font-family: 'Chewy', cursive; font-size: clamp(40px, 6vw, 58px); line-height: .98; font-weight: 400; }
.legal-card h2 { margin: 30px 0 8px; font-family: 'Chewy', cursive; font-size: 30px; font-weight: 400; }
.legal-card h3 { margin: 20px 0 6px; font-size: 15px; }
.legal-card p, .legal-card li { color: #655548; }
.legal-card ul { padding-left: 22px; }
.legal-meta { color: #8a7865; font-size: 11px; font-weight: 800; }
.legal-callout { margin: 18px 0; padding: 14px 16px; border-radius: 14px; background: #f7e9c7; border: 1px solid #ead6a6; color: #5f4b39; }
.legal-callout.green { background: #e8f0e3; border-color: #cadbc2; }
.legal-nav { display: flex; gap: 10px 14px; flex-wrap: wrap; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #eadcc4; }
.legal-nav a { color: var(--green); font-size: 12px; font-weight: 900; }
.legal-footer { max-width: 960px; margin: 14px auto 0; padding: 16px 18px 30px; color: #796856; font-size: 11px; }
.legal-footer nav { display: flex; gap: 12px 16px; flex-wrap: wrap; }
.legal-footer a { color: inherit; }
.legal-version { display: inline-block; margin-left: 6px; padding: 3px 7px; border-radius: 999px; background: #eee1c6; font-size: 10px; font-weight: 900; }
.current-draw-details { margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: #eef4e9; border: 1px solid #d5e1ce; }
.current-draw-details dl { margin: 0; }
.current-draw-details div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 6px 0; border-top: 1px solid #dce6d7; }
.current-draw-details div:first-child { border-top: 0; }
.current-draw-details dt { font-weight: 900; color: #315f49; }
.current-draw-details dd { margin: 0; color: #655548; }

@media (max-width: 760px) {
  .legal-topbar { padding: 8px 10px; }
  .legal-topbar .button { font-size: 11px; }
  .legal-shell { padding: 14px 8px 42px; }
  .legal-card { padding: 22px 18px; border-radius: 20px; }
  .current-draw-details div { grid-template-columns: 1fr; gap: 2px; }
}

.language-switch { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--line); }
.language-switch a, .language-switch span { padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 900; text-decoration: none; color: #5f5043; }
.language-switch .active { background: #315f49; color: #fff; }
.language-contract { margin: 16px 0; padding: 15px; border: 1px solid #ddc88f; border-radius: 14px; background: #fff3ce; }
.language-contract > b { display:block; margin-bottom:8px; color:#654b1f; }
.language-options { display:flex; gap:10px 14px; flex-wrap:wrap; margin:8px 0; }
.language-options label { display:flex; align-items:center; gap:6px; margin:0; font-weight:900; }
.language-contract small { display:block; color:#78664b; line-height:1.45; }

@media (max-width: 760px) {
  .apply-topbar, .legal-topbar { flex-wrap: wrap; }
  .apply-topbar .language-switch, .legal-topbar .language-switch { margin-left: auto; }
  .top-actions { align-items: center; }
  .top-actions .language-switch a, .top-actions .language-switch span { padding: 5px 7px; font-size: 9px; }
}

/* French desktop fit: allow longer copy to breathe without shrinking the whole site. */
@media (min-width: 761px) {
  html[lang="fr-CA"] .hero-copy {
    width: 29%;
    max-width: 420px;
  }
  html[lang="fr-CA"] .hero-copy h1 {
    font-size: clamp(42px, 3.75vw, 60px);
    line-height: .94;
  }
  html[lang="fr-CA"] .hero-copy p {
    margin-top: 10px;
    font-size: clamp(14px, 1vw, 18px);
    line-height: 1.45;
  }
  html[lang="fr-CA"] .share-card {
    top: 42%;
  }
  html[lang="fr-CA"] .share-card > p {
    font-size: 13px;
    line-height: 1.4;
  }
  html[lang="fr-CA"] .share-meta {
    font-size: 11px;
    line-height: 1.35;
  }

  html[lang="fr-CA"] .impact-grid div {
    min-height: 78px;
  }
  html[lang="fr-CA"] .impact-grid span {
    font-size: 11px;
    line-height: 1.25;
  }
  html[lang="fr-CA"] .tree-counter {
    font-size: 13px;
  }
  html[lang="fr-CA"] .tree-counter small {
    font-size: 11px;
  }
  html[lang="fr-CA"] .main-nav a {
    padding: 9px 10px;
    font-size: 12px;
  }
  html[lang="fr-CA"] .topbar {
    gap: 12px;
  }
  html[lang="fr-CA"] .top-actions {
    gap: 7px;
  }
  html[lang="fr-CA"] .top-actions .language-switch {
    padding: 3px;
  }
  html[lang="fr-CA"] .top-actions .language-switch a,
  html[lang="fr-CA"] .top-actions .language-switch span {
    padding: 5px 7px;
    font-size: 9px;
  }
}

.hidden { display: none !important; }
.selected-leaf-note { margin: 10px 0 4px !important; padding: 9px 11px; border-radius: 12px; background: #eaf4e8; color: var(--green) !important; font-size: 12px; font-weight: 900; }
.payment-success-modal { text-align: center; width: min(460px, calc(100vw - 28px)); }
.payment-success-icon { width: 72px; height: 72px; margin: 2px auto 14px; border-radius: 50%; display: grid; place-items: center; background: #e8f3e6; color: var(--green); font-size: 38px; font-weight: 900; box-shadow: inset 0 0 0 1px #c9dec5; }
.payment-success-details { margin: 18px 0; padding: 15px 16px; border: 1px solid #d7c8aa; border-radius: 16px; background: #fffaf0; display: grid; gap: 5px; }
.payment-success-details b { color: var(--green); font-size: 18px; }
.payment-success-details span { color: var(--red-dark); font-size: 22px; font-weight: 900; }
.payment-success-details small { color: #766452; font-weight: 800; }
.payment-success-modal .button + .button { margin-top: 9px; }
