.feature-tour {--ink:#20221e;--forest:#1d6539; margin:auto; width:min(1680px,92vw,190svh); padding-block:72px; color:var(--ink);font-family:RestockHero,Roboto,Arial,sans-serif}
.feature-tour * {box-sizing:border-box}
.feature-pin {display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(32px,5vw,82px)}
.feature-copy h2 {color:var(--ink);font:700 clamp(34px,4.1vw,74px)/1.06 RestockHero,Roboto,Arial,sans-serif;letter-spacing:-.045em;margin:0 0 clamp(24px,3vw,44px);max-width:17ch}
.feature-options {display:grid;gap:9px}
.feature-card {display:grid;grid-template-columns:clamp(38px,3.3vw,60px) 1fr;align-items:center;gap:16px;padding:16px 19px;color:var(--ink);background:#f6f4ee;border-radius:15px;text-decoration:none;position:relative;overflow:hidden}
.feature-card:focus-visible {outline:3px solid var(--forest);outline-offset:2px}
.feature-card[aria-current=true] {background:#eaf0e3}
.feature-card[aria-current=true]::before {content:"";background:var(--forest);position:absolute;inset:0 auto 0 0;width:4px}
.feature-icon :is(svg,img) {width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.feature-card strong {display:block;font-size:clamp(18px,1.65vw,30px);line-height:1.25}
.feature-desc {display:block;color:#575c54;margin-top:4px;font-size:clamp(15px,1.18vw,22px);line-height:1.42}
.feature-meter {height:3px;background:#d6e1cf;border-radius:8px;display:none;margin-top:9px}
.feature-card[aria-current=true] .feature-meter {display:block}
.feature-meter::after {content:"";display:block;height:100%;background:var(--forest);border-radius:inherit;transform-origin:left;transform:scaleX(var(--progress,1))}
.feature-stage {min-width:0;display:grid;gap:16px}
.feature-scene {background:linear-gradient(147deg,#fff1e4 32%,#f9d9bc 65%,#fff0e1);padding:clamp(14px,2vw,32px);border-radius:22px;display:grid;align-items:center;scroll-margin-top:60px}
.feature-tour .story-illustration {background:#fffdf9!important;border-radius:20px;overflow:hidden!important;height:auto;width:100%;aspect-ratio:1;min-height:0;color:var(--ink)}
.feature-tour .ft-scene::before {display:none}
.feature-tour .ft-frame {width:min(92%,max(350px,65%))}
.feature-scene[hidden] {display:none}
.feature-tour[data-pinned] {padding-block:0;height:calc(var(--travel) + var(--pin-height));margin-block:72px}
.feature-tour[data-pinned] .feature-pin {position:sticky;top:var(--pin-top)}
@media(max-width:850px) {
 .feature-tour {width:min(580px,calc(100% - 36px));padding-block:36px}
 .feature-pin {grid-template-columns:1fr;gap:18px}
 .feature-copy h2 {font-size:34px;margin-bottom:20px}
 .feature-card {padding:10px 14px;grid-template-columns:32px 1fr;gap:12px}
 .feature-icon :is(svg,img) {width:32px;height:34px}
 .feature-card:where(:not([aria-current=true])) .feature-desc {display:none}
 .feature-tour .ft-scene {min-height:365px}
}
.feature-card .feature-icon {display:grid;place-items:center;background:transparent;width:auto;height:auto;padding:0;margin:0}
@media(min-width:851px) {
 .feature-copy {align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;padding-block:clamp(10px,1.5vw,24px)}
 .feature-card {padding-block:clamp(16px,1.7vw,32px)}
}

@media (max-width:600px), (pointer:coarse) and (max-width:950px) and (max-height:500px) {
 .feature-tour {display:none}
}

/* A tall desktop pane has room for the selectors above the shared preview. */
@media (min-width:601px) and (min-height:720px) and (max-aspect-ratio:6/5) {
 .feature-tour {--pin-limit:32px;width:min(92vw,102svh);padding-block:24px}
 .feature-tour[data-pinned] {margin-block:24px;padding-block:0}
 .feature-pin {grid-template-columns:1fr;gap:clamp(14px,2svh,30px)}
 .feature-copy {padding:0;display:block}
 .feature-copy h2 {font-size:clamp(32px,min(4.5vw,4.8svh),72px);margin:0 0 clamp(12px,2svh,28px)}
 .feature-options {grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(6px,1vw,16px)}
 .feature-card {grid-template-columns:clamp(24px,3vw,48px) 1fr;gap:clamp(6px,.9vw,16px);padding:clamp(10px,1.4vw,22px)}
 .feature-icon :is(svg,img) {width:100%;height:auto}
 .feature-card strong {font-size:clamp(15px,1.85vw,29px)}
 .feature-options .feature-card .feature-desc {display:block;font-size:clamp(13px,1.4vw,21px);line-height:1.35}
 .feature-scene {padding:clamp(12px,2vw,30px)}
 .feature-tour .story-illustration {aspect-ratio:auto;height:clamp(330px,61svh,900px);max-height:none;min-height:0}
 .feature-tour .ft-scene {container-type:size}
 .feature-tour .ft-frame {
  width:560px;max-width:none;flex:none;
  /* Fit the 560 × 432 Forecast screen within both available dimensions. */
  zoom:min(tan(atan2(88cqw,560px)),tan(atan2(90cqh,432px)));
 }
}
@media (min-width:601px) and (min-height:720px) and (max-height:800px) and (max-aspect-ratio:6/5) {
 .feature-tour .story-illustration {height:56svh}
}

.insights-board {display:none}
@media (min-width:601px) and (min-height:720px) and (max-aspect-ratio:6/5) {
 .feature-tour .ft-frame:not(.insights-board) {display:none}
.feature-tour .ft-scene {
 background:#fffdf9 url("/media/insights-swipe-backdrop.svg") center / contain no-repeat!important;
}
.feature-tour .insights-board{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:12px;width:700px;flex:none;border:0;background:none;box-shadow:none;border-radius:0;overflow:visible;zoom:min(tan(atan2(97cqw,700px)),tan(atan2(92cqh,400px)))}
.insights-board section,.insights-board .ft-body{background:white;border:1px solid #e6e5dc;border-radius:15px;box-shadow:0 3px 10px #51472c08;padding:17px}
.insights-board>section{grid-area:1/1}.insights-board .ft-body{grid-area:2/1}
.insights-board aside{grid-area:1/2/3/3;display:flex;flex-direction:column;gap:12px}
.insights-board aside section{flex:1}
.insights-board h3{display:flex;gap:8px;align-items:center;font-weight:650;line-height:1.25;font-family:inherit;font-size:17px;letter-spacing:-.025em;margin:0 0 12px}
.insights-board h3 span{color:#24673c;font-size:19px}
.insights-board .ft-summary{margin:0}.insights-board .ft-summary strong{font-size:34px}
.insights-board .ft-row{background:white;border-radius:0;border-top:1px solid #efeee7;padding:5px 0;margin:2px 0 0}
.insights-board .ft-date{color:#536150;margin-top:5px}
.insights-board .ft-amount>span{background:white}
.insights-board .ft-body h3{margin-bottom:4px}
.insights-board .category-total{display:flex;align-items:center;gap:13px;margin:12px 0;color:#667065;font-size:12px}
.insights-board .category-total b{font-size:23px;color:#222}
.insights-board .category-total i{width:56px;aspect-ratio:1;border-radius:100%;background:radial-gradient(circle,white 48%,transparent 50%),conic-gradient(#24673c 0 50.41%,#e97552 50.41% 100%)}
.insights-board .legend,.insights-board .day-caption{display:flex;justify-content:space-between;font-size:12px;padding-top:5px}
.insights-board .legend span:before{content:'';display:inline-block;margin-right:6px;width:7px;height:7px;border-radius:50%;background:#24673c}.insights-board .legend.home span:before{background:#e97552}
.insights-board .month{font-size:14px;font-weight:600}.insights-board .week{display:grid;grid-template-columns:repeat(7,1fr);margin:12px 0;text-align:center;font-size:10px;color:#60695c}
.insights-board .week b{display:grid;place-items:center;width:25px;height:25px;margin:3px auto;color:#282d28;font-size:12px}
.insights-board .week .chosen{background:#24673c;border-radius:50%;color:white}.insights-board .week .due{background:#edf2e7;border-radius:50%}
.insights-board .day-caption{border-top:1px solid #ebece5;padding-top:9px}
.insights-board > section {position:relative;overflow:hidden;isolation:isolate}
.insights-board > section::before {content:"";position:absolute;inset:0 0 auto auto;width:40%;height:55%;z-index:-1;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='191 0 209 180' preserveAspectRatio='none'%3E%3Cpath d='M191 0H400V168C318 199 203 160 191 0Z' fill='%23f9dec5'/%3E%3C/svg%3E") center/100% 100%}
.insights-board h3 .art-icon {display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#ecf2e5;color:#24673c}
.insights-board .art-icon svg {width:17px;height:17px}
.insights-board .ft-summary strong {color:#235d39}
.insights-board .ft-date b {border-radius:5px;background:#f1f5ed;padding:2px 5px;color:#385f48}
.insights-board .ft-body .ft-row {padding-block:4px}
.insights-board .category-total i {background:radial-gradient(circle,white 48%,transparent 50%),conic-gradient(#24673c 0 var(--share,50.41%),var(--other,#e97552) var(--share,50.41%) 100%)}
.insights-board .week b {background:transparent;color:#363e37}
.insights-board .week .due {background:#eaf1e5;color:#245f39}
.insights-board .week .chosen {background:#24673c;color:white}
.insights-board .legend b,.insights-board .category-total b,.insights-board .day-caption b {font-variant-numeric:tabular-nums}

 @media (prefers-reduced-motion:no-preference) {
  .story-play .insights-board :is(.ft-date,.ft-amount > span) {animation-fill-mode:both}
  .story-play .insights-board .ft-row {animation:insight-row-in 400ms cubic-bezier(.22,.72,.24,1) var(--appear) both}
  .story-play .insights-board .ft-row img {animation:insight-sticker-in 480ms ease-out var(--appear) both}
 }
}
@keyframes insight-row-in {
 from {opacity:0;transform:translateX(16px);background:#edf3e8}
 55% {opacity:1;background:#edf3e8}
 to {opacity:1;transform:none;background:white}
}
@keyframes insight-sticker-in {
 from {transform:rotate(-9deg) scale(.78)}
 65% {transform:rotate(2deg) scale(1.05)}
 to {transform:none}
}
