/* "See HERO in action" walkthrough. Loaded after styles.css.
   The phone screens replicate the real HERO app (tokens from the app's index.css after the
   Sept 2026 redesign: Plus Jakarta Sans, cream, one red, ink, butter and sand; no green,
   amber or blue). The --a-* scales keep their old names so demo.js markup is unchanged:
   "amber" now reads as butter, "em" (success) as ink/sand, "slate" as sand. */

.demo-intro{padding:36px 24px 26px;max-width:1140px;margin:0 auto;}
.demo-intro h1{font-size:clamp(28px,3.6vw,42px);line-height:1.14;font-weight:800;letter-spacing:-0.01em;max-width:22ch;}
.demo-intro h1 .hl{color:var(--coral);}
.demo-intro p{margin-top:16px;font-size:16px;line-height:1.6;color:var(--gray);font-weight:500;max-width:58ch;}

.demo{padding:20px 24px 70px;}
.demo-inner{max-width:1140px;margin:0 auto;}

/* ---------- Stepper + controls ---------- */
.stepper{display:flex;gap:6px;justify-content:space-between;margin-bottom:18px;}
.step-tab{
  flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;position:relative;
  background:none;border:0;font:inherit;cursor:pointer;color:var(--gray);font-size:12px;font-weight:600;
  padding:6px 2px;text-align:center;line-height:1.25;
}
.step-tab .dot{
  width:36px;height:36px;border-radius:50%;border:1.5px solid var(--border);background:var(--white);
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;color:var(--gray);
  transition:background .2s,border-color .2s,color .2s,transform .2s;
}
.step-tab:hover .dot{border-color:var(--ink);}
.step-tab.seen .dot{background:var(--ink);border-color:var(--ink);color:var(--white);}
.step-tab[aria-selected="true"]{color:var(--ink);}
.step-tab[aria-selected="true"] .dot{background:var(--coral);border-color:var(--coral);color:var(--white);transform:scale(1.08);}

.demo-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:26px;}
.demo-controls .count{font-size:13px;font-weight:700;color:var(--gray);}
.demo-controls .count b{color:var(--ink);}
.nav-btn{
  font:inherit;font-size:14px;font-weight:700;padding:12px 20px;border-radius:var(--pill);cursor:pointer;
  border:1px solid var(--border);background:var(--white);color:var(--ink);transition:border-color .15s,transform .15s,background .15s;min-width:104px;
}
.nav-btn:hover:not(:disabled){border-color:var(--ink);}
.nav-btn.next{background:var(--coral);color:var(--white);border-color:var(--coral);}
.nav-btn.next:hover:not(:disabled){background:var(--coral-dark);border-color:var(--coral-dark);transform:translateY(-1px);}
.nav-btn:disabled{opacity:0.4;cursor:not-allowed;}

/* ---------- Stage: phone + caption ---------- */
.demo-panel{padding:0;display:grid;grid-template-columns:auto 1fr;gap:64px;align-items:center;justify-content:center;max-width:920px;margin:0 auto;}
.demo-panel[hidden]{display:none;}
.cap .cap-step{font-size:12px;font-weight:700;color:var(--coral);letter-spacing:0.08em;text-transform:uppercase;margin-bottom:10px;}
.cap h2{font-size:clamp(22px,2.6vw,28px);line-height:1.15;font-weight:800;letter-spacing:-0.01em;margin-bottom:14px;}
.cap p.body{font-size:15.5px;line-height:1.65;color:var(--gray);font-weight:500;}
.cap .try{
  margin-top:20px;background:var(--butter);border:none;color:var(--ink);
  border-radius:12px;padding:12px 14px;font-size:13.5px;font-weight:600;line-height:1.5;
}
.cap .try b{font-weight:800;}
.cap .fine{margin-top:14px;font-size:12px;line-height:1.5;color:var(--gray);font-weight:500;}
.readout{margin-top:16px;display:flex;flex-wrap:wrap;gap:8px 18px;font-size:13px;font-weight:700;color:var(--gray);}
.readout b{color:var(--ink);font-variant-numeric:tabular-nums;}
.readout-note{font-size:11.5px;color:var(--gray);font-weight:500;margin-top:6px;}
.reset-link{margin-top:12px;font:inherit;font-size:12.5px;font-weight:700;color:var(--coral);background:none;border:0;padding:6px 0;cursor:pointer;text-decoration:underline;}

