.hero-demo { min-width: 0; }
.afterglow .hero-demo .phone { height: 535px; min-height: 0; display: flex; flex-direction: column; }
.hero-demo .phone-top { flex-shrink: 0; margin-bottom: 16px; }
.hero-demo .phone-brand { flex-shrink: 0; margin-bottom: 14px; }
.demo-phone-window { flex: 1; min-height: 0; overflow: hidden; padding-top: 13px; margin-top: -6px; }
.demo-phone-scene[hidden], .demo-card-scene[hidden] { display: none; }
.demo-phone-page { padding: 0 2px 16px; }
.demo-phone-page > .mobile-eyebrow { font-size: .55rem; }
.demo-phone-page > h3 { margin-bottom: 15px; }
.demo-feature-anchor { position: relative; transition: box-shadow .4s; }
.afterglow .hero-demo .demo-is-selected { box-shadow: 0 0 0 2px #baffdc9c, 0 0 20px #42fbd323; }
.demo-tap { position: absolute; width: 30px; height: 30px; right: 13px; bottom: 12px; border: 2px solid #f3ffff; border-radius: 50%; background: #efffff60; opacity: 0; pointer-events: none; box-shadow: 0 0 0 7px #edffff25; }
.afterglow .hero-demo .demo-bills-balance { background: linear-gradient(120deg, #5ad8ff, #71aaff); color: #102d45; }
.afterglow .hero-demo .demo-insight-balance { background: linear-gradient(120deg, #b4a0ff, #dfb9ff); color: #302649; }
.hero-demo .phone-nav { flex-shrink: 0; margin-top: 7px; padding-top: 11px; }
.hero-demo .phone-nav > span { color: #839da9; }
.hero-demo .phone-nav > span.is-active { color: #72ffda; }
.hero-demo .phone .bill-list { margin-top: 12px; }
.hero-demo .phone .bill { padding-block: 9px; gap: 9px; }
.hero-demo .phone .bill .date { padding: 4px 7px; }
.hero-demo .phone .bill .date b { font-size: .75rem; }
.hero-demo .phone .bill .date small { font-size: .5rem; }
.hero-demo .phone .bill > div:nth-child(2) > b, .hero-demo .phone .bill > strong { font-size: .625rem; }
.hero-demo .phone .bill > div:nth-child(2) > small { font-size: .5rem; }
.demo-phone-totals { margin-top: 17px; }
.demo-phone-totals > div { display: flex; justify-content: space-between; padding: 10px 0; gap: 8px; border-bottom: 1px solid #d0fff014; font-size: .65rem; color: #a9c1ca; }
.demo-phone-totals b { color: #e0f2f8; font-weight: 500; }
.demo-phone-totals > div:last-child b { color: #56efc4; }
.afterglow .hero-demo .demo-popout { height: 258px; padding: 22px; }
.demo-card-scene { transform-origin: 80% 25%; }
.demo-card-eyebrow { display: block; color: #a6c7d2; font-size: .5rem; letter-spacing: .13em; margin-bottom: 9px; }
.demo-card-scene h3 { font-size: 1rem; font-weight: 500; letter-spacing: -.035em; margin: 0 0 14px; }
.demo-card-value { display: flex; align-items: baseline; gap: 10px; font-size: 1.9rem; letter-spacing: -.04em; line-height: 1.2; color: #69f5ca; font-weight: 550; }
.demo-card-value > span { font-size: .625rem; font-weight: 400; letter-spacing: 0; color: #b1cbd2; }
[data-card-kind="bills"] .demo-card-value { color: #7cdaff; }
[data-card-kind="insights"] .demo-card-value { color: #c7acff; }
.demo-popout .budget-rows { margin-top: 15px; gap: 13px; }
.demo-popout .budget-row > div:first-child { font-size: .625rem; }
.demo-popout .budget-row small { font-size: .55rem; }
.demo-popout .track { height: 4px; margin-top: 6px; }
.demo-card-bills { margin-top: 13px; }
.demo-card-bills > div { display: flex; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid #cbf6ff13; font-size: .625rem; }
.demo-card-bills span { color: #8ddaff; font-size: .5625rem; flex-shrink: 0; }
.demo-card-bills b { font-weight: 400; color: #c6dce5; }
.demo-card-bills strong { font-size: .625rem; font-weight: 500; margin-left: auto; }
.demo-comparison { margin-top: 17px; }
.demo-comparison > div { margin-bottom: 14px; }
.demo-comparison span { display: flex; justify-content: space-between; color: #b4c9d4; font-size: .625rem; }
.demo-comparison b { font-weight: 500; color: #e1eaf7; }
.demo-comparison i { display: block; height: 5px; width: var(--bar); border-radius: 5px; margin-top: 7px; background: #837fae; }
.demo-comparison > div:last-child i { background: linear-gradient(90deg, #a787ff, #d2b1ff); }
.demo-card-note { font-size: .5625rem; color: #a8bcc8; margin: 13px 0 0; }
.hero-demo-controls { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 8px auto 0; min-height: 44px; }
.hero-demo-dots { display: flex; }
.hero-demo-dots button { display: grid; place-items: center; width: 36px; height: 44px; padding: 0; border: 0; background: transparent; border-radius: 10px; }
.demo-dot-mark { display: block; width: 7px; height: 7px; border-radius: 20px; background: #607d89; transition: width .3s, background .3s; }
.hero-demo-dots button[aria-current] .demo-dot-mark { width: 24px; background: #70efcc; box-shadow: 0 0 12px #45efbf25; }
.hero-demo-dots button:hover .demo-dot-mark { background: #b4ffea; }
.hero-demo.demo-is-paused button[aria-current] .demo-dot-mark { background: linear-gradient(90deg, transparent 0 7px, #9df6dc 7px 10px, transparent 10px 14px, #9df6dc 14px 17px, transparent 17px); border-radius: 0; height: 10px; box-shadow: none; }
.hero-demo-scene-label { font-size: .6875rem; color: #a9c4ce; min-width: 145px; }
.demo-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.afterglow .hero-demo .dark-float b { font-size: .75rem; }
@media (max-width: 1150px) and (min-width: 801px) {
 .afterglow .hero-demo .demo-popout { padding: 18px; }
 .demo-card-scene h3 { font-size: .9375rem; }
}
@media (max-width: 480px) {
 .afterglow .hero-demo .afterglow-stage { height: 585px; }
 .afterglow .hero-demo .demo-popout { height: 252px; padding: 18px; }
 .demo-card-scene h3 { font-size: .9375rem; }
 .demo-card-value { font-size: 1.65rem; gap: 7px; }
 .demo-card-value > span { font-size: .5625rem; }
 .demo-card-eyebrow { font-size: .45rem; }
 .afterglow .hero-demo .dark-float { max-width: 100%; padding: 12px 14px; }
 .afterglow .hero-demo .dark-float b { font-size: .625rem; }
 .hero-demo-controls { gap: 6px; margin-top: 15px; }
 .hero-demo-scene-label { min-width: 130px; font-size: .625rem; }
}
@media (prefers-reduced-motion: reduce) {
 .hero-demo *, .hero-demo *::after { animation: none !important; transition: none !important; }
 .demo-tap { display: none; }
}
@media (forced-colors: active) {
 .demo-dot-mark, .hero-demo-dots button[aria-current] .demo-dot-mark { background: ButtonText; }
 .hero-demo-dots button[aria-current] { outline: 1px solid ButtonText; }
}

/* Spending breakdown: matching six-colour charts on the phone and pop-out. */
.demo-donut { position: relative; width: 100%; aspect-ratio: 1; }
.demo-donut-art { display: block; width: 100%; height: 100%; transform-origin: center; }
.demo-donut-centre { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; pointer-events: none; }
.demo-donut-centre small { font-size: .45rem; color: #aac4d0; margin-bottom: 5px; }
.demo-donut-centre b { font-size: 1.2rem; color: #ecfafb; font-weight: 550; letter-spacing: -.045em; }
.demo-donut-centre > span { font-size: .4rem; color: #8daebd; letter-spacing: .1em; margin-top: 4px; }
.demo-donut-focus { display: grid; place-items: center; padding: 10px; border: 1px solid #76d4e735; border-radius: 15px; background: radial-gradient(ellipse at 50% 40%, #20838d20, #0a182733); }
.demo-donut-focus .demo-donut { width: 142px; }
.demo-donut-focus .demo-donut-centre small { font-size: .5rem; }
.demo-donut-focus .demo-donut-centre b { font-size: 1.5rem; }
.demo-donut-legend > div { display: flex; align-items: center; gap: 6px; font-size: .5625rem; color: #b9d0dc; padding-block: 6px; }
.demo-donut-legend i { flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; }
.demo-donut-legend b { margin-left: auto; font-weight: 500; color: #e1eff6; font-size: inherit; }
.demo-phone-page > .demo-donut-legend { margin-top: 11px; }
.demo-phone-page > .demo-donut-legend > div { font-size: .625rem; }
.demo-phone-page > .demo-donut-legend + .phone-tip { margin-top: 12px; }
.demo-donut-breakdown { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 15px; }
@media (max-width: 1150px) and (min-width: 801px) {
 .demo-donut-breakdown { grid-template-columns: 94px minmax(0, 1fr); gap: 9px; }
 .demo-donut-centre b { font-size: 1rem; }
}
@media (max-width: 480px) {
 .demo-donut-breakdown { grid-template-columns: 84px minmax(0, 1fr); gap: 8px; }
 .demo-donut-breakdown .demo-donut-centre b { font-size: .875rem; }
 .demo-donut-breakdown .demo-donut-centre small { font-size: .375rem; }
 .demo-donut-breakdown .demo-donut-legend > div { font-size: .5rem; gap: 4px; padding-block: 7px; }
 .hero-demo-controls { flex-wrap: wrap; column-gap: 4px; row-gap: 0; }
 .hero-demo-scene-label { min-width: 0; text-align: center; }
}
@media (max-width: 360px) {
 .hero-demo-scene-label { flex-basis: 100%; }
}
@media (forced-colors: active) { .demo-donut-focus { border-color: CanvasText; } }

/* Cumulative spending follows the same sample month as the category chart. */
.demo-timeline { display: block; width: 100%; height: auto; overflow: visible; }
.demo-timeline-grid path { fill: none; stroke: #afdcf524; stroke-width: 1; }
.demo-timeline-labels { fill: #a0c3d2; font-size: 10px; font-family: inherit; }
.demo-timeline-focus { border: 1px solid #57cdf644; background: linear-gradient(130deg, #178ed01e, #063c4819); padding: 15px 11px 12px; border-radius: 15px; }
.demo-timeline-focus > small { font-size: .625rem; color: #a9cbd7; }
.demo-timeline-focus > strong { display: block; color: #83edff; font-size: 1.7rem; font-weight: 550; letter-spacing: -.04em; margin: 8px 0 13px; }
.demo-timeline-focus > strong > span { font-size: .5rem; color: #9cbfce; letter-spacing: .03em; }
.demo-timeline-focus .demo-tap { bottom: 24px; right: 13px; }
.demo-card-scene > .demo-timeline { height: 110px; margin-top: 14px; }
[data-card-kind="timeline"] .demo-card-value { color: #7ceaff; }
.hero-demo .phone-nav > span { min-width: 0; }
.hero-demo .phone-nav small { font-size: .4375rem; }
@media (max-width: 480px) {
 .demo-card-scene > .demo-timeline { height: 108px; margin-top: 10px; }
 [data-card-kind="timeline"] .demo-card-value { gap: 6px; }
 [data-card-kind="timeline"] .demo-card-value > span { font-size: .5rem; }
 .hero-demo-scene-label { flex-basis: 100%; }
}
