/* Layout: one column; an intake card, the strategy row, the basket, and a sticky compare dock. */
:root {
  --bg: #f3f5f0; --surface: #ffffff; --surface-2: #eef1ea; --ink: #18211d; --muted: #5d6a63; --line: #dbe1d8;
  --brand: #0d6a46; --brand-soft: #dff0e7; --brand-ink: #ffffff;
  --save: #e2532d; --save-soft: #fde8e1; --warn: #9a5b00; --warn-soft: #fbefd8; --good: #11784a;
  --display: "Rubik", "Assistant", system-ui, sans-serif; --body: "Assistant", system-ui, sans-serif;
  --r: 12px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1412; --surface: #171e1b; --surface-2: #1d2622; --ink: #e7eee9; --muted: #9eaca5; --line: #2b3632;
  --brand: #3fbf86; --brand-soft: #173a2b; --brand-ink: #0b1410;
  --save: #ff8a66; --save-soft: #3a1f17; --warn: #f0b252; --warn-soft: #36290f; --good: #62d39a; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0f1412; --surface: #171e1b; --surface-2: #1d2622; --ink: #e7eee9; --muted: #9eaca5; --line: #2b3632;
  --brand: #3fbf86; --brand-soft: #173a2b; --brand-ink: #0b1410;
  --save: #ff8a66; --save-soft: #3a1f17; --warn: #f0b252; --warn-soft: #36290f; --good: #62d39a; color-scheme: dark }

* { box-sizing: border-box }
[hidden] { display: none !important }
html, body { margin: 0 }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; padding-bottom: 96px }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; line-height: 1.2 }
h1 { font-size: clamp(24px, 4.2vw, 34px) }
h2 { font-size: 19px }
button, input, select, textarea { font: inherit; color: inherit }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px }
.num, .price { font-variant-numeric: tabular-nums; font-family: var(--display) }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line) }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--surface); z-index: 21 }
.top-in, .wrap { max-width: 920px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.top-in { display: flex; align-items: center; gap: 12px; padding-block: 10px; flex-wrap: wrap }
.logo { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--ink); text-decoration: none }
.logo-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); font-size: 17px }
.addr { display: flex; gap: 6px; align-items: baseline; border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 5px 14px; cursor: pointer }
.addr-label { color: var(--muted); font-size: 13px }
.stamp { margin-inline-start: auto; color: var(--muted); font-size: 12.5px }
.wrap { padding-block: 22px 40px; display: grid; gap: 22px }
.screen { display: grid; gap: 20px; min-width: 0 }

/* intake */
.intake { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 14px }
.sub { margin: 0; color: var(--muted); max-width: 64ch }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand) }
.panel { display: grid; gap: 12px }
textarea, input[type="search"], input[type="text"], input[type="number"], select {
  width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 10px 12px }
textarea { resize: vertical; min-height: 140px; line-height: 1.6 }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center }
.row.end { justify-content: flex-end }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 16px; cursor: pointer; font-weight: 700 }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink) }
.btn.primary:hover { filter: brightness(1.06) }
.btn.ghost { background: transparent }
.btn.link { border: 0; background: none; padding: 4px 0; color: var(--brand); font-weight: 600 }
.btn.big { padding: 13px 22px; font-size: 17px }
.btn.small { padding: 5px 10px; font-size: 14px; border-radius: 8px }
.drop { display: grid; gap: 4px; place-items: center; text-align: center; border: 2px dashed var(--line); border-radius: 14px; padding: 28px 16px; cursor: pointer; background: var(--bg) }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px }
.drop span { color: var(--muted); font-size: 14px; max-width: 46ch }
.status { margin: 0; color: var(--muted); font-size: 14px }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px }
.filters label, .knobs label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600 }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 440px; overflow: auto }
.res { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface) }
.res .nm { min-width: 0 }
.res .nm b { display: block; font-weight: 600; overflow-wrap: anywhere }
.res .nm small { color: var(--muted) }

/* chain chip */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 2px 8px 2px 9px; border-radius: 999px; background: var(--surface-2); white-space: nowrap }
.chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--c, var(--muted)) }
.tag { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--save-soft); color: var(--save); white-space: nowrap }
.tag.warn { background: var(--warn-soft); color: var(--warn) }
.tag.ok { background: var(--brand-soft); color: var(--good) }
.tag.plain { background: var(--surface-2); color: var(--muted) }

/* strategy */
.strategy { display: grid; gap: 10px }
.seg { display: flex; flex-wrap: wrap; gap: 8px }
.seg label { cursor: pointer }
.seg input { position: absolute; opacity: 0 }
.seg span { display: inline-block; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; font-weight: 600 }
.seg input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink) }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px }
.brand-pref { display: grid; gap: 4px; max-width: 420px; font-size: 14px }
.hint { margin: 0; color: var(--muted); font-size: 14px }

/* basket */
.basket { display: grid; gap: 10px }
.basket-head { display: flex; align-items: center; justify-content: space-between }
.count { font-size: 14px; background: var(--surface-2); padding: 1px 9px; border-radius: 999px; vertical-align: middle; font-family: var(--body) }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.line { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px }
.line.nomatch { border-style: dashed }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden }
.qty button { border: 0; background: var(--surface-2); width: 30px; height: 32px; cursor: pointer; font-weight: 700 }
.qty output { min-width: 50px; text-align: center; font-family: var(--display); font-size: 14px }
.line .info { min-width: 0; cursor: pointer }
.line .info b { display: block; font-weight: 600; overflow-wrap: anywhere }
.line .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; margin-top: 2px }
.line .side { display: grid; justify-items: end; gap: 4px }
.line .price { font-size: 18px; font-weight: 700 }
.line .acts { display: flex; gap: 6px }
.icon-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 3px 9px; cursor: pointer; font-size: 13px; font-weight: 600 }
.empty { display: grid; gap: 2px; text-align: center; padding: 28px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted) }
.empty b { color: var(--ink) }

.dock { position: fixed; inset: auto 0 0; z-index: 15; background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -6px 24px rgb(0 0 0 / .06) }
.dock-in { max-width: 920px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); flex-wrap: wrap }
.dock-est b { font-family: var(--display); font-size: 20px }
.dock-est small { display: block; color: var(--muted) }

/* compare */
.back { justify-self: start }
.knobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px }
.knobs .check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14.5px }
.knobs input[type="range"] { width: 100% }
.avail { display: flex; flex-wrap: wrap; gap: 8px }
.avail .a { display: flex; gap: 6px; align-items: center; font-size: 13.5px; padding: 5px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line) }
.avail .a.no { opacity: .75; text-decoration: line-through; text-decoration-color: var(--muted) }
.sec { margin-top: 6px }
.verdict { background: var(--brand); color: var(--brand-ink); border-radius: 16px; padding: 20px; display: grid; gap: 8px }
.verdict .big { font-family: var(--display); font-size: clamp(30px, 6vw, 42px); font-weight: 700; line-height: 1 }
.verdict p { margin: 0; max-width: 70ch }
.verdict .where { font-weight: 700; font-size: 18px }
.options, .singles { display: grid; gap: 10px }
.opt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden }
.opt.best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) }
.opt-head { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px; cursor: pointer; width: 100%; border: 0; background: none; text-align: start }
.opt-head .t { font-weight: 700; font-size: 16.5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center }
.opt-head .s { color: var(--muted); font-size: 13.5px }
.opt-head .tot { font-family: var(--display); font-size: 22px; font-weight: 700; text-align: end }
.opt-head .diff { font-size: 13px; text-align: end }
.diff.up { color: var(--save) } .diff.down { color: var(--good) }
.opt-body { border-top: 1px solid var(--line); padding: 4px 14px 14px; display: grid; gap: 14px }
.grp h3 { font-size: 15.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 10px }
.grp h3 .sum { margin-inline-start: auto; font-family: var(--display) }
.grp table { width: 100%; border-collapse: collapse; font-size: 14px }
.grp td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top }
.grp td.p { text-align: end; white-space: nowrap; font-family: var(--display) }
.grp .alt { display: block; color: var(--muted); font-size: 12.5px }
.grp .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px }
.fine { color: var(--muted); font-size: 13px; max-width: 80ch }

/* dialogs */
dialog { border: 0; padding: 0; border-radius: 16px; background: var(--surface); color: var(--ink); width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 40px) }
dialog::backdrop { background: rgb(10 20 15 / .45) }
.dlg { padding: 20px; display: grid; gap: 12px }
.dlg.wide { min-width: 0 }
.dlg p { margin: 0; color: var(--muted) }
.dlg label { font-weight: 600; font-size: 14px }
.dlg-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between }
.x { border: 0; background: var(--surface-2); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; flex: none }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px }
.ptable th { text-align: start; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 6px 4px; border-bottom: 1px solid var(--line) }
.ptable td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: middle }
.ptable tr.cheapest td { background: var(--brand-soft) }
.ptable .p { font-family: var(--display); white-space: nowrap }
.tbl-wrap { overflow-x: auto }
.rep { display: inline-flex; gap: 4px; flex-direction: column }
.rep button { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; font-size: 12px; padding: 2px 6px; cursor: pointer }
.alts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 300px; overflow: auto }
.alts li button { width: 100%; text-align: start; display: grid; grid-template-columns: 1fr auto; gap: 8px; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 8px 10px; cursor: pointer }
.alts li button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft) }
.copybox { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 13.5px; max-height: 220px; overflow: auto }

/* strategy: the rule for the whole basket, a key idea of the product, so it gets its own band */
.strategy { background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); border-radius: 16px; padding: 20px; gap: 12px }
.strategy .eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--brand) }
.strategy h2 { font-size: clamp(19px, 2.6vw, 23px) }
.strategy .sub { color: var(--muted); max-width: 70ch }
.seg.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px }
.seg.cards span { display: grid; gap: 4px; height: 100%; border-radius: 12px; padding: 12px 14px; background: var(--surface); text-align: start }
.seg.cards span b { font-size: 15.5px }
.seg.cards span small { color: var(--muted); font-weight: 400; font-size: 13.5px; line-height: 1.4 }
.seg.cards input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink) }
.seg.cards input:checked + span small { color: color-mix(in srgb, var(--brand-ink) 85%, transparent) }
.strategy .hint { color: var(--ink) }

/* chain logos */
/* chain logos: wordmarks of different shapes, each in the same white slot (white also in dark mode, like a sticker) */
.clogo { width: 62px; height: 26px; padding: 3px 5px; box-sizing: border-box; object-fit: contain; background: #fff; border-radius: 6px;
  box-shadow: 0 0 0 1px var(--line); vertical-align: middle; flex: none }
.clogo.lg { width: 84px; height: 34px; padding: 4px 7px }
.price-col .clogo { width: 56px; height: 24px }
.grp td .clogo, .alt .clogo { width: 48px; height: 20px; padding: 2px 4px }
.who { display: inline-flex; align-items: center; gap: 6px }
.verdict .where { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.verdict .clogo { width: 76px; height: 30px; box-shadow: none }
.avail .a { gap: 8px }

/* prices: sale price stands out in a soft red, regular price struck under it */
.price-col { display: grid; justify-items: end; gap: 4px; align-content: start }
.pr { display: grid; justify-items: end; line-height: 1.15; font-family: var(--display) }
.pr b { font-size: 18px; font-weight: 700 }
.pr small { font-family: var(--body); color: var(--muted); font-size: 11.5px }
.pr.sale b { color: var(--save) }
.pr.sale s { color: var(--muted); font-size: 12.5px; font-weight: 500 }
.sale-flag { font-family: var(--body); font-size: 10.5px; font-weight: 700; letter-spacing: .03em; color: var(--save-ink, #fff); background: var(--save); border-radius: 5px; padding: 0 6px; margin-bottom: 2px }
.ptable .pr { justify-items: start }
.alts .pr b { font-size: 16px }

/* stock icons */
.stock { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; font-weight: 700; vertical-align: middle }
.stock.ok { background: var(--brand-soft); color: var(--good) }
.stock.ok.mine { box-shadow: 0 0 0 2px var(--good) }
.stock.maybe { background: none }
.stock.maybe::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: #f59e0b }
.stock.out { background: var(--save-soft); color: var(--save) }
.ptable th.c, .ptable td.c { text-align: center }
.legend { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12.5px }
.store-cell { display: flex; gap: 8px; align-items: center }

/* barcode + not sold */
.barcode { display: block; margin-top: 8px; max-width: 220px; height: auto; background: #fff; border-radius: 6px }
.notsold { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px }
.notsold .ns-b { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted) }
.notsold small { margin-inline-end: 4px }

/* search: other sizes, size range */
.res .nm { display: grid; gap: 2px; min-width: 0 }
.res .nm small { color: var(--muted) }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px }
.sizes-l { font-size: 12px; color: var(--muted) }
.size { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 2px 9px; font-size: 12.5px; cursor: pointer }
.size.on { border-color: var(--brand); color: var(--brand); font-weight: 700 }
.size-filter { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; min-width: 0 }
.size-filter legend { font-size: 13px; color: var(--muted); font-weight: 600; padding: 0; margin-bottom: 4px }

/* product images: pack shots sit on white in both themes, like a shelf label */
.pimg { width: 48px; height: 48px; flex: none; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: inline-grid; place-items: center }
.pimg.large { width: 112px; height: 112px; border-radius: 14px; padding: 6px }
.pimg.icon { font-size: 26px; background: var(--surface-2) }
.pimg.large.icon { font-size: 60px }
.pimg.ph { background: var(--surface-2) }
.line .info { display: flex; gap: 12px; align-items: center }
.line .info .txt { min-width: 0 }
.res { grid-template-columns: auto 1fr auto auto }
.grp td.im { width: 40px; padding-inline-end: 6px }
.grp td.im .pimg { width: 34px; height: 34px; border-radius: 8px; font-size: 18px }
.alts li button { grid-template-columns: auto 1fr auto; align-items: center }
.alts .pimg { width: 40px; height: 40px }
.dlg-head .grow { flex: 1; min-width: 0 }

@media (max-width: 560px) {
  .pimg.large { width: 84px; height: 84px }
  .res { grid-template-columns: auto 1fr auto; }
  .res .btn.primary { grid-column: 2 / -1; justify-self: start }
  .intake { padding: 16px }
  .line { grid-template-columns: 1fr auto; }
  .line .qty { grid-column: 1 / -1; justify-self: start; order: 3 }
  .opt-head .tot { font-size: 19px }
}
@media (prefers-reduced-motion: no-preference) {
  .opt, .line { transition: border-color .15s }
}

.tips { margin: -4px 0 0; color: var(--muted); font-size: 13px }
.pimg.icon svg { width: 62%; height: 62%; color: var(--brand) }
.pimg.icon { background: var(--surface-2) }
.online-badge { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 12.5px; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 2px 9px 2px 8px }
.online-badge svg { width: 15px; height: 15px }
.ptable tr.far td { opacity: .55 }
.barcode { direction: ltr; max-width: 240px; overflow: visible }
/* a deal that kicks in when you buy more (2 for ₪20) or with a club card */
.deal { display: inline-block; margin-top: 3px; font-family: var(--body); font-size: 11.5px; font-weight: 700; color: var(--save); border: 1px solid color-mix(in srgb, var(--save) 45%, transparent); border-radius: 999px; padding: 0 7px; white-space: nowrap }
.deal.club { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent) }
.brands { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px }
.brands button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; text-align: start; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 8px 10px; cursor: pointer }
.brands button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft) }
.brands .pimg { width: 44px; height: 44px }
.brands .bn { display: grid; min-width: 0 }
.brands .bn small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }

/* ---- quantity you can type ---- */
.qty-in { width: 52px; border: 0; background: transparent; text-align: center; font-family: var(--display); font-size: 14px; padding: 0; -moz-appearance: textfield }
.qty-in::-webkit-inner-spin-button, .qty-in::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0 }
.qty-u { font-size: 12px; color: var(--muted); padding-inline-end: 4px }
.line .info { display: flex; gap: 12px; align-items: center; cursor: default }
.line .pic, .line .nm-btn { border: 0; background: none; padding: 0; cursor: pointer; text-align: start; color: inherit }
.line .nm-btn b { font-weight: 600 }
.line .sizes { margin-top: 6px }

/* ---- what we understood from your list ---- */
.report { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 10px }
.rp-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline }
.rp-head h2 { font-size: 18px }
.rp-sum { color: var(--muted); font-size: 14px }
.rp-sum .ok { color: var(--good); font-weight: 700 } .rp-sum .partial { color: var(--warn); font-weight: 700 } .rp-sum .none { color: var(--save); font-weight: 700 }
.rp-acts { margin-inline-start: auto; display: flex; gap: 14px }
.rp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 320px; overflow: auto }
.rp { display: grid; grid-template-columns: minmax(90px, 32%) 1fr; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; font-size: 14px }
.rp.none { background: var(--save-soft) } .rp.partial { background: var(--warn-soft) }
.rp-in { color: var(--muted); overflow-wrap: anywhere }
.rp-out { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0 }
.rp-out .pimg { width: 30px; height: 30px; border-radius: 7px }
.sug { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 1px 9px; font-size: 13px; cursor: pointer; color: var(--brand); font-weight: 600 }
.line.nomatch { border-color: var(--save); background: var(--save-soft) }

/* ---- store menu with logos ---- */
.dd-wrap { display: grid; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; position: relative; min-width: 0 }
.dd { position: relative }
.dd-btn { width: 100%; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 8px 12px; cursor: pointer; color: var(--ink); font-weight: 600; text-align: start; min-height: 42px }
.dd-btn::after { content: "▾"; margin-inline-start: auto; color: var(--muted) }
.dd-list { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 4px); min-width: 240px; max-height: 340px; overflow: auto; list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgb(0 0 0 / .18) }
.dd-list li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; cursor: pointer; color: var(--ink); font-weight: 500 }
.dd-list li:hover, .dd-list li:focus { background: var(--surface-2); outline: none }
.dd-list li[aria-selected="true"] { background: var(--brand-soft) }
.dd-list .dd-chain { margin-top: 6px; font-weight: 700 }
.dd-list .dd-branch { padding-inline-start: 22px }
.dd-list .dd-branch .clogo { width: 44px; height: 18px; padding: 1px 3px; opacity: .8 }
.dd-list .dd-near { font-weight: 700; color: var(--brand) }
.dd-list .dd-near small { color: var(--muted); font-weight: 500 }
.near-ic svg, .zoom-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8 }