/* ---------- Device frame ---------- */
.device{
  --a-bg:#f4f1ea; --a-fg:#17171a; --a-card:#ffffff; --a-muted:#ebe6db; --a-mfg:#66615c; --a-border:#e0dcd1;
  --a-primary:#de4c3e; --a-primary10:rgba(222,76,62,.10);
  --a-amber50:#f1e2b8; --a-amber200:#f1e2b8; --a-amber300:#e6cf8f; --a-amber600:#17171a; --a-amber700:#17171a; --a-amber900:#17171a;
  --a-em50:#e3ddd0; --a-em100:#e3ddd0; --a-em200:#e0dcd1; --a-em300:#cfc7b5; --a-em400:#17171a; --a-em500:#17171a; --a-em600:#17171a; --a-em700:#17171a;
  --a-sky50:#e3ddd0; --a-sky200:#e0dcd1; --a-sky700:#17171a;
  --a-red50:#fbe4e1; --a-red200:#f1b5ad; --a-red600:#c53d30; --a-red700:#c53d30;
  --a-slate50:#ffffff; --a-slate200:#e0dcd1; --a-slate600:#66615c;
  --a-violet50:#d8d0ec; --a-violet200:#d8d0ec; --a-violet700:#17171a;
  position:relative;width:390px;max-width:100%;background:#17171a;border-radius:44px;padding:10px;
  box-shadow:0 40px 80px rgba(23,23,26,0.22);
  font-family:'Plus Jakarta Sans',sans-serif;color:var(--a-fg);font-size:14px;line-height:1.4;
}
.device *{box-sizing:border-box;}
.device .screen{position:relative;background:var(--a-bg);border-radius:34px;overflow:hidden;display:flex;flex-direction:column;height:700px;}
.device .app-head{
  display:flex;align-items:center;gap:12px;padding:0 16px;height:60px;flex-shrink:0;background:#17171a;color:#f4f1ea;
}
.device .app-logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:17px;letter-spacing:-0.01em;}
.device .app-logo .sq{width:30px;height:30px;border-radius:9px;overflow:hidden;background:#232327;flex-shrink:0;}
.device .app-logo .sq img{width:100%;height:100%;display:block;}
.device .show-pill{
  flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:36px;padding:0 12px;border:1px solid #2e2e33;border-radius:999px;background:#232327;color:#f4f1ea;font-size:14px;
}
.device .show-pill span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.device .show-pill .ic{width:16px;height:16px;color:#a9a39a;flex-shrink:0;}
.device .app-menu{width:36px;height:36px;display:flex;align-items:center;justify-content:center;color:#f4f1ea;}
.device .app-scroll{flex:1;overflow-y:auto;overflow-x:hidden;padding:16px 16px 28px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;}
.device .app-scroll:focus-visible{outline:2px solid var(--a-primary);outline-offset:-2px;}
.device .app-overlay{position:absolute;inset:0;z-index:20;background:rgba(0,0,0,.8);display:flex;align-items:center;justify-content:center;padding:14px;}
.device .app-overlay[hidden]{display:none;}
.device .toast{
  position:absolute;left:16px;right:16px;bottom:18px;z-index:30;background:#17171a;color:#fff;border-radius:var(--pill);padding:11px 16px;font-size:13px;font-weight:500;
  opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s;pointer-events:none;
}
.device .toast.on{opacity:1;transform:none;}

.device .ic{width:16px;height:16px;flex-shrink:0;}
.device button{font-family:inherit;}
.device button:focus-visible,.device select:focus-visible,.device input:focus-visible{outline:2px solid var(--a-primary);outline-offset:2px;}

/* Page header */
.device .page-head{display:flex;flex-direction:column;gap:14px;margin-bottom:24px;}
.device .page-head > div:first-child{min-width:0;}
.device h1{font-size:28px;font-weight:800;letter-spacing:-.025em;line-height:1.08;display:flex;align-items:center;gap:8px;margin:2px 0 0;}
.device h1 .ic{color:var(--a-primary);width:22px;height:22px;}
.device .sub{color:var(--a-mfg);font-size:14px;margin-top:4px;line-height:1.4;}
.device .head-actions{display:flex;flex-wrap:wrap;gap:8px;}
.device .stack{display:flex;flex-direction:column;gap:24px;}

/* Buttons */
.device .btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;height:36px;padding:0 14px;border-radius:999px;font-size:14px;font-weight:600;cursor:pointer;
  border:1px solid var(--a-border);background:#fff;color:var(--a-fg);white-space:nowrap;
}
.device .btn:hover{background:var(--a-muted);}
.device .btn:disabled{opacity:.5;cursor:not-allowed;}
.device .btn.primary{background:var(--a-primary);border-color:var(--a-primary);color:#fff;}
.device .btn.primary:hover{background:#c53d30;}
.device .btn.ink{background:#17171a;border-color:#17171a;color:#fff;}
.device .btn.ink:hover{background:#2c2c30;}
.device .btn.green{border-color:var(--a-em400);color:var(--a-em700);}
.device .btn.green:hover{background:var(--a-em50);}
.device .btn.sm{height:32px;padding:0 12px;font-size:13px;}
.device .btn.icon{width:36px;padding:0;}
.device .btn.full{width:100%;}
.device .btn.em{color:var(--a-em700);}

/* Cards */
.device .card{background:#fff;border:1px solid var(--a-border);border-radius:16px;}
.device .card.amber{border-color:var(--a-amber200);background:rgba(255,251,235,.5);}
.device .card.amber300{border-color:var(--a-amber300);}
.device .card.em{border-color:var(--a-em300);background:rgba(236,253,245,.5);}
.device .card.red{border-color:var(--a-red200);background:rgba(254,242,242,.5);}
.device .pad{padding:16px;}
.device .pad5{padding:20px;}
.device .row{display:flex;align-items:center;gap:12px;}
.device .grow{flex:1;min-width:0;}
.device .between{justify-content:space-between;}
.device .wrapflex{flex-wrap:wrap;}
.device .muted{color:var(--a-mfg);}
.device .xs{font-size:12px;}
.device .b{font-weight:600;}
.device .med{font-weight:500;}
.device .mono{font-variant-numeric:tabular-nums;}
.device .trunc{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.device h2.sec{font-size:18px;font-weight:700;letter-spacing:-.02em;margin:0;}

.device .ibox{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--a-muted);color:var(--a-fg);}
.device .ibox .ic{width:20px;height:20px;}
.device .ibox.amber{background:var(--a-amber50);color:var(--a-amber700);}
.device .ibox.em{background:var(--a-em50);color:var(--a-em700);}
.device .ibox.ink{background:#17171a;color:#fff;}
.device .ibox.pri{background:var(--a-primary10);color:var(--a-primary);}
.device .ibox.blue{background:#c4d3e6;color:#17171a;}
.device .ibox.violet{background:#ede9fe;color:#7c3aed;}
.device .ibox.yellow{background:#f1e2b8;color:#17171a;}
.device .ibox.sq56{width:56px;height:56px;border-radius:14px;}
.device .ibox.sq56 .ic{width:24px;height:24px;}
.device .ok{color:#17171a;}

/* Stats */
.device .stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.device .stat{display:flex;align-items:center;gap:12px;padding:20px 16px;}
.device .stat .v{font-size:24px;font-weight:600;line-height:1.1;}
.device .stat .l{font-size:12px;color:var(--a-mfg);}

/* Deadlines */
.device .dl-title{display:flex;align-items:center;gap:8px;margin-bottom:12px;color:var(--a-amber900);}
.device .dl-title h2{font-size:16px;font-weight:600;margin:0;}
.device .dl-title .ic{color:var(--a-amber700);}
.device .dl-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;border-radius:8px;background:#fff;border:1px solid var(--a-amber200);margin-bottom:8px;color:inherit;width:100%;text-align:left;cursor:pointer;}
.device .dl-row:last-child{margin-bottom:0;}
.device .dl-row:hover{box-shadow:0 1px 3px rgba(0,0,0,.08);}
.device .dl-row .n{font-weight:500;font-size:14px;}
.device .dl-row .d{font-size:12px;font-weight:600;color:var(--a-amber700);white-space:nowrap;}

/* Search + filter */
.device .searchbar{display:flex;align-items:center;gap:8px;position:relative;}
.device .searchbar .field{position:relative;flex:1;min-width:0;}
.device .searchbar .field .ic{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--a-mfg);}
.device .input{
  width:100%;height:40px;border:1px solid var(--a-border);border-radius:12px;background:#fff;padding:0 12px;font:inherit;font-size:14px;color:var(--a-fg);
}
.device .searchbar .input{padding-left:36px;height:38px;border-radius:999px;}
.device .input::placeholder{color:#8f8a83;}
.device .input.empty{color:#8f8a83;}
.device .input.pop{animation:popIn .4s ease both;}
@keyframes popIn{from{opacity:0;transform:translateY(4px);background:var(--a-amber50);}to{opacity:1;transform:none;}}
.device .menu{
  position:absolute;right:0;top:calc(100% + 6px);z-index:10;width:236px;background:#fff;border:1px solid var(--a-border);border-radius:10px;padding:6px;box-shadow:0 10px 30px rgba(0,0,0,.14);
}
.device .menu h6{font-size:11px;font-weight:600;color:var(--a-mfg);padding:8px 8px 4px;display:flex;align-items:center;gap:6px;margin:0;}
.device .menu button{
  display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:8px;border:0;background:none;border-radius:6px;font-size:14px;cursor:pointer;color:var(--a-fg);
}
.device .menu button:hover{background:var(--a-muted);}
.device .menu .box{width:16px;height:16px;border:1px solid var(--a-fg);border-radius:4px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.device .menu .box .ic{width:12px;height:12px;opacity:0;}
.device .menu button[aria-checked="true"] .box{background:var(--a-fg);color:#fff;}
.device .menu button[aria-checked="true"] .box .ic{opacity:1;}
.device .menu .sep{height:1px;background:var(--a-border);margin:4px -6px;}

/* Category groups + receipt rows */
.device .cat-btn{display:flex;align-items:center;gap:8px;margin-bottom:8px;width:100%;text-align:left;background:none;border:0;padding:0;cursor:pointer;color:var(--a-fg);}
.device .cat-btn:hover{color:var(--a-primary);}
.device .cat-btn h3{font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.025em;margin:0;}
.device .cat-btn h3 span{font-weight:400;}
.device .rc-row{display:flex;align-items:center;gap:12px;padding:14px;background:#fff;border:1px solid var(--a-border);border-radius:16px;width:100%;text-align:left;cursor:pointer;color:inherit;}
.device .rc-row:hover{border-color:rgba(23,23,26,.3);}
.device .chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px;}
.device .chip{font-size:12px;background:var(--a-primary10);color:var(--a-primary);padding:2px 6px;border-radius:999px;white-space:nowrap;}
.device .chip.mut{background:var(--a-muted);color:var(--a-mfg);display:inline-flex;align-items:center;gap:4px;}
.device .chip.mut .ic{width:12px;height:12px;}
.device .t-red{color:var(--a-red600);}
.device .t-amber{color:var(--a-amber600);}
.device .t-em{color:var(--a-em600);}
.device .empty-note{font-size:14px;color:var(--a-mfg);font-style:italic;padding:12px 8px;}
.device .list{display:flex;flex-direction:column;gap:8px;}
.device .cats{display:flex;flex-direction:column;gap:24px;}

/* Bulk-select bar */
.device .bulk{display:flex;align-items:center;gap:12px;padding:8px 14px;background:rgba(227,221,208,.6);border-radius:999px;}
.device .cb{width:16px;height:16px;border:1px solid var(--a-fg);border-radius:4px;flex-shrink:0;}

/* Badges */
.device .badge{display:inline-flex;align-items:center;gap:4px;border:1px solid;border-radius:999px;padding:2px 9px;font-size:12px;font-weight:600;white-space:nowrap;}
.device .badge .ic{width:12px;height:12px;}
.device .badge.slate{background:var(--a-slate50);color:var(--a-slate600);border-color:var(--a-slate200);}
.device .badge.amber{background:var(--a-amber50);color:var(--a-amber700);border-color:var(--a-amber200);}
.device .badge.emerald{background:var(--a-em50);color:var(--a-em700);border-color:var(--a-em200);}
.device .badge.sky{background:var(--a-sky50);color:var(--a-sky700);border-color:var(--a-sky200);}
.device .badge.violet{background:var(--a-violet50);color:var(--a-violet700);border-color:var(--a-violet200);}
.device .badge.red{background:var(--a-red50);color:var(--a-red700);border-color:var(--a-red200);}
.device .badge.ink{background:#17171a;color:#fff;border-color:#17171a;}
.device .badge.pink{background:#f2c9d0;color:#17171a;border-color:transparent;}
.device .badge.yellow{background:#f1e2b8;color:#17171a;border-color:transparent;}
.device .badge.blue{background:#c4d3e6;color:#17171a;border-color:transparent;}
.device .badge.green{background:#c3d4b8;color:#17171a;border-color:transparent;}

.device .found{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;}

/* Scanner + upload dialogs */
.device .dlg{background:#fff;border-radius:16px;width:100%;max-width:360px;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.4);max-height:100%;overflow-y:auto;}
.device .dlg-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px;border-bottom:1px solid var(--a-border);}
.device .dlg-head h2{font-size:16px;font-weight:600;display:flex;align-items:center;gap:8px;margin:0;}
.device .dlg-head h2 .ic{color:var(--a-primary);}
.device .x{background:none;border:0;color:var(--a-mfg);cursor:pointer;padding:4px;border-radius:6px;display:flex;}
.device .x:hover{color:var(--a-fg);}
.device .x .ic{width:20px;height:20px;}
.device .dlg-body{padding:16px;}
.device .cam{position:relative;height:190px;background:#0d0d10;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:10px;}
.device .cam::before{content:'';position:absolute;inset:26px 34px;border:2px solid rgba(255,255,255,.55);border-radius:10px;}
.device .cam::after{content:'';position:absolute;left:34px;right:34px;top:50%;height:2px;background:var(--a-primary);box-shadow:0 0 12px 3px rgba(222,76,62,.6);animation:camline 2.2s ease-in-out infinite alternate;}
@keyframes camline{from{top:34%;}to{top:66%;}}
.device .cam-tags{position:relative;z-index:2;display:flex;gap:8px;width:100%;justify-content:center;}
.device .cam-tag{
  background:#fff;border:0;border-radius:6px;padding:7px 8px 6px;cursor:pointer;text-align:left;width:33%;min-width:0;
  box-shadow:0 6px 14px rgba(0,0,0,.4);
}
.device .cam-tag:hover{outline:2px solid var(--a-primary);}
.device .cam-tag .tn{font-size:10.5px;font-weight:600;line-height:1.2;color:#17171a;}
.device .cam-tag .bars{height:22px;margin-top:5px;background:repeating-linear-gradient(90deg,#17171a 0 2px,transparent 2px 3px,#17171a 3px 4px,transparent 4px 7px,#17171a 7px 10px,transparent 10px 12px);border-radius:1px;}
.device .cam-tag .ts{font-size:8.5px;color:#66615c;margin-top:2px;font-variant-numeric:tabular-nums;}
.device .cam-hint{font-size:12px;color:var(--a-mfg);text-align:center;margin:0 0 12px;line-height:1.45;}
.device .dlg-form{margin-top:16px;padding-top:16px;border-top:1px solid var(--a-border);display:flex;gap:8px;}

/* Scan Receipt */
.device .dropzone{border:0;border-radius:16px;padding:28px 12px;text-align:center;cursor:pointer;background:#f1e2b8;width:100%;color:inherit;}
.device .dropzone:hover{background:#ece0bc;}
.device .dropzone .cam-dot{width:52px;height:52px;border-radius:50%;background:#17171a;color:#fff;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;}
.device .dropzone .cam-dot .ic{width:22px;height:22px;}
.device .dropzone .ibox{margin:0 auto 12px;}
.device .dropzone .t{font-weight:800;font-size:16px;letter-spacing:-.02em;}
.device .dropzone .s{font-size:12px;color:rgba(23,23,26,.65);margin-top:4px;}
.device .spin{animation:spin 1s linear infinite;}
@keyframes spin{to{transform:rotate(360deg);}}
.device .card-title{font-size:16px;font-weight:600;padding:20px 20px 0;margin:0;}
.device .fields{padding:20px;display:flex;flex-direction:column;gap:16px;}
.device .lbl{display:block;font-size:14px;font-weight:500;margin-bottom:6px;}
.device .sel{display:flex;align-items:center;justify-content:space-between;}
.device .sel .ic{color:var(--a-mfg);}
.device .item-form{border:0;background:var(--a-bg);border-radius:16px;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.device .item-form .full{grid-column:1/-1;}
.device .item-form .input{height:36px;font-size:13px;display:flex;align-items:center;overflow:hidden;white-space:nowrap;}
.device .save-row{display:flex;justify-content:flex-end;padding-bottom:8px;}
.device .input.div{display:flex;align-items:center;}

/* Receipt detail */
.device .top-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px;}
.device .rd-head{display:flex;flex-direction:column;gap:12px;}
.device .rd-head h1{font-size:20px;}
.device .rd-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:14px;color:var(--a-mfg);}
.device .rd-grid div{display:flex;align-items:center;gap:8px;}
.device .rd-grid .ic{width:16px;height:16px;}
.device h2.grp{font-size:16px;font-weight:600;margin:0 0 12px;}
.device h2.grp.amber{color:var(--a-amber700);}
.device h2.grp.em{color:var(--a-em700);}
.device .item{background:#fff;border:1px solid var(--a-border);border-radius:16px;padding:14px;}
.device .item .nm{font-weight:600;font-size:14px;}
.device .item .sk{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:12px;color:var(--a-mfg);}
.device .item .sk .ic{width:12px;height:12px;}
.device .tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;}
.device .tag2{font-size:12px;background:var(--a-muted);padding:2px 8px;border-radius:999px;}
.device .tag2.pri{background:var(--a-primary10);color:var(--a-primary);}
.device .item .price{font-weight:800;font-size:17px;letter-spacing:-.02em;font-variant-numeric:tabular-nums;}
.device .item .acts{margin-top:12px;padding-top:12px;border-top:1px solid var(--a-border);display:flex;gap:8px;flex-wrap:wrap;}
.device .pill-btn{font-size:12px;font-weight:600;padding:6px 12px;border-radius:999px;border:1px solid;cursor:pointer;}
.device .pill-btn.em{background:#17171a;color:#fff;border-color:#17171a;}
.device .pill-btn.em:hover{background:#2c2c30;}
.device .pill-btn.mu{background:var(--a-muted);color:var(--a-mfg);border-color:transparent;}
.device .pill-btn.mu:hover{background:#e9e9ec;}

/* Shipments */
.device .tabs{display:inline-flex;background:var(--a-muted);border-radius:8px;padding:4px;gap:2px;max-width:100%;}
.device .tabs button{border:0;background:none;padding:6px 10px;border-radius:6px;font-size:13px;font-weight:500;color:var(--a-mfg);cursor:pointer;white-space:nowrap;}
.device .tabs button[aria-pressed="true"]{background:#fff;color:var(--a-fg);box-shadow:0 1px 2px rgba(0,0,0,.1);}
.device .banner{border:1px solid var(--a-red200);background:var(--a-red50);color:var(--a-red700);border-radius:8px;padding:12px 16px;font-size:14px;display:flex;align-items:center;gap:8px;}
.device .ship .desc{font-weight:500;font-size:14px;}
.device .ship .meta{font-size:12px;color:var(--a-mfg);}
.device .ship .meta strong{color:var(--a-fg);font-weight:600;}
.device .ship .late{color:var(--a-red600);font-weight:500;display:flex;align-items:center;gap:4px;}
.device .empty{border:1px dashed var(--a-border);border-radius:12px;padding:48px 16px;text-align:center;}
.device .empty .ic{width:32px;height:32px;color:var(--a-mfg);margin:0 auto 12px;display:block;}

/* Budget */
.device .segbtns{display:flex;gap:8px;flex-wrap:wrap;}
.device .tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.device .tile{display:flex;align-items:center;gap:10px;padding:14px 12px;min-width:0;}
.device .tile .v{font-size:19px;font-weight:600;line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.device .tile .l{font-size:12px;color:var(--a-mfg);}
.device .tbl-wrap{overflow-x:auto;border:1px solid var(--a-border);border-radius:16px;background:#fff;}
.device table.tbl{width:100%;border-collapse:collapse;font-size:12.5px;}
.device .tbl th{font-weight:500;color:var(--a-mfg);text-align:left;padding:10px;white-space:nowrap;border-bottom:1px solid var(--a-border);}
.device .tbl td{padding:10px;white-space:nowrap;border-bottom:1px solid var(--a-border);}
.device .tbl tr:last-child td{border-bottom:0;}
.device .tbl .r{text-align:right;}
.device .avatar{width:24px;height:24px;border-radius:50%;background:#e3ddd0;color:#17171a;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;margin-right:8px;}
.device .dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;}
.device .utabs{display:flex;gap:16px;border-bottom:1px solid var(--a-border);overflow-x:auto;}
.device .utabs button{background:none;border:0;border-bottom:2px solid transparent;padding:0 0 8px;font-size:13px;font-weight:500;color:var(--a-mfg);cursor:pointer;white-space:nowrap;}
.device .utabs button[aria-pressed="true"]{border-bottom-color:var(--a-primary);color:var(--a-fg);}
.device select.input{appearance:auto;}
.device .prev-scroll{border:1px solid var(--a-border);border-radius:8px;max-height:230px;overflow:auto;}
.device .newrow{animation:popIn .5s ease both;}
.device .checkmark{color:var(--a-primary);display:inline-flex;vertical-align:middle;}
.device .dlg-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:16px;}

/* Calendar */
.device .cal{background:#fff;border:1px solid var(--a-border);border-radius:16px;padding:10px 8px;}
.device .cal-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 2px 10px;}
.device .cal-top .month{font-size:19px;font-weight:800;letter-spacing:-.025em;margin:0;white-space:nowrap;}
.device .cal-top .month span{color:var(--a-mfg);font-weight:700;}
.device .cal-top .nav{display:flex;align-items:center;gap:4px;}
.device .cal-head,.device .cal-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;}
.device .cal-week{margin-top:3px;}
.device .cal-head div{padding:0 0 4px;text-align:center;font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--a-mfg);}
.device .cal-cell{
  min-height:64px;padding:3px;border:0;border-radius:9px;background:var(--a-bg);text-align:left;
  display:flex;flex-direction:column;gap:2px;cursor:pointer;color:inherit;min-width:0;overflow:hidden;
}
.device .cal-cell:hover{background:var(--a-muted);}
.device .cal-cell.out{background:transparent;color:rgba(23,23,26,.35);}
.device .cal-cell.today{background:#fff;box-shadow:inset 0 0 0 2px var(--a-primary);}
.device .cal-num{font-size:11px;font-weight:700;width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;flex-shrink:0;}
.device .cal-cell.today .cal-num{background:var(--a-primary);color:#17171a;}
.device .legend{display:flex;flex-wrap:wrap;gap:6px;padding:10px 2px 0;}
.device .legend .lp{font-size:11px;font-weight:600;border-radius:999px;padding:3px 9px;color:#17171a;}
.device .cal-bar{font-size:9.5px;font-weight:600;line-height:1.25;padding:2px 4px;border-radius:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;}
.device .cal-bar.in-store{background:#c3d4b8;color:#17171a;}
.device .cal-bar.studio{background:#f2c9d0;color:#17171a;}
.device .cal-bar.house{background:#f1e2b8;color:#17171a;}
.device .cal-bar.online{background:#c4d3e6;color:#17171a;}
.device .cal-bar.custom{background:#d8d0ec;color:#17171a;}
.device .cal-bar.muted{background:rgba(195,212,184,.4);color:rgba(23,23,26,.6);border:1px dashed rgba(23,23,26,.15);}
.device .dd-sec{margin-top:16px;}
.device .dd-sec h3{font-size:11px;font-weight:600;color:var(--a-mfg);text-transform:uppercase;letter-spacing:.05em;margin:0 0 8px;}
.device .dd-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--a-border);border-radius:12px;margin-bottom:8px;width:100%;text-align:left;background:#fff;cursor:pointer;color:inherit;}
.device .dd-row:hover{background:rgba(244,244,245,.5);}
.device .dd-row .d{width:10px;height:10px;border-radius:50%;flex-shrink:0;}
.device .dd-row.arch{opacity:.6;}

/* Returns (wrap) */
.device .grp-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;}
.device .ret-item{display:flex;align-items:center;justify-content:space-between;gap:6px 8px;padding:12px;background:var(--a-bg);border-radius:12px;margin-top:8px;flex-wrap:wrap;}
.device .ret-item .grow{flex:1 1 100%;}
.device .ret-item .nm{font-size:14px;font-weight:600;}
.device .ret-item .meta{font-size:12px;color:var(--a-mfg);display:flex;flex-wrap:wrap;gap:2px 8px;margin-top:4px;}
.device .ret-item .meta span{white-space:nowrap;}
.device .ret-item .rt{display:flex;align-items:center;gap:6px;width:100%;}
.device .ret-item .rt .med{margin-right:auto;}
.device .caught{text-align:center;padding:48px 16px;}
.device .caught .ic{width:40px;height:40px;color:var(--a-em500);margin:0 auto 12px;display:block;}

/* ---------- Redesign building blocks (mirror the app's components/hero/brand.jsx) ---------- */
.device .eyebrow-a{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--a-mfg);margin:0;}
.device .stiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.device .stile{border-radius:16px;padding:13px 14px;min-height:100px;display:flex;flex-direction:column;justify-content:space-between;background:#e3ddd0;color:#17171a;min-width:0;}
.device .stile.ink{background:#17171a;color:#fff;}
.device .stile.red{background:#de4c3e;color:#17171a;}
.device .stile.butter{background:#f1e2b8;}
.device .stile .stl{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:11.5px;font-weight:600;opacity:.72;}
.device .stile .stl .ic{width:14px;height:14px;}
.device .stile .stv{font-size:24px;font-weight:800;letter-spacing:-.025em;line-height:1;margin-top:12px;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.device .dblock{width:44px;flex-shrink:0;border-radius:12px;text-align:center;padding:6px 0;line-height:1;background:#17171a;color:#fff;}
.device .dblock b{display:block;font-size:9.5px;font-weight:700;text-transform:uppercase;}
.device .dblock span{display:block;font-size:17px;font-weight:800;margin-top:2px;}
.device .dblock.red{background:#de4c3e;color:#17171a;}
.device .dblock.sand{background:#e3ddd0;color:#66615c;}
.device .dpill{font-size:11.5px;font-weight:600;border-radius:999px;padding:4px 9px;white-space:nowrap;background:#e3ddd0;color:#17171a;flex-shrink:0;}
.device .dpill.red{background:#de4c3e;}
.device .dpill.butter{background:#f1e2b8;}
.device .dpill.ink{background:#17171a;color:#fff;}
.device .cpill{font-size:11.5px;font-weight:600;border-radius:999px;padding:1px 8px;background:#e3ddd0;color:#17171a;}
.device .sec-h{display:flex;align-items:center;gap:8px;margin:0 0 10px;}
.device .sec-h h2{font-size:17px;font-weight:700;letter-spacing:-.02em;margin:0;}
.device .dl-card{background:#fff;border:1px solid var(--a-border);border-radius:16px;padding:14px;}
.device .dl-card .dl-title{color:var(--a-fg);}
.device .dl-card .dl-title .ic{color:var(--a-primary);}
.device .dl-card .dl-row{border:0;border-radius:0;padding:10px 0;margin:0;justify-content:flex-start;gap:12px;background:none;border-top:1px solid var(--a-border);}
.device .dl-card .dl-row:first-of-type{border-top:0;padding-top:0;}
.device .dl-card .dl-row:hover{box-shadow:none;}
.device .dl-card .dl-row .n{font-weight:600;}
.device .toggle{display:inline-flex;padding:4px;border-radius:999px;background:#e3ddd0;gap:2px;align-self:flex-start;}
.device .toggle button{border:0;background:none;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:600;color:rgba(23,23,26,.7);display:inline-flex;gap:6px;align-items:center;cursor:pointer;}
.device .toggle button .ic{width:14px;height:14px;}
.device .toggle button[aria-pressed="true"]{background:#17171a;color:#fff;}
.device .ftabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;}
.device .ftabs button{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--a-border);background:#fff;border-radius:999px;padding:6px 11px;font-size:12.5px;font-weight:600;color:var(--a-fg);cursor:pointer;white-space:nowrap;}
.device .ftabs button .ct{font-size:11px;border-radius:999px;padding:0 6px;background:var(--a-muted);}
.device .ftabs button[aria-pressed="true"]{background:#17171a;border-color:#17171a;color:#fff;}
.device .ftabs button[aria-pressed="true"] .ct{background:rgba(255,255,255,.15);}
.device .spanel{background:#fff;border:1px solid var(--a-border);border-radius:16px;padding:16px;}
.device .spanel .lab{display:flex;justify-content:space-between;font-size:11.5px;font-weight:600;color:var(--a-mfg);}
.device .spanel .big{font-size:32px;font-weight:800;letter-spacing:-.03em;line-height:1;margin-top:12px;font-variant-numeric:tabular-nums;}
.device .pbar{height:8px;border-radius:999px;background:var(--a-muted);overflow:hidden;margin-top:12px;}
.device .pbar i{display:block;height:100%;border-radius:999px;background:#17171a;}
.device .pbar i.over{background:#de4c3e;}
.device .stepc{background:#fff;border:1px solid var(--a-border);border-radius:16px;padding:14px;}
.device .stepc-h{display:flex;align-items:center;gap:10px;margin-bottom:12px;}
.device .stepc-h .no{width:28px;height:28px;border-radius:50%;background:#17171a;color:#fff;font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.device .stepc-h h2{font-size:16px;font-weight:700;letter-spacing:-.02em;margin:0;}
.device .stepc-h .act{margin-left:auto;}
.device .stepc .fields{padding:0;}
.device .savebar{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;gap:10px;background:#17171a;color:#fff;border-radius:999px;padding:7px 7px 7px 16px;box-shadow:0 10px 24px rgba(23,23,26,.25);}
.device .savebar .sb-t{flex:1;min-width:0;line-height:1.25;}
.device .savebar .sb-t b{display:block;font-size:13px;font-variant-numeric:tabular-nums;}
.device .savebar .sb-t small{display:block;font-size:10.5px;color:rgba(255,255,255,.65);font-variant-numeric:tabular-nums;}
.device .rd-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.device .rd-hero h1{font-size:26px;}
.device .rd-hero .tot{text-align:right;}
.device .rd-hero .tot small{display:block;font-size:11px;font-weight:600;color:var(--a-mfg);}
.device .rd-hero .tot b{font-size:24px;font-weight:800;letter-spacing:-.025em;font-variant-numeric:tabular-nums;}
.device .rd-dl{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;background:var(--a-bg);margin-top:12px;}
.device .rd-meta{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12.5px;color:var(--a-mfg);margin-top:12px;}
.device .rd-meta span{display:inline-flex;align-items:center;gap:6px;}
.device .coming{background:#fff;border:1px solid var(--a-border);border-radius:16px;}
.device .coming .crow{display:flex;align-items:center;gap:10px;padding:10px 12px;border-top:1px solid var(--a-border);}
.device .coming .crow:first-child{border-top:0;}
.device .coming .cdot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:6px;}
.device .empty-hero{background:#fff;border:1px solid var(--a-border);border-radius:16px;padding:40px 16px;text-align:center;}
.device .empty-hero .eh-ic{width:48px;height:48px;border-radius:16px;background:#17171a;color:#fff;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;}
.device .empty-hero .eh-ic .ic{width:24px;height:24px;}

/* Final CTA */
.demo-cta{background:var(--ink);color:var(--white);text-align:center;}
.demo-cta h2{color:var(--white);font-size:clamp(24px,3vw,32px);font-weight:800;line-height:1.15;letter-spacing:-0.01em;}
.demo-cta p{margin:14px auto 26px;max-width:46ch;font-size:15px;line-height:1.6;color:rgba(255,255,255,0.65);font-weight:500;}

@media (max-width:860px){
  .demo-intro{padding:8px 20px 18px;}
  .demo{padding:10px 16px 50px;}
  .demo-panel{grid-template-columns:minmax(0,1fr);gap:22px;justify-items:center;}
  .device{width:100%;max-width:390px;}
  .demo-panel .cap{order:-1;width:100%;}
  .stepper{gap:4px;}
  .step-tab{font-size:0;gap:0;}
  .step-tab .lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}
  .step-tab .dot{width:34px;height:34px;font-size:12.5px;}
  .demo-controls .nav-btn{min-width:88px;padding:12px 14px;}
  .demo-cta{padding:56px 20px;}
}
@media (max-width:460px){
  .device{border-radius:30px;padding:6px;}
  .device .screen{border-radius:24px;height:min(680px,78vh);}
  .device .stat{padding:16px 12px;}
  .device .stat .v{font-size:22px;}
}
