/* V4: working app screens in the demo, savage notifications, light/dark, phone-first swipe sections, landscape. */

/* ---------- Hero ---------- */
.hero-trust{list-style:none;padding:0;margin:22px 0 0;display:flex;flex-wrap:wrap;gap:8px 18px;font-size:11px;color:var(--muted)}
.hero-trust li{display:flex;align-items:center;gap:7px}
.hero-trust li>span{width:17px;height:17px;border-radius:50%;display:grid;place-items:center;font-size:9px;color:var(--blue);background:#e6eefd}
.live-notification{align-items:center;width:345px;padding:13px 14px;gap:11px}
.live-notification .hn-app{width:40px;height:40px;border-radius:11px;object-fit:cover;flex-shrink:0}
.live-notification .hn-text{min-width:0;flex:1}
.live-notification .notification-brand{font-size:7px}
.live-notification .notification-brand>span{margin-left:6px;color:var(--blue)}
.live-notification strong{font-size:12px;line-height:1.3}
.live-notification p{font-size:10px;line-height:1.4}
.live-notification .hn-card{width:66px;height:auto;border-radius:5px;flex-shrink:0;box-shadow:0 6px 12px -4px #17243e55;transform:rotate(6deg)}
.live-notification .hn-card.is-portrait{width:30px;transform:rotate(4deg)}
.live-notification .hn-text,.live-notification .hn-app,.live-notification .hn-card{transition:opacity .3s,transform .45s cubic-bezier(.16,1,.3,1)}
.live-notification.is-leaving .hn-text,.live-notification.is-leaving .hn-app{opacity:0;transform:translateY(-6px)}
.live-notification.is-leaving .hn-card{opacity:0;transform:translateX(18px) rotate(14deg)}
.live-notification.is-entering .hn-card{animation:hn-card-in .55s cubic-bezier(.16,1,.3,1)}
@keyframes hn-card-in{0%{transform:translateX(-26px) rotate(-10deg);opacity:0}100%{transform:rotate(6deg);opacity:1}}

.hero-handwritten{bottom:-34px;right:40px}

/* ---------- App marquee ---------- */
.app-strip{width:100%;padding-top:20px;text-align:center}
.app-strip>p:first-child{font-size:12px;color:var(--muted)}
.marquee{overflow:hidden;margin-top:24px;mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.marquee-track{display:flex;width:max-content;animation:marquee 38s linear infinite}
.marquee:hover .marquee-track{animation-play-state:paused}
.marquee-dup{display:flex}
.marquee-app{display:flex;align-items:center;gap:11px;padding:6px 26px;font-size:13px;font-weight:600;white-space:nowrap;min-height:52px}
.marquee-app img{width:40px;height:40px;border-radius:11px;object-fit:cover;transition:transform .2s}
.marquee-app:hover img{transform:translateY(-4px) rotate(-5deg)}
@keyframes marquee{to{transform:translateX(-50%)}}

/* ---------- Calculator touch-ups ---------- */
.missed-result>img{width:190px;height:185px;margin-right:-26px;transform:rotate(4deg)}
.result-period b{display:block;font-weight:600;color:var(--ink);margin-top:4px;font-size:12px;max-width:220px;line-height:1.45}
#monthly-spend{-webkit-appearance:none;appearance:none;height:30px;background:transparent}
#monthly-spend::-webkit-slider-runnable-track{height:6px;border-radius:9px;background:linear-gradient(90deg,var(--blue) var(--fill,20%),#d9dce3 var(--fill,20%))}
#monthly-spend::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:24px;margin-top:-9px;border-radius:50%;background:#fff;border:6px solid var(--blue);box-shadow:0 3px 10px #2463eb40}
#monthly-spend::-moz-range-track{height:6px;border-radius:9px;background:#d9dce3}
#monthly-spend::-moz-range-progress{height:6px;border-radius:9px;background:var(--blue)}
#monthly-spend::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#fff;border:6px solid var(--blue)}

/* ---------- Wallet ("spot your cards") ---------- */
.wallet-section{padding:70px 0 90px;position:relative}
.wallet-head{display:grid;grid-template-columns:1.2fr 1fr;gap:60px;align-items:end}
.wallet-head h2{margin-top:18px}
.wallet-head>p{font-size:14px;line-height:1.8;color:var(--muted);max-width:400px;padding-bottom:8px}
.wallet-board{position:relative;margin-top:110px;background:#fff;border:1px solid #e4e4de;border-radius:28px;padding:34px 34px 26px;box-shadow:0 30px 60px -40px #17243e30}
.wallet-peek{position:absolute;top:-112px;right:70px;width:178px;height:auto;pointer-events:none;animation:peek-bob 5s ease-in-out infinite;transform-origin:50% 100%}
@keyframes peek-bob{0%,100%{transform:translateY(0)}45%{transform:translateY(5px) rotate(-1.5deg)}60%{transform:translateY(-3px) rotate(1deg)}}
.wallet-filter{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:26px}
.wallet-filter button{border:1px solid #dfe2e8;background:#fbfbf9;border-radius:30px;padding:8px 15px;font-size:12px;font-weight:550;color:#4f5b70;min-height:38px;transition:background .2s,border-color .2s,color .2s}
.wallet-filter button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.card-tile{position:relative;border:1.5px solid #ecebe6;background:#fafaf7;border-radius:18px;padding:16px 14px 13px;text-align:left;display:flex;flex-direction:column;gap:9px;transition:border-color .2s,background .2s,transform .25s cubic-bezier(.2,.7,.2,1),box-shadow .25s;min-width:0}
.card-tile:hover{transform:translateY(-4px);box-shadow:0 14px 30px -18px #17243e55;background:#fff}
.card-tile .tile-art{position:relative;height:118px;display:grid;place-items:center}
.card-tile .tile-art img{max-width:100%;max-height:118px;width:auto;height:auto;border-radius:8px;filter:drop-shadow(0 9px 10px #17243e30);transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.card-tile:hover .tile-art img{transform:rotate(-3deg) scale(1.03)}
.card-tile .tile-name{font-size:13px;font-weight:620;letter-spacing:-.02em;line-height:1.3;color:var(--ink)}
.card-tile .tile-shines{display:flex;align-items:center;gap:5px;min-height:22px;flex-wrap:wrap}
.shine-label{font-size:10px;color:var(--muted);margin-right:3px}
.tile-shines img{width:20px;height:20px;border-radius:6px;object-fit:cover}
.tile-check{position:absolute;top:-6px;right:-4px;width:28px;height:28px;border-radius:50%;background:var(--blue);color:#fff;font-size:13px;display:grid;place-items:center;box-shadow:0 4px 12px #2463eb55;opacity:0;transform:scale(.4);transition:opacity .2s,transform .3s cubic-bezier(.3,1.6,.5,1)}
.card-tile.is-owned{border-color:var(--blue);background:#f3f7ff}
.card-tile.is-owned .tile-check{opacity:1;transform:scale(1)}
.card-tile.pop .tile-art img{animation:tile-pop .5s cubic-bezier(.3,1.5,.5,1)}
@keyframes tile-pop{0%{transform:scale(.92) rotate(0)}60%{transform:scale(1.07) rotate(-4deg)}100%{transform:scale(1) rotate(0)}}
.js-motion .wallet-board.is-visible .card-tile{animation:tile-in .6s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i) * 45ms)}
@keyframes tile-in{from{opacity:0;transform:translateY(16px)}}
.wallet-more{margin:18px auto 0}
.wallet-legal{font-size:10px;color:#7a8291;text-align:center;margin-top:6px}
.wallet-tray{position:fixed;left:50%;bottom:18px;z-index:45;transform:translateX(-50%);width:min(620px,calc(100% - 24px));animation:tray-in .45s cubic-bezier(.16,1,.3,1)}
.wallet-tray-inner{display:flex;align-items:center;gap:14px;background:var(--ink);color:#fff;border-radius:18px;padding:10px 10px 10px 16px;box-shadow:0 20px 40px -12px #17243e80}
.wallet-tray-inner p{font-size:13px;color:#c9d3e6;margin-right:auto}
.wallet-tray-inner p b{color:#fff}
.tray-cards{display:flex}
.tray-cards img{width:46px;height:auto;border-radius:4px;margin-left:-16px;box-shadow:0 3px 8px #0006;transform:rotate(-6deg)}
.tray-cards img:first-child{margin-left:0}
.tray-cards img.is-portrait{width:20px;margin-left:-6px}
.tray-clear{border:0;background:none;color:#aab6cc;font-size:12px;padding:8px;min-height:40px;text-decoration:underline;text-underline-offset:3px}
.wallet-tray .button{min-height:44px;padding:10px 16px;font-size:12px;gap:12px}
@keyframes tray-in{from{opacity:0;transform:translate(-50%,24px)}}

/* ---------- Header: theme toggle + mobile menu ---------- */
.header-actions{display:flex;align-items:center;gap:10px}
.theme-toggle{width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:transparent;display:grid;place-items:center;font-size:17px;color:var(--ink);position:relative;overflow:hidden;transition:background .2s,border-color .2s}
.theme-toggle:hover{border-color:var(--blue)}
.theme-toggle span{position:absolute;transition:transform .45s cubic-bezier(.3,1.4,.5,1),opacity .3s}
.ti-moon{transform:translateY(26px) rotate(-40deg);opacity:0}
[data-theme="dark"] .ti-sun{transform:translateY(-26px) rotate(40deg);opacity:0}
[data-theme="dark"] .ti-moon{transform:none;opacity:1}
.logo-dark,.shot-dark{display:none!important}
[data-theme="dark"] .logo-light,[data-theme="dark"] .shot-light{display:none!important}
[data-theme="dark"] .logo-dark,[data-theme="dark"] .shot-dark{display:block!important}
.menu-toggle{display:none;width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:transparent;flex-direction:column;justify-content:center;align-items:center;gap:5px}
.menu-toggle span{width:18px;height:2px;border-radius:2px;background:var(--ink);transition:transform .3s,opacity .2s}
.menu-open .menu-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-open .menu-toggle span:nth-child(2){opacity:0}
.menu-open .menu-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.mobile-menu{position:absolute;left:0;right:0;top:100%;background:var(--paper);border-bottom:1px solid var(--line);padding:8px 20px 20px;box-shadow:0 30px 40px -30px #0005;animation:menu-in .3s cubic-bezier(.16,1,.3,1)}
.mobile-menu a{display:flex;justify-content:space-between;align-items:center;font-size:19px;font-weight:600;letter-spacing:-.03em;padding:15px 2px;border-bottom:1px solid var(--line)}
.mobile-menu a span{color:var(--blue)}
.mobile-menu .button{width:100%;margin-top:16px}
@keyframes menu-in{from{opacity:0;transform:translateY(-8px)}}

/* ---------- Demo: a working copy of the app ---------- */
.v5-demo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"copy stage" "controls stage";column-gap:64px;align-items:start}
.v5-demo .demo-copy{grid-area:copy}.v5-demo .demo-controls{grid-area:controls;min-width:0}.v5-demo .phone-stage{grid-area:stage}
.demo-copy>p:not(.eyebrow){max-width:440px}
.demo-copy em{font-style:italic;font-family:Georgia,serif;font-size:1.05em}
.choose-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:30px;max-width:470px}
.choose-label{font-size:12px;font-weight:620}
.wallet-pill{border:1px solid #cdd8ee;background:#fff;border-radius:30px;font-size:11px;padding:7px 12px;color:#43516a;min-height:36px;display:flex;gap:7px;align-items:center;white-space:nowrap}
.wallet-pill:hover{border-color:var(--blue)}
.app-chips{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:12px;max-width:470px}
.app-chip{border:1.5px solid transparent;background:none;border-radius:14px;display:flex;flex-direction:column;align-items:center;gap:7px;padding:9px 2px;font-size:11px;color:var(--muted);min-height:84px;transition:background .2s,border-color .2s,color .2s}
.app-chip img{width:44px;height:44px;border-radius:12px;object-fit:cover;transition:transform .25s cubic-bezier(.3,1.5,.5,1)}
.app-chip:hover img{transform:translateY(-3px)}
.app-chip.is-selected{background:#fff;border-color:var(--blue);color:var(--ink);font-weight:650;box-shadow:0 8px 20px -12px #2463eb80}
.app-chip.is-selected img{transform:scale(1.06)}

.phone-stage{--pw:344px;--ph:704px;position:relative;display:flex;justify-content:center;padding:18px 0 10px}
.demo-phone{width:var(--pw);height:var(--ph);border-radius:50px;background:#0d1524;padding:9px;box-shadow:0 0 0 1.5px #2a3650 inset,0 40px 70px -30px #17243e88,0 12px 24px -12px #17243e55;position:relative;z-index:2}
.ph-screen{--ap-bg:#f6f7fb;--ap-card:#fff;--ap-ink:#1a1c22;--ap-muted:#5e6472;--ap-line:#e3e6ee;--ap-green:#2e7d32;--ap-chip:#eef0f5;--ap-blue:#1f5fb4;position:relative;width:100%;height:100%;border-radius:41px;overflow:hidden;background:var(--ap-bg);color:var(--ap-ink);font-size:13px;line-height:1.4;isolation:isolate}
.ph-status{position:absolute;top:0;left:0;right:0;height:38px;display:flex;align-items:center;justify-content:space-between;padding:6px 26px 0;font-size:12px;font-weight:600;z-index:5}
.ph-sys{display:flex;gap:5px;align-items:center}
.ph-sys i{display:block;background:currentColor;opacity:.85}
.ph-sys .sig{width:14px;height:9px;clip-path:polygon(0 100%,100% 0,100% 100%)}
.ph-sys .wifi{width:13px;height:9px;border-radius:9px 9px 2px 2px;clip-path:polygon(50% 100%,0 20%,100% 20%)}
.ph-sys .bat{width:20px;height:9px;border-radius:3px}
.ph-views{position:absolute;inset:38px 0 0 0}
.ph-view{position:absolute;inset:0;visibility:hidden;opacity:0;transition:opacity .25s,transform .5s cubic-bezier(.2,.8,.2,1),visibility 0s .5s;background:var(--ap-bg)}
.ph-view.is-active{visibility:visible;opacity:1;transition:opacity .25s,transform .5s cubic-bezier(.2,.8,.2,1),visibility 0s}
.ph-tab{bottom:72px}
.ph-push{transform:translateX(100%);opacity:1;z-index:4;display:flex;flex-direction:column;box-shadow:-20px 0 30px -20px #0003}
.ph-push.is-active{transform:none}
.is-pushed .ph-tab.is-active{transform:translateX(-25%);opacity:.5}
.ph-scroll{position:absolute;inset:0;overflow-y:auto;padding:14px 16px 16px;scrollbar-width:none}
.ph-scroll::-webkit-scrollbar,.pa-scroll::-webkit-scrollbar{display:none}
.pd-scroll::-webkit-scrollbar{display:none}
.ph-view h3{font-size:22px;letter-spacing:-.02em;font-weight:600;line-height:1.2}
.ph-sub{font-size:11.5px;color:var(--ap-muted);margin-top:3px}
.ph-search svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;flex-shrink:0}
.ph-search{display:flex;align-items:center;gap:8px;margin-top:14px;background:var(--ap-chip);border-radius:24px;padding:0 14px;height:42px;font-size:16px;color:var(--ap-muted)}
.ph-search input{border:0;background:transparent;font:inherit;font-size:13px;color:var(--ap-ink);width:100%;outline:none}
.ph-label{font-size:12px;font-weight:600;margin:16px 0 8px;color:var(--ap-ink)}
.ph-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.ph-tile{border:1px solid var(--ap-line);background:var(--ap-card);border-radius:18px;padding:11px;text-align:left;display:flex;flex-direction:column;gap:1px;color:var(--ap-ink);transition:transform .2s,box-shadow .2s}
.ph-tile img{width:30px;height:30px;border-radius:8px;object-fit:cover;margin-bottom:6px}
.ph-tile b{font-size:13.5px;font-weight:600}
.ph-tile span{font-size:11px;color:var(--ap-muted)}
.ph-tile em,.ph-row em{font-style:normal;color:var(--ap-green);font-weight:600;font-size:11.5px;line-height:1.3}
.ph-tile.is-pressed{transform:scale(.95);box-shadow:0 0 0 2px var(--ap-blue)}
.ph-list{background:var(--ap-card);border:1px solid var(--ap-line);border-radius:18px;overflow:hidden}
.ph-row{display:flex;align-items:center;gap:10px;width:100%;border:0;border-bottom:1px solid var(--ap-line);background:none;padding:10px 12px;text-align:left;color:var(--ap-ink)}
.ph-row:last-child{border-bottom:0}
.ph-row img{width:30px;height:30px;border-radius:8px;object-fit:cover}
.ph-row>span{flex:1;min-width:0;display:flex;flex-direction:column}
.ph-row b{font-size:13px;font-weight:600}
.ph-row small{font-size:11px;color:var(--ap-muted)}
.ph-row i{font-style:normal;font-size:20px;color:var(--ap-muted)}
.ph-row.is-pressed{background:var(--ap-chip)}
.ph-empty{text-align:center;color:var(--ap-muted);margin-top:30px}
.ph-tabbar{position:absolute;left:10px;right:10px;bottom:8px;height:58px;z-index:3;transition:transform .45s cubic-bezier(.2,.8,.2,1);background:var(--ap-card);border-radius:22px;display:flex;justify-content:space-around;align-items:center;box-shadow:0 6px 18px -8px #0003;font-size:10px;color:var(--ap-muted)}
.ph-tabbar button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:5px 16px;border-radius:16px;border:0;background:none;color:inherit;font:inherit;font-size:10.5px;min-width:76px}
.ph-tabbar svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.ph-tabbar .is-on{background:#e1eafb;color:var(--ap-blue);font-weight:600}
.ph-tabbar .is-on svg{fill:currentColor;fill-opacity:.18}
.is-pushed .ph-tabbar{transform:translateY(90px)}
.pd-head{display:flex;align-items:center;justify-content:center;gap:9px;height:50px;position:relative;flex-shrink:0}
.pd-head img{width:32px;height:32px;border-radius:9px;object-fit:cover}
.pd-head span{font-size:19px;font-weight:500;letter-spacing:-.01em}
.pd-back{position:absolute;left:8px;top:5px;width:40px;height:40px;border:0;background:none;font-size:22px;color:var(--ap-ink);border-radius:50%}
.pd-back:hover{background:var(--ap-chip)}
.pd-scroll{flex:1;overflow-y:auto;padding:4px 16px 20px;text-align:center;scrollbar-width:none}
.pd-card-wrap{height:182px;display:grid;place-items:center;margin:4px 0 10px}
.pd-card{width:92%;height:auto;border-radius:14px;box-shadow:0 14px 22px -12px #0007;animation:pd-card-in .55s cubic-bezier(.16,1,.3,1)}
.pd-card.is-portrait{width:auto;height:178px}
@keyframes pd-card-in{from{opacity:0;transform:translateY(14px) scale(.94)}}
.pd-pay{font-size:16px;color:var(--ap-ink)}
.pd-pay b{font-weight:650}
.pd-big{font-size:31px;line-height:1.1;font-weight:700;color:var(--ap-green);letter-spacing:-.02em;margin-top:6px;text-wrap:balance}
.pd-sub{font-size:12.5px;color:var(--ap-muted);margin-top:6px}
.pd-chip{display:inline-flex;align-items:center;gap:6px;margin-top:12px;border:1px solid var(--ap-line);border-radius:10px;padding:6px 11px;font-size:11.5px;color:var(--ap-ink);background:var(--ap-card)}
.pd-chip svg{width:15px;height:15px;fill:none;stroke:var(--ap-blue);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.pd-amount{position:relative;display:flex;align-items:center;gap:8px;margin-top:20px;border:1.5px solid #7b8190;border-radius:14px;height:54px;padding:0 14px;text-align:left;transition:border-color .2s}
.pd-amount:focus-within{border:2px solid var(--ap-blue)}
.pd-amount-label{position:absolute;top:-9px;left:12px;background:var(--ap-bg);padding:0 5px;font-size:11px;color:var(--ap-muted)}
.pd-amount:focus-within .pd-amount-label{color:var(--ap-blue)}
.pd-rupee{font-size:16px;color:var(--ap-muted)}
.pd-amount input{border:0;outline:none;background:transparent;font:inherit;font-size:18px;color:var(--ap-ink);width:100%;letter-spacing:.01em}
.pd-notes{list-style:none;margin:14px 0 0;padding:13px 14px;background:var(--ap-card);border:1px solid var(--ap-line);border-radius:18px;text-align:left;display:grid;gap:10px}
.pd-notes li{display:flex;gap:10px;font-size:12px;line-height:1.45;color:var(--ap-ink)}
.pd-ico{flex-shrink:0;width:18px;height:18px;color:var(--ap-muted);margin-top:1px}
.pd-ico svg{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pd-next{display:flex;align-items:center;gap:10px;margin-top:10px;padding:12px;background:var(--ap-card);border:1px solid var(--ap-line);border-radius:18px;text-align:left}
.pd-next img{width:56px;height:auto;border-radius:6px;flex-shrink:0}
.pd-next img.is-portrait{width:auto;height:54px;margin:0 14px}
.pd-next-name{flex:1;font-size:13px;font-weight:600;line-height:1.25;display:flex;flex-direction:column}
.pd-next-name small{font-size:10.5px;font-weight:400;color:var(--ap-muted)}
.pd-next b{color:var(--ap-green);font-size:12.5px;font-weight:600;text-align:right;max-width:46%}
.pd-compare{margin-top:12px;width:100%;height:46px;border-radius:24px;border:1.5px solid #7b8190;background:transparent;color:var(--ap-blue);font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px}
.pd-compare span{font-size:16px}
.ph-backdrop{position:absolute;inset:0;background:#0007;opacity:0;pointer-events:none;transition:opacity .3s;z-index:6}
.ph-sheet{position:absolute;left:0;right:0;bottom:0;height:80%;background:var(--ap-card);border-radius:28px 28px 0 0;z-index:7;transform:translateY(102%);transition:transform .5s cubic-bezier(.2,.8,.2,1);padding:6px 18px 18px;display:flex;flex-direction:column}
.sheet-open .ph-backdrop{opacity:1;pointer-events:auto}
.sheet-open .ph-sheet{transform:none}
.ps-handle{display:block;width:100%;height:24px;border:0;background:none;position:relative;flex-shrink:0}
.ps-handle:after{content:'';position:absolute;left:50%;top:10px;width:36px;height:4px;border-radius:4px;background:#c4c8d2;transform:translateX(-50%)}
.ph-sheet h4{font-size:20px;font-weight:600;letter-spacing:-.02em;margin:4px 0 0}
#ps-sub{font-size:12px;color:var(--ap-muted)}
#ps-list{list-style:none;margin:10px 0 0;padding:0;overflow-y:auto;scrollbar-width:none}
#ps-list li{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--ap-line)}
#ps-list li:last-child{border-bottom:0}
#ps-list img{width:62px;height:auto;border-radius:6px;flex-shrink:0;align-self:flex-start}
#ps-list img.is-portrait{width:auto;height:58px;margin:0 16px}
#ps-list p{display:flex;justify-content:space-between;gap:8px;font-size:13.5px;line-height:1.3}
#ps-list p em{font-style:normal;color:var(--ap-green);font-weight:600;font-size:12.5px;text-align:right}
#ps-list small{display:block;font-size:11px;color:var(--ap-muted);margin-top:3px;line-height:1.45}
.sheet-open #ps-list li{animation:row-in .45s cubic-bezier(.16,1,.3,1) both}
.sheet-open #ps-list li:nth-child(2){animation-delay:.05s}.sheet-open #ps-list li:nth-child(3){animation-delay:.1s}.sheet-open #ps-list li:nth-child(4){animation-delay:.15s}.sheet-open #ps-list li:nth-child(5){animation-delay:.2s}
@keyframes row-in{from{opacity:0;transform:translateY(10px)}}

/* Heads-up notification (outside the phone so it reads big) */
.ph-notif{position:absolute;top:44px;left:50%;width:calc(var(--pw) + 34px);max-width:calc(100% - 8px);z-index:9;background:#fffffe;color:#141a26;border-radius:22px;padding:13px 16px 14px;box-shadow:0 26px 50px -16px #0d152499,0 0 0 1px #0d15240f;cursor:pointer;transform:translate(-50%,-26px) scale(.96);opacity:0;pointer-events:none;transition:transform .55s cubic-bezier(.2,1.3,.4,1),opacity .3s}
.ph-notif.is-in{transform:translate(-50%,0) scale(1);opacity:1;pointer-events:auto}
.ph-notif.is-tapped{transform:translate(-50%,0) scale(.96)}
.pn-top{display:flex;align-items:center;gap:6px;font-size:11px;color:#5e6472;font-weight:600}
.pn-top>img:first-child{width:20px;height:20px;border-radius:6px;background:#e9effb}
.pn-dot{opacity:.6}
.pn-app{margin-left:auto;width:24px;height:24px;border-radius:7px;object-fit:cover}
.ph-notif strong{display:block;font-size:16px;line-height:1.28;letter-spacing:-.02em;margin-top:7px}
.ph-notif p{font-size:12.5px;line-height:1.45;color:#4b5261;margin-top:4px}
.stage-panda{position:absolute;left:-30px;bottom:-6px;width:150px;height:auto;z-index:3;transform:rotate(-8deg);pointer-events:none;animation:eureka-wiggle 6s ease-in-out infinite}
.stage-note{position:absolute;right:-26px;bottom:120px;transform:rotate(-8deg);font-size:17px;z-index:3;pointer-events:none}
.stage-note svg{transform:scaleX(-1);margin-left:-10px}

/* ---------- Steps & launch ---------- */
.real-mini-card{width:215px}
.launch-panel{overflow:hidden}
.card-river{position:absolute;inset:auto 0 26px 0;z-index:0;opacity:.22;pointer-events:none;transform:rotate(-4deg) translateY(10px)}
.river-track{display:flex;gap:18px;width:max-content;animation:marquee 60s linear infinite}
.river-track img{width:150px;height:auto;border-radius:9px}
.launch-panel>img{width:400px;height:420px;bottom:-40px;right:10px;transform:rotate(-4deg);animation:panda-float 5.5s ease-in-out infinite}
.footer-legal{flex-basis:100%;font-size:10px;color:#828a97;line-height:1.6;order:9}
.site-footer{flex-wrap:wrap}

.swipe-hint{display:none;align-items:center;justify-content:flex-end;gap:6px;font-size:11px;color:var(--muted);padding:0 16px 8px}
.swipe-hint span{animation:swipe-nudge 1.6s ease-in-out infinite}
@keyframes swipe-nudge{0%,100%{transform:none}50%{transform:translateX(5px)}}
/* ---------- Responsive ---------- */
@media(max-width:1150px){
  .card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .v5-demo{column-gap:36px}
  .live-notification{width:310px}
  .stage-note{display:none}
}
@media(max-width:950px){
  .wallet-head{grid-template-columns:1fr;gap:18px}
  .app-chips{grid-template-columns:repeat(4,minmax(0,1fr))}
  .phone-stage{--pw:320px;--ph:660px}
  .stage-panda{width:120px;left:-20px}
}
@media(max-width:760px){
  .nav-wrap .header-cta{display:none}
  .menu-toggle{display:flex}
  .theme-toggle{width:44px;height:44px}
  .hero-trust{font-size:11px;gap:8px 14px;margin-top:18px}
  .hero-handwritten{display:none}
  .live-notification{width:min(300px,calc(100% - 10px));left:0;top:80px;padding:11px 12px;gap:9px}
  .live-notification .hn-app{width:34px;height:34px}
  .live-notification strong{font-size:11px}
  .live-notification p{font-size:9px}
  .live-notification .hn-card{width:54px}
  .marquee{margin-top:16px}
  .marquee-track{animation-duration:30s}
  .marquee-app{padding:6px 16px;font-size:12px;gap:9px}
  .marquee-app img{width:36px;height:36px;border-radius:10px}
  .missed-result>img{width:150px;height:150px;margin-right:-14px}
  /* Spot your cards: a two-row swipe strip instead of a long grid */
  .wallet-section{padding:36px 0 54px}
  .wallet-head>p{font-size:14px}
  .wallet-board{margin-top:84px;padding:16px 0 14px;border-radius:22px}
  .wallet-peek{width:130px;top:-82px;right:22px}
  .wallet-filter{flex-wrap:nowrap;overflow-x:auto;margin:0 0 14px;padding:0 14px 4px;scrollbar-width:none}
  .wallet-filter::-webkit-scrollbar,.card-grid::-webkit-scrollbar,.steps-grid::-webkit-scrollbar{display:none}
  .wallet-filter button{flex-shrink:0;min-height:36px;padding:7px 13px}
  .card-grid{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,auto);grid-auto-columns:42%;grid-template-columns:none;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 14px 8px;scroll-padding:0 14px;scrollbar-width:none}
  .card-tile[hidden]{display:flex!important}
  .card-tile{scroll-snap-align:start;padding:10px 9px 9px;border-radius:15px;gap:6px}
  .card-tile .tile-art{height:72px}
  .card-tile .tile-art img{max-height:72px}
  .card-tile .tile-name{font-size:12px;line-height:1.25;min-height:30px}
  .card-tile .tile-shines{gap:4px;min-height:19px;flex-wrap:nowrap;overflow:hidden}
  .shine-label{display:none}
  .card-tile .tile-shines .shine-label:only-child{display:inline;font-size:9.5px}
  .tile-shines img{width:18px;height:18px;border-radius:5px}
  .shine-more{font-size:10px;color:var(--muted)}
  .tile-check{width:24px;height:24px;font-size:11px;top:-4px;right:-2px}
  .wallet-more{display:none!important}
  .swipe-hint{display:flex}
  .wallet-legal{padding:0 14px}
  .wallet-tray{bottom:10px}
  .wallet-tray-inner{padding:8px 8px 8px 12px;gap:10px}
  .wallet-tray-inner p{font-size:12px}
  .tray-clear{display:none}
  /* Demo */
  .demo-section{padding-block:40px 46px}
  .v5-demo{grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "controls" "stage";row-gap:14px}
  .choose-row{margin-top:2px}
  .wallet-pill{font-size:10.5px;padding:6px 10px}
  .app-chips{display:flex;overflow-x:auto;gap:6px;max-width:none;width:100vw;margin:8px 0 0 calc(50% - 50vw);padding:4px max(16px,calc(50vw - 50%)) 6px;scroll-snap-type:x proximity;scrollbar-width:none}
  .app-chips::-webkit-scrollbar{display:none}
  .app-chip{flex:0 0 70px;scroll-snap-align:center;min-height:76px;padding-block:7px}
  .app-chip img{width:40px;height:40px}
  #demo-controls{scroll-margin-top:16px}
  .phone-stage{--pw:min(330px,calc(100vw - 48px));--ph:min(640px,calc(100svh - 150px));padding-top:10px}
  .demo-phone{border-radius:44px;padding:8px}
  .ph-screen{border-radius:36px}
  .ph-notif{top:30px;width:calc(var(--pw) + 12px);padding:11px 14px 12px}
  .ph-notif strong{font-size:14.5px}
  .ph-notif p{font-size:12px}
  .stage-panda{width:92px;left:-14px;bottom:-10px}
  .pd-card-wrap{height:160px}
  .pd-card.is-portrait{height:156px}
  .pd-big{font-size:28px}
  /* Steps: swipe instead of stacking three tall cards */
  .steps-grid{display:grid;grid-auto-flow:column;grid-auto-columns:82%;grid-template-columns:none;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;margin:30px calc(50% - 50vw) 0;padding:0 max(16px,calc(50vw - 50%)) 6px;scroll-padding:0 max(16px,calc(50vw - 50%));scrollbar-width:none}
  .step{scroll-snap-align:start}
  .step-visual{height:190px!important;margin-bottom:18px}
  .launch-panel>img{width:250px;height:260px;right:-14px;bottom:-14px}
  .river-track img{width:110px}
  .card-river{bottom:12px}
}
@media(max-width:390px){
  .live-notification{width:calc(100% - 4px)}
  .wallet-tray-inner p{font-size:11px}
  .card-grid{grid-auto-columns:46%}
  .pd-big{font-size:26px}
}
/* Landscape phones: the app screen becomes a wide panel that fits the screen height */
@media(orientation:landscape) and (max-height:540px){
  .site-header .nav-wrap{height:58px}
  .official-brand{width:118px}
  html{scroll-padding-top:66px}
  .hero{min-height:0;padding-top:20px;padding-bottom:20px;grid-template-columns:1fr 1fr}
  .hero h1{font-size:clamp(38px,6.6vw,56px)}
  .hero-art{height:max(300px,calc(100svh - 70px))}
  .demo-section{padding-block:26px 30px}
  .v5-demo{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);grid-template-areas:"copy stage" "controls stage";column-gap:24px;row-gap:0}
  .v5-demo .demo-copy h2{font-size:32px}
  .v5-demo .demo-copy>p:not(.eyebrow),.v5-demo .demo-copy .eyebrow{display:none}
  .choose-row{margin-top:10px}
  .app-chips{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:auto;margin:8px 0 0;padding:0;overflow:visible}
  .app-chip{min-height:58px;flex:none;padding-block:5px;font-size:10px;gap:4px}
  .app-chip img{width:32px;height:32px;border-radius:9px}
  .phone-stage{--pw:100%;padding:0;position:sticky;top:66px}
  .demo-phone{width:100%;height:calc(100svh - 80px);min-height:290px;border-radius:24px;padding:6px}
  .ph-screen{border-radius:19px}
  .ph-status{display:none}
  .ph-views{inset:0}
  .ph-notif{top:10px;width:calc(100% - 24px)}
  .ph-notif strong{font-size:14px}
  .stage-panda,.stage-note{display:none}
  .ph-grid{grid-template-columns:repeat(3,1fr)}
  .pd-card-wrap{height:110px}.pd-card{width:auto;height:104px}.pd-card.is-portrait{height:108px}
  .pd-big{font-size:24px}
  .ph-sheet{height:88%}
  h2{font-size:34px}
  .wallet-section{padding:24px 0 36px}
  .wallet-head{grid-template-columns:1.1fr 1fr;gap:24px}
  .wallet-head>p{font-size:12px;padding-bottom:0}
  .wallet-board{margin-top:64px;padding:16px 0 12px}
  .wallet-filter{padding:0 14px;margin-bottom:10px}
  .wallet-peek{width:100px;top:-64px}
  .card-grid{padding:4px 14px 8px;gap:10px;grid-auto-flow:column;grid-template-rows:auto;grid-auto-columns:190px;grid-template-columns:none;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px}
  .card-tile[hidden]{display:flex!important}
  .wallet-more{display:none!important}
  .steps-grid{grid-auto-flow:column;grid-auto-columns:46%;grid-template-columns:none;overflow-x:auto;scroll-snap-type:x mandatory}
  .step{scroll-snap-align:start}
  .step-visual{height:170px}
}
@media(prefers-reduced-motion:reduce){
  .marquee-track,.river-track,.wallet-peek,.stage-panda,.launch-panel>img{animation:none!important}
  .marquee{overflow-x:auto}
}

/* ---------- Dark theme ---------- */
[data-theme="dark"]{--paper:#0d1320;--ink:#edf1f8;--muted:#9ba7bb;--line:#263046;--light-blue:#18264a;color-scheme:dark}
[data-theme="dark"] body{background:var(--paper)}
[data-theme="dark"] ::selection{background:#2a4c99}
[data-theme="dark"] .site-header{background:#0d1320ee;border-bottom-color:#1f2738}
[data-theme="dark"] .button-dark{background:#edf1f8;color:#0d1320}
[data-theme="dark"] .hero-orbit{background:#141d31}
[data-theme="dark"] .hero-orbit:after{border-color:#2b3955}
[data-theme="dark"] .device{background:#05080f;border-color:#2c3852}
[data-theme="dark"] .hero-notification,[data-theme="dark"] .mode-picker,[data-theme="dark"] .setting-mini,[data-theme="dark"] .floating-plus,[data-theme="dark"] .panda-bubble{background:#161f32;border-color:#27324a;color:var(--ink)}
[data-theme="dark"] .hero-trust li>span{background:#1b2a4a}
[data-theme="dark"] .handwritten,[data-theme="dark"] .panda-comment>span{color:#93a4c4}
[data-theme="dark"] .missed-calculator{background:#131b2b;border-color:#253048}
[data-theme="dark"] .calculator-link{border-top-color:#2a3449}
[data-theme="dark"] .spend-label,[data-theme="dark"] .range-limits,[data-theme="dark"] .result-label,[data-theme="dark"] .calculator-note,[data-theme="dark"] .merchant-attribution,[data-theme="dark"] .step-number,[data-theme="dark"] .screenshot-note,[data-theme="dark"] .wallet-legal,[data-theme="dark"] .footer-legal{color:var(--muted)}
[data-theme="dark"] #monthly-spend::-webkit-slider-runnable-track{background:linear-gradient(90deg,var(--blue) var(--fill,20%),#2a3346 var(--fill,20%))}
[data-theme="dark"] #monthly-spend::-moz-range-track{background:#2a3346}
[data-theme="dark"] .wallet-board{background:#111929;border-color:#222c40;box-shadow:none}
[data-theme="dark"] .wallet-filter button{background:#172033;border-color:#2a3448;color:#c3cbe0}
[data-theme="dark"] .wallet-filter button[aria-pressed="true"]{background:#edf1f8;border-color:#edf1f8;color:#0d1320}
[data-theme="dark"] .card-tile{background:#162032;border-color:#232e44}
[data-theme="dark"] .card-tile:hover{background:#1a253a}
[data-theme="dark"] .card-tile.is-owned{background:#16264a;border-color:var(--blue)}
[data-theme="dark"] .wallet-tray-inner{background:#1d2a45}
[data-theme="dark"] .demo-section{background:#0f1729}
[data-theme="dark"] .app-chip.is-selected{background:#18223a}
[data-theme="dark"] .wallet-pill{background:#172033;border-color:#2a3448;color:#c3cbe0}
[data-theme="dark"] .demo-phone{background:#04070d;box-shadow:0 0 0 1.5px #34405c inset,0 40px 70px -30px #000c}
[data-theme="dark"] .ph-screen{--ap-bg:#0f131b;--ap-card:#191e29;--ap-ink:#e9edf5;--ap-muted:#9aa3b4;--ap-line:#262c39;--ap-green:#74d17f;--ap-chip:#1f2532;--ap-blue:#8bb4ff}
[data-theme="dark"] .ph-tabbar .is-on{background:#1f2e4d}
[data-theme="dark"] .pd-amount,[data-theme="dark"] .pd-compare{border-color:#56607a}
[data-theme="dark"] .ph-notif{background:#1b2232;color:#eef2f9;box-shadow:0 26px 50px -16px #000c,0 0 0 1px #2c3550}
[data-theme="dark"] .ph-notif p,[data-theme="dark"] .pn-top{color:#a9b3c6}
[data-theme="dark"] .step-visual{background:#151d2c}
[data-theme="dark"] .pick-visual{background:#141c2b}
[data-theme="dark"] .switch-visual{background:#131d1d}
[data-theme="dark"] .panda-visual{background:#141f36}
[data-theme="dark"] .celebration-circle{background:#1d2c4c}
[data-theme="dark"] .quiet-mini{background:#ffffff0d}
[data-theme="dark"] .setting-symbol,[data-theme="dark"] .official-setting-icon{background:#1d2b4d}
[data-theme="dark"] .app-section{background:#111827}
[data-theme="dark"] .showcase-circle{background:#1a2335}
[data-theme="dark"] .tab-icon{background:#1f293c}
[data-theme="dark"] .is-active>.tab-icon{background:#1d2b4d}
[data-theme="dark"] .screen-tabs button{border-color:#263046}
[data-theme="dark"] .mode-picker .is-active{background:#edf1f8;color:#0d1320}
[data-theme="dark"] dialog{border-color:#263046}
[data-theme="dark"] .dialog-close:hover{background:#1b2436}
[data-theme="dark"] .faq-list details,[data-theme="dark"] .faq-list summary{border-color:#263046}
[data-theme="dark"] .official-notification-icon,[data-theme="dark"] .sample-notification-top img{background:#e9effb}
html{transition:background-color .3s}
body,.site-header,.demo-section,.app-section,.wallet-board,.card-tile,.missed-calculator{transition:background-color .35s,border-color .35s,color .35s}

/* =================== V5 additions =================== */
/* Tighter desktop rhythm: less dead space between sections */
.hero{min-height:0;padding-top:44px;padding-bottom:34px}
.app-strip{padding-top:6px;padding-bottom:6px}
.missed-section{padding-block:56px 48px;gap:70px}
.how-section{padding:60px 0 56px}
.steps-grid{margin-top:36px}
.control-section{padding-block:56px}
.faq-section{padding-block:60px}
.launch-section{padding-bottom:48px}
.section-heading h2,.missed-copy h2{margin-top:14px}

/* Demo layout */
.demo-section{padding:56px 0 52px;margin-top:22px}
.v5-demo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.92fr);grid-template-areas:"copy stage" "controls stage";column-gap:56px;align-items:start}
.v5-demo .demo-copy{grid-area:copy}.v5-demo .demo-controls{grid-area:controls;min-width:0}.v5-demo .phone-stage{grid-area:stage}
.v5-demo .demo-copy h2{font-size:clamp(36px,3.6vw,52px);margin-top:16px;line-height:1.04}
.v5-demo .demo-copy h2 .serif{display:block}
.v5-demo .demo-copy>p:not(.eyebrow){margin-top:16px;font-size:14px;line-height:1.75;color:var(--muted);max-width:460px}
.step-block{margin-top:26px}
.step-block+.step-block{margin-top:22px}
.step-head{display:flex;align-items:center;gap:12px}
.step-num{width:28px;height:28px;border-radius:50%;background:var(--blue);color:#fff;font-size:13px;font-weight:700;display:grid;place-items:center;flex-shrink:0;box-shadow:0 6px 14px -6px #2463eb}
.step-head p{display:flex;flex-direction:column;line-height:1.3;margin-right:auto}
.step-head b{font-size:14px;font-weight:650;letter-spacing:-.02em}
.step-head small{font-size:11.5px;color:var(--muted)}
.text-btn{border:0;background:none;color:var(--blue);font-size:12px;font-weight:600;padding:8px 4px;min-height:36px}
.pick-strip{display:flex;gap:8px;overflow-x:auto;margin-top:12px;padding:6px 2px 8px;scroll-snap-type:x proximity;scrollbar-width:none;mask-image:linear-gradient(90deg,#000 88%,transparent);-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent)}
.pick-strip::-webkit-scrollbar{display:none}
.pk{flex:0 0 112px;scroll-snap-align:start;border:1.5px solid #dfe4ee;background:#fff;border-radius:14px;padding:8px 8px 7px;display:flex;flex-direction:column;gap:5px;text-align:left;color:var(--ink);transition:border-color .2s,background .2s,transform .2s,box-shadow .2s}
.pk:hover{transform:translateY(-2px);box-shadow:0 10px 20px -14px #17243e66}
.pk-art{position:relative;height:56px;display:grid;place-items:center}
.pk-art img{max-height:56px;max-width:100%;width:auto;border-radius:5px;filter:drop-shadow(0 5px 6px #17243e30)}
.pk-check{position:absolute;top:-4px;right:-4px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:13px;font-weight:700;background:#fff;color:var(--blue);border:1.5px solid #c9d5ec;transition:background .2s,color .2s,transform .3s cubic-bezier(.3,1.6,.5,1)}
.pk.is-on{border-color:var(--blue);background:#f1f6ff}
.pk.is-on .pk-check{background:var(--blue);color:#fff;border-color:var(--blue)}
.pk.pop .pk-check{animation:tile-pop .45s cubic-bezier(.3,1.5,.5,1)}
.pk-name{font-size:11px;font-weight:600;line-height:1.2;min-height:26px}
.pk-shines{display:flex;gap:3px;min-height:16px;align-items:center}
.pk-shines img{width:16px;height:16px;border-radius:4px}
.pk-shines em{font-style:normal;font-size:9.5px;color:var(--muted)}
.pk-more{border-style:dashed;background:transparent}
.pk-more .pk-art b{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-size:24px;font-weight:400;color:var(--blue);background:#e8effd}
.v5-demo .app-chips{margin-top:12px;max-width:none;grid-template-columns:repeat(5,minmax(0,1fr))}
.v5-demo .app-chip{min-height:76px;padding-block:7px}
.v5-demo .app-chip img{width:40px;height:40px}
.phone-stage{--pw:336px;--ph:690px;padding-top:6px}

/* My cards */
.ph-h-big{font-size:26px!important}
.mc-list{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:9px}
.mc-row{position:relative;display:flex;align-items:center;gap:12px;background:var(--ap-card);border:1px solid var(--ap-line);border-radius:18px;padding:11px 8px 11px 12px;overflow:hidden;animation:row-in .4s cubic-bezier(.16,1,.3,1) both}
.mc-art{width:62px;height:40px;display:grid;place-items:center;flex-shrink:0}
.mc-art img{max-width:62px;max-height:40px;border-radius:5px}
.mc-text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.mc-text b{font-size:14px;font-weight:600}
.mc-text small{font-size:11px;color:var(--ap-muted)}
.mc-more{border:0;background:none;width:32px;height:36px;font-size:18px;color:var(--ap-ink);border-radius:50%;flex-shrink:0}
.mc-remove{position:absolute;right:44px;top:50%;transform:translate(16px,-50%);opacity:0;pointer-events:none;border:0;border-radius:20px;background:#d93838;color:#fff;font-size:11.5px;font-weight:600;padding:7px 12px;transition:transform .3s cubic-bezier(.2,1.2,.4,1),opacity .2s}
.mc-row.show-remove .mc-remove{transform:translate(0,-50%);opacity:1;pointer-events:auto}
.mc-add{margin-top:10px;width:100%;height:50px;border-radius:16px;border:1.5px dashed #9aa4b8;background:transparent;color:var(--ap-blue);font-size:14px;font-weight:600}
.mc-add span{font-size:18px;margin-right:4px}

/* Add your cards */
.pa-head{display:flex;align-items:center;gap:6px;height:50px;padding-left:6px;flex-shrink:0}
.pa-head .pd-back{position:static}
.pa-head h4{font-size:20px;font-weight:600;letter-spacing:-.02em;margin:0}
.pa-sub{font-size:12px;color:var(--ap-muted);padding:0 18px;margin-top:2px;line-height:1.45}
.pa-search{margin:10px 16px 0}
.pa-scroll{flex:1;overflow-y:auto;padding:0 12px 10px;scrollbar-width:none}
.pa-row{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;border-radius:16px;padding:9px 8px;margin-top:2px;text-align:left;color:var(--ap-ink);transition:background .2s}
.pa-row.is-on{background:#e4ecfb}
.pa-art{width:58px;height:38px;display:grid;place-items:center;flex-shrink:0}
.pa-art img{max-width:58px;max-height:38px;border-radius:4px}
.pa-text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.pa-text b{font-size:13.5px;font-weight:600}
.pa-text small{font-size:11px;color:var(--ap-muted)}
.pa-box{width:24px;height:24px;border-radius:6px;border:2px solid #7b8190;flex-shrink:0;display:grid;place-items:center;font-style:normal;font-size:13px;font-weight:700;color:#fff;transition:background .2s,border-color .2s}
.pa-row.is-on .pa-box{background:var(--ap-blue);border-color:var(--ap-blue)}
.pa-foot{padding:10px 14px 14px;border-top:1px solid var(--ap-line);background:var(--ap-bg)}
.pa-done{width:100%;height:48px;border:0;border-radius:26px;background:var(--ap-blue);color:#fff;font-size:15px;font-weight:600}
.ph-empty{text-align:center;color:var(--ap-muted);margin-top:28px;padding:0 10px;list-style:none}
.ph-empty .pa-done{margin-top:14px}

/* Settings */
.st-group{background:var(--ap-card);border:1px solid var(--ap-line);border-radius:18px;overflow:hidden}
.st-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--ap-line);position:relative}
.st-row:last-child{border-bottom:0}
.st-row>span{flex:1;display:flex;flex-direction:column;line-height:1.3}
.st-row b{font-size:13.5px;font-weight:600}
.st-row small{font-size:11px;color:var(--ap-muted)}
.st-row em{font-style:normal;color:var(--ap-muted);font-size:12.5px}
.st-row input{position:absolute;opacity:0;inset:0;cursor:pointer;margin:0}
.st-switch{width:40px;height:24px;border-radius:20px;background:#c3c8d3;position:relative;flex-shrink:0;transition:background .2s}
.st-switch:after{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .25s cubic-bezier(.3,1.4,.5,1)}
.st-row input:checked+.st-switch{background:var(--ap-blue)}
.st-row input:checked+.st-switch:after{transform:translateX(16px)}
.st-row input:focus-visible+.st-switch{outline:2px solid var(--ap-blue);outline-offset:2px}
.st-seg{display:grid;grid-template-columns:1fr 1fr;background:var(--ap-chip);border-radius:14px;padding:4px;gap:4px}
.st-seg button{border:0;background:transparent;border-radius:10px;height:38px;font-size:13px;color:var(--ap-ink)}
.st-seg button[aria-pressed="true"]{background:var(--ap-card);font-weight:600;box-shadow:0 2px 8px -3px #0003}

/* Dark versions of the new bits */
[data-theme="dark"] .pk{background:#162032;border-color:#263046}
[data-theme="dark"] .pk.is-on{background:#16264a;border-color:var(--blue)}
[data-theme="dark"] .pk-check{background:#1b2436;border-color:#34405a}
[data-theme="dark"] .pk-more{background:transparent}
[data-theme="dark"] .pk-more .pk-art b{background:#1b2a4a}
[data-theme="dark"] .pa-row.is-on{background:#1d2b48}
[data-theme="dark"] .mc-add{border-color:#4b5568}
[data-theme="dark"] .st-switch{background:#3a4152}

/* Responsive */
@media(max-width:1150px){.v5-demo{column-gap:34px}.phone-stage{--pw:320px;--ph:660px}}
@media(max-width:950px){.v5-demo .app-chips{grid-template-columns:repeat(5,minmax(0,1fr))}.v5-demo .app-chip span{font-size:10px}}
@media(max-width:760px){
  .hero{padding-top:30px;padding-bottom:24px}
  .missed-section{padding-block:36px 40px;gap:24px}
  .how-section{padding:44px 0 40px}
  .control-section{padding-block:40px;gap:24px}
  .faq-section{padding-block:40px}
  .demo-section{padding:36px 0 40px;margin-top:14px}
  .v5-demo{grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "controls" "stage";row-gap:12px}
  .v5-demo .demo-copy h2{font-size:clamp(32px,9vw,42px)}
  .v5-demo .demo-copy h2 .serif{display:inline}
  .v5-demo .demo-copy>p:not(.eyebrow){font-size:13.5px;margin-top:12px}
  .step-block{margin-top:12px}.step-block+.step-block{margin-top:14px}
  .pick-strip{width:100vw;margin-left:calc(50% - 50vw);padding:6px max(16px,calc(50vw - 50%)) 8px;mask-image:none;-webkit-mask-image:none}
  .pk{flex-basis:98px;padding:7px 7px 6px}
  .pk-art{height:46px}.pk-art img{max-height:46px}
  .pk-name{font-size:10.5px;min-height:24px}
  .v5-demo .app-chips{display:flex}
  .phone-stage{--pw:min(330px,calc(100vw - 40px));--ph:min(640px,calc(100svh - 120px))}
}
@media(orientation:landscape) and (max-height:540px){
  .v5-demo{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);grid-template-areas:"copy stage" "controls stage";column-gap:24px}
  .v5-demo .demo-copy h2{font-size:30px}
  .v5-demo .demo-copy h2 .serif{display:inline}
  .v5-demo .demo-copy>p:not(.eyebrow){display:none}
  .v5-demo .app-chips{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:auto;margin:8px 0 0;padding:0;overflow:visible}
  .pk{flex-basis:96px}.pk-art{height:42px}.pk-art img{max-height:42px}
  .ph-tab{bottom:64px}
  .ph-tabbar{height:52px;bottom:6px}
}

/* Compact calculator */
@media(min-width:761px){.missed-section{grid-template-columns:1.1fr .9fr}}
.missed-calculator{padding:24px 26px 18px;border-radius:22px;max-width:470px;justify-self:end;width:100%}
.missed-calculator h3{font-size:22px;margin-top:10px}
.calculator-context{margin-top:8px;font-size:12px}
.spend-label{margin-top:16px}
.missed-result{min-height:0;margin-top:10px}
.missed-result output{font-size:46px}
.missed-result>img{width:120px;height:118px;margin-right:-12px}
.result-period{font-size:12px}
.result-period b{font-size:11.5px}
.calculator-note{margin-top:6px;font-size:10px}
.calculator-link{margin-top:10px;padding-top:10px;min-height:40px}
@media(max-width:760px){.missed-calculator{justify-self:stretch;max-width:none;padding:20px 18px 14px}.missed-result output{font-size:44px}.missed-result>img{width:110px;height:108px}}

/* V5.2: brand-native decorations instead of generic sparkles */
.art-star svg,.launch-spark svg{display:block;width:1em;height:auto}
.art-star .deco-card{width:1.3em}
.star-one{color:var(--blue);animation:deco-bob 6s ease-in-out infinite}
.star-two{color:#e0a526;animation:deco-spin 8s ease-in-out infinite}
.launch-spark{color:#ffd166;opacity:.95;animation:deco-spin 9s ease-in-out infinite}
@keyframes deco-bob{0%,100%{transform:rotate(15deg) translateY(0)}50%{transform:rotate(8deg) translateY(-6px)}}
@keyframes deco-spin{0%,100%{transform:rotate(-10deg) scale(1)}50%{transform:rotate(12deg) scale(1.08)}}
@media(prefers-reduced-motion:reduce){.star-one,.star-two,.launch-spark{animation:none}}

.site-footer{flex-wrap:wrap}.footer-legal{flex-basis:100%;font-size:10.5px;color:var(--muted);line-height:1.6;margin-top:2px}

/* Copy tester panel (only with ?test=1) */
.copy-test{position:fixed;right:14px;bottom:14px;z-index:80;width:min(360px,calc(100% - 28px));background:#111a2b;color:#e8edf6;border-radius:16px;box-shadow:0 20px 50px -15px #000c;font-size:12px}
.ct-head{display:flex;align-items:center;justify-content:space-between;padding:10px 12px 8px 14px}
.ct-head button{border:0;background:#22304a;color:#fff;width:28px;height:28px;border-radius:8px;font-size:16px}
.copy-test.is-min .ct-body{display:none}
.ct-body{padding:0 14px 14px;display:grid;gap:8px}
.ct-body label{display:grid;gap:3px}
.ct-body label span{color:#9fb0cc;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase}
.ct-body select{width:100%;background:#1b2640;color:#fff;border:1px solid #2c3a58;border-radius:9px;padding:7px 8px;font:inherit;font-size:12px}
.ct-row{display:flex;gap:6px;margin-top:4px}
.ct-row button{flex:1;border:0;border-radius:9px;background:#2463eb;color:#fff;font-weight:600;padding:9px 6px;font-size:11.5px}
.ct-row button:nth-child(2){background:#22304a}
.ct-link{font-size:10px;color:#8e9cb6;word-break:break-all;line-height:1.4}
.button #cp-btn{font-size:inherit;line-height:inherit}