/* ---- range sliders (price, size) ---- */
.range { display: grid; gap: 6px; min-width: 0 }
.range-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600 }
.range-top b { color: var(--ink); font-family: var(--display); font-weight: 600 }
.range-track { position: relative; height: 26px }
.range-track::before { content: ""; position: absolute; inset-inline: 0; top: 11px; height: 4px; border-radius: 4px; background: var(--line) }
.range-track input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none }
.range-track input::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--brand); cursor: pointer }
.range-track input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); border: 3px solid var(--surface); cursor: pointer }
.range-track input::-webkit-slider-runnable-track { background: none }

/* ---- product window: pinned bar, zoom, varieties, delivery fee ---- */
.dlg-foot { position: sticky; bottom: -20px; margin: 4px -20px -20px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--surface);
  border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; z-index: 2 }
.foot-total { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-inline-end: auto }
.foot-total b { color: var(--ink); font-family: var(--display); font-size: 18px }
.zoom-btn { position: relative; border: 0; background: none; padding: 0; cursor: zoom-in; flex: none }
.zoom-hint { position: absolute; inset-inline-end: 6px; bottom: 6px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff }
.ship { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px }
.vfilter { display: flex; flex-wrap: wrap; gap: 6px }
.vfilter button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 10px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ink); display: inline-flex; align-items: center }
.vfilter button[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) }
.vfilter .clogo { box-shadow: none; width: 52px; height: 20px; padding: 0 }
#zoom-dialog { width: min(760px, calc(100vw - 24px)) }
.zoom { padding: 16px; display: grid; gap: 8px; position: relative }
.zoom .x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2 }
.zoom-stage { position: relative; display: grid; place-items: center; background: #fff; border-radius: 12px; overflow: hidden; cursor: crosshair; touch-action: none }
.zoom-stage img { max-width: 100%; max-height: 70vh; object-fit: contain; display: block }
.lens { position: absolute; width: 170px; height: 170px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 6px 24px rgb(0 0 0 / .35); background-repeat: no-repeat; background-color: #fff; pointer-events: none }

.qty .qty-in { width: 52px; min-width: 0; border: 0; padding: 0; background: transparent; border-radius: 0 }
/* filters: the three menus on one row, the two sliders on the row under them */
.filters { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 14px }
.filters > label, .filters > .dd-wrap { grid-column: span 2 }
.filters > .range { grid-column: span 3 }
@media (max-width: 560px) { .filters > label, .filters > .dd-wrap, .filters > .range { grid-column: 1 / -1 } }

/* ---- complete the basket ---- */
.gaps { background: var(--surface); border: 2px solid var(--brand); border-radius: 18px; padding: 18px; display: grid; gap: 14px }
.gap-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; position: relative; padding-inline-end: 44px }
.gap-head .eyebrow { width: 100%; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--brand) }
.gap-head h2 { font-size: clamp(19px, 2.6vw, 23px) }
.gap-step { color: var(--muted); font-size: 14px }
.gap-head .x { position: absolute; top: 0; inset-inline-end: 0 }
.gap-missing { display: flex; gap: 10px; align-items: center; padding: 8px 10px; background: var(--save-soft); border-radius: 10px; font-size: 14.5px }
.gap-missing .pimg { width: 40px; height: 40px }
.gap-main { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 14px; border-radius: 14px; background: var(--brand-soft) }
.gm-txt { display: grid; gap: 4px; min-width: 0 }
.gm-txt b { font-size: 18px; font-family: var(--display); overflow-wrap: anywhere }
.gm-txt small { color: var(--muted) }
.gm-l { font-size: 12.5px; font-weight: 700; color: var(--brand) }
.gm-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px }
.gm-price .pr { justify-items: start }
.gm-price .pr b { font-size: 24px }
.gm-acts { display: grid; gap: 8px; justify-items: stretch }
.gap-more { display: grid; gap: 6px }
.gap-more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px }
.gap-more button { width: 100%; height: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 8px; align-items: center; text-align: start;
  border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 8px; cursor: pointer; color: var(--ink) }
.gap-more .pimg { grid-row: 1 / 3; width: 40px; height: 40px }
.gap-more .ga-n { font-size: 13px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }
.gap-more .price-col { justify-items: start }
.gap-more .pr b { font-size: 15px }
.gap-none { margin: 0; color: var(--muted) }
@media (max-width: 560px) { .gap-main { grid-template-columns: auto 1fr } .gm-acts { grid-column: 1 / -1 } .gap-main .pimg.large { width: 84px; height: 84px } }

.miss-link { color: var(--save); font-weight: 700 }

/* buy an item at a store you choose */
.ptable td.buy { white-space: nowrap }
.ptable .btn.small.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft) }
.tag.lock { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft); color: var(--ink) }
.tag.lock .clogo { width: 42px; height: 18px; padding: 1px 3px }
.qty-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-weight: 600 }

/* AI help */
.ai-status { font-size: 13.5px; font-weight: 700; color: var(--brand) }
.tag.ai { background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand) }

/* missing item: what it cost before, why we suggest these, and the change in price */
.gap-missing { flex-wrap: wrap }
.gmi-t { flex: 1; min-width: 12ch }
.gmi-was { display: inline-flex; align-items: center; gap: 6px; font-size: 14px }
.gmi-was b { font-family: var(--display); font-variant-numeric: tabular-nums }
.gap-why { margin: 0; color: var(--muted); font-size: 14.5px }
.gm-diff { font-size: 13px; font-weight: 700 }
.gm-diff.up { color: var(--save) }
.gm-diff.down { color: var(--good) }
.gap-more button[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) }

/* =====================================================================================
   THEME (2026-11-16): light, calm and professional. Navy ink on white and mist, a touch of gold,
   frosted-glass panels over a faint dot grid with two slow drifting glows, and soft, slow motion.
   This block overrides the older look above.
   ===================================================================================== */
:root {
  --bg: #f6f8fc; --surface: #ffffff; --surface-2: #f1f4f9; --ink: #1b2a3d; --muted: #5c6b80; --line: #e1e7ef;
  --brand: #1f3756; --brand-soft: #eaf0f8; --brand-ink: #ffffff; --navy-deep: #0f1f36;
  --accent: #2f6fe0; --sky: #7fb0ff; --gold: #b07a17; --gold-bright: #e3a83b;
  --save: #cc4528; --save-soft: #fdeee8; --warn: #8a5a00; --warn-soft: #fbf2df; --good: #127a4c;
  --glass: rgb(255 255 255 / .82); --glass-line: rgb(214 223 235 / .9);
  --shadow: 0 10px 30px rgb(15 31 54 / .06); --shadow-up: 0 18px 40px rgb(15 31 54 / .10);
  --display: "Heebo", system-ui, sans-serif; --body: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Frank Ruhl Libre", "Heebo", serif; --mono: "IBM Plex Mono", "Heebo", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1); --r: 14px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0a1322; --surface: #111c2e; --surface-2: #17243a; --ink: #e8eef7; --muted: #9fb0c6; --line: #24344d;
  --brand: #7fb0ff; --brand-soft: #16294a; --brand-ink: #0a1322; --accent: #7fb0ff; --gold: #e3a83b;
  --save: #ff8a66; --save-soft: #3a1f17; --warn: #f0b252; --warn-soft: #36290f; --good: #62d39a;
  --glass: rgb(17 28 46 / .78); --glass-line: rgb(52 72 102 / .7);
  --shadow: 0 10px 30px rgb(0 0 0 / .25); --shadow-up: 0 18px 40px rgb(0 0 0 / .35); color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0a1322; --surface: #111c2e; --surface-2: #17243a; --ink: #e8eef7; --muted: #9fb0c6; --line: #24344d;
  --brand: #7fb0ff; --brand-soft: #16294a; --brand-ink: #0a1322; --accent: #7fb0ff; --gold: #e3a83b;
  --save: #ff8a66; --save-soft: #3a1f17; --warn: #f0b252; --warn-soft: #36290f; --good: #62d39a;
  --glass: rgb(17 28 46 / .78); --glass-line: rgb(52 72 102 / .7);
  --shadow: 0 10px 30px rgb(0 0 0 / .25); --shadow-up: 0 18px 40px rgb(0 0 0 / .35); color-scheme: dark }

/* page background: faint dot grid + soft glows (the glows are two fixed elements, see index.html) */
body { font-family: var(--body); font-size: 16px; line-height: 1.6;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--accent) 16%, transparent) 1px, transparent 1.6px) 0 0 / 26px 26px,
    linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 60%, var(--surface)) 60%) fixed; }
.glow { position: fixed; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none }
.glow.g1 { width: 36rem; height: 36rem; inset-inline-end: -12rem; top: 6rem; background: color-mix(in srgb, var(--sky) 30%, transparent); animation: drift1 24s ease-in-out infinite alternate }
.glow.g2 { width: 30rem; height: 30rem; inset-inline-start: -10rem; bottom: -8rem; background: color-mix(in srgb, var(--gold-bright, #e3a83b) 16%, transparent); animation: drift2 28s ease-in-out infinite alternate }
@keyframes drift1 { to { transform: translate(-7rem, 5rem) } }
@keyframes drift2 { to { transform: translate(6rem, -5rem) } }

h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em }
h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 5.4vw, 48px); line-height: 1.08; letter-spacing: -.015em; color: var(--brand) }
h2 { font-weight: 800 }
.eyebrow { font: 500 12.5px/1.2 var(--mono); letter-spacing: .08em; color: var(--gold); text-transform: uppercase }
.num, .price, .pr b, .opt-head .tot, .dock-est b, .verdict .big { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px }

/* header: frosted */
.top, body::before { background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px) }
.top { border-bottom: 1px solid var(--glass-line) }
.logo, .clogo-text { font-family: var(--display); font-weight: 900; letter-spacing: -.02em; color: var(--brand) }
.logo-mark { background: linear-gradient(135deg, #1f3756, #0f1f36); color: var(--gold-bright, #e3a83b); border-radius: 10px; box-shadow: 0 6px 16px rgb(15 31 54 / .2) }
.addr { background: var(--glass); border-color: var(--glass-line) }
.stamp { font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em }

/* frosted panels */
.intake, .strategy, .report, .gaps, .knobs, .opt, .line, .res, .empty, .avail .a {
  background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow) }
.intake, .strategy, .report, .gaps { border-radius: 20px }
.intake { padding: clamp(20px, 3.4vw, 34px); gap: 16px }
.intake .sub { font-size: 17px }
.line, .res, .opt, .knobs { border-radius: var(--r) }
.empty { border-style: dashed; box-shadow: none }

/* the strategy: a card with a gold-to-blue accent bar, like a chapter note */
.strategy { position: relative; padding: clamp(20px, 3vw, 30px) }
.strategy::before { content: ""; position: absolute; inset-inline-start: 0; top: 24px; bottom: 24px; width: 4px; border-radius: 4px 0 0 4px; background: linear-gradient(var(--gold-bright, #e3a83b), var(--accent)) }
.strategy .eyebrow, .gap-head .eyebrow { font: 500 12.5px/1.2 var(--mono); letter-spacing: .08em; color: var(--gold) }
.seg.cards span { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface) }
.seg.cards input:checked + span { background: linear-gradient(135deg, #1f3756, #0f1f36); border-color: transparent; color: #fff; box-shadow: 0 12px 26px rgb(15 31 54 / .18) }
.seg.cards input:checked + span small { color: #b7c4d8 }
.seg input:checked + span { background: var(--brand); color: var(--brand-ink); border-color: var(--brand) }

/* tabs: a thin accent line under the chosen one */
.tabs { border-bottom-color: var(--line); gap: 2px }
.tabs button { border-bottom-width: 2px; padding: 10px 16px; font-weight: 600 }
.tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--accent) }

/* fields */
textarea, input[type="search"], input[type="text"], input[type="number"], select, .dd-btn {
  background: var(--surface); border-color: var(--line); border-radius: 12px }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent) }
.drop { background: var(--surface); border-color: var(--line); border-radius: 16px }
.tips { font-family: var(--body) }

/* buttons: pills */
.btn { border-radius: 999px; padding: 10px 20px; font-weight: 700; background: var(--surface) }
.btn.small { border-radius: 999px; padding: 5px 12px }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 22%, transparent) }
.btn.primary:hover { filter: none; background: color-mix(in srgb, var(--brand) 88%, var(--accent)) }
.btn.ghost { background: transparent }
.btn.link { color: var(--accent); background: none; box-shadow: none; padding-inline: 0 }
.btn.big { padding: 13px 26px }

/* the answer: a deep navy band with soft colour glows */
.verdict { position: relative; overflow: hidden; border-radius: 22px; padding: clamp(22px, 3.4vw, 32px); color: #fff;
  background: radial-gradient(120% 90% at 85% 0%, #2a4c80 0%, transparent 55%), radial-gradient(90% 80% at 0% 100%, #2c2a52 0%, transparent 60%), #0f1f36;
  box-shadow: 0 24px 50px rgb(15 31 54 / .22) }
.verdict .big { font-size: clamp(34px, 6.4vw, 52px); font-weight: 900; color: #fff }
.verdict p { color: #d5deeb }
.verdict a, .verdict .btn.link { color: var(--sky) }
.cmp-title { margin-top: 4px }
h2.sec { font-size: 21px; color: var(--brand) }
.opt.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-up) }

/* the missing-items helper: a frosted card with a thin accent top line instead of a heavy frame */
.gaps { position: relative; border: 1px solid var(--glass-line); overflow: hidden }
.gaps::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), var(--gold-bright, #e3a83b)) }
.gap-main { background: color-mix(in srgb, var(--brand-soft) 70%, var(--surface)); border: 1px solid var(--line) }

/* sticky bottom bar: frosted */
.dock { background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--glass-line); box-shadow: 0 -10px 30px rgb(15 31 54 / .06) }

/* dialogs: soft blurred backdrop, rounder, and they float in */
dialog { border-radius: 22px; border: 1px solid var(--glass-line); box-shadow: 0 30px 70px rgb(15 31 54 / .25) }
dialog::backdrop { background: rgb(15 31 54 / .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px) }
dialog[open] { animation: dlg-in .6s var(--ease) }
dialog[open]::backdrop { animation: fade-in .5s ease }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.985) } to { opacity: 1; transform: none } }
@keyframes fade-in { from { opacity: 0 } to { opacity: 1 } }

/* ---------- motion: slow and soft ---------- */
button, .btn, .seg span, .size, .sug, .dd-list li, .tabs button, .gap-more button, .alts li button, .brands button, .vfilter button,
.line, .res, .opt, .addr, .chip, input, textarea, select, .dd-btn {
  transition: background-color .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease),
    box-shadow .55s var(--ease), transform .55s var(--ease), opacity .45s var(--ease) }
@media (hover: hover) {
  .btn:hover:not(.link), .seg.cards span:hover, .gap-more button:hover, .alts li button:hover, .brands button:hover { transform: translateY(-1px); box-shadow: var(--shadow-up) }
  .btn.primary:hover { box-shadow: 0 12px 26px color-mix(in srgb, var(--brand) 28%, transparent) }
  .line:hover, .res:hover, .opt:hover { box-shadow: var(--shadow-up); border-color: color-mix(in srgb, var(--accent) 22%, var(--glass-line)) }
  .size:hover, .sug:hover, .addr:hover { border-color: var(--accent) }
  .btn.link:hover { opacity: .75 }
}
.btn:active, .seg.cards span:active, .gap-more button:active, .size:active { transform: scale(.985); transition-duration: .25s }

/* a screen fades up when you switch to it; sections fade up as they scroll in (only when JS turns motion on) */
.screen:not([hidden]) > :not(.dock) { animation: in-up .8s var(--ease) both } /* not the bottom bar: a moving parent would pull a "fixed" bar off the bottom */
@keyframes in-up { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: none } }
.motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.1s var(--ease) }
.motion .reveal.in { opacity: 1; transform: none }
.motion .reveal.d1 { transition-delay: .12s } .motion .reveal.d2 { transition-delay: .24s }
#gaps-basket:not([hidden]), #gaps:not([hidden]), #fill-report:not([hidden]), #verdict > * { animation: in-up .7s var(--ease) both }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important }
  .motion .reveal { opacity: 1; transform: none }
}
/* missing item: "see more" and "search yourself" */
.gap-tools { display: flex; flex-wrap: wrap; gap: 8px }
.gap-tools:empty { display: none }
.gap-q input { max-width: 420px }
.gap-found:empty { display: none }
@media (max-width: 420px) { .tabs button { padding: 10px 10px; font-size: 15px } }

/* headlines: IBM Plex Sans Hebrew, clean and corporate (instead of the serif) */
:root { --head: "IBM Plex Sans Hebrew", "Heebo", system-ui, sans-serif }
h1, h2, h3 { font-family: var(--head) }
h1 { font-family: var(--head); font-weight: 700; letter-spacing: -.02em; line-height: 1.12 }
h2 { font-weight: 700; letter-spacing: -.01em }

/* list report: what you wrote | pencil | what we picked */
.rp { grid-template-columns: minmax(90px, 30%) auto 1fr }
.rp-pen { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer }
@media (hover: hover) { .rp-pen:hover { color: var(--accent); border-color: var(--accent) } }
.rp-edit { grid-template-columns: 1fr; background: color-mix(in srgb, var(--brand-soft) 60%, var(--surface)); border: 1px solid var(--line); padding: 12px }
.rpe { display: grid; gap: 8px }
.rpe-l { font-size: 13px; font-weight: 600; color: var(--muted) }
.rpe-c button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) }

/* option cards: say in words what showing/hiding does */
.opt-tog { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--accent); text-align: end }
.opt-head[aria-expanded="true"] .opt-tog .show, .opt-head[aria-expanded="false"] .opt-tog .hide { display: none }
.opt-close { justify-self: center; font-size: 14px }
.opt-head .diff.up { font-weight: 600 }

/* "!" = we filled this in ourselves; click to change it */
.bang { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 0; padding: 0; vertical-align: 1px;
  background: var(--warn-soft); color: var(--warn); font: 800 13px/1 var(--display); cursor: pointer }
button.bang:hover { background: var(--warn); color: var(--surface) }

/* two stores instead of one */
.split-tip { margin-top: 12px; display: grid; gap: 6px; padding: 16px 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow) }
.split-tip b { font-size: 17px; color: var(--good) }
.split-tip .st-who { display: flex; flex-wrap: wrap; gap: 6px; align-items: center }
.split-tip .st-tot { color: var(--muted); font-size: 14px }
.split-tip .btn { justify-self: start }
.split-tip.quiet { display: block; color: var(--muted); font-size: 14px; box-shadow: none }
#singles > .btn { justify-self: center }

/* the replacement window */
#gap-dialog { width: min(820px, calc(100vw - 24px)) }
#gap-dialog .dlg { padding: 0 }
#gap-dialog .gaps { border: 0; box-shadow: none; border-radius: 0 }

