/* Apply Once uses a gentle halo without shifting nearby content. */
@keyframes apply-once-pulse{
 0%,100%{box-shadow:0 0 0 0 rgba(43,111,181,0)}
 35%{box-shadow:0 0 0 3px rgba(43,111,181,.3)}
 70%{box-shadow:0 0 0 7px rgba(43,111,181,0)}
}
.apply-once{animation:apply-once-pulse 2.8s ease-out infinite}
.apply-once:disabled{animation:none}
.hero h1{font-size:52px;font-weight:500;line-height:1.08;letter-spacing:-1.3px;text-wrap:balance}
.hero h1 span{display:block}
.hero-promise{max-width:430px;text-wrap:pretty}
#wallet-art{background:transparent;aspect-ratio:3/2}
#wallet-art img{inset:0;width:100%;height:100%;object-fit:contain}
.dock strong{min-width:0}
@media(prefers-reduced-motion:reduce){.apply-once{animation:none}}

/* Fresh Grid phone density: two complete photos and one third of the next.
   Two 8px gaps are visible across a 7/3-card viewport. */
@media(max-width:700px){
 :root{--phone-gutter:12px;--phone-rail-gap:8px}
 html{scroll-padding-top:120px}
 .page{padding:0 var(--phone-gutter) 90px;min-width:0}
 .header-main{padding:8px 12px;gap:8px;flex-wrap:wrap;min-height:0}
 .brand{gap:7px;min-width:0}
 .punch{width:32px;height:32px;border-radius:9px}
 .brand strong{font-size:12px;letter-spacing:-.4px}
 .brand small{font-size:6px;letter-spacing:1px}
 .header-actions{margin-left:auto;gap:6px}
 .header-actions>.wallet-nav,.header-actions>a{display:none}
 .header-actions>.start{min-height:38px;font-size:11px;padding:8px 10px}
 .site-menu summary{height:38px;width:38px;font-size:21px;border-radius:10px}
 .header-search{order:3;flex:1 0 100%;height:40px;border-radius:10px}
 .header-search input{padding:10px 12px;font-size:14px}
 .header-search button{font-size:21px;padding:6px 12px}
 .rewards-nav{justify-content:flex-start;gap:20px;overflow-x:auto;white-space:nowrap;scrollbar-width:none;font-size:12px;padding:12px 0}
 .rewards-nav>*{flex:none}
 .rewards-nav::-webkit-scrollbar{display:none}
 .hero{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-template-areas:"headline headline" "copy wallet" "cta wallet";column-gap:12px;row-gap:0;padding:24px 0;min-height:0;align-items:center}
 .hero-copy{display:contents}
 .hero h1{grid-area:headline;font-size:clamp(30px,8.2vw,42px);line-height:1.1;letter-spacing:-.7px;margin-bottom:18px;text-wrap:initial}
 .hero-promise{grid-area:copy;font-size:13px;font-weight:400;line-height:1.45;margin:0;align-self:end}
 .hero-description{font-size:12px;line-height:1.4}
 .hero .btn{grid-area:cta;min-height:42px;min-width:0;width:100%;font-size:13px;padding:9px 8px;margin-top:14px;align-self:start}
 .hero-visual{grid-area:wallet;min-width:0;width:calc(100% + 12px);max-width:none;justify-self:center}
 .categories{display:grid;grid-template-columns:none;grid-template-rows:auto;grid-auto-flow:column;grid-auto-columns:142px;gap:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;border-radius:12px;margin:0}
 .categories::-webkit-scrollbar{display:none}
 .categories button,.categories a{min-height:68px;padding:10px;gap:9px;border-bottom:0;border-right:1px solid #cddbe4}
 .categories>:nth-child(4n){border-right:1px solid #cddbe4}
 .categories>:last-child{border-right:0}
 .categories svg{width:23px;height:23px}
 .categories strong{font-size:12px;line-height:1.2}
 .categories small{font-size:10px;line-height:1.3;margin-top:4px}

 #discover{margin-top:20px}
 #platform-deals{margin-top:20px;padding-top:18px}
 #discover .savings-rail,#platform-deals .savings-rail{margin-bottom:22px;padding-top:17px}
 #discover .savings-rail-head,#platform-deals .savings-rail-head{gap:8px;margin:0 0 10px;align-items:center;flex-wrap:wrap}
 #discover .savings-rail-head h2,#platform-deals .savings-rail-head h3{font:800 22px/1.15 Arial,Helvetica,sans-serif;letter-spacing:-.6px;min-width:0}
 #discover .savings-rail-head h2{flex:1 1 100%}
 #discover .savings-rail-head>a{font-size:12px;margin:0 auto 0 0;min-height:30px;display:flex;align-items:center}
 #discover .rail-arrows,#platform-deals .rail-arrows{gap:4px}
 #discover .rail-arrows button,#platform-deals .rail-arrows button{width:30px;height:30px}
 #discover .deal-scroll,#platform-deals .deal-scroll{gap:var(--phone-rail-gap);padding:0 0 5px;margin-right:calc(-1 * var(--phone-gutter));scroll-padding-left:0}
 #discover .offer-card,#platform-deals .retail-product-card.platform-card{flex:0 0 calc((100% - 16px) * 3 / 7);min-width:0;min-height:0;border-radius:10px}
 #discover .reward-brand-tile,#platform-deals .retail-product-photo{height:auto;aspect-ratio:1;min-height:0}
 #discover .reward-brand-product,#platform-deals .retail-product-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
 #discover .reward-brand-logo{width:74%;height:64%}
 #discover .reward-brand-wordmark{font-size:17px}
 #discover .reward-brand-benefit,#platform-deals .retail-savings-chip{left:6px;bottom:6px;max-width:calc(100% - 12px);padding:4px 5px;border-radius:4px;font-size:10px;line-height:1.15;white-space:normal}
 #discover .reward-brand-turn,#platform-deals .retail-product-save{width:30px;height:30px;right:5px;top:5px;padding:6px;font-size:20px}
 #platform-deals .retail-product-save svg{width:16px;height:16px}
 #discover .card-body,#platform-deals .retail-product-copy{padding:8px;gap:5px;min-height:0}
 #discover .card-body h3,#platform-deals .retail-product-title{font-size:13px;line-height:1.25;min-height:33px;letter-spacing:0}
 #discover .card-sub{min-height:25px;line-height:1.2}
 #discover .card-sub span{font-size:10px;line-height:1.25;white-space:normal}
 #discover .card-actions{flex-direction:column;align-items:stretch;gap:2px;padding:0;margin-top:auto}
 #discover .save-btn{flex:none;width:100%;min-height:36px;padding:7px 3px;font-size:11px;white-space:normal}
 #discover .more-btn{flex:none;width:100%;min-height:28px;padding:5px 3px;font-size:11px}
 #platform-deals .retail-product-copy{min-height:91px}
 #platform-deals .retail-product-meta{align-items:flex-start;flex-direction:column;gap:6px}
 #platform-deals .retail-product-brand{font-size:10px;max-width:100%}
 #platform-deals .retail-product-price{font-size:12px;padding:4px 6px}
 #discover .cash-grid{grid-template-columns:1fr;gap:0}
 .birthday-strip{grid-template-columns:28px minmax(0,1fr);gap:8px;padding:12px;border-radius:12px}
 .birthday-strip h2{font-size:20px;line-height:1.2}
 .birthday-strip p{font-size:12px;line-height:1.4;margin-top:5px}
 .birthday-strip>a{font-size:12px;min-height:36px;display:flex;align-items:center}
 .dock{bottom:max(8px,env(safe-area-inset-bottom));padding:10px 12px;border-radius:12px;gap:10px}
 .dock strong{font-size:13px;line-height:1.2}
 .dock button{min-height:36px;font-size:11px;padding:8px 11px;flex:none}
}
@media(max-width:360px){
 .brand strong{font-size:10px}
 .brand small{font-size:5px}
 .brand{gap:5px}
 .punch{width:28px;height:28px}
 .header-actions>.start{font-size:10px;padding-inline:7px}
 .site-menu summary{width:34px}
 .dock strong{font-size:11px}
 #discover .save-btn{font-size:10px}
}
