/* One shared flow, two compositions. Phone screens have their own hierarchy. */
.mobile-copy,.hero-title>.mobile-copy{display:none}
@media(max-width:760px){
  :root{--mobile-inset:20px;--mobile-card-radius:18px}
  html,body{height:100%;min-height:0;overflow:hidden}
  .app-shell{height:100svh;height:var(--mobile-height,100dvh);min-height:0;max-width:none;padding:0 max(var(--mobile-inset),env(safe-area-inset-right)) 0 max(var(--mobile-inset),env(safe-area-inset-left));display:grid;grid-template-rows:auto minmax(0,1fr) auto}
  .mobile-copy,.hero-title>.mobile-copy{display:block}
  .desktop-copy,.hero-title>.desktop-copy{display:none}
  .site-header{height:calc(64px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);gap:8px}
  .brand{gap:10px;min-width:0}.brand-mark{padding:0}.brand-mark img{width:74px}
  .header-nav{display:none}.mobile-info{display:inline-grid;margin-left:auto}.mobile-info,.motion-toggle{width:44px;height:44px;border-color:transparent}.motion-toggle{margin-left:0}
  main{display:block;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scroll-padding:16px 0 24px}
  .step-viewport{height:100%;min-height:0;overflow-x:clip}.screen{min-height:100%;padding:16px 0 12px}
  .eyebrow{font-size:9px;letter-spacing:.12em;gap:8px}.tiny-star{font-size:17px}
  /* Direction: a calm introduction above a compact, thumb-level 2×2 chooser. */
  .screen-goal{height:100%;min-height:440px;display:flex;flex-direction:column;gap:24px;padding-bottom:24px}
  .screen-goal .goal-intro{display:flex;flex:1;align-items:center;justify-content:center;min-height:140px;text-align:center}.intro-copy{padding:0;width:100%}.screen-goal .eyebrow{justify-content:center}.hero-title{font-size:clamp(26px,7.5vw,34px);line-height:1.25;letter-spacing:-.055em;margin:14px 0 0}
  .orb-caption{display:none}.goal-fieldset{min-width:0;min-height:0;padding:0;margin:0;display:grid}
  .goal-fieldset legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .goal-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(110px,auto));gap:10px}
  .screen-goal .goal-card{height:100%;min-height:110px;padding:15px 14px;border-radius:var(--mobile-card-radius);justify-content:flex-start;background:#1c1d2970;will-change:auto;text-align:left;overflow:hidden;transform:none!important}
  .screen-goal .goal-top{margin:0}.goal-icon{display:flex;position:absolute;left:14px;top:15px}.goal-icon svg{width:18px;height:18px}
  .choice-check{position:absolute;right:12px;top:12px;margin:0;width:16px;height:16px;font-size:10px;opacity:0;box-shadow:none}.goal-option input:checked+.goal-card .choice-check{opacity:1}
  .goal-name{font-size:14px;line-height:1.3;margin:0;padding-left:25px;padding-right:18px}.goal-description{font-size:12px;line-height:1.45;margin-top:7px;max-width:none}
  .goal-option input:focus-visible+.goal-card{outline-offset:-3px}.card-glare{display:none}
  /* Footer is outside the scroller: navigation remains under the thumb. */
  .flow-footer{grid-template-columns:1fr auto 1fr;grid-template-rows:36px 56px;align-items:center;gap:8px 12px;margin-left:calc(-1 * max(var(--mobile-inset),env(safe-area-inset-left)));margin-right:calc(-1 * max(var(--mobile-inset),env(safe-area-inset-right)));padding:8px max(var(--mobile-inset),env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(var(--mobile-inset),env(safe-area-inset-left));background:linear-gradient(0deg,var(--bg) 70%,#11121b00)}
  .footer-center{display:contents}.step-progress{grid-column:2;grid-row:1;align-self:center;width:58px}
  .flow-footer .primary-button{grid-column:1/-1;grid-row:2;min-height:56px;border-radius:18px;font-size:16px;padding:0 22px}
  .footer-side{position:static;grid-column:1;grid-row:1;min-height:0;gap:0}.footer-side>span:not(.step-number){display:none}
  .footer-right{grid-column:3;justify-content:flex-end;gap:0}.step-number{font-size:10px}.step-divider{margin:0 6px}
  .back-button{min-height:44px;font-size:12px;gap:7px;padding:0 12px 0 0}.back-button>span{font-size:21px}.footer-info{display:none}
  body[data-step="1"] .footer-right .step-number{display:none}body[data-step="1"] .footer-info{display:inline-flex;min-height:44px;font-size:12px;border:0;padding:0;align-items:center}
  .primary-button:hover{transform:none}.primary-button:active{transform:scale(.985)}
  /* Amount: the number owns the stage; slider and entry form a thumb control deck. */
  
  
  
  
  
  .slider-track{height:48px}.amount-range{top:-8px;height:64px}.amount-range::-webkit-slider-runnable-track{height:48px}.amount-range::-moz-range-track{height:48px}
  .amount-range::-webkit-slider-thumb{width:56px;height:56px}.amount-range::-moz-range-thumb{width:56px;height:56px}.bubble-position{top:-61px}.amount-bubble{width:160px;font-size:15px;padding:11px 13px;border-radius:16px}.slider-labels{top:66px;font-size:10px}
  .amount-range:focus-visible{outline-offset:-2px}
  .preset-group button{min-height:44px;padding:8px 4px;font-size:12px;border-radius:14px}
  .exact-amount{display:flex;justify-content:space-between;gap:10px;width:100%;min-height:56px;padding:0 14px;background:#1c1d2980;border:1px solid var(--line);border-radius:16px}.exact-amount>span:first-child{font-size:12px;color:var(--muted)}.exact-input-wrap{border:0;padding:0;gap:7px}.exact-input-wrap input{font-size:16px;width:132px}.exact-amount:focus-within{border-color:var(--lavender)}
  
  /* Payment: an amount receipt and a same-device bank handoff, without a QR card. */
  .screen-payment{display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;height:100%;min-height:510px;max-width:none;margin:0;gap:28px;padding-top:16px}
  .screen-payment .payment-intro{padding:0}.payment-intro .section-title{font-size:29px;line-height:1.3;letter-spacing:-.045em;margin:0;max-width:340px}
  .screen-payment .gift-summary{margin-top:24px;border:1px solid var(--line);background:#1c1d2970;border-radius:24px;padding:22px;position:relative}.gift-summary>p{font-size:11px;margin-bottom:7px}.gift-summary>strong{font-size:14px}.summary-amount{font-size:clamp(25px,7.7vw,43px);line-height:1.35;margin:20px 0 0;gap:8px;letter-spacing:-.05em;white-space:nowrap}
  .summary-amount .icon-button{width:44px;height:44px;margin-left:auto}.summary-amount .icon-button svg{width:17px;height:17px}.gift-summary>.subtle-link{position:absolute;right:18px;top:15px;min-height:44px;display:inline-flex;align-items:center;font-size:12px;border:0;padding:0 4px}
  .screen-payment .payment-panel{padding:0;border:0;background:none;backdrop-filter:none;border-radius:0}.payment-tabs{border-radius:16px}.payment-tabs>button{min-height:46px;padding:8px;font-size:13px;border-radius:12px}.tab-pill{border-radius:12px}
  .screen-payment .payment-method-panel{min-height:0;padding-top:22px}.qr-frame{display:none}.payment-method-panel h2{font-size:14px;margin:0}.screen-payment .payment-notice{margin-top:12px;padding:12px 14px;border-radius:14px}.payment-notice svg{width:17px;height:17px}.payment-notice p{font-size:12px;line-height:1.55}
  .screen-payment .preference-notice{font-size:11px;padding:12px 0 0;line-height:1.5}.offer-link{display:inline-flex;align-items:center;min-height:44px;font-size:12px;border:0;padding:0 8px}
  .details-symbol{display:none}.purpose-box{margin:12px 0;padding:12px 14px}.purpose-box summary{min-height:32px;font-size:13px;line-height:1.5}.purpose-box p{font-size:12px}.purpose-box .subtle-link{min-height:44px;font-size:12px}
  /* Full-width sheets keep secondary reading separate from the donation path. */
  
  .toast{bottom:calc(128px + env(safe-area-inset-bottom));font-size:12px;white-space:normal;width:max-content;max-width:calc(100% - 40px);line-height:1.5}
}
@media(max-width:370px){
  :root{--mobile-inset:16px}.mobile-info{margin-left:auto}.screen-goal .goal-card{padding:14px 12px}.goal-icon{left:12px;top:14px}.goal-name{font-size:13px;padding-right:0}.choice-check{right:10px;top:auto;bottom:10px}.goal-description{padding-right:18px}.preset-group button{font-size:11px}.exact-input-wrap input{width:116px}.payment-intro .section-title{font-size:27px}
}
@media(max-width:760px) and (orientation:landscape) and (max-height:500px){
  .site-header{height:52px}.flow-footer{grid-template-rows:28px 48px;padding-top:4px;gap:4px}.flow-footer .primary-button{min-height:48px}.screen-goal,.screen-payment{height:auto}.screen-goal{min-height:480px}
}