/* comparable products: which real item each store's price is for */
.gpick { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 3px; max-width: 26ch }
/* photos you can enlarge */
.gaps img.pimg { cursor: zoom-in }
.gap-main img.pimg { transition: transform .5s var(--ease), box-shadow .5s var(--ease) }
@media (hover: hover) { .gap-main img.pimg:hover { transform: scale(1.03); box-shadow: var(--shadow-up) } }

/* delivery tab: the "new" note and a compact row of fees */
.avail:empty { display: none }
.avail { display: grid; gap: 8px }
.dl-new { margin: 0; font-size: 14.5px }
.dl-new b { color: var(--save) }
.dl-fees { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13.5px }
.dl-l { color: var(--muted); font-weight: 600 }
.dl-fees .a { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; box-shadow: none; padding: 0 }
.dl-fees .a small { color: var(--muted) }
.dl-fees .clogo { width: 64px; height: 26px }
.unv { display: inline-flex; align-items: center; gap: 4px }
.unv-t { color: var(--warn); font-size: 12.5px }


/* =====================================================================================
   LOOK v3 (2026-11-16): a plain, light retail site. White pages, thin gray borders, deep green brand,
   orange for prices and deals. No glass, glows, dot grids, spaced-out labels or dark bands. Light only.
   ===================================================================================== */
:root { --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f1f3f5; --ink: #14181f; --muted: #5d6573; --line: #e3e6ea;
  --brand: #0b6e4f; --brand-soft: #e8f4ee; --brand-ink: #ffffff; --accent: #0b6e4f; --sky: #0b6e4f; --gold: #0b6e4f; --gold-bright: #f2600c;
  --save: #e0480c; --save-soft: #fff0e8; --warn: #9a5b00; --warn-soft: #fdf3e1; --good: #0b7a4b;
  --glass: #ffffff; --glass-line: #e3e6ea; --shadow: none; --shadow-up: 0 4px 14px rgb(20 24 31 / .08); color-scheme: light; --r: 10px;
  --head: "Heebo", system-ui, sans-serif; --display: "Heebo", system-ui, sans-serif; --body: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f1f3f5; --ink: #14181f; --muted: #5d6573; --line: #e3e6ea;
  --brand: #0b6e4f; --brand-soft: #e8f4ee; --brand-ink: #ffffff; --accent: #0b6e4f; --sky: #0b6e4f; --gold: #0b6e4f; --gold-bright: #f2600c;
  --save: #e0480c; --save-soft: #fff0e8; --warn: #9a5b00; --warn-soft: #fdf3e1; --good: #0b7a4b;
  --glass: #ffffff; --glass-line: #e3e6ea; --shadow: none; --shadow-up: 0 4px 14px rgb(20 24 31 / .08); color-scheme: light; } }
:root[data-theme="dark"] { --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f1f3f5; --ink: #14181f; --muted: #5d6573; --line: #e3e6ea;
  --brand: #0b6e4f; --brand-soft: #e8f4ee; --brand-ink: #ffffff; --accent: #0b6e4f; --sky: #0b6e4f; --gold: #0b6e4f; --gold-bright: #f2600c;
  --save: #e0480c; --save-soft: #fff0e8; --warn: #9a5b00; --warn-soft: #fdf3e1; --good: #0b7a4b;
  --glass: #ffffff; --glass-line: #e3e6ea; --shadow: none; --shadow-up: 0 4px 14px rgb(20 24 31 / .08); color-scheme: light; }
body { background: var(--bg); line-height: 1.55 }
.glow { display: none }
*, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important }
h1 { font: 800 clamp(26px, 4.4vw, 38px)/1.15 var(--head); letter-spacing: -.02em; color: var(--ink) }
h2 { font-weight: 800; letter-spacing: -.01em }
h2.sec { color: var(--ink); font-size: 20px }
.eyebrow { font: 700 13px/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--brand) }
.strategy .eyebrow, .gap-head .eyebrow { font: 700 13px/1.3 var(--body); letter-spacing: 0; color: var(--brand) }

/* header */
.top, body::before { background: #fff }
.top { border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgb(20 24 31 / .02) }
.logo { gap: 9px; color: var(--ink); font: 800 22px/1 var(--head); letter-spacing: -.02em }
svg.logo-mark { width: 34px; height: 34px; flex: none; display: block; box-shadow: none; background: none; border-radius: 9px }
.logo-w b { color: var(--brand); font-weight: 900 }
.addr { background: var(--surface-2); border-color: var(--line) }
.stamp { font: 500 12px var(--body) }

/* panels: white with a thin border */
.intake, .strategy, .report, .gaps, .knobs, .opt, .line, .res, .empty, .split-tip {
  background: #fff; border: 1px solid var(--line); box-shadow: none }
.intake, .strategy, .report, .gaps { border-radius: 12px }
.line, .res, .opt, .knobs, .split-tip { border-radius: 10px }
.strategy::before, .gaps::before { display: none }
.intake { padding: clamp(18px, 3vw, 28px) }

/* buttons: solid, square-ish */
.btn { border-radius: 8px; padding: 10px 18px; background: #fff; border-color: var(--line); box-shadow: none }
.btn.small { border-radius: 7px; padding: 5px 12px }
.btn.big { padding: 12px 24px }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: none }
.btn.primary:hover { background: #095c42 }
.btn.link { color: var(--brand) }
@media (hover: hover) {
  .btn:hover:not(.link) { transform: none; box-shadow: none; border-color: #c9ced5 }
  .btn.primary:hover { box-shadow: none; border-color: #095c42 }
  .line:hover, .res:hover, .opt:hover { box-shadow: var(--shadow-up); border-color: #d3d8de }
}
.btn:active { transform: scale(.985) }

/* tabs: a segmented control */
.tabs { border-bottom: 1px solid var(--line) }
.tabs button { font-weight: 600 }
.tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand) }
.tabs.modes { border: 0; background: var(--surface-2); border-radius: 10px; padding: 4px; gap: 4px; width: fit-content; max-width: 100% }
.tabs.modes button { border: 0; border-radius: 7px; padding: 8px 16px; color: var(--muted) }
.tabs.modes button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgb(20 24 31 / .12) }

/* fields */
textarea, input[type="search"], input[type="text"], input[type="number"], select, .dd-btn { border-radius: 8px; background: #fff; border-color: #d9dde2 }
textarea:focus, input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(11 110 79 / .14) }

/* the answer: a light green card, the price large */
.verdict { background: var(--brand-soft); color: var(--ink); border: 1px solid #cfe7dc; border-radius: 12px; box-shadow: none; padding: clamp(18px, 3vw, 26px) }
.verdict > span:first-child { font-weight: 700; color: var(--brand) }
.verdict .big { color: var(--ink); font-weight: 900; font-size: clamp(34px, 6vw, 48px) }
.verdict p { color: var(--muted) }
.verdict .btn.link, .verdict a { color: var(--brand) }
.opt.best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) }
.opt-tog { color: var(--brand) }
.split-tip b { color: var(--good) }
.dock { background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgb(20 24 31 / .06) }
dialog { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgb(20 24 31 / .18) }
dialog::backdrop { background: rgb(20 24 31 / .35) }
.gap-main { background: #f7faf8; border-color: var(--line) }
.gap-missing { background: var(--save-soft) }
.pr.sale b, .sale-flag { color: var(--save) }
.tag { border-radius: 6px }
.motion .reveal { transform: none }

/* ---------- rule picker: one rule for the whole basket ---------- */
.strategy { gap: 10px }
.strategy h2 { font-size: clamp(20px, 2.6vw, 24px) }
.rules { display: grid; gap: 8px }
.rule { --tint: #eef7f2; --tint-2: #d6ece1; --ic: #0b6e4f;
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 12px 16px; border-radius: 10px; background: var(--tint); border: 1.5px solid transparent; cursor: pointer;
  transition: border-color .35s ease, background-color .35s ease, box-shadow .35s ease }
.rule.r2 { --tint: #eef4fc; --tint-2: #d7e6f8; --ic: #2563b8 }
.rule.r3 { --tint: #f4f0fb; --tint-2: #e3d9f5; --ic: #6b45b8 }
.rule.r4 { --tint: #fbf5ea; --tint-2: #f2e3c6; --ic: #9a6a10 }
.rule input { position: absolute; opacity: 0; pointer-events: none }
.r-ic { width: 42px; height: 42px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: var(--ic); box-shadow: 0 1px 2px rgb(20 24 31 / .06) }
.r-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
.r-tx { display: grid; gap: 1px }
.r-tx b { font-size: 16px }
.r-tx small { color: var(--muted); font-size: 13.5px }
.r-ck { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #c3c9d0; background: #fff; display: grid; place-items: center; transition: background-color .3s, border-color .3s }
.rule input:checked ~ .r-ck { background: var(--ic); border-color: var(--ic) }
.rule input:checked ~ .r-ck::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg) }
.rule:has(input:checked) { border-color: var(--ic); background: #fff; box-shadow: 0 2px 10px rgb(20 24 31 / .06) }
.rule:has(input:focus-visible) { outline: 2px solid var(--ic); outline-offset: 2px }
/* the shine: a soft light band that sweeps across on hover */
.rule::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / .75) 48%, rgb(255 255 255 / .9) 50%, rgb(255 255 255 / .75) 52%, transparent 70%);
  transform: translateX(110%) }
@media (hover: hover) {
  .rule:hover { background: var(--tint-2) }
  .rule:has(input:checked):hover { background: #fff }
  .rule:hover::after { opacity: 1; animation: rule-shine 1.1s ease forwards }
}
@keyframes rule-shine { from { transform: translateX(110%) } to { transform: translateX(-110%) } }
@media (prefers-reduced-motion: reduce) { .rule::after { display: none } }

/* =====================================================================================
   OPENING PAGE (2026-11-16): the chains swirl into the headline, then the 3 steps as a looping demo.
   ===================================================================================== */
body.intro-on main.wrap, body.intro-on #dock { display: none !important }
.intro[hidden] { display: none }
.intro { --ix: min(1180px, 100% - 32px) }
.hero { position: relative; overflow: hidden; min-height: min(calc(100svh - 64px), 820px); display: grid; place-items: center;
  background: radial-gradient(60% 55% at 50% 50%, #fff 0 42%, #f3f8f5 70%, #eef3f0 100%); border-bottom: 1px solid var(--line) }
.vx { position: absolute; inset: 0; pointer-events: none }
.vx-i { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; will-change: transform, opacity; opacity: 0 }
.vx-c { width: 118px; height: 58px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 22px rgb(20 24 31 / .08) }
.vx-c img { max-width: 86px; max-height: 34px; object-fit: contain }
.vx-p { width: 74px; height: 74px; background: #fff; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 8px 22px rgb(20 24 31 / .08); overflow: hidden }
.vx-p img { width: 82%; height: 82%; object-fit: contain }
.hero-c { position: relative; z-index: 2; text-align: center; max-width: 860px; padding: 48px 24px; display: grid; justify-items: center; gap: 16px }
.hero-c::before { content: ""; position: absolute; inset: -10% -14%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, #fff 62%, rgb(255 255 255 / .85) 80%, rgb(255 255 255 / 0)) }
.hero-k { margin: 0; font: 700 14px/1.3 var(--body); color: var(--brand); background: var(--brand-soft); padding: 6px 12px; border-radius: 6px }
.hero-h { margin: 0; font: 900 clamp(32px, 5.6vw, 58px)/1.12 var(--head); letter-spacing: -.025em; color: var(--ink) }
.rot { display: inline-grid; vertical-align: bottom; overflow: hidden; color: var(--brand) }
.rot-w { grid-area: 1 / 1; white-space: nowrap; transform: translateY(105%); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease) }
.rot-w.on { transform: none; opacity: 1 }
.rot-w.out { transform: translateY(-105%); opacity: 0 }
.hero-p { margin: 0; max-width: 560px; font-size: clamp(16px, 2vw, 19px); color: var(--muted) }
.go { margin-top: 10px; display: inline-flex; align-items: center; gap: 12px; padding: 20px 40px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--save); color: #fff; font: 800 clamp(19px, 2.4vw, 23px)/1 var(--head); box-shadow: 0 10px 26px rgb(224 72 12 / .28);
  position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s }
.go svg { width: 24px; height: 24px; transition: transform .25s var(--ease) }
.go:hover { background: #c93d07; transform: translateY(-2px); box-shadow: 0 14px 30px rgb(224 72 12 / .34) }
.go:hover svg { transform: translateX(-4px) }
.go:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px }
.go::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .35) 50%, transparent 65%);
  transform: translateX(120%); animation: go-shine 3.6s ease-in-out infinite 1.2s }
@keyframes go-shine { 0%, 60% { transform: translateX(120%) } 100% { transform: translateX(-120%) } }
.hero-more { font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 4px }
.hero-more:hover { color: var(--brand) }

/* the 3 steps */
.how { width: var(--ix); margin: 0 auto; padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); display: grid; justify-items: center; gap: 28px; scroll-margin-top: 70px }
.how h2 { margin: 0; font: 900 clamp(26px, 3.6vw, 38px)/1.15 var(--head); text-align: center }
.how-in { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px }
.how-s { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; overflow: hidden; transition: border-color .35s, box-shadow .35s }
.how-s b { display: block; font-size: 18px; margin-bottom: 2px }
.how-s p { margin: 0; color: var(--muted); font-size: 15px }
.how-n { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font: 900 18px/1 var(--head);
  background: var(--surface-2); color: var(--muted); transition: background-color .35s, color .35s }
.how-s.on { border-color: var(--brand); box-shadow: 0 6px 18px rgb(11 110 79 / .1) }
.how-s.on .how-n, .how-s.done .how-n { background: var(--brand); color: #fff }
.how-bar { position: absolute; bottom: 0; right: 0; height: 3px; width: 0; background: var(--brand) }
.how-s.on .how-bar { animation: how-fill 3.6s linear forwards }
@keyframes how-fill { to { width: 100% } }
.how-note { margin: -12px 0 0; color: var(--muted); font-size: 13px }

/* the demo window */
.demo { position: relative; height: 380px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgb(20 24 31 / .08); overflow: hidden }
.demo-top { display: flex; gap: 6px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2) }
.demo-top span { width: 10px; height: 10px; border-radius: 50%; background: #d6dae0 }
.demo-top em { margin-inline-start: auto; font: 600 12px var(--body); font-style: normal; color: var(--muted) }
.dm { position: absolute; inset: 46px 0 0; padding: 20px 26px; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none }
.demo[data-step="1"] .d1, .demo[data-step="2"] .d2, .demo[data-step="3"] .d3 { opacity: 1; transform: none }
.dm-t { margin: 0 0 14px; font: 800 18px var(--head) }
.dm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.dm-list li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15.5px; opacity: 0 }
.play.demo[data-step="1"] .dm-list li { animation: dm-in .4s var(--ease) forwards }
.dm-list li:nth-child(2) { animation-delay: .4s !important } .dm-list li:nth-child(3) { animation-delay: .8s !important }
.dm-list li:nth-child(4) { animation-delay: 1.2s !important } .dm-list li:nth-child(5) { animation-delay: 1.6s !important } .dm-list li:nth-child(6) { animation-delay: 2s !important }
@keyframes dm-in { from { opacity: 0; transform: translateX(-12px) } to { opacity: 1; transform: none } }
.dm-scan { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px }
.dm-scan li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center }
.dm-scan img { width: 76px; height: 26px; object-fit: contain }
.dm-scan i { display: block; height: 12px; border-radius: 6px; background: var(--surface-2); position: relative; overflow: hidden }
.dm-scan i::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 0; border-radius: 6px; background: #c9ddd3 }
.play.demo[data-step="2"] .dm-scan i::after { animation: dm-bar 1.6s var(--ease) forwards }
.dm-scan li:nth-child(2) i::after { animation-delay: .15s !important } .dm-scan li:nth-child(3) i::after { animation-delay: .3s !important }
.dm-scan li:nth-child(4) i::after { animation-delay: .45s !important } .dm-scan li:nth-child(5) i::after { animation-delay: .6s !important }
.dm-scan li:nth-child(6) i::after { animation-delay: .75s !important } .dm-scan li:nth-child(7) i::after { animation-delay: .9s !important }
@keyframes dm-bar { to { width: var(--w) } }
.dm-scan i { --w: inherit }
.dm-win { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 17px }
.dm-win b { font: 900 30px/1 var(--head) }
.dm-row { display: flex; justify-content: space-between; padding: 12px 20px; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted) }
.dm-row b { color: var(--ink) }
.dm-save { margin: 18px 0 0; text-align: center; font: 800 20px var(--head) }
.dm-save b { color: var(--save); font-size: 26px }
.play.demo[data-step="3"] .dm-win { animation: dm-pop .6s var(--ease) both }
.play.demo[data-step="3"] .dm-row { animation: dm-in .5s var(--ease) both .3s }
.play.demo[data-step="3"] .dm-row + .dm-row { animation-delay: .5s }
.play.demo[data-step="3"] .dm-save { animation: dm-pop .6s var(--ease) both .9s }
@keyframes dm-pop { from { opacity: 0; transform: scale(.92) } to { opacity: 1; transform: none } }
.demo.still .dm-list li { opacity: 1 }

@media (max-width: 820px) {
  .how-in { grid-template-columns: 1fr }
  .demo { order: -1 } /* on a phone the demo comes first, so it is seen while the steps change */
  .demo { height: 360px }
  .vx-c { width: 88px; height: 44px; border-radius: 11px } .vx-c img { max-width: 64px; max-height: 26px }
  .vx-p { width: 54px; height: 54px }
  .hero { min-height: min(calc(100svh - 60px), 700px) }
  .go { padding: 18px 28px }
}
@media (prefers-reduced-motion: reduce) {
  .go::after, .how-s.on .how-bar { animation: none }
  .rot-w { transition: none }
}

/* opening page v2: plain subtitle, a little stronger */
.hero-p { color: var(--ink); font-size: clamp(17px, 2.1vw, 20.5px); line-height: 1.6; max-width: 600px }
.hero-p b { font-weight: 800 }

/* price bars, one per chain (product window and demo step 2) */
.pbars { display: grid; gap: 10px; margin: 6px 0 4px }
.pb-t { margin: 0; font: 800 16px var(--head) }
.pbars ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.pbars li { display: grid; grid-template-columns: 84px 1fr 76px; gap: 12px; align-items: center }
.pb-l .clogo { width: 84px; height: 30px; object-fit: contain }
.pbars i { display: block; height: 14px; border-radius: 7px; background: var(--surface-2); position: relative; overflow: hidden }
.pbars i::after { content: ""; position: absolute; inset: 0 0 0 auto; width: var(--w); border-radius: 7px; background: #f1b79a }
.pbars li.win i::after { background: var(--brand) }
.pbars li b { font-weight: 800; text-align: left; font-variant-numeric: tabular-nums }
.pbars li.win b { color: var(--brand) }
.pbars.anim i::after, .play.demo[data-step="2"] .pbars i::after { animation: pb-grow 1.1s var(--ease) both; animation-delay: var(--d) }
.play.demo[data-step="2"] .pbars li b { animation: dm-in .4s var(--ease) both; animation-delay: calc(var(--d, 0s) + 1s) }
@keyframes pb-grow { from { width: 0 } }
.pt-h { margin: 14px 0 6px; font-size: 15px; color: var(--muted) }
.demo .pbars li { grid-template-columns: 76px 1fr 70px }
.demo .pb-l .clogo { width: 76px; height: 26px }

/* the basket's three answers */
.sum3 { display: grid; gap: 8px; margin: 8px 0 4px }
.s-win, .s-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 12px }
.s-win { background: var(--brand); color: #fff }
.s-win b { font: 900 clamp(24px, 3vw, 30px)/1 var(--head) }
.s-row { border: 1px solid var(--line); background: #fff }
.s-row b { font: 800 18px var(--head); color: var(--ink) }
.s-fit { border-color: var(--brand); background: var(--brand-soft) }
.s-k { font-weight: 700; display: grid }
.s-k small { font-weight: 500; color: var(--muted); font-size: 12.5px }
.s-logos { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap }
.s-st { display: inline-grid; justify-items: center; gap: 1px }
.s-st small { font-size: 11.5px; color: var(--muted) }
.s-st .clogo { width: 72px; height: 28px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px 4px }
.s-plus { color: var(--muted); font-weight: 700 }
.s-win .s-st small { color: #d9efe5 }
.s-save { margin: 6px 0 0; text-align: center; font: 800 19px var(--head) }
.s-save b { color: var(--save); font-size: 24px }
.verdict.v3 { display: grid; gap: 6px }
.verdict.v3 > p { margin: 6px 0 0 }
.demo .d3 .s-win, .demo .d3 .s-row { padding: 10px 14px }
.demo .d3 .s-k small { font-size: 11.5px }
.play.demo[data-step="3"] .s-win { animation: dm-pop .6s var(--ease) both }
.play.demo[data-step="3"] .s-row { animation: dm-in .5s var(--ease) both .3s }
.play.demo[data-step="3"] .s-row + .s-row { animation-delay: .55s }
.play.demo[data-step="3"] .s-save { animation: dm-pop .6s var(--ease) both .9s }
@media (max-width: 560px) {
  .s-win, .s-row { grid-template-columns: minmax(0, 1fr) auto; }
  .s-win .s-logos, .s-row .s-logos { grid-column: 1 / -1; grid-row: 2 }
  .pbars li { grid-template-columns: 70px 1fr 66px; gap: 8px } .pb-l .clogo { width: 70px }
}

/* location button in the address window */
.btn.geo { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin: 4px 0 2px; border: 1px solid var(--brand); color: var(--brand); background: var(--brand-soft); font-weight: 700 }
.btn.geo svg { width: 18px; height: 18px }
.geo-st { margin: 0; min-height: 1.2em; font-size: 13.5px; color: var(--muted) }
.rot { transition: width .6s var(--ease) }
.rot-w { justify-self: start; width: max-content }

/* =====================================================================================
   NOTEBOOK PAGE (2026-11-16): the list area is a lined page with a red margin and punched holes.
   ===================================================================================== */
.intake { --nb-line: 34px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at center, var(--bg) 0 6px, rgb(20 24 31 / .12) 6.5px, transparent 7.5px) right 14px top 26px / 16px 64px repeat-y,
    linear-gradient(to left, transparent 44px, #efb2ac 44px 46px, transparent 46px),
    repeating-linear-gradient(to bottom, transparent 0 calc(var(--nb-line) - 1px), #dfe8f2 calc(var(--nb-line) - 1px) var(--nb-line)),
    #fffefa;
  padding-inline-start: clamp(60px, 7vw, 76px) !important;
  box-shadow: 0 1px 0 #fff inset, 0 10px 26px rgb(20 24 31 / .07) }
.intake .tabs { background: none }
.tabs button { display: inline-flex; align-items: center; gap: 7px }
.tab-ic { width: 19px; height: 19px; flex: none }
#list-input { background:
    repeating-linear-gradient(to bottom, transparent 0 calc(var(--nb-line) - 1px), #cfdcea calc(var(--nb-line) - 1px) var(--nb-line)) 0 9px / 100% var(--nb-line) local,
    #fffefa;
  line-height: var(--nb-line); padding: 8px 14px; min-height: calc(var(--nb-line) * 6 + 18px); color: #1f3566; font-size: 17px; font-weight: 500;
  border-color: #e6e1d3 }
#list-input::placeholder { color: #8f9bb0; line-height: var(--nb-line) }
@media (max-width: 560px) { .intake { padding-inline-start: 46px !important;
    background:
    radial-gradient(circle at center, var(--bg) 0 5px, rgb(20 24 31 / .12) 5.5px, transparent 6.5px) right 8px top 22px / 12px 56px repeat-y,
    linear-gradient(to left, transparent 32px, #efb2ac 32px 34px, transparent 34px),
    repeating-linear-gradient(to bottom, transparent 0 calc(var(--nb-line) - 1px), #dfe8f2 calc(var(--nb-line) - 1px) var(--nb-line)),
    #fffefa } }
@media (max-width: 480px) {
  .intake .tabs button { flex: 1; flex-direction: column; gap: 3px; padding: 8px 4px; font-size: 13.5px }
  .intake .tabs .tab-ic { width: 22px; height: 22px }
}

/* =====================================================================================
   RULES AT THE CENTRE (2026-11-16): big cards, a big line, an example, a looping mini demo.
   The chosen rule colours the basket and is named above it.
   ===================================================================================== */
.strategy { padding: clamp(22px, 3.4vw, 36px) !important; gap: 16px !important; border-radius: 16px !important; background: #fff !important; border: 1px solid var(--line) !important; box-shadow: 0 10px 30px rgb(20 24 31 / .06) !important }
.strategy h2 { font: 900 clamp(26px, 3.6vw, 36px)/1.1 var(--head) !important; letter-spacing: -.02em }
.strategy .sub { font-size: clamp(15.5px, 1.8vw, 17.5px); color: var(--ink); max-width: 62ch; margin: -4px 0 4px }
.rules { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px !important }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr } }
.rule { display: grid !important; grid-template-columns: 1fr !important; align-content: start; gap: 8px !important; padding: 18px 18px 16px !important; border-radius: 14px !important;
  border: 1.5px solid color-mix(in srgb, var(--ic) 18%, transparent) !important }
.r-head { display: flex; align-items: center; gap: 12px }
.r-name { font-size: 15px; color: var(--ic); font-weight: 800; flex: 1 }
.r-big { font: 800 clamp(19px, 2.2vw, 22px)/1.25 var(--head); color: var(--ink) }
.r-ex { color: var(--muted); font-size: 14.5px; font-style: italic }
.rule:has(input:checked) { border-color: var(--ic) !important; background: #fff !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ic) 16%, transparent), 0 10px 26px rgb(20 24 31 / .08) !important }
.rule:has(input:checked) .r-ic { background: var(--ic); color: #fff }
.rule-go { justify-self: center; padding: 14px 26px; border-radius: 12px; font-weight: 800; font-size: 16.5px; color: #fff !important; border: 0;
  background: var(--rule-c, var(--brand)); transition: background-color .4s, transform .2s }
.rule-go:hover { transform: translateY(-1px); filter: brightness(1.06) }

/* the mini demos (each loops every 4.8s) */
.r-demo { position: relative; display: grid; gap: 8px; justify-items: center; margin-top: 6px; padding: 14px 10px 10px; border-radius: 12px; background: rgb(255 255 255 / .75);
  border: 1px dashed color-mix(in srgb, var(--ic) 30%, transparent); min-height: 104px; overflow: hidden }
.rd-cap { font-size: 12.5px; color: var(--muted); font-weight: 600 }
.rd-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap }
.tg { display: grid; justify-items: center; gap: 1px; min-width: 70px; padding: 7px 10px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--muted) }
.tg b { font-size: 15px; color: var(--ink) }
.rd1 .tg:not(.win) { animation: rd-dim 4.8s ease-in-out infinite }
.rd1 .tg.win { animation: rd-win 4.8s ease-in-out infinite }
@keyframes rd-dim { 0%, 30% { opacity: 1 } 45%, 85% { opacity: .4 } 100% { opacity: 1 } }
@keyframes rd-win { 0%, 30% { transform: none; border-color: var(--line); box-shadow: none } 45%, 85% { transform: translateY(-5px); border-color: var(--ic); box-shadow: 0 6px 14px color-mix(in srgb, var(--ic) 25%, transparent) } 100% { transform: none } }
.rd1 .tg.win b { animation: rd-col 4.8s ease-in-out infinite }
@keyframes rd-col { 0%, 30%, 100% { color: var(--ink) } 45%, 85% { color: var(--ic) } }

.rd-prod { padding: 6px 14px; border-radius: 8px; background: var(--ic); color: #fff; font-weight: 800; font-size: 14px }
.rd-logos { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center }
.rd-logos i { width: 44px; height: 24px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; position: relative;
  animation: rd-pop 4.8s ease infinite; animation-delay: calc(var(--k) * .22s) }
.rd-logos img { max-width: 36px; max-height: 16px; object-fit: contain }
.rd-logos i::after { content: "✓"; position: absolute; top: -6px; left: -5px; width: 13px; height: 13px; border-radius: 50%; background: var(--ic); color: #fff; font: 800 9px/13px var(--body); text-align: center; font-style: normal;
  animation: rd-ok 4.8s ease infinite; animation-delay: calc(var(--k) * .22s) }
@keyframes rd-pop { 0% { opacity: 0; transform: translateY(6px) } 8%, 88% { opacity: 1; transform: none } 100% { opacity: 0 } }
@keyframes rd-ok { 0%, 14% { transform: scale(0) } 20%, 88% { transform: scale(1) } 100% { transform: scale(0) } }

.rd-map { position: relative; width: 220px; height: 64px }
.rd-map .st { position: absolute; top: 18px; width: 52px; height: 28px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 7px }
.rd-map .st img { max-width: 42px; max-height: 18px; object-fit: contain }
.rd-map .s1 { right: 0 } .rd-map .s2 { right: 84px } .rd-map .s3 { right: 168px }
.rd-map::before { content: ""; position: absolute; top: 32px; right: 26px; left: 26px; border-top: 2px dashed #c9ced6; animation: rd-route 4.8s ease infinite }
.rd-map .cart { position: absolute; top: -4px; right: 14px; width: 26px; height: 26px; color: var(--ic); animation: rd-cart 4.8s ease-in-out infinite }
.rd-map .s1, .rd-map .s3 { animation: rd-off 4.8s ease infinite }
.rd-map .s2 { animation: rd-home 4.8s ease infinite }
@keyframes rd-cart { 0% { transform: translateX(0) } 18% { transform: translateX(-168px) } 34% { transform: translateX(-84px) } 50%, 90% { transform: translateX(-84px) translateY(-2px) } 100% { transform: translateX(0) } }
@keyframes rd-route { 0%, 34% { opacity: 1 } 50%, 90% { opacity: 0 } 100% { opacity: 1 } }
@keyframes rd-off { 0%, 38% { opacity: 1 } 52%, 90% { opacity: .25 } 100% { opacity: 1 } }
@keyframes rd-home { 0%, 38% { border-color: var(--line); box-shadow: none } 52%, 90% { border-color: var(--ic); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ic) 20%, transparent) } 100% { border-color: var(--line) } }

.rd4 .tg.fav { position: relative; animation: rd-win 4.8s ease-in-out infinite }
.rd4 .tg.dim { animation: rd-dim 4.8s ease-in-out infinite }
.rd4 .tg em { position: absolute; top: -9px; left: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--ic); display: grid; place-items: center; animation: rd-ok 4.8s ease infinite .9s }
.rd4 .tg em svg { width: 12px; height: 12px; fill: #fff; stroke: none }
@media (prefers-reduced-motion: reduce) {
  .r-demo *, .r-demo *::before, .r-demo *::after, .rd-map::before { animation: none !important }
  .rd1 .tg:not(.win), .rd4 .tg.dim, .rd-map .s1, .rd-map .s3 { opacity: .45 }
  .rd-map .cart { transform: translateX(-84px) }
}

/* the basket wears the rule's colour */
body { --rule-c: #0b6e4f; --rule-t: #eef7f2 }
body[data-rule="popular"] { --rule-c: #2563b8; --rule-t: #eef4fc }
body[data-rule="cheapchain"] { --rule-c: #6b45b8; --rule-t: #f4f0fb }
body[data-rule="brand"] { --rule-c: #9a6a10; --rule-t: #fbf5ea }
.basket { border: 2px solid var(--rule-c) !important; border-radius: 14px; padding: clamp(14px, 2.4vw, 22px); background: #fff; transition: border-color .4s; scroll-margin-top: 80px }
.basket-rule { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 10px; background: var(--rule-t); color: var(--ink); font-size: 15.5px }
.basket-rule b { color: var(--rule-c) }
.br-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--rule-c); color: #fff; flex: none }
.br-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.br-chg { margin-inline-start: auto; font-size: 13.5px; font-weight: 600; color: var(--muted) }
.basket .count { background: var(--rule-c) !important; color: #fff !important }
.basket #strategy-hint:empty { display: none }
.basket #strategy-hint { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 14px; border: 1px dashed var(--rule-c); border-radius: 10px; font-size: 14.5px }
.home-now { display: inline-flex; align-items: center; gap: 8px }
.home-now small { color: var(--muted) }
.home-sw { display: inline-flex; align-items: center; gap: 8px; font-weight: 600 }
.home-sw select { padding: 7px 10px; font-size: 14px; max-width: min(360px, 70vw) }

/* softer notebook: faint lines on the page, a little clearer inside the list box */
.intake { background:
    radial-gradient(circle at center, var(--bg) 0 6px, rgb(20 24 31 / .07) 6.5px, transparent 7.5px) right 14px top 26px / 16px 64px repeat-y,
    linear-gradient(to left, transparent 44px, #f6d6d2 44px 46px, transparent 46px),
    repeating-linear-gradient(to bottom, transparent 0 calc(var(--nb-line) - 1px), #eef2f7 calc(var(--nb-line) - 1px) var(--nb-line)),
    #fffefb !important }
#list-input { background:
    repeating-linear-gradient(to bottom, transparent 0 calc(var(--nb-line) - 1px), #dde6f0 calc(var(--nb-line) - 1px) var(--nb-line)) 0 9px / 100% var(--nb-line) local,
    #fffefb !important }
@media (max-width: 560px) { .intake { background:
    radial-gradient(circle at center, var(--bg) 0 5px, rgb(20 24 31 / .07) 5.5px, transparent 6.5px) right 8px top 22px / 12px 56px repeat-y,
    linear-gradient(to left, transparent 32px, #f6d6d2 32px 34px, transparent 34px),
    repeating-linear-gradient(to bottom, transparent 0 calc(var(--nb-line) - 1px), #eef2f7 calc(var(--nb-line) - 1px) var(--nb-line)),
    #fffefb !important } }
.rule:has(input:checked) .r-ck { background: var(--ic); border-color: var(--ic) }
.rule:has(input:checked) .r-ck::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg) }
.home-sw span { white-space: nowrap }

/* =====================================================================================
   RULES v2 (2026-11-16): a darker box, everything centred, names as real headings, priority numbers.
   ===================================================================================== */
.strategy { background: #12382c !important; border-color: #12382c !important; text-align: center; justify-items: center }
.strategy h2 { color: #fff !important }
.strategy .sub { color: #d6e7df !important; margin-inline: auto !important }
.strategy .sub small { display: block; margin-top: 4px; color: #a9cbbd; font-size: 14px }
.strategy .rules { width: 100% }
.rule { text-align: center; justify-items: center; padding: 22px 20px 18px !important }
.r-head { flex-direction: column; gap: 10px }
.r-ic { width: 48px; height: 48px; border-radius: 12px }
.r-ic svg { width: 26px; height: 26px }
.r-name { flex: none; font: 900 clamp(21px, 2.4vw, 24px)/1.15 var(--head) !important; color: var(--ic) !important; letter-spacing: -.015em }
.r-big { font: 700 clamp(16.5px, 1.9vw, 18px)/1.4 var(--body) !important; color: var(--ink); max-width: 30ch }
.r-ex { font-style: normal !important; font-size: 14.5px; color: var(--muted); max-width: 40ch }
.r-ck { position: absolute; top: 14px; left: 14px; font: 800 13px/1 var(--body); color: #fff }
.rule.numbered .r-ck::after { display: none !important }
.r-demo { width: 100% }
.strategy .brand-pref { width: min(460px, 100%); text-align: start; color: #fff }
.strategy .brand-pref label { color: #d6e7df }
.rule-go { background: #fff !important; color: var(--rule-c) !important; box-shadow: 0 6px 18px rgb(0 0 0 / .18) }
.br-r { display: inline-flex; align-items: center; gap: 5px; margin-inline-end: 8px }
.br-n { width: 19px; height: 19px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--rule-c); color: #fff; font-size: 11.5px }

/* report rows: the pencil sits right after what you wrote, a second one after the product */
.rp { grid-template-columns: minmax(110px, 34%) 1fr !important }
.rp-in { display: inline-flex; align-items: center; gap: 8px }
.rp-out .rp-pp { margin-inline-start: 4px }

/* the basket: a cart's wire mesh around it, faint inside */
.basket { padding: 16px !important; border-width: 3px !important; border-radius: 18px !important; gap: 0 !important;
  background:
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--rule-c) 30%, transparent) 0 2px, transparent 2px 15px),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--rule-c) 30%, transparent) 0 2px, transparent 2px 15px),
    color-mix(in srgb, var(--rule-c) 5%, #fff) !important }
.basket-in { display: grid; gap: 10px; border-radius: 12px; padding: clamp(12px, 2vw, 18px);
  background:
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--rule-c) 6%, transparent) 0 1px, transparent 1px 15px),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--rule-c) 6%, transparent) 0 1px, transparent 1px 15px),
    rgb(255 255 255 / .95);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--rule-c) 22%, transparent), 0 4px 14px rgb(20 24 31 / .06) }
@media (max-width: 560px) { .basket { padding: 10px !important } }
.opt-sec { margin: 14px 0 2px; font: 800 17px var(--head); color: var(--ink) }

/* search filters sit in the middle */
#panel-search .filters { justify-content: center }

/* the basket, take 2: a plastic shopping basket. A solid rim on top, walls with rounded slots, faint slots inside. */
.basket { position: relative; isolation: isolate; border: 0 !important; background: #fff !important; padding: 30px 18px 18px !important; border-radius: 20px !important }
.basket::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--rule-c); opacity: .78; transition: background-color .4s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='34'%3E%3Cpath fill-rule='evenodd' d='M0 0h22v34H0z M8 6h6a3 3 0 0 1 3 3v16a3 3 0 0 1-3 3h-6a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3z'/%3E%3C/svg%3E") 0 0 / 22px 34px repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='34'%3E%3Cpath fill-rule='evenodd' d='M0 0h22v34H0z M8 6h6a3 3 0 0 1 3 3v16a3 3 0 0 1-3 3h-6a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3z'/%3E%3C/svg%3E") 0 0 / 22px 34px repeat }
.basket::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 14px; border-radius: 20px 20px 6px 6px; background: var(--rule-c); pointer-events: none; transition: background-color .4s }
.basket-in { position: relative; background: #fff !important; box-shadow: 0 0 0 2px var(--rule-c), 0 6px 18px rgb(20 24 31 / .08) !important }
.basket-in::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: var(--rule-c); opacity: .045;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='34'%3E%3Cpath d='M8 6h6a3 3 0 0 1 3 3v16a3 3 0 0 1-3 3h-6a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3z'/%3E%3C/svg%3E") 0 0 / 22px 34px repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='34'%3E%3Cpath d='M8 6h6a3 3 0 0 1 3 3v16a3 3 0 0 1-3 3h-6a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3z'/%3E%3C/svg%3E") 0 0 / 22px 34px repeat }
.basket-in > * { position: relative }
@media (max-width: 560px) { .basket { padding: 24px 10px 10px !important } }
#panel-search .filters { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 12px 16px }
#panel-search .filters > :not([hidden]) { flex: 0 1 260px; grid-column: auto !important; text-align: center }
/* thicker walls so whole slots show, slots start under the rim, two handle holes in the rim */
.basket { padding: 50px 30px 34px !important }
.basket::before { -webkit-mask-size: 20px 32px; mask-size: 20px 32px; -webkit-mask-position: center 14px; mask-position: center 14px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='32'%3E%3Cpath fill-rule='evenodd' d='M0 0h20v32H0z M10 6a4 4 0 0 1 4 4v12a4 4 0 0 1-8 0V10a4 4 0 0 1 4-4z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='32'%3E%3Cpath fill-rule='evenodd' d='M0 0h20v32H0z M10 6a4 4 0 0 1 4 4v12a4 4 0 0 1-8 0V10a4 4 0 0 1 4-4z'/%3E%3C/svg%3E") }
.basket::after { height: 18px; opacity: 1;
  background: radial-gradient(ellipse 34px 5px at 30% 50%, #fff 98%, transparent 100%), radial-gradient(ellipse 34px 5px at 70% 50%, #fff 98%, transparent 100%), var(--rule-c) }
.basket-in::before { -webkit-mask-size: 20px 32px; mask-size: 20px 32px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='32'%3E%3Cpath d='M10 6a4 4 0 0 1 4 4v12a4 4 0 0 1-8 0V10a4 4 0 0 1 4-4z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='32'%3E%3Cpath d='M10 6a4 4 0 0 1 4 4v12a4 4 0 0 1-8 0V10a4 4 0 0 1 4-4z'/%3E%3C/svg%3E") }
@media (max-width: 560px) { .basket { padding: 40px 14px 18px !important } }

/* the basket, take 3: a shopping cart. Thin diagonal wire walls, a slim top rail, a push handle and two wheels. */
.basket { padding: 14px !important; margin: 34px 0 30px 40px; border-radius: 10px 10px 18px 18px !important; overflow: visible }
.basket::before { border-radius: inherit; opacity: 1; background:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--rule-c) 55%, transparent) 0 1.5px, transparent 1.5px 11px),
    repeating-linear-gradient(-45deg, color-mix(in srgb, var(--rule-c) 55%, transparent) 0 1.5px, transparent 1.5px 11px), #fff;
  -webkit-mask: none; mask: none; box-shadow: inset 0 0 0 3px var(--rule-c) }
.basket::after { height: 7px; border-radius: 10px 10px 0 0; background: var(--rule-c) }
.basket-in { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--rule-c) 45%, transparent), 0 4px 14px rgb(20 24 31 / .06) !important }
.basket-in::before { display: none }
.cart-handle { position: absolute; top: -32px; left: -42px; width: 64px; height: 56px; overflow: visible; pointer-events: none }
.cart-handle path { fill: none; stroke: var(--rule-c); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s }
.cart-wheel { position: absolute; bottom: -24px; width: 26px; height: 26px; border-radius: 50%; background: var(--rule-c); box-shadow: inset 0 0 0 7px var(--rule-c), inset 0 0 0 26px #fff; pointer-events: none; transition: background-color .4s }
.cart-wheel { background: #fff; border: 7px solid var(--rule-c); box-shadow: none }
.cart-wheel.w1 { right: 14% } .cart-wheel.w2 { left: 14% }
@media (max-width: 560px) { .basket { padding: 8px !important; margin: 30px 0 28px 30px } .cart-handle { left: -34px; width: 52px; height: 46px; top: -27px } }
.cart-wheel { bottom: -15px; width: 28px; height: 28px; border-width: 8px }
.cart-handle path { stroke-width: 6 }

/* =====================================================================================
   SAVINGS CARD on the opening page (bottom left): a struck-out price, the right store, a growing pile of cash.
   ===================================================================================== */
.saver { position: absolute; left: clamp(16px, 3vw, 44px); bottom: clamp(16px, 3vw, 40px); z-index: 3; display: flex; align-items: flex-end; gap: 14px;
  opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); pointer-events: none }
.saver.show { opacity: 1; transform: none }
.sv-card { width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: 0 14px 34px rgb(20 24 31 / .12); display: grid; gap: 8px }
.sv-k { margin: 0; font: 700 12px var(--body); color: var(--muted) }
.sv-prod { display: flex; align-items: center; gap: 10px; min-height: 40px }
.sv-img .pimg { width: 40px; height: 40px; border-radius: 8px; object-fit: contain }
.sv-name { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.sv-row { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); transition: background-color .4s, border-color .4s, opacity .4s }
.sv-logo .clogo { width: 66px; height: 24px; object-fit: contain }
.sv-p { margin-inline-start: auto; font: 800 16px var(--head); font-variant-numeric: tabular-nums }
.sv-p s { position: relative; text-decoration: none; color: var(--ink) }
.sv-p s::after { content: ""; position: absolute; right: -3px; left: -3px; top: 52%; height: 2.5px; border-radius: 2px; background: #d92d20; transform: scaleX(0); transform-origin: right; transition: transform .45s ease }
.saver.strike .sv-p s::after { transform: scaleX(1) }
.saver.strike .sv-hi { opacity: .6 }
.sv-lo em { position: absolute; top: -9px; left: 10px; font: 800 11px/1 var(--body); font-style: normal; color: #fff; background: var(--brand); padding: 4px 7px; border-radius: 6px; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s }
.saver.pick .sv-lo { border-color: var(--brand); background: var(--brand-soft) }
.saver.pick .sv-lo .sv-p { color: var(--brand) }
.saver.pick .sv-lo em { opacity: 1; transform: none }
/* the pile of cash */
.sv-pile { display: grid; justify-items: center; gap: 6px; width: 120px }
.sv-bills { position: relative; width: 104px; height: 120px; transition: opacity .6s, transform .6s }
.sv-bills.reset { opacity: 0; transform: translateY(10px) scale(.95) }
.sv-bill { position: absolute; left: calc(50% - 46px + var(--x, 0px)); width: 92px; height: 40px; border-radius: 5px; transform: rotate(var(--r, 0deg));
  background: linear-gradient(135deg, #7fc49b, #3f9b67); border: 1.5px solid #2f7d51; box-shadow: 0 2px 4px rgb(20 24 31 / .18);
  animation: sv-drop .7s cubic-bezier(.2, .9, .3, 1.2) both }
.sv-bill::before { content: "₪"; position: absolute; inset: 5px; border: 1.5px solid rgb(255 255 255 / .55); border-radius: 3px; display: grid; place-items: center; color: #fff; font: 900 17px/1 var(--head) }
.sv-bill:nth-child(1) { bottom: 0 } .sv-bill:nth-child(2) { bottom: 7px } .sv-bill:nth-child(3) { bottom: 14px } .sv-bill:nth-child(4) { bottom: 21px }
.sv-bill:nth-child(5) { bottom: 28px } .sv-bill:nth-child(6) { bottom: 35px } .sv-bill:nth-child(7) { bottom: 42px } .sv-bill:nth-child(8) { bottom: 49px }
.sv-bill:nth-child(9) { bottom: 56px } .sv-bill:nth-child(10) { bottom: 63px } .sv-bill:nth-child(11) { bottom: 70px } .sv-bill:nth-child(12) { bottom: 77px }
@keyframes sv-drop { from { opacity: 0; transform: translate(120px, -60px) rotate(25deg) scale(.7) } to { opacity: 1; transform: rotate(var(--r, 0deg)) } }
.sv-tot { margin: 0; font: 700 13px var(--body); color: var(--muted); white-space: nowrap }
.sv-tot b { color: var(--save); font: 900 19px var(--head) }
@media (max-width: 1000px) {
  .hero { grid-template-rows: 1fr auto }
  .saver { position: relative; left: auto; bottom: auto; margin: 0 auto 26px; justify-content: center }
}
@media (max-width: 420px) { .sv-card { width: 210px } .sv-pile { width: 96px } .sv-bills { width: 90px } .sv-bill { width: 80px; left: calc(50% - 40px + var(--x, 0px)) } }
@media (min-width: 1001px) {
  .sv-card { width: 300px; padding: 14px 16px; gap: 10px }
  .sv-name { font-size: 15px } .sv-p { font-size: 18px } .sv-logo .clogo { width: 76px; height: 28px }
  .sv-pile { width: 140px } .sv-bills { width: 120px; height: 140px } .sv-bill { width: 104px; height: 46px; left: calc(50% - 52px + var(--x, 0px)) }
}

/* =====================================================================================
   "הידעתם?" on the opening page: two facts and a piggy bank swallowing banknotes (loops).
   ===================================================================================== */
.know { background: #fff6ef; border-bottom: 1px solid #f6e3d6 }
.know-in { width: min(1100px, 100% - 32px); margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center }
.know-tx { display: grid; gap: 16px; justify-items: start }
.know h2 { margin: 0; font: 900 clamp(32px, 4.6vw, 48px)/1 var(--head); color: var(--save); letter-spacing: -.02em }
.know p { margin: 0; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; color: var(--ink) }
.know p b { font-weight: 900; color: var(--save) }
.know-2 { padding-top: 14px; border-top: 1px dashed #efc9b2 }
.know .go { margin-top: 4px }
.know-pig { display: grid; place-items: center }
.pig { width: min(320px, 80vw); height: auto; overflow: visible }
.pig-main { fill: #f7a8b8 } .pig-ear { fill: #ee8ea2 } .pig-leg { fill: #ee8ea2 } .pig-snout { fill: #ee8ea2 }
.pig-nose { fill: #b85a6e } .pig-eye { fill: #3b2a2e } .pig-slot { fill: #8f3f52 } .pig-shadow { fill: rgb(20 24 31 / .08) }
.pig-tail { fill: none; stroke: #ee8ea2; stroke-width: 5; stroke-linecap: round }
.pb rect { fill: #4fa874; stroke: #2f7d51; stroke-width: 2 }
.pb text { fill: #fff; font: 900 18px var(--head); text-anchor: middle }
.pig-body { transform-origin: 112px 172px; animation: pig-gulp 1.6s ease-in-out infinite }
.pb { transform-box: fill-box; transform-origin: center bottom; opacity: 0; animation: pig-bill 4.8s ease-in infinite }
.pb.b2 { animation-delay: 1.6s } .pb.b3 { animation-delay: 3.2s }
@keyframes pig-bill {
  0% { opacity: 0; transform: translate(-30px, -40px) rotate(-14deg) }
  8% { opacity: 1; transform: translate(-10px, -20px) rotate(-6deg) }
  22% { opacity: 1; transform: translate(0, 34px) rotate(0) scaleY(1) }
  30% { opacity: 1; transform: translate(0, 58px) scaleY(.35) }
  34%, 100% { opacity: 0; transform: translate(0, 64px) scaleY(.1) }
}
@keyframes pig-gulp { 0%, 40%, 100% { transform: none } 50% { transform: scale(1.05, .95) } 62% { transform: scale(.98, 1.03) } 74% { transform: none } }
@media (max-width: 760px) { .know-in { grid-template-columns: 1fr; text-align: center } .know-tx { justify-items: center } .know-pig { order: -1 } }
@media (prefers-reduced-motion: reduce) { .pig-body, .pb { animation: none } .pb.b1 { opacity: 1; transform: translateY(20px) } }
.pig-body { animation-delay: .55s }
.sv-k small { font-weight: 500; font-size: 11px }

/* the savings card lives in its own band under the hero: fixed place, not over the swirl or the text */
.sv-band { background: #fff; border-bottom: 1px solid var(--line) }
.sv-band-in { width: min(1000px, 100% - 32px); margin: 0 auto; padding: clamp(28px, 4vw, 44px) 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 48px); align-items: center }
.sv-tx h2 { margin: 0 0 8px; font: 900 clamp(24px, 3vw, 32px)/1.15 var(--head) }
.sv-tx p { margin: 0; color: var(--muted); font-size: clamp(15.5px, 1.8vw, 17.5px); max-width: 42ch }
.sv-slot { min-height: 190px; display: grid; place-items: center }
.sv-slot .saver { position: static !important; margin: 0 !important; left: auto; bottom: auto }
.sv-slot .sv-card { box-shadow: 0 8px 22px rgb(20 24 31 / .08) }
@media (max-width: 760px) { .sv-band-in { grid-template-columns: 1fr; text-align: center } .sv-tx p { margin-inline: auto } }
.sv-band[hidden] { display: none }
.how-ask { margin: 8px 0 -14px; font: 900 clamp(24px, 3vw, 32px)/1.2 var(--head); color: var(--ink); text-align: center }

/* leaving the opening page: it lifts and fades away, then the site rises in, piece by piece */
.intro.leaving { animation: intro-out .56s cubic-bezier(.5, 0, .75, 0) forwards; pointer-events: none }
@keyframes intro-out { to { opacity: 0; transform: translateY(-46px) scale(.97); filter: blur(6px) } }
.intro.entering { animation: intro-in .8s var(--ease) both }
@keyframes intro-in { from { opacity: 0; transform: translateY(24px) } }
body.arriving .top { animation: top-glow 1.2s ease }
@keyframes top-glow { 0% { box-shadow: 0 0 0 rgb(11 110 79 / 0) } 30% { box-shadow: 0 6px 24px rgb(11 110 79 / .22) } 100% { box-shadow: 0 1px 0 rgb(20 24 31 / .02) } }
body.arriving #screen-basket > :not(.dock) { animation: arrive .9s var(--ease) both }
body.arriving #screen-basket > :nth-child(2) { animation-delay: .12s }
body.arriving #screen-basket > :nth-child(3) { animation-delay: .24s }
body.arriving #screen-basket > :nth-child(n+4):not(.dock) { animation-delay: .34s }
@keyframes arrive { from { opacity: 0; transform: translateY(40px) scale(.985) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) { .intro.leaving, .intro.entering, body.arriving * { animation: none !important } }

/* guided steps: each part says which step it is and why */
.step-k { margin: 0; display: inline-flex; align-items: center; gap: 8px; font: 800 13.5px/1 var(--body); color: var(--brand); letter-spacing: 0 }
.step-n { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand); color: #fff; font-size: 13px }
.step-lead { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 64ch }
.step-cheer { margin: 2px 0 -4px; font: 900 clamp(18px, 2.2vw, 22px)/1.2 var(--head); color: var(--save) }
.strategy .step-k { color: #b9f6ca; justify-self: center }
.strategy .step-n { background: #fff; color: #12382c }
.strategy .step-lead { color: #d6e7df; text-align: center; margin-inline: auto; font-size: clamp(16px, 1.9vw, 18px) }
.basket .step-k { color: var(--rule-c) } .basket .step-n { background: var(--rule-c) }
.rule-go { display: inline-flex; align-items: center; gap: 10px }
.rule-go-note { margin: -6px 0 0; color: #a9cbbd; font-size: 14px; text-align: center }
.rule-go-note b { color: #fff }
#step-list, #step-rule { scroll-margin-top: 80px }

/* report rows: remove with X */
.rp-x { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; font-size: 13px; display: grid; place-items: center; margin-inline-start: auto }
@media (hover: hover) { .rp-x:hover { color: #c92a2a; border-color: #c92a2a } }

/* savings card: the difference flies over to the pile */
.saver { position: relative }
.sv-lo em { display: none }
.sv-fly { position: absolute; top: 62%; left: 150px; z-index: 2; padding: 5px 10px; border-radius: 8px; background: var(--brand); color: #fff; font: 900 15px var(--head); opacity: 0; pointer-events: none }
.saver.fly .sv-fly { animation: sv-fly .85s cubic-bezier(.4, 0, .2, 1) forwards }
@keyframes sv-fly { 0% { opacity: 0; transform: translate(0, 0) scale(.8) } 15% { opacity: 1; transform: translate(0, -6px) scale(1) } 100% { opacity: 0; transform: translate(-150px, -30px) scale(.6) } }
@media (min-width: 1001px) { .sv-fly { left: 180px } }

/* "הידעתם?": one fact at a time */
.facts { display: grid; gap: 14px; width: 100% }
.f-stage { display: grid; min-height: 7.5em }
.fact { grid-area: 1 / 1; margin: 0; font-size: clamp(18px, 2.2vw, 23px) !important; line-height: 1.55; opacity: 0; transform: translateX(-24px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none }
.fact.on { opacity: 1; transform: none; pointer-events: auto }
.fact b { font-weight: 900; color: var(--save) }
.f-nav { display: flex; align-items: center; gap: 12px }
.f-arr { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #efc9b2; background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--save) }
.f-arr svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round }
.f-dots { display: flex; align-items: center; gap: 7px; min-width: 96px; justify-content: center }
.f-dot { border: 0; padding: 0; border-radius: 50%; cursor: pointer; background: var(--save); transition: all .35s var(--ease) }
.f-dot.d0 { width: 12px; height: 12px }
.f-dot.d1 { width: 9px; height: 9px; opacity: .55 }
.f-dot.d2 { width: 6px; height: 6px; opacity: .25 }
@media (max-width: 760px) { .f-nav { justify-content: center } }
@media (prefers-reduced-motion: reduce) { .fact { transition: none } .saver.fly .sv-fly { animation: none } }
/* the piggy bank collects what the cash pile above saved */
.know-pig { gap: 6px }
.pig-tot { margin: 0; font: 700 15px var(--body); color: var(--muted) }
.pig-tot b { font: 900 22px var(--head); color: var(--save) }
.pig.gulp { animation: pig-full .7s cubic-bezier(.3, 1.6, .5, 1) }
@keyframes pig-full { 0% { transform: none } 35% { transform: scale(1.1, .92) } 70% { transform: scale(.97, 1.04) } 100% { transform: none } }

/* each fact has its own small moving drawing next to it */
.fact { display: grid !important; grid-template-columns: minmax(0, 1fr) 120px; gap: 18px; align-items: center }
.f-tx { margin: 0; font-size: clamp(18px, 2.2vw, 23px); line-height: 1.55; color: var(--ink) }
.f-tx b { font-weight: 900; color: var(--save) }
.f-ill { width: 120px; height: 100px; display: grid; place-items: center }
.f-svg { width: 120px; height: 100px; overflow: visible }
.f-svg * { transform-box: fill-box; transform-origin: center }
.fact:not(.on) .f-svg * { animation-play-state: paused !important }
.a-bob { animation: a-bob 2.2s ease-in-out infinite }
@keyframes a-bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-3px) } }
.a-wav { animation: a-wav 1s ease-in-out infinite alternate }
@keyframes a-wav { from { opacity: .3; transform: translateY(2px) } to { opacity: 1; transform: translateY(-2px) } }
.a-up { animation: a-up 2.4s ease-in-out infinite }
@keyframes a-up { 0%, 100% { transform: translateY(16px) } 50% { transform: translateY(0) } }
.a-pulse { animation: a-pulse 1.6s ease-in-out infinite }
@keyframes a-pulse { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.12) } }
.a-fly { animation: a-fly 4s linear infinite }
@keyframes a-fly { from { transform: translateX(-40px) translateY(6px) } to { transform: translateX(110px) translateY(-6px) } }
.a-bounce { animation: a-bounce 1.1s cubic-bezier(.5, 0, .5, 1) infinite alternate }
@keyframes a-bounce { from { transform: translateY(-14px) rotate(0) } to { transform: translateY(24px) rotate(40deg) } }
.a-shadow { animation: a-shadow 1.1s cubic-bezier(.5, 0, .5, 1) infinite alternate }
@keyframes a-shadow { from { transform: scaleX(.6); opacity: .5 } to { transform: scaleX(1); opacity: 1 } }
.a-swing { transform-origin: 50% 0 !important; transform-box: view-box !important; animation: a-swing 2s ease-in-out infinite }
@keyframes a-swing { 0%, 100% { transform: rotate(-8deg) } 50% { transform: rotate(8deg) } }
.a-buzz { animation: a-buzz 2.6s ease-in-out infinite }
@keyframes a-buzz { 0%, 70%, 100% { transform: rotate(0) } 74% { transform: rotate(-4deg) } 78% { transform: rotate(4deg) } 82% { transform: rotate(-3deg) } 86% { transform: rotate(0) } }
.a-glow { animation: a-glow 2.6s ease-in-out infinite }
@keyframes a-glow { 0%, 100% { opacity: 0 } 50% { opacity: .6 } }
.a-hop { animation: a-hop 2.4s ease-in-out infinite }
@keyframes a-hop { 0%, 100% { transform: translate(-34px, 8px) } 50% { transform: translate(34px, 8px) } 25% { transform: translate(0, -24px) } 75% { transform: translate(0, -24px) } }
.a-sun { animation: a-pulse 3s ease-in-out infinite }
.a-wave { animation: a-wave 3s ease-in-out infinite alternate }
@keyframes a-wave { from { transform: translateX(-10px) } to { transform: translateX(0) } }
.a-palm { transform-origin: 30% 100% !important; animation: a-palm 3s ease-in-out infinite alternate }
@keyframes a-palm { from { transform: rotate(-4deg) } to { transform: rotate(4deg) } }
.a-float { animation: a-float 2s ease-out infinite }
@keyframes a-float { 0% { transform: translateY(16px); opacity: 0 } 30% { opacity: 1 } 100% { transform: translateY(-14px); opacity: 0 } }
.a-pop { animation: a-up 2.2s ease-in-out infinite }
@media (max-width: 560px) { .fact { grid-template-columns: 1fr; justify-items: center; text-align: center } .f-ill { order: -1 } }
@media (prefers-reduced-motion: reduce) { .f-svg * { animation: none !important } }

/* facts: the drawing on the right, the text beside it */
.fact { grid-template-columns: 120px minmax(0, 1fr) !important }

/* step headings, take 2: "1/3" with a three-part progress bar, all in one tidy line */
.step-k { display: inline-flex !important; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand) !important; font: 700 13.5px/1 var(--body) !important; width: max-content; max-width: 100% }
.step-frac { font: 900 15px/1 var(--head); background: var(--brand); color: #fff; padding: 5px 9px; border-radius: 999px; letter-spacing: .02em }
.step-bar { display: inline-flex; gap: 3px }
.step-bar i { width: 18px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--brand) 22%, transparent) }
.step-bar i.on { background: var(--brand) }
.strategy .step-k { background: rgb(255 255 255 / .1); color: #d6e7df !important }
.strategy .step-frac { background: #fff; color: #12382c }
.strategy .step-bar i { background: rgb(255 255 255 / .22) } .strategy .step-bar i.on { background: #b9f6ca }
.basket .step-k { background: var(--rule-t); color: var(--rule-c) !important }
.basket .step-frac, .basket .step-bar i.on { background: var(--rule-c) }
.basket .step-bar i { background: color-mix(in srgb, var(--rule-c) 22%, transparent) }
.intake .step-cheer { margin-top: 4px }
/* demo bars: the gap, written out */
.demo .pbars li { grid-template-columns: 76px 1fr 64px 62px }
.pb-d { font: 800 12.5px/1 var(--body); font-style: normal; color: #c92a2a; text-align: left; white-space: nowrap }
.pbars li.win .pb-d { color: var(--brand) }
.play.demo[data-step="2"] .pb-d { animation: dm-in .4s var(--ease) both; animation-delay: calc(var(--d, 0s) + 1.2s) }
.dm-list li:nth-child(7) { animation-delay: 2.4s !important }
.dm-list { gap: 6px } .dm-list li { padding: 6px 12px; font-size: 15px }
@media (max-width: 420px) { .demo .pbars li { grid-template-columns: 62px 1fr 58px 56px; gap: 6px } }
.demo { height: 420px } @media (max-width: 820px) { .demo { height: 410px } }
/* the three dots above the demo pick the step */
.dm-go { width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; background: #d6dae0; cursor: pointer; transition: background-color .3s, transform .3s }
.dm-go:hover { background: #aeb5be }
.dm-go[aria-current="true"] { background: var(--brand); transform: scale(1.2) }
.demo-top { gap: 8px }
.how-s.on .how-bar { animation-duration: var(--t, 6000ms) }
/* step 1: the lines come in a bit slower */
.dm-list li:nth-child(2) { animation-delay: .6s !important } .dm-list li:nth-child(3) { animation-delay: 1.2s !important }
.dm-list li:nth-child(4) { animation-delay: 1.8s !important } .dm-list li:nth-child(5) { animation-delay: 2.4s !important }
.dm-list li:nth-child(6) { animation-delay: 3s !important } .dm-list li:nth-child(7) { animation-delay: 3.6s !important }

/* "איך זה עובד": less white. A green-tinted backdrop, a dark green window bar, tinted step cards */
#intro { background: linear-gradient(180deg, #e6f2eb 0%, #d7eadf 100%) }
.how h2 { color: #12382c }
.how-s { background: rgb(255 255 255 / .8); border-color: #c5ddcf }
.how-s.on { background: #fff }
.how-n { background: #e1efe7; color: #2f6b52 }
.demo { border-color: #c5ddcf; box-shadow: 0 22px 46px rgb(18 56 44 / .16) }
.demo-top { background: #12382c; border-bottom-color: #12382c }
.demo-top em { color: #b9f6ca }
.dm-go { background: rgb(255 255 255 / .35) }
.dm-go:hover { background: rgb(255 255 255 / .6) }
.dm-go[aria-current="true"] { background: #b9f6ca }
.how-note { color: #2f6b52 }
.how-ask { color: #12382c }
.demo { background: #f8fcfa } .dm-list li, .demo .tg { background: #fff }
.f-cta-t.swap { animation: cta-swap .45s var(--ease) }
@keyframes cta-swap { from { opacity: 0; transform: translateY(6px) } }

/* pilot: three product choices side by side, brand chips */
@media (min-width: 900px) { .rules { grid-template-columns: repeat(3, minmax(0, 1fr)) !important } }
.bp-t { margin: 0 0 8px; font-weight: 800; color: #fff; text-align: center }
.bp-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px }
.bp-chip { padding: 7px 14px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .35); background: rgb(255 255 255 / .08); color: #fff; font-weight: 700; cursor: pointer; transition: background-color .25s, color .25s }
.bp-chip:hover { background: rgb(255 255 255 / .18) }
.bp-chip[aria-pressed="true"] { background: #e9c46a; border-color: #e9c46a; color: #3d2b00 }
.strategy .brand-pref { width: min(640px, 100%) }
.strategy #brand-input { background: #fff; text-align: center }
/* address button: a location pin, then the place */
.addr { display: inline-flex; align-items: center; gap: 6px }
.addr-pin { display: inline-grid; place-items: center }
.addr-pin svg { width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }

/* "מה הבנו": rows with lines between them, everything on one line */
.rp-list { gap: 0 !important; border-top: 1px solid var(--line) }
.rp { border-radius: 0 !important; border-bottom: 1px solid var(--line); padding: 8px 6px !important }
.rp-out { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center }
.rp-out .rp-x { margin: 0 }
.rp.none .rp-out { grid-template-columns: minmax(0, 1fr) auto }
.rp-folded { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-weight: 600 }
.basket-calm { margin: -2px 0 2px; padding: 9px 12px; border-radius: 10px; background: #fff8e6; color: #7a5300; font-size: 14px }
/* the "other brand" box sits in the dark section: dark text on white, visible placeholder */
.strategy #brand-input { color: var(--ink) !important; caret-color: var(--ink); -webkit-text-fill-color: var(--ink) }
.strategy #brand-input::placeholder { color: #8a94a0; -webkit-text-fill-color: #8a94a0; opacity: 1 }

/* =====================================================================================
   THEME: ORANGE + BLACK (2026-11-17), from the new logo. Orange leads (buttons, highlights, prices),
   near-black for text and the dark sections. The rule colours keep their own tints.
   ===================================================================================== */
:root, :root:not([data-theme="light"]), :root[data-theme="dark"] {
  --brand: #ff6a00; --brand-soft: #fff1e6; --brand-ink: #ffffff; --accent: #ff6a00; --sky: #ff6a00; --gold: #ff6a00; --gold-bright: #ff6a00;
  --save: #f25c00; --save-soft: #fff1e6; --ink: #141414 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --brand: #ff6a00; --brand-soft: #fff1e6; --accent: #ff6a00; --save: #f25c00; --ink: #141414 } }

/* logo */
svg.logo-mark { width: 44px; height: 33px; border-radius: 0 }
.logo { gap: 10px }
.logo-w { color: #141414; font: 900 25px/1 var(--head); letter-spacing: -.035em }
.logo-w b { color: inherit }

/* buttons and highlights */
.btn.primary { background: #ff6a00; border-color: #ff6a00; color: #fff }
.btn.primary:hover { background: #e85f00 }
.go { background: #ff6a00; box-shadow: 0 10px 26px rgb(255 106 0 / .3) }
.go:hover { background: #e85f00; box-shadow: 0 14px 30px rgb(255 106 0 / .36) }
body.arriving .top { animation-name: top-glow-o }
@keyframes top-glow-o { 0% { box-shadow: none } 30% { box-shadow: 0 6px 24px rgb(255 106 0 / .25) } 100% { box-shadow: 0 1px 0 rgb(20 24 31 / .02) } }

/* opening page */
.hero { background: radial-gradient(60% 55% at 50% 50%, #fff 0 42%, #fff6ee 70%, #ffeedd 100%) }
.rot { color: #ff6a00 }
#intro { background: linear-gradient(180deg, #fff3e8 0%, #ffe6d2 100%) }
.how h2, .how-ask { color: #141414 }
.how-s { border-color: #f6d2b8 }
.how-n { background: #ffe8d6; color: #b34a00 }
.how-s.on { border-color: #ff6a00; box-shadow: 0 6px 18px rgb(255 106 0 / .14) }
.how-s.on .how-n, .how-s.done .how-n { background: #ff6a00; color: #fff }
.how-bar { background: #ff6a00 }
.demo { border-color: #f6d2b8; background: #fffaf6; box-shadow: 0 22px 46px rgb(20 20 20 / .14) }
.demo-top { background: #141414; border-bottom-color: #141414 }
.demo-top em { color: #ffb27a }
.dm-go[aria-current="true"] { background: #ff8a3d }
.how-note { color: #b34a00 }
.dm-win { background: #ff6a00 }

/* the rule section: black instead of dark green */
.strategy { background: #161616 !important; border-color: #161616 !important }
.strategy .sub { color: #e0e0e0 !important } .strategy .sub small { color: #b5b5b5 }
.strategy .step-k { background: rgb(255 255 255 / .1); color: #f0f0f0 !important }
.strategy .step-frac { background: #ff6a00; color: #fff }
.strategy .step-bar i.on { background: #ff8a3d }
.rule-go-note { color: #bdbdbd }
.bp-chip[aria-pressed="true"] { background: #ff6a00; border-color: #ff6a00; color: #fff }
/* the familiar-product card (the default) is orange now; cheapest stays green, brands gold */
.rule.r2 { --tint: #fff3ea; --tint-2: #ffe2cc; --ic: #ff6a00 }
body { --rule-c: #0b6e4f; --rule-t: #eef7f2 }
body[data-rule="popular"] { --rule-c: #ff6a00; --rule-t: #fff1e6 }

/* step pills elsewhere follow the brand */
.step-k { background: #fff1e6; color: #b34a00 !important }
.step-frac { background: #ff6a00 }
.step-bar i { background: rgb(255 106 0 / .22) } .step-bar i.on { background: #ff6a00 }
.step-cheer { color: #ff6a00 }

/* the address pill */
.addr-pin svg { stroke: #ff6a00 }
.alts-sub { margin: -6px 0 8px; color: var(--muted); font-size: 13.5px }

/* search: the store picker beside the search box */
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 32%); gap: 10px; align-items: stretch }
.search-row .dd-wrap { display: block }
.search-row .dd-btn { height: 100%; min-height: 48px }
@media (max-width: 560px) { .search-row { grid-template-columns: 1fr } }
.dd-pop { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 6px); min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgb(20 24 31 / .14); padding: 8px; display: grid; gap: 6px }
.dd-pop[hidden] { display: none }
.dd-pop .dd-list { position: static !important; box-shadow: none !important; border: 0 !important; max-height: 320px; overflow: auto; margin: 0; padding: 0 }
#store-q { width: 100%; padding: 9px 12px; border-radius: 8px }
.dd { position: relative }
.dd-none { padding: 10px; color: var(--muted) }
.dd-branch small { margin-inline-start: auto; color: var(--muted) }

/* "prices updated" stamp */
.stamp { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #fff1e6; color: #8a3a00 !important; font: 600 12.5px var(--body) !important }
.stamp svg { width: 15px; height: 15px; fill: none; stroke: #ff6a00; stroke-width: 2; stroke-linecap: round }
.stamp b { font-weight: 800; color: #141414 }

/* "תחליף" is a button now */
.sub-btn { border: 0; cursor: pointer; font: inherit; font-size: 12px }
.sub-btn:hover { filter: brightness(.95); text-decoration: underline }

/* the 2-store tip: what you spend in each */
.st-split { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px }
.st-split span { display: inline-flex; align-items: center; gap: 6px }
.st-split .clogo { width: 56px; height: 22px }
#split-bottom:empty { display: none }
#split-bottom { margin-top: 8px }

/* saving vs the average, opens every store's total */
.s-save-d { margin-top: 6px }
.s-save-d summary { list-style: none; cursor: pointer }
.s-save-d summary::-webkit-details-marker { display: none }
.s-more { font: 600 13px var(--body); color: var(--muted) }
.s-all { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; max-height: 320px; overflow: auto }
.s-all li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 14px }
.s-all li .clogo { width: 64px; height: 24px; object-fit: contain }
.s-all small { color: var(--muted) }
/* the sale badge: white text on orange (it showed as an empty orange bar) */
.sale-flag { color: #fff !important; background: var(--save) !important; display: inline-block; width: max-content; line-height: 1.6; font-size: 11px !important; padding: 0 7px !important; border-radius: 6px }
.pr.sale { display: inline-grid; justify-items: start; gap: 1px }
.pr.sale s { font-size: 12.5px; color: var(--muted) }
/* saving line with the store's logo */
.s-save-logo { display: inline-grid; vertical-align: middle; margin: 0 4px }
.s-save-logo .clogo { width: 70px; height: 26px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px 4px }
.to-gaps { font-weight: 800; color: #ff6a00; text-decoration: none }
.to-gaps:hover { text-decoration: underline }
/* other options: grouped by how many stores, compact cards */
.opt-sec-top { font-size: 21px !important; margin-top: 22px !important }
.opt-sec + .opt-sec { margin-top: 4px }
.opt .opt-head .t .who { white-space: nowrap }
.must-btn { margin-top: 8px; background: #fff1e6; color: #b34a00; border: 1px solid #f6c9a6; font-weight: 700; white-space: normal; text-align: start }
.must-btn:hover { background: #ffe2cc }
.must-bar { margin: 0 0 10px; padding: 10px 14px; border-radius: 10px; background: #fff1e6; border: 1px solid #f6c9a6; font-size: 14.5px }

/* the savings band on the opening page: purchase, month, year */
.save-band { background: #141414; color: #fff; padding: clamp(30px, 5vw, 52px) 16px }
.save-in { width: min(1000px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px }
.save-n { display: grid; justify-items: center; gap: 4px; padding: 18px 12px; border-radius: 16px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); text-align: center }
.save-n.big { background: #ff6a00; border-color: #ff6a00 }
.save-k { font: 700 15px var(--body); color: #ffcfae }
.save-n.big .save-k { color: #fff }
.save-n b { font: 900 clamp(34px, 5vw, 54px)/1 var(--head); letter-spacing: -.02em; font-variant-numeric: tabular-nums }
.save-s { font-size: 13.5px; color: #bdbdbd }
.save-n.big .save-s { color: #fff3e8 }
.save-t { margin: 18px auto 0; text-align: center; font: 800 clamp(17px, 2.2vw, 21px) var(--head); color: #fff }
@media (max-width: 640px) { .save-in { grid-template-columns: 1fr } }

/* ---------- results as one table (2026-11-17) ---------- */
/* product window bars: 4 columns, the gap written out */
.dlg .pbars li, #pd-body .pbars li { grid-template-columns: 84px 1fr 70px 64px }
/* the top three answers open their row in the table */
[data-goto] { cursor: pointer; transition: transform .15s, box-shadow .15s }
[data-goto]:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(20 24 31 / .1) }
[data-goto]:focus-visible { outline: 2px solid #ff6a00; outline-offset: 2px }
.s-all li[data-goto]:hover { background: #fff7f0; transform: none; box-shadow: none }
.to-gaps .bang { margin: 0 2px; vertical-align: middle }

.rank { display: grid; gap: 12px; margin-top: 26px; scroll-margin-top: 80px }
.rank-h { margin: 0 !important }
.rank-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; padding: 6px; border-radius: 16px; background: var(--surface-2, #f1f1f1) }
.rank-tabs button { display: grid; gap: 2px; justify-items: center; padding: 10px 8px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; font: 800 16px var(--head); color: var(--ink) }
.rank-tabs button small { font: 700 13px var(--body); color: var(--good) }
.rank-tabs button[aria-selected="true"] { background: #fff; box-shadow: 0 2px 10px rgb(20 24 31 / .1); color: #ff6a00 }
.rank-tabs button:not([aria-selected="true"]):hover { background: rgb(255 255 255 / .6) }

.split-tip { display: grid !important; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; width: 100%; text-align: start; cursor: pointer;
  padding: 12px 16px !important; border-radius: 14px !important; background: #effaf4 !important; border: 1px solid #bfe5cf !important; box-shadow: none !important; font: inherit; color: var(--ink) }
.split-tip:hover { background: #e2f5ea !important }
.split-tip .st-save { font: 800 16.5px var(--head); color: var(--good) }
.split-tip .st-who { grid-column: 1; display: block !important; font-size: 14px; color: var(--muted) }
.split-tip .st-who b { font-size: 14px; color: var(--ink); font-weight: 700 }
.split-tip .st-go { grid-row: 1 / span 2; grid-column: 2; font-weight: 800; color: var(--good); white-space: nowrap }

.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.rk { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; scroll-margin-top: 80px }
.rk.win { border-color: var(--good); box-shadow: 0 0 0 1px var(--good) }
.rk-head { display: grid; grid-template-columns: minmax(170px, 1.1fr) minmax(80px, 1.4fr) auto 18px; gap: 14px; align-items: center; width: 100%;
  padding: 14px 16px; border: 0; background: none; cursor: pointer; text-align: start; font: inherit; color: var(--ink) }
.rk-head:hover { background: #fafafa }
.rk-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0 }
.rk-st { display: inline-flex; align-items: center; gap: 8px; min-width: 0 }
.rk-st .clogo { width: 72px; height: 30px; object-fit: contain; flex: none }
.rk-n { display: grid; font-weight: 700; font-size: 15px; line-height: 1.25 }
.rk-n small { font-weight: 500; color: var(--muted); font-size: 12.5px }
.rk-plus { color: var(--muted); font-weight: 800 }
.rk-bar { display: block; height: 16px; border-radius: 8px; background: var(--surface-2, #f1f1f1); position: relative; overflow: hidden }
.rk-bar i { position: absolute; inset: 0 0 0 auto; width: var(--w); border-radius: 8px; background: var(--c); animation: pb-grow .9s var(--ease, ease) both; animation-delay: var(--d) }
.rk-p { display: grid; justify-items: end; gap: 2px; min-width: 92px }
.rk-p b { font: 900 21px/1 var(--head); font-variant-numeric: tabular-nums; color: var(--ink) }
.rk.win .rk-p b { color: var(--good) }
.rk-p small { font-weight: 800; font-size: 13px; color: var(--c) }
.rk-fix { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap }
.rk-fix .bang { width: 16px; height: 16px; font-size: 11px; vertical-align: middle }
.rk-tog { color: var(--muted); transition: transform .2s }
.rk-head[aria-expanded="true"] .rk-tog { transform: rotate(180deg) }
.rk-body { border-top: 1px solid var(--line); padding: 4px 16px 14px; display: grid; gap: 10px }
.rk-meta { margin: 10px 0 0; color: var(--muted); font-size: 14px }
.g-where { color: var(--muted); font-weight: 500; font-size: 12.5px }
.rank-more { justify-self: center }
@media (max-width: 640px) {
  .rk-head { grid-template-columns: 1fr auto 14px; gap: 8px 10px; padding: 12px }
  .rk-bar { grid-column: 1 / -1; grid-row: 2; height: 12px }
  .rk-st .clogo { width: 60px; height: 26px }
  .rk-p b { font-size: 18px }
}

/* the replacement panel: short, with the search right on top */
.gap-q { position: relative; display: block }
.gap-q svg { position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: #ff6a00; pointer-events: none }
.gap-q input, .alt-q input { width: 100%; max-width: none !important; padding: 14px 16px 14px 16px; padding-inline-start: 44px; font-size: 16.5px; border: 2px solid #ff6a00; border-radius: 14px; background: #fff }
.gap-q input:focus, .alt-q input:focus { outline: none; box-shadow: 0 0 0 4px rgb(255 106 0 / .18) }
.gap-head h2 { font-size: 22px }
.alt-q { position: relative; margin: 6px 0 10px }
.alt-q svg { position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: #ff6a00; pointer-events: none }
.alt-none { list-style: none; color: var(--muted); padding: 8px 4px }

/* rule cards: three side by side on a wide screen, one under the other on a narrow one (never 2 + 1) */
.rules { grid-template-columns: repeat(3, minmax(0, 1fr)) !important }
@media (max-width: 900px) { .rules { grid-template-columns: 1fr !important; max-width: 560px; margin-inline: auto } }
/* the pencil beside anything we filled in for you */
.sub-pen { display: inline-grid !important; width: 28px !important; height: 28px !important; vertical-align: middle; margin-inline-start: 4px; color: #ff6a00 !important; border-color: #f6c9a6 !important; background: #fff7f0 !important }
.grp td.p .sub-pen { margin: 0 }
/* the demo's last step: smaller type, the saving on one tidy line, no "all prices" toggle */
.demo .d3 .sum3 { gap: 6px }
.demo .d3 .s-win, .demo .d3 .s-row { gap: 10px; padding: 9px 12px }
.demo .d3 .s-k { font-size: 14px }
.demo .d3 .s-win b { font-size: clamp(19px, 2.2vw, 22px) }
.demo .d3 .s-row b { font-size: 15.5px }
.demo .d3 .s-st .clogo { width: 58px; height: 24px }
.demo .d3 .s-save-d summary { list-style: none; pointer-events: none }
.demo .d3 .s-save-d summary::-webkit-details-marker { display: none }
.demo .d3 .s-more { display: none }
.demo .d3 .s-save { font-size: 14.5px; line-height: 1.5; text-wrap: balance }
.demo .d3 .s-save b { font-size: 17px }
.demo .d3 .s-save-logo .clogo { width: 54px; height: 22px }
.demo .dm-more { color: var(--muted); font-style: italic }
/* step 3 sits above the cart, on its own */
.step-out { display: flex !important; justify-self: center; margin: 18px auto 10px !important; padding: 7px 16px 7px 7px !important; gap: 12px !important;
  background: #fff !important; color: var(--ink) !important; border: 1.5px solid #ffd2b3; box-shadow: 0 4px 14px rgb(255 106 0 / .12); font: 800 15px/1 var(--head) !important }
.step-out .step-frac { background: #ff6a00 !important; color: #fff !important }
.step-out .step-bar i { background: #ffd2b3 !important } .step-out .step-bar i.on { background: #ff6a00 !important }
/* moving between the basket and the results: a short fade, not a cut */
.screen.scr-out { opacity: 0; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease }
.screen.scr-in { animation: scr-in .45s cubic-bezier(.2, .7, .2, 1) both }
@keyframes scr-in { from { opacity: 0; transform: translateY(14px) } }
/* the step marker: just the number (the last one adds "ואחרון") */
.step-k:not(:has(.step-l)) { padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important }
.step-k .step-frac { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 !important; border-radius: 999px; font: 900 19px/1 var(--head) !important }
.step-out { padding: 4px 16px 4px 4px !important }
/* "3 ואחרון": room after the word (right-to-left, so the end is on the left) */
.step-out { padding: 4px !important; padding-inline-end: 18px !important; gap: 10px !important }
.step-out .step-l { line-height: 1.2; padding-bottom: 1px }
/* the distance was stretched: say so, quietly */
.widen-note { margin: 0 0 10px; padding: 10px 14px; border-radius: 10px; background: #fff7f0; border: 1px solid #ffd2b3; color: #8a3d00; font-size: 14.5px }
/* the "+" row at the end of "what we understood": add more items right here */
.rp.rp-add { grid-template-columns: 28px 1fr auto !important; gap: 10px; padding: 10px 8px !important; border-top: 1px dashed #ffd2b3; background: #fffaf6 }
.rp-plus { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: #ff6a00; color: #fff; font: 800 18px/1 var(--head) }
#rp-add-in { width: 100%; padding: 9px 12px; border: 1px solid #ffd2b3; border-radius: 10px; font-size: 15px; background: #fff }
#rp-add-in:focus { outline: none; border-color: #ff6a00; box-shadow: 0 0 0 3px rgb(255 106 0 / .15) }

/* editing a line in "what we understood": text box and buttons on one row, the options side by side in a grid */
.rp-list:has(.rp-edit) { max-height: none !important; overflow: visible !important }
.rp.rp-edit { display: block !important }
.rpe-top { display: grid; grid-template-columns: auto minmax(160px, 1fr) auto auto; gap: 8px; align-items: center }
.rpe-top .rpe-l { white-space: nowrap }
.rp-edit .gap-more ul.rpe-c { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; max-height: 330px; overflow: auto; padding: 2px }
.rp-edit .gap-more ul.rpe-c li { margin: 0 }
@media (max-width: 560px) { .rpe-top { grid-template-columns: 1fr auto auto } .rpe-top .rpe-l { grid-column: 1 / -1 } }

/* the loading screen while prices are compared: what is happening, step by step */
#cmp-loading { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px; background: rgb(255 248 242 / .92); backdrop-filter: blur(3px); transition: opacity .25s }
#cmp-loading[hidden] { display: none }
#cmp-loading.out { opacity: 0 }
.cl-card { width: min(440px, 100%); background: #fff; border-radius: 20px; padding: 26px 24px 22px; box-shadow: 0 20px 60px rgb(20 20 20 / .14); display: grid; gap: 14px; text-align: start }
.cl-card h2 { margin: 0; font: 900 24px var(--head); text-align: center }
.cl-cart { justify-self: center; width: 64px; height: 48px; animation: cl-hop 1s ease-in-out infinite }
.cl-cart svg { width: 100%; height: 100% }
@keyframes cl-hop { 0%, 100% { transform: translateY(0) rotate(-3deg) } 50% { transform: translateY(-8px) rotate(3deg) } }
.cl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.cl-steps li { position: relative; padding-inline-start: 30px; font-size: 15px; color: #9a9a9a; transition: color .2s }
.cl-steps li::before { content: ""; position: absolute; inset-inline-start: 0; top: 2px; width: 18px; height: 18px; border-radius: 999px; border: 2px solid #e5e5e5; box-sizing: border-box }
.cl-steps li.now { color: var(--ink); font-weight: 700 }
.cl-steps li.now::before { border-color: #ff6a00; border-top-color: transparent; animation: cl-spin .8s linear infinite }
.cl-steps li.done { color: #5b5b5b }
.cl-steps li.done::before { border: 0; background: #ff6a00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat }
@keyframes cl-spin { to { transform: rotate(360deg) } }
.cl-bar { height: 6px; border-radius: 999px; background: #fde3d0; overflow: hidden }
.cl-bar i { display: block; height: 100%; width: 0; background: #ff6a00; border-radius: inherit; transition: width .35s ease }
@media (prefers-reduced-motion: reduce) { .cl-cart, .cl-steps li.now::before { animation: none } }

/* the town list: always right under the box, the same width */
.pl-wrap { position: relative }
.pl-wrap #place-input { width: 100% }
.pl-pop { position: absolute; inset-inline: 0; top: calc(100% + 4px); z-index: 20; margin: 0; padding: 4px; list-style: none; max-height: 260px; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgb(20 20 20 / .14) }
.pl-pop li { padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 15px }
.pl-pop li:hover, .pl-pop li.on { background: #fff1e6; color: #b34a00 }
.pl-pop .pl-none { color: var(--muted); cursor: default } .pl-pop .pl-none:hover { background: none; color: var(--muted) }
#addr-dialog { overflow: visible }

/* the summary at the top is a preview: lighter, set apart from the work below */
#verdict .verdict.v3 { background: #fff !important; border: 1.5px dashed #ffc9a3 !important; box-shadow: none !important }
.v-eyebrow { font-weight: 800; color: #b34a00 }
.s-avg { border-color: #e7e7e7; background: #fafafa }
.s-avg b { color: #555 }
/* "N products wait for you": a centred button */
.to-gaps-row { display: flex; justify-content: center; margin: 14px 0 2px !important }
.to-gaps { display: inline-flex !important; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; background: #ff6a00; color: #fff !important;
  font-weight: 800; font-size: 16px; text-decoration: none !important; box-shadow: 0 6px 18px rgb(255 106 0 / .28); transition: transform .15s }
.to-gaps:hover { transform: translateY(-1px) }
.tg-n { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: #fff; color: #ff6a00; font-weight: 900 }
.tg-go { font-size: 18px; animation: tg-bob 1.4s ease-in-out infinite }
@keyframes tg-bob { 50% { transform: translateY(3px) } }
@media (prefers-reduced-motion: reduce) { .tg-go { animation: none } }
/* the break between the preview and the confirmations */
.gaps-intro { margin: 34px 0 12px; text-align: center; display: grid; gap: 6px; justify-items: center; scroll-margin-top: 80px }
.gaps-intro[hidden] { display: none }
.gi-line { width: 64px; height: 4px; border-radius: 4px; background: #ff6a00; margin-bottom: 6px }
.gaps-intro h2 { margin: 0; font: 900 clamp(20px, 2.6vw, 26px) var(--head) }
.gaps-intro p { margin: 0; color: var(--muted); font-size: 15px }
#gaps { border: 2px solid #ff6a00 !important }

/* the three answers: a small sign beside each */
.s-k { display: flex !important; align-items: center; gap: 10px }
.s-kt { display: grid }
.s-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center }
.s-ic svg { width: 20px; height: 20px }
.s-win .s-ic { background: rgb(255 255 255 / .22); color: #fff }
.s-ic-near { background: #ffe8d6; color: #e05a00 }
.s-ic-avg { background: #eeeeee; color: #555 }
.s-ic-dear { background: #fde4e4; color: #c62828 }
.s-sh { font: 900 19px/1 var(--head) }

/* "!" on the savings band, and the window that explains the numbers */
.save-band { position: relative }
.save-info { position: absolute; top: 14px; inset-inline-end: 14px; width: 34px; height: 34px; border-radius: 999px; border: 2px solid rgb(255 255 255 / .5);
  background: rgb(255 255 255 / .1); color: #fff; font: 900 18px/1 var(--head); cursor: pointer; transition: background .15s }
.save-info:hover, .save-info:focus-visible { background: #ff6a00; border-color: #ff6a00 }
#proof-dialog { width: min(640px, calc(100vw - 32px)) }
.proof { gap: 16px }
.proof section { display: grid; gap: 8px }
.proof h3 { margin: 0; display: flex; align-items: center; gap: 10px; font: 800 18px var(--head) }
.proof p { margin: 0; line-height: 1.6 }
.pf-n { width: 28px; height: 28px; border-radius: 999px; background: #ff6a00; color: #fff; display: grid; place-items: center; font-size: 15px; flex: none }
.pf-calc { padding: 10px 14px; border-radius: 10px; background: #fff7f0; border: 1px solid #ffd2b3 }
.pf-tbl { overflow-x: auto }
.pf-tbl table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums }
.pf-tbl th, .pf-tbl td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: start }
.pf-tbl th { color: var(--muted); font-weight: 700 }
.pf-tbl td:last-child { font-weight: 800; color: #0b7a4b }
.pf-list { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; line-height: 1.6 }
.pf-note { padding: 12px 14px; border-radius: 12px; background: #f6f6f6 }
.pf-note h3 { font-size: 15.5px }
.pf-note ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; font-size: 14.5px; line-height: 1.55 }
.pf-src { font-size: 13px; color: var(--muted) }
.pf-src a { color: #b34a00 }

/* the line under the savings band: short, light */
.save-t { font: 500 clamp(16px, 2vw, 19px)/1.5 var(--body) !important; color: #cfcfcf !important; letter-spacing: .01em; margin-top: 22px !important }
.save-t em { font-style: normal; color: #ff8a3d; font-weight: 600 }
.save-band { padding-top: clamp(52px, 6vw, 64px) !important }
.save-info { top: 12px !important; inset-inline-end: 16px !important; width: 30px !important; height: 30px !important; font-size: 16px !important }

/* "איך הגענו לזה? ← !" in the band's corner */
.save-info { width: auto !important; height: auto !important; display: inline-flex; align-items: center; gap: 8px; padding: 0 !important; border: 0 !important; background: none !important; color: #d9d9d9 !important; font: 600 14px var(--body) !important }
.si-b { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; border: 2px solid rgb(255 255 255 / .55); color: #fff; font: 900 16px/1 var(--head); transition: background .15s, border-color .15s }
.si-ar { color: #ff8a3d; font-size: 16px }
.save-info:hover .si-b, .save-info:focus-visible .si-b { background: #ff6a00; border-color: #ff6a00 }
.save-info:hover .si-t { color: #fff; text-decoration: underline }

/* first screen: the opening area + the savings band together fill the screen */
.hero { min-height: max(420px, calc(100svh - 64px - var(--band-h, 260px))) !important }
.hero-c { padding-block: clamp(20px, 4vh, 48px) !important }
.save-band { padding: 44px 16px 22px !important }
.save-in { gap: 12px !important }
.save-n { padding: 14px 10px !important; gap: 2px !important }
.save-n b { font-size: clamp(30px, 4.2vw, 48px) !important }
.save-t { margin-top: 14px !important }
@media (max-width: 640px) {
  .save-in { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important }
  .save-n { padding: 10px 4px !important; border-radius: 12px !important }
  .save-n b { font-size: clamp(22px, 7vw, 30px) !important }
  .save-k { font-size: 12px !important } .save-s { font-size: 11px !important; line-height: 1.3 }
  .save-t { font-size: 15px !important }
  .hero { min-height: max(380px, calc(100svh - 60px - var(--band-h, 220px))) !important }
}

/* the opening area takes the real height of the top bar into account, and is more compact on phones */
.hero { min-height: max(360px, calc(100svh - var(--top-h, 64px) - var(--band-h, 260px))) !important }
@media (max-width: 640px) {
  .hero { min-height: max(340px, calc(100svh - var(--top-h, 60px) - var(--band-h, 220px))) !important }
  .hero-c { gap: 10px !important; padding: 14px 16px !important }
  .hero-h { font-size: clamp(26px, 7.4vw, 32px) !important }
  .hero-p { font-size: 15px !important; line-height: 1.5 !important }
  .hero .go { padding-block: 12px !important }
  .save-band { padding-top: 40px !important; padding-bottom: 16px !important }
  .save-t { margin-top: 10px !important; font-size: 14px !important }
}
/* the rules section: depth instead of flat black — a charcoal gradient, a soft orange glow behind the heading,
   a faint dot pattern, and a thin orange line along the top */
.strategy { position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 45% at 50% 0%, rgb(255 106 0 / .22), transparent 70%),
    radial-gradient(40% 35% at 100% 100%, rgb(255 138 61 / .08), transparent 70%),
    linear-gradient(165deg, #232323 0%, #171717 45%, #101010 100%) !important;
  border: 1px solid #2a2a2a !important; box-shadow: 0 24px 60px rgb(0 0 0 / .18) !important }
.strategy::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgb(255 255 255 / .07) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / .4) 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / .4) 60%, transparent 100%) }
.strategy::before { content: "" !important; position: absolute !important; inset: 0 0 auto 0 !important; top: 0 !important; bottom: auto !important; width: auto !important; height: 3px !important;
  border-radius: 0 !important; background: linear-gradient(90deg, transparent, #ff6a00 30%, #ff8a3d 70%, transparent) !important }
.strategy .rule { box-shadow: 0 10px 28px rgb(0 0 0 / .28) }

/* cursors: a pencil over the shopping list, a price tag over the rules (part 1) */
.intake, .intake textarea, .intake input { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cg%20transform%3D%22rotate%2845%2016%2016%29%22%3E%3Crect%20x%3D%2212%22%20y%3D%222%22%20width%3D%228%22%20height%3D%2220%22%20rx%3D%221.5%22%20fill%3D%22%23ff6a00%22%20stroke%3D%22%23141414%22%20stroke-width%3D%221.6%22/%3E%3Crect%20x%3D%2212%22%20y%3D%222%22%20width%3D%228%22%20height%3D%224%22%20rx%3D%221.5%22%20fill%3D%22%23f4a3b4%22%20stroke%3D%22%23141414%22%20stroke-width%3D%221.6%22/%3E%3Cpath%20d%3D%22M12%2022%20L16%2029%20L20%2022%20Z%22%20fill%3D%22%23f6d7b0%22%20stroke%3D%22%23141414%22%20stroke-width%3D%221.6%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M14.6%2026.4%20L16%2029%20L17.4%2026.4%20Z%22%20fill%3D%22%23141414%22/%3E%3C/g%3E%3C/svg%3E") 6 27, text }
.intake button, .intake [role="tab"], .intake a { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cg%20transform%3D%22rotate%2845%2016%2016%29%22%3E%3Crect%20x%3D%2212%22%20y%3D%222%22%20width%3D%228%22%20height%3D%2220%22%20rx%3D%221.5%22%20fill%3D%22%23ff6a00%22%20stroke%3D%22%23141414%22%20stroke-width%3D%221.6%22/%3E%3Crect%20x%3D%2212%22%20y%3D%222%22%20width%3D%228%22%20height%3D%224%22%20rx%3D%221.5%22%20fill%3D%22%23f4a3b4%22%20stroke%3D%22%23141414%22%20stroke-width%3D%221.6%22/%3E%3Cpath%20d%3D%22M12%2022%20L16%2029%20L20%2022%20Z%22%20fill%3D%22%23f6d7b0%22%20stroke%3D%22%23141414%22%20stroke-width%3D%221.6%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M14.6%2026.4%20L16%2029%20L17.4%2026.4%20Z%22%20fill%3D%22%23141414%22/%3E%3C/g%3E%3C/svg%3E") 6 27, pointer }
.strategy, .strategy * { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20d%3D%22M3%204.5%20A1.5%201.5%200%200%201%204.5%203%20H15%20L29%2017%20L17%2029%20L3%2015%20Z%22%20fill%3D%22%23ff6a00%22%20stroke%3D%22%23141414%22%20stroke-width%3D%221.6%22%20stroke-linejoin%3D%22round%22/%3E%3Ccircle%20cx%3D%229%22%20cy%3D%229%22%20r%3D%222.3%22%20fill%3D%22%23fff%22%20stroke%3D%22%23141414%22%20stroke-width%3D%221.3%22/%3E%3Ctext%20x%3D%2218.5%22%20y%3D%2221%22%20font-size%3D%2210%22%20font-family%3D%22Arial%22%20font-weight%3D%22900%22%20fill%3D%22%23fff%22%20text-anchor%3D%22middle%22%20transform%3D%22rotate%2845%2018.5%2018%29%22%3E%E2%82%AA%3C/text%3E%3C/svg%3E") 4 4, pointer }
.strategy #brand-input { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20d%3D%22M3%204.5%20A1.5%201.5%200%200%201%204.5%203%20H15%20L29%2017%20L17%2029%20L3%2015%20Z%22%20fill%3D%22%23ff6a00%22%20stroke%3D%22%23141414%22%20stroke-width%3D%221.6%22%20stroke-linejoin%3D%22round%22/%3E%3Ccircle%20cx%3D%229%22%20cy%3D%229%22%20r%3D%222.3%22%20fill%3D%22%23fff%22%20stroke%3D%22%23141414%22%20stroke-width%3D%221.3%22/%3E%3Ctext%20x%3D%2218.5%22%20y%3D%2221%22%20font-size%3D%2210%22%20font-family%3D%22Arial%22%20font-weight%3D%22900%22%20fill%3D%22%23fff%22%20text-anchor%3D%22middle%22%20transform%3D%22rotate%2845%2018.5%2018%29%22%3E%E2%82%AA%3C/text%3E%3C/svg%3E") 4 4, text }
.rpe-c .rpe-more { grid-column: 1 / -1; display: flex; justify-content: center; list-style: none }

/* previous lists: an arrow button under the list box opens the last 10 lists */
.past-wrap { position: relative; display: inline-block }
.past-ar { display: inline-block; font-size: 12px; margin-inline-start: 4px; transition: transform .15s }
#past-btn[aria-expanded="true"] .past-ar { transform: rotate(180deg) }
.past-pop { position: fixed; z-index: 40; width: min(340px, calc(100vw - 32px)); margin: 0; padding: 4px;
  list-style: none; max-height: 320px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 30px rgb(20 20 20 / .16) }
.past-pop li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; cursor: pointer; text-align: start }
.past-pop li + li { border-top: 1px solid var(--line) }
.past-pop li:hover, .past-pop li:focus { background: #fff1e6; outline: none }
.past-pop li b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.past-pop li small { color: var(--muted); font-size: 13px }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .past-pop li:hover { background: #3a2414 } }
:root[data-theme="dark"] .past-pop li:hover { background: #3a2414 }
@media (prefers-reduced-motion: reduce) { .past-ar { transition: none } }

/* product search with nothing typed: category tiles, then the popular products */
.browse:empty { display: none }
.br-h { font-size: 16px; margin: 6px 0 10px; display: flex; align-items: center; gap: 8px }
.cat-tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px }
@media (max-width: 860px) { .cat-tiles { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)) } }
.cat-tile { display: grid; justify-items: center; gap: 6px; padding: 14px 8px 12px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.25; text-align: center;
  transition: border-color .15s, transform .15s, box-shadow .15s }
.cat-tile:hover { border-color: #f08a3c; box-shadow: 0 6px 16px rgb(240 120 40 / .14); transform: translateY(-1px) }
.cat-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff1e6; color: #d9620f }
.cat-ic svg { width: 26px; height: 26px }
.br-h .cat-ic { width: 32px; height: 32px; border-radius: 9px } .br-h .cat-ic svg { width: 20px; height: 20px }
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px }
.cat-head .br-h { margin: 0 }
.cat-back { font-weight: 600 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cat-ic { background: #3a2414; color: #ffa463 } }
:root[data-theme="dark"] .cat-ic { background: #3a2414; color: #ffa463 }
@media (max-width: 520px) { .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px } .cat-tile { font-size: 12.5px; padding: 10px 4px } .cat-ic { width: 38px; height: 38px } }
@media (prefers-reduced-motion: reduce) { .cat-tile { transition: none } .cat-tile:hover { transform: none } }

/* cut-short names: hovering a card shows the whole name; a long press on a phone shows it in a bubble */
@media (hover: hover) {
  .gap-more button:hover .ga-n, .gap-more button:focus-visible .ga-n, .sv:hover .sv-name { -webkit-line-clamp: 8; overflow: visible }
  .brands button:hover .bn small, .past-pop li:hover b { white-space: normal }
}
.peek { position: fixed; z-index: 60; padding: 8px 12px; border-radius: 10px; background: #1d2622; color: #fff; font-size: 14px; line-height: 1.4;
  box-shadow: 0 10px 24px rgb(0 0 0 / .22); pointer-events: none; text-align: start; animation: peek-in .14s ease-out }
@keyframes peek-in { from { opacity: 0; transform: translateY(4px) } }
@media (prefers-reduced-motion: reduce) { .peek { animation: none } }
.gap-more button, .alts li button { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none }

/* report a wrong price */
.rep-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--muted); margin-inline-start: 10px; white-space: nowrap }
.rep-link svg { width: 15px; height: 15px }
#rep-body { display: grid; gap: 14px; max-width: 460px }
.rep-f { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0 }
.rep-f > span, .rep-f legend { font-weight: 600; font-size: 14.5px; padding: 0; margin-bottom: 2px }
.rep-f select, .rep-f textarea, .rep-price input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 15px }
.rep-price { display: flex; align-items: center; gap: 8px; max-width: 200px } .rep-price b { color: var(--muted) }
.rep-chips { display: flex; flex-wrap: wrap; gap: 6px }
.rep-chip { position: relative; cursor: pointer }
.rep-chip input { position: absolute; opacity: 0; pointer-events: none }
.rep-chip span { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: var(--surface) }
.rep-chip input:checked + span { border-color: #f08a3c; background: #fff1e6; color: #b34a00; font-weight: 600 }
.rep-chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px }
.rep-done { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 12px 4px }
.rep-done svg { width: 44px; height: 44px; color: #ff6a00 }
.rep-done p { color: var(--muted); margin: 0 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rep-chip input:checked + span { background: #3a2414; color: #ffa463 } }
:root[data-theme="dark"] .rep-chip input:checked + span { background: #3a2414; color: #ffa463 }

/* barcode scanning */
.search-row { grid-template-columns: minmax(0, 1fr) auto minmax(200px, 32%) !important }
.scan-btn { display: inline-flex; align-items: center; gap: 6px; padding-inline: 14px; min-height: 48px; font-weight: 600 }
.bc-ic { width: 22px; height: 22px }
@media (max-width: 640px) { .search-row { grid-template-columns: minmax(0, 1fr) auto !important } .search-row .dd-wrap { grid-column: 1 / -1 } .scan-btn span { display: none } }
#scan-body { display: grid; gap: 12px; max-width: 520px }
.scan-view { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #111 }
.scan-view video { width: 100%; height: 100%; object-fit: cover; display: block }
.scan-frame { position: absolute; inset: 22% 10%; border: 3px solid rgb(255 255 255 / .9); border-radius: 12px; box-shadow: 0 0 0 999px rgb(0 0 0 / .35) }
.scan-frame i { position: absolute; inset-inline: 6px; top: 50%; height: 2px; background: #ff6a00; box-shadow: 0 0 10px #ff6a00; animation: scan-line 1.8s ease-in-out infinite alternate }
@keyframes scan-line { from { transform: translateY(-38px) } to { transform: translateY(38px) } }
.scan-wait { position: absolute; inset: auto 0 0 0; margin: 0; padding: 10px 14px; color: #fff; font-size: 14px; background: linear-gradient(transparent, rgb(0 0 0 / .65)); text-align: center }
.scan-view.off { aspect-ratio: auto; min-height: 90px; background: var(--surface-2) } .scan-view.off video, .scan-view.off .scan-frame { display: none }
.scan-view.off .scan-wait { position: static; color: var(--ink); background: none }
.scan-alt { display: grid; gap: 8px }
.scan-photo { justify-self: start; cursor: pointer }
.scan-type { display: flex; gap: 8px } .scan-type input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 15px; direction: ltr; text-align: right }
@media (prefers-reduced-motion: reduce) { .scan-frame i { animation: none } }

/* language switch, and left-to-right fixes for English */
.lang-btn { margin-inline-start: 8px; min-width: 40px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font: 700 13.5px/1 var(--body); cursor: pointer; flex: none }
.lang-btn:hover { border-color: #f08a3c; color: #b34a00 }
[dir="ltr"] .pbars li b, [dir="ltr"] .pb-d { text-align: right }
[dir="ltr"] .how-bar { right: auto; left: 0 }
[dir="ltr"] .go svg { transform: scaleX(-1) }
[dir="ltr"] .go:hover svg { transform: scaleX(-1) translateX(-4px) }
[dir="ltr"] .scan-type input { text-align: left }
[dir="ltr"] .fact { transform: translateX(24px) }
[dir="ltr"] body { font-family: var(--body) }
[dir="ltr"] .stamp b { unicode-bidi: isolate; direction: ltr }
[dir="ltr"] .si-ar { display: inline-block; transform: scaleX(-1) }

/* the logo (2026-11-23): Shaked's two wordmarks, Hebrew and English; each language shows its own */
.logo-img { display: block; height: 34px; width: auto; mix-blend-mode: multiply }
.logo-en { display: none }
html[lang="en"] .logo-en { display: block }
html[lang="en"] .logo-he { display: none }
@media (max-width: 520px) { .logo-img { height: 27px } }

/* ---- my menu, "לך על זה", sharing (2026-11-23) ---- */
.menu-btn { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0 }
.menu-btn svg { width: 20px; height: 20px }
.menu-saved { position: absolute; top: -7px; inset-inline-end: -8px; background: #ff6a00; color: #fff; font: 800 10.5px/1 var(--head, inherit); padding: 3px 5px; border-radius: 999px; white-space: nowrap; direction: ltr }
.btn svg, .go-acts svg, .mn-acts svg, .spread-row svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; margin-inline-end: 6px }
.go-wa svg .f { fill: currentColor; stroke: none }
.go-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line) }
.go-btn { background: #ff6a00; border-color: #ff6a00; color: #fff; font-size: 16px; padding: 11px 22px }
.go-row small { color: var(--muted) }
#go-dialog { width: min(600px, calc(100vw - 24px)) }
.go-sum { display: flex; gap: 10px }
.go-sum span { flex: 1; display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2) }
.go-sum small { color: var(--muted); font-size: 12.5px }
.go-sum b { font-size: 24px }
.go-sum .go-save { background: #fff1e6; color: #c24f00 }
.go-note { margin: 0; color: var(--muted); font-size: 13.5px }
.go-grp h3 { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 15px }
.go-grp h3 small { color: var(--muted); font-weight: 500 }
.go-grp ul { list-style: none; margin: 0; padding: 0; display: grid }
.go-grp li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px }
.go-grp li small { display: block; color: var(--muted); font-size: 12px }
.go-amt { color: var(--muted); white-space: nowrap }
.go-fee { color: var(--muted) }
.go-acts { display: flex; flex-wrap: wrap; gap: 8px }
.go-wa { background: #1faa59; border-color: #1faa59; color: #fff; text-decoration: none }
.go-acts a.btn { text-decoration: none; display: inline-flex; align-items: center }
.go-brag { justify-self: start }
dialog.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(380px, 92vw); border-radius: 0; inset-inline-start: auto }
[dir="rtl"] dialog.drawer, html:not([dir="ltr"]) dialog.drawer { margin: 0 auto 0 0 }
.drawer-in { min-height: 100%; align-content: start; box-sizing: border-box }
.mn-saved { display: grid; gap: 2px; padding: 16px; border-radius: 14px; background: #fff1e6; color: #c24f00 }
.mn-saved small { font-size: 13px }
.mn-saved b { font-size: 32px; line-height: 1.1 }
.mn-saved span { color: #8a3a00; font-size: 13px }
.mn-note { margin: 0; color: var(--muted); font-size: 12.5px }
.mn-h { margin: 8px 0 0; font-size: 15px }
.mn-empty { margin: 0; color: var(--muted); font-size: 13.5px }
.mn-list { list-style: none; margin: 0; padding: 0; display: grid }
.mn-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line) }
.mn-list li > span:first-child, .mn-load { display: grid; gap: 2px; min-width: 0 }
.mn-list small { color: var(--muted); font-size: 12px }
.mn-p { display: grid; text-align: end; font-weight: 800; white-space: nowrap }
.mn-p small { color: #c24f00; font-weight: 700 }
.mn-load { flex: 1; border: 0; background: none; text-align: start; cursor: pointer; padding: 0; color: inherit; font: inherit }
.mn-del { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 4px 8px }
.mn-acts { display: grid; gap: 8px; margin-top: 8px }
.mn-acts .btn { display: flex; align-items: center; justify-content: center; text-decoration: none }
.name-l { font-weight: 700 }
#name-input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px }
.spread { max-width: 920px; margin: 0 auto 40px; padding: 18px max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 10px; justify-items: center; text-align: center }
.spread-t { margin: 0; font-weight: 800; font-size: 17px }
.spread-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center }
.spread-row .btn { display: inline-flex; align-items: center; text-decoration: none }
