/* Plus Jakarta Sans (OFL), latin subset, from this site: no request to Google (a German court fined a
   site under the GDPR for embedding Google Fonts) and one host less before the first paint. 500 maps
   to 600: the one weight the design uses for 500 does not earn a fifth file. */
@font-face{font-family:"Plus Jakarta Sans";font-weight:400;font-display:swap;src:url(/assets/fonts/pjs-400.woff2) format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-weight:500 600;font-display:swap;src:url(/assets/fonts/pjs-600.woff2) format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-weight:700;font-display:swap;src:url(/assets/fonts/pjs-700.woff2) format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-weight:800;font-display:swap;src:url(/assets/fonts/pjs-800.woff2) format("woff2")}
:root{
  --ink:#1E1A2B; --muted:#7D7890; --faint:#B3AEC2; --line:#EEE9F3; --card:#FFFFFF; --soft:#F7F4FA;
  --peach:#FFE7DA; --pink:#FFD3DC; --orange:#FF7A45; --orange-d:#F0612A; --purple:#7B61FF; --purple-bg:#EFEBFF;
  --green:#1E9E62; --green-bg:#E3F7EC; --stage:#F6F1EE; --red:#E5484D; --red-bg:#FDECEC;
  --ns-a:#038141; --ns-b:#85BB2F; --ns-c:#FECB02; --ns-d:#EE8100; --ns-e:#E63E11;
  --r-xl:28px; --r-l:22px; --r-m:16px; --r-s:12px;
  --shadow:0 10px 30px rgba(120,60,60,.10), 0 2px 6px rgba(120,60,60,.06);
  --ff:"Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --dock-h:76px; --safe-b:env(safe-area-inset-bottom, 0px);
  --spring:cubic-bezier(.34,1.56,.64,1); --ease:cubic-bezier(.2,.9,.3,1);
  /* Liquid glass: a translucent material that lets the page show through, with a lit top edge. */
  --glass:rgba(255,255,255,.58); --glass-edge:rgba(255,255,255,.8);
  --glass-blur:blur(22px) saturate(1.8);
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
/* An element's own display (the sheet's flex) beats the browser's [hidden]; this puts it back. */
[hidden]{display:none!important}
a{color:inherit;text-decoration:none}
html{background:linear-gradient(160deg,#FFEDE3 0%,#FFDCD6 45%,#FFD0DF 100%) fixed;min-height:100%}
body{font-family:var(--ff);color:var(--ink);font-size:15px;line-height:1.45;max-width:520px;margin:0 auto;min-height:100dvh;
  padding-bottom:calc(var(--dock-h) + var(--safe-b) + 24px);-webkit-font-smoothing:antialiased;overscroll-behavior-y:none}
button,input{font:inherit;color:inherit;border:none;background:none}
button{cursor:pointer;touch-action:manipulation}
svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
img{display:block}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* top progress bar: any request slower than 150 ms */
.bar{position:fixed;left:0;top:0;height:3px;width:0;background:linear-gradient(90deg,var(--orange),#FF5E8A);z-index:60;transition:width .4s ease,opacity .3s;opacity:0}
.bar.on{opacity:1;width:70%;transition:width 6s cubic-bezier(.1,.6,.2,1)}
.bar.done{opacity:0;width:100%;transition:width .2s,opacity .4s .2s}

.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:calc(env(safe-area-inset-top,0px) + 12px) 18px 10px}
@supports (animation-timeline: scroll()){
  .top{animation:top-glass linear both;animation-timeline:scroll();animation-range:0 90px}
  @keyframes top-glass{to{background:var(--glass);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);box-shadow:inset 0 -1px 0 var(--glass-edge),0 6px 20px rgba(120,60,60,.08)}}
}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--ink)}
.brand .word{font-weight:800;font-size:18px;letter-spacing:-.02em}
.brand .word b{color:var(--orange-d)}
.icon-btn{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.32);border:1px solid rgba(255,255,255,.55);color:rgba(120,72,88,.42);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background .2s}
.icon-btn:active{background:rgba(255,255,255,.6)}
.icon-btn svg{width:20px;height:20px}

.view{padding:8px 16px 0;display:flex;flex-direction:column;gap:14px}
.card{background:var(--card);border-radius:var(--r-xl);box-shadow:var(--shadow);padding:20px}
.eyebrow{font-size:12.5px;font-weight:700;color:var(--muted);letter-spacing:.02em}
h1{font-size:34px;line-height:1.05;letter-spacing:-.035em;font-weight:800}
h2{font-size:19px;letter-spacing:-.02em;font-weight:800}
.sub{color:var(--muted);font-size:14.5px}

/* home */
.hero{display:grid;grid-template-columns:1fr 128px;gap:8px;align-items:center;padding:22px 20px 20px}
.hero h1 span{color:var(--orange-d)}
.hero .sub{margin-top:10px}
.hero svg.basket{width:128px;height:128px;stroke:none}
.hero video.basket,.hero img.basket{display:block;width:128px;height:128px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.tries{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,auto);justify-content:start;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 2px 4px;margin:0 -2px}
.tries .chip{white-space:nowrap}
.tries::-webkit-scrollbar{display:none}
.chip{flex-shrink:0;display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 15px;border-radius:999px;background:var(--card);
  box-shadow:0 1px 0 var(--glass-edge) inset,0 2px 10px rgba(120,60,60,.08);font-weight:600;font-size:14px;white-space:nowrap;
  transition:transform .35s var(--spring), background .2s, color .2s}
.chip:active{transform:scale(.92)}
.chip[aria-pressed="true"]{background:var(--ink);color:#fff}
.chip[aria-pressed="true"]::before{content:"";width:14px;height:14px;margin-left:-3px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  animation:pop .35s var(--spring)}
@keyframes pop{from{transform:scale(0)}to{transform:scale(1)}}
.chip .dot{width:8px;height:8px;border-radius:50%;background:currentColor;opacity:.5}

.stack{background:var(--purple);color:#fff;position:relative;overflow:hidden}
.stack .eyebrow{color:rgba(255,255,255,.75)}
.stack .big{font-size:56px;font-weight:800;letter-spacing:-.04em;line-height:1}
.stack .big small{font-size:16px;font-weight:600;letter-spacing:0;opacity:.85;margin-left:6px}
.stack .totals{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.stack .totals span{background:rgba(255,255,255,.16);border-radius:999px;padding:5px 11px;font-size:13px;font-weight:700}
.stack .note{font-size:12px;opacity:.7;margin-top:8px}
.stack .pairs{display:flex;gap:10px;margin-top:14px;overflow-x:auto;scrollbar-width:none}
.pair{display:flex;align-items:center;gap:4px;background:rgba(255,255,255,.14);border-radius:14px;padding:5px;flex-shrink:0}
.pair .stage{width:34px;height:34px;border-radius:10px}
.pair svg{width:14px;height:14px;opacity:.8}
.stack.empty{background:rgba(255,255,255,.55);color:var(--ink);box-shadow:none;border:1.5px dashed rgba(123,97,255,.35)}
.stack.empty .eyebrow{color:var(--purple)}
.stack-deco{position:absolute;right:-18px;top:-18px;width:120px;height:120px;opacity:.18;pointer-events:none}

.row-title{display:flex;align-items:baseline;justify-content:space-between;margin:6px 4px -2px}
.recent{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding:6px 16px 34px;margin:-6px -16px -26px;scroll-padding:0 16px}
.recent::-webkit-scrollbar{display:none}
.mini{flex-shrink:0;width:112px;background:var(--card);border-radius:var(--r-l);padding:10px;box-shadow:var(--shadow);text-align:left}
.mini .stage{width:92px;height:76px;border-radius:12px;margin-bottom:6px}
.mini .n{font-size:12.5px;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* product */
.product{display:flex;flex-direction:column;gap:14px}
.p-head{display:grid;grid-template-columns:104px 1fr;gap:16px;align-items:center}
.p-img{width:104px;height:104px;border-radius:var(--r-l)}
/* The stage: a fixed tile in a warm off-white; the photo whole inside it, its white multiplied away */
.stage{position:relative;display:grid;place-items:center;overflow:hidden;flex-shrink:0;background:var(--stage);isolation:isolate}
.stage img{position:relative;width:84%;height:84%;object-fit:contain;mix-blend-mode:multiply}
.stage.glow::before{content:"";position:absolute;inset:-20%;background:var(--src) center/cover no-repeat;filter:blur(22px) saturate(1.3);opacity:.32;z-index:-1}
.ph{color:var(--faint);font-size:11px;font-weight:600;background:var(--soft);container-type:size}
/* half the stage, whatever its size; a little quieter than a photo */
.ph-ic{font-size:46cqmin;line-height:1;opacity:.9;filter:saturate(.85)}
.p-name{font-size:21px;font-weight:800;letter-spacing:-.02em;line-height:1.15}
.p-brand{color:var(--muted);font-size:13.5px;margin-top:3px}
.live{display:inline-block;margin-top:7px;font-size:11.5px;font-weight:700;color:var(--purple);background:var(--purple-bg);padding:3px 8px;border-radius:999px}

.ns{display:inline-flex;gap:2px;margin-top:9px;background:var(--soft);padding:3px;border-radius:10px}
.ns i{font-style:normal;width:21px;height:24px;border-radius:7px;display:grid;place-items:center;font-size:12px;font-weight:800;color:rgba(30,26,43,.35)}
.ns i.on{color:#fff;transform:scale(1.18);box-shadow:0 2px 6px rgba(0,0,0,.18)}
.ns i.A.on{background:var(--ns-a)}.ns i.B.on{background:var(--ns-b)}.ns i.C.on{background:var(--ns-c);color:#3D2F00}.ns i.D.on{background:var(--ns-d)}.ns i.E.on{background:var(--ns-e)}
.ns-badge{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:9px;color:#fff;font-weight:800;font-size:14px;flex-shrink:0}
.ns-badge.A{background:var(--ns-a)}.ns-badge.B{background:var(--ns-b)}.ns-badge.C{background:var(--ns-c);color:#3D2F00}.ns-badge.D{background:var(--ns-d)}.ns-badge.E{background:var(--ns-e)}

.spider-card{display:grid;grid-template-columns:1fr;gap:4px}
.spider-card .legend{display:flex;justify-content:space-between;align-items:center}
.spider-card .rule{font-size:12px;font-weight:700;color:var(--purple);background:var(--purple-bg);padding:4px 10px;border-radius:999px;white-space:nowrap}
.spider{width:100%;max-width:330px;margin:0 auto;display:block;overflow:visible}
.spider .ring{stroke:var(--line);stroke-width:1}
.spider .axis{stroke:var(--line);stroke-width:1}
.spider .lab{fill:var(--muted);stroke:none;font-size:11.5px;font-weight:700;font-family:var(--ff)}
.spider .val{fill:var(--ink);stroke:none;font-size:11px;font-weight:800;font-family:var(--ff)}
.spider .before{fill:rgba(30,26,43,.05);stroke:#A9A3B8;stroke-width:2;stroke-dasharray:5 4}
.spider .after{fill:rgba(30,158,98,.20);stroke:var(--green);stroke-width:2.5}
.spider .after.worse{fill:rgba(255,122,69,.20);stroke:var(--orange)}
.spider .solo{fill:url(#g-solo);stroke:var(--orange);stroke-width:2.5}
.spider .after{fill:url(#g-after)}
.spider .after.worse{fill:url(#g-solo)}
.spider .solo,.spider .after,.spider .before{stroke-linejoin:round}
.spider .pt{stroke:#fff;stroke-width:2}
.spider .pt.solo{fill:var(--orange)}.spider .pt.after{fill:var(--green)}
.spider.grow .solo,.spider.grow .after{transform-box:view-box;transform-origin:50% 51%;animation:grow .7s var(--spring) both}
@keyframes grow{from{transform:scale(.2);opacity:0}to{transform:scale(1);opacity:1}}
.extra{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin-top:4px}
.tag{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:700;padding:5px 10px;border-radius:999px;background:var(--soft);color:var(--muted)}
.tag.good{background:var(--green-bg);color:var(--green)}
.tag.bad{background:var(--red-bg);color:var(--red)}

.goals-title{display:flex;justify-content:space-between;align-items:baseline;margin:2px 4px -4px}
/* The blocks under the product keep their distance by gap, not by margins of their own: when the
   swap row was absent ("building"), its margins went with it and the cards touched. */
#p-rest{display:flex;flex-direction:column;gap:14px}
#swaps{display:flex;flex-direction:column;gap:10px}
/* Every wish in view: rows, not a strip that hides six of eleven beyond the edge of the screen. */
.goals{display:flex;flex-wrap:wrap;gap:8px;padding:6px 0 4px}
.goals .chip{height:38px;padding:0 13px;font-size:13.5px}
.goals:not([data-open="true"]) .extra-goal:not([aria-pressed="true"]){display:none}
.goals .more-goals{background:transparent;box-shadow:none;border:1.5px dashed rgba(123,97,255,.45);color:var(--purple)}
.problem{margin-top:9px;font-size:13px;color:var(--muted);line-height:1.35}
.problem b{color:var(--orange-d);font-weight:800}
.problem.high b{color:var(--red)}
.problem.ok{color:var(--green);font-weight:700}
.p-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.ns-tag{font-size:11.5px;font-weight:700;color:var(--muted);background:var(--soft);padding:3px 8px;border-radius:999px}
.p-tags .live{margin-top:0}

.swaps-head{display:flex;justify-content:space-between;align-items:baseline;margin:4px 4px 0}
.relaxed{font-size:13.5px;color:#8A4B12;background:#FFF1E2;border-radius:var(--r-m);padding:10px 13px;margin:0 2px}
/* A row that scrolls sideways clips up and down too, and cut the cards' shadow into a band behind
   the row: room for the shadow inside, given back outside, so the layout does not move. */
.carousel{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:-14px -16px -26px;padding:18px 18px 42px;scroll-padding:0 18px}
.carousel::-webkit-scrollbar{display:none}
.swap{scroll-snap-align:start;flex:0 0 80%;max-width:310px;background:var(--card);border-radius:var(--r-xl);box-shadow:var(--shadow);padding:14px;text-align:left;
  display:flex;flex-direction:column;gap:10px;transition:transform .35s var(--spring), opacity .2s}
.swap:active{transform:scale(.97)}
.s-deltas{display:flex;flex-wrap:wrap;gap:5px}
.s-deltas span{font-size:11.5px;font-weight:800;padding:3px 8px;border-radius:999px}
.s-deltas .good{background:var(--green-bg);color:var(--green)}
.s-deltas .bad{background:var(--red-bg);color:var(--red)}
.swap .s-top{display:grid;grid-template-columns:76px 1fr;gap:12px;align-items:center}
.swap .s-img{width:76px;height:76px;border-radius:18px}
.swap .s-name{font-weight:800;font-size:15px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.swap .s-brand{color:var(--muted);font-size:12.5px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.swap .headline{font-size:17px;font-weight:800;letter-spacing:-.02em;color:var(--green);line-height:1.2}
.swap .s-mid{display:grid;grid-template-columns:1fr 84px;align-items:center;gap:6px}
.swap .s-mid .spider{width:84px;height:84px}
.swap .s-foot{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;color:var(--muted);font-weight:600}
.swap .open{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:#fff;background:var(--ink)}
.swap .open svg{width:18px;height:18px}
.dim{opacity:.45;pointer-events:none}

.skel{background:linear-gradient(90deg,#F3EFF7 0%,#FBF9FD 40%,#F3EFF7 80%);background-size:300% 100%;animation:shimmer 1.2s infinite linear;border-radius:12px}
@keyframes shimmer{from{background-position:100% 0}to{background-position:-50% 0}}
.loading-note{font-size:13px;color:var(--muted);text-align:center;margin-top:-6px}
.empty{text-align:center;color:var(--muted);padding:26px 18px}
.empty b{display:block;color:var(--ink);font-size:16px;margin-bottom:4px}

/* dock: the thumb zone */
.dock{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(10px + var(--safe-b));width:calc(100% - 24px);max-width:496px;z-index:30;
  display:flex;gap:8px;align-items:center;padding:7px;border-radius:999px;background:var(--glass);
  -webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);border:1px solid var(--glass-edge);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 14px 40px rgba(120,50,60,.20)}
.search{flex:1;display:flex;align-items:center;gap:8px;height:52px;background:rgba(255,255,255,.78);border-radius:999px;padding:0 6px 0 16px}
.search svg{width:20px;height:20px;color:var(--muted);flex-shrink:0}
.search input{flex:1;min-width:0;height:100%;font-size:16px;font-weight:600;outline:none}
.search input::placeholder{color:var(--faint);font-weight:500}
.search input::-webkit-search-cancel-button{display:none}
.clear{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:var(--muted);background:var(--soft)}
.clear svg{width:16px;height:16px}
.scan-btn{width:52px;height:52px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;color:#fff;
  background:linear-gradient(145deg,#FF9A5A,#FF5E8A);box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 8px 20px rgba(255,94,138,.40);transition:transform .35s var(--spring)}
.scan-btn:active{transform:scale(.88)}
.scan-btn svg{width:28px;height:28px}

/* results grow upward from the search bar: the best one sits nearest the thumb */
.results-sheet{position:fixed;left:50%;transform:translateX(-50%);width:calc(100% - 24px);max-width:496px;z-index:29;
  bottom:calc(var(--dock-h) + var(--safe-b) + 6px);background:rgba(255,255,255,.86);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);
  border:1px solid var(--glass-edge);border-radius:var(--r-xl);box-shadow:0 -8px 40px rgba(120,60,60,.18);animation:rise .3s var(--ease);
  max-height:min(62dvh,560px);overflow-y:auto;overscroll-behavior:contain;padding:8px;display:flex;flex-direction:column-reverse}
.results-sheet ul{list-style:none;display:flex;flex-direction:column-reverse;gap:2px}
.results-sheet li{display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center;padding:9px 10px;border-radius:18px;cursor:pointer}
.results-sheet li[aria-selected="true"],.results-sheet li:active{background:var(--soft)}
.results-sheet li .stage{width:48px;height:48px;border-radius:12px}
.results-sheet .r-name{font-weight:700;font-size:14.5px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.results-sheet .r-brand{color:var(--muted);font-size:12.5px}
.results-note{font-size:12px;color:var(--faint);text-align:center;padding:6px 0 4px}

/* scanner */
.scanner{position:fixed;inset:0;z-index:50;background:#000}
.scanner video{width:100%;height:100%;object-fit:cover}
.scan-mask{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.scan-window{width:min(78vw,340px);height:min(44vw,190px);border-radius:24px;box-shadow:0 0 0 200vmax rgba(15,10,20,.55);position:relative;border:3px solid rgba(255,255,255,.9)}
.scan-line{position:absolute;left:14px;right:14px;height:2px;background:#FF7A45;box-shadow:0 0 12px #FF7A45;top:50%;animation:sweep 1.6s ease-in-out infinite alternate}
@keyframes sweep{from{top:18%}to{top:82%}}
.scan-window.hit{border-color:#3BE38B;box-shadow:0 0 0 200vmax rgba(15,10,20,.7)}
.scan-top{position:absolute;top:calc(env(safe-area-inset-top,0px) + 14px);left:14px;right:14px;display:flex;justify-content:space-between}
.round{width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;display:grid;place-items:center;backdrop-filter:blur(8px)}
.round svg{width:22px;height:22px}
.round[aria-pressed="true"]{background:#fff;color:#000}
.scan-hint{position:absolute;left:0;right:0;bottom:calc(var(--safe-b) + 104px);text-align:center;color:#fff;font-weight:700;font-size:16px;padding:0 24px}
.scan-actions{position:absolute;left:0;right:0;bottom:calc(var(--safe-b) + 36px);display:flex;justify-content:center;gap:10px;padding:0 16px}
.scan-pill{height:48px;padding:0 18px;border-radius:999px;background:rgba(255,255,255,.18);color:#fff;font-weight:700;font-size:14.5px;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);white-space:nowrap}
.scan-pill.nudge{background:#fff;color:var(--ink);animation:nudge 1.4s var(--ease) 2}
@keyframes nudge{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
/* at the top, so the keyboard never covers it */
.scan-type{position:absolute;top:calc(env(safe-area-inset-top,0px) + 76px);left:14px;right:14px;display:flex;gap:8px;padding:6px;border-radius:999px;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.scan-type input{flex:1;min-width:0;height:48px;padding:0 14px;font-size:20px;font-weight:700;letter-spacing:.08em;outline:none;background:transparent}
.scan-type input::placeholder{font-size:15px;letter-spacing:0;font-weight:500;color:var(--faint)}
.scan-go{height:48px;padding:0 20px;border-radius:999px;background:linear-gradient(145deg,#FF8A50,#FF6A3D);color:#fff;font-weight:800}
.scan-type.shake{animation:shake .35s}
@keyframes shake{25%{transform:translateX(-8px)}75%{transform:translateX(8px)}}
.steps-list{margin:0 0 14px 20px;display:grid;gap:6px;font-size:14.5px}
.scanhelp .cta{margin-top:6px}

/* bottom sheet */
.sheet-wrap{position:fixed;inset:0;z-index:40;background:rgba(30,20,40,.35);display:flex;align-items:flex-end;justify-content:center;animation:fade .2s}
.sheet{width:100%;max-width:520px;max-height:92dvh;overflow-y:auto;background:var(--card);border-radius:30px 30px 0 0;padding:10px 18px calc(18px + var(--safe-b));
  animation:up .28s cubic-bezier(.2,.9,.3,1);overscroll-behavior:contain}
.grip{width:44px;height:5px;border-radius:3px;background:var(--line);margin:2px auto 12px}
@keyframes up{from{transform:translateY(40%);opacity:.4}to{transform:none;opacity:1}}
@keyframes fade{from{opacity:0}to{opacity:1}}
.duo{display:grid;grid-template-columns:1fr 28px 1fr;align-items:center;gap:8px;text-align:center}
.duo .stage{width:84px;height:84px;margin:0 auto 6px;border-radius:20px}
.duo .n{font-weight:800;font-size:13.5px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.duo .b{font-size:12px;color:var(--muted);margin-bottom:6px}
.duo .arrow{color:var(--orange-d)}
.duo .arrow svg{width:24px;height:24px}
.diff{list-style:none;display:flex;flex-direction:column;gap:2px;margin:6px 0 14px}
.diff li{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;padding:9px 4px;border-bottom:1px solid var(--line);font-size:14px}
.diff li:last-child{border-bottom:none}
.diff .lab{font-weight:600}
.diff .vals{color:var(--muted);font-size:13px}
.diff .d{font-weight:800;min-width:72px;text-align:right}
.d.good{color:var(--green)}.d.bad{color:var(--red)}.d.same{color:var(--faint)}
.cta{width:100%;height:58px;border-radius:20px;background:linear-gradient(145deg,#FF8A50,#FF6A3D);color:#fff;font-weight:800;font-size:17px;box-shadow:0 10px 24px rgba(255,106,61,.35);transition:transform .12s}
.cta:active{transform:scale(.98)}
.cta.done{background:var(--green);box-shadow:none}
.link{display:flex;align-items:center;justify-content:center;height:46px;border-radius:16px;background:var(--soft);color:var(--ink);font-size:13.5px;margin-top:10px;font-weight:700}
.legend-row{display:flex;justify-content:center;gap:16px;font-size:12.5px;color:var(--muted);font-weight:600;margin:-4px 0 6px}
.legend-row i{display:inline-block;width:18px;height:0;border-top:2px dashed #A9A3B8;vertical-align:middle;margin-right:6px}
.legend-row i.a{border-top:3px solid var(--green)}

.toast{position:fixed;left:50%;top:calc(env(safe-area-inset-top,0px) + 10px);transform:translate(-50%,-24px) scale(.85);background:rgba(30,26,43,.88);color:#fff;
  -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);padding:12px 20px;border-radius:999px;font-weight:700;font-size:14px;opacity:0;pointer-events:none;
  transition:transform .45s var(--spring),opacity .25s;z-index:70;max-width:90vw;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.toast.on{opacity:1;transform:translate(-50%,0) scale(1)}
.foot{text-align:center;padding:14px 22px 0;display:grid;gap:8px;font-size:12px;font-weight:400;line-height:1.6;color:var(--muted)} /* the grey again, now it is one sentence */
.foot p{margin:0}
.foot a,.foot-link{color:inherit;font:inherit;text-decoration:underline;text-underline-offset:2px;padding:0;margin:0}
.foot a{text-decoration:underline;text-underline-offset:2px}
/* NL · EN: the dot carries the spacing, so the link needs no margin of its own */
.foot-lang .foot-link{margin-left:0}
.info .lang-line{text-align:center;margin:14px 0 0}

.confetti{position:fixed;inset:0;pointer-events:none;z-index:65}
.confetti i{position:absolute;width:9px;height:14px;border-radius:3px;top:-20px;animation:fall 1.4s ease-in forwards}
@keyframes fall{to{transform:translateY(105vh) rotate(540deg);opacity:.6}}
.info h2{margin:4px 0 8px}
.info p{color:var(--muted);margin-bottom:12px;font-size:14.5px}
.info ol{margin:0 0 14px 18px;color:var(--ink);font-size:14.5px;display:grid;gap:6px}
.more-sets{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:-6px 2px 4px}
.more-sets .sub{width:100%;font-size:12.5px}
.more-set{height:36px;font-size:13px}
.more-set .n{background:var(--purple);color:#fff;border-radius:999px;padding:1px 7px;font-size:11.5px;margin-left:2px}

/* home: a bento of the two ways in, scan first */
.bento{display:grid;grid-template-columns:1.25fr 1fr;gap:12px}
.tile{border-radius:var(--r-xl);padding:16px;text-align:left;display:flex;flex-direction:column;justify-content:space-between;gap:18px;min-height:132px;
  box-shadow:var(--shadow);transition:transform .35s var(--spring)}
.tile:active{transform:scale(.96)}
.tile .ic{width:44px;height:44px;border-radius:14px;display:grid;place-items:center}
.tile .ic svg{width:24px;height:24px}
.tile b{font-size:16px;font-weight:800;letter-spacing:-.01em;display:block}
.tile small{font-size:12px;opacity:.75;font-weight:600}
.tile.scan{background:linear-gradient(150deg,#FF9A5A,#FF5E8A);color:#fff}
.tile.scan .ic{background:rgba(255,255,255,.22)}
.tile.find{background:var(--card)}
.tile.find .ic{background:var(--purple-bg);color:var(--purple)}
@keyframes rise{from{transform:translate(-50%,16px);opacity:0}to{transform:translate(-50%,0);opacity:1}}

/* page to page: a cross-fade, and the product photo flies from the list into the page */
::view-transition-old(root),::view-transition-new(root){animation-duration:.26s}
::view-transition-group(hero){animation-duration:.42s;animation-timing-function:var(--ease)}
.p-img{view-transition-name:hero}

/* share */
.share-btn{width:100%;height:50px;margin-top:10px;border-radius:18px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:800;font-size:15px;
  background:var(--purple-bg);color:var(--purple);transition:transform .35s var(--spring)}
.share-btn:active{transform:scale(.97)}
.share-btn.primary{background:var(--purple);color:#fff}
.share-btn svg,.share .cta svg{width:19px;height:19px}
.share h2{margin:2px 0 4px}
.share .sub{margin-bottom:14px}
.share-card{display:flex;align-items:center;gap:8px;background:var(--soft);border-radius:20px;padding:10px;margin-bottom:14px}
.share-card .stage{width:56px;height:56px;border-radius:14px}
.share-card svg{width:18px;height:18px;color:var(--orange-d);flex-shrink:0}
.share-card div{min-width:0;display:flex;flex-direction:column;margin-left:4px}
.share-card b{color:var(--green);font-size:14px;line-height:1.25}
.share-card span{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.share .cta{display:flex;align-items:center;justify-content:center;gap:8px}
.share-opt{display:flex;align-items:center;justify-content:center;width:100%;height:50px;margin-top:10px;border-radius:18px;background:var(--card);
  border:1.5px solid var(--line);font-weight:700;font-size:15px}
.cmp-note{font-size:13px;color:var(--muted);text-align:center;margin:6px 8px 4px;line-height:1.45}
.chip.pears{background:#EAF7E4;color:#2E7D32}

/* a code we cannot compare: what it is and the next step */
.unknown{text-align:center;padding:26px 20px 20px}
.unknown h2{margin:10px 0 6px}
.unknown .sub{margin-bottom:16px}
.unknown .share-opt{margin-top:10px}
.u-ic{width:56px;height:56px;margin:0 auto;border-radius:50%;display:grid;place-items:center;font-size:26px;font-weight:800;color:var(--purple);background:rgba(123,97,255,.12)}
.u-ic svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.u-img{margin:0 auto}
.u-name{font-weight:700;font-size:14px;color:var(--muted);margin-top:8px}
.rows{display:grid;gap:2px;margin-top:10px}
.row{display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center;padding:9px 6px;border-radius:18px;color:inherit;text-decoration:none}
.row:active{background:var(--soft)}
.row .stage{width:48px;height:48px;border-radius:12px}
.r-name{font-weight:700;font-size:14.5px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.r-brand{color:var(--muted);font-size:12.5px}
/* the web past a day's worth */
.spider .val.over{fill:var(--red)}
.spider .pt.cap{stroke:var(--red);stroke-width:2.5}
.over-note{font-size:12.5px;color:var(--muted);text-align:center;margin:-2px 8px 10px}
.over-note b{color:var(--red)}
/* an unknown value: dashed edges, a hollow corner, a "?" */
.spider .edge{fill:none}
.spider .edge.dash{stroke-dasharray:3 5}
.spider .pt.unknown{fill:#fff;stroke:var(--muted);stroke-width:2}
.spider .val.unknown{fill:var(--muted)}
.over-note b.q{color:var(--muted)}
.chip.unknown{opacity:.5}
/* the empty search, opened (suggest) */
.suggest{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;padding:8px 6px 4px}
.suggest span{width:100%;font-size:12px;font-weight:700;color:var(--muted);text-align:left;padding-left:4px}
.suggest .chip{font-size:13.5px}
.search:focus-within{box-shadow:0 0 0 2.5px rgba(255,122,69,.55)}
/* the disclaimer: one line where it is needed, the rest in the info sheet */
.tag.filled{background:var(--soft);color:var(--muted);font:inherit;font-size:12px;font-weight:700;border-radius:999px;padding:3px 9px;cursor:pointer}
.inline-about{color:var(--muted);font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px;padding:0}
.cmp-fine{font-size:12px;color:var(--faint);text-align:center;margin:12px 6px 0}
.info h3{font-size:15px;margin:16px 0 4px}
/* the stack: edit, and the list with a remove per choice */
.stack .eyebrow{display:flex;justify-content:flex-start;align-items:center;gap:10px} /* edit beside the title: the mark holds the top right corner */
.stack-edit{color:#fff;background:rgba(255,255,255,.2);font:inherit;font-size:12.5px;font-weight:700;padding:4px 12px;border-radius:999px;position:relative;z-index:1}
.stack-list ul{list-style:none;display:grid;gap:8px;margin:10px 0 16px;padding:0}
.stack-list li{display:grid;grid-template-columns:40px 18px 40px 1fr 40px;gap:8px;align-items:center;padding:8px;border-radius:16px;background:var(--soft)}
.stack-list li .stage{width:40px;height:40px;border-radius:10px}
.stack-list li > svg{width:18px;height:18px;color:var(--muted)}
.sl-names{min-width:0;display:grid;font-size:13px;line-height:1.25}
.sl-names span{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sl-names b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sl-remove{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:var(--muted);background:var(--card)}
.sl-remove svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
/* feedback */
.top{gap:8px}
#btn-lang{margin-left:auto} /* the three buttons right, beside each other */
.lang-btn{font:inherit;font-size:12px;font-weight:600;letter-spacing:.04em}
.fb-kinds{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.fb textarea{width:100%;border-radius:16px;border:1.5px solid var(--line);padding:12px 14px;font:inherit;font-size:16px;resize:vertical;background:var(--card);color:var(--ink)}
.fb textarea:focus{outline:none;border-color:var(--orange)}
.fb-ctx{display:flex;gap:8px;align-items:center;font-size:14px;margin:10px 0 4px}
.fb-what{font-size:12.5px;color:var(--muted);margin-bottom:14px}
.fb-what summary{cursor:pointer;font-weight:700}
.fb-what ul{margin:6px 0 0 16px;display:grid;gap:2px;word-break:break-word}
/* the home's wrapper keeps the view's own rhythm */
.home{display:flex;flex-direction:column;gap:14px}
/* A laptop: mobile first stays the base; from 960 px the page uses two columns instead of a phone's
   width in the middle of a wide screen (Corné, 2026-10-10). Home: the intro and the choices side by side.
   Product: the product and its web on the left, what should be better and the swaps on the right. */
@media (min-width: 960px) {
  body{max-width:1080px}
  .view{padding:30px 28px 0}
  .tries{grid-template-rows:auto} /* room enough for the words on one line */
  .home > .stack + .row-title{margin-top:18px}
  .dock,.results-sheet{max-width:640px}
  .home{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:16px 20px;align-items:start}
  .home > *{grid-column:1 / -1}
  .home > .hero{grid-column:1;grid-row:1}
  .home > .bento{grid-column:1;grid-row:2}
  .home > .stack{grid-column:2;grid-row:1 / span 2;align-self:stretch}
  .product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:14px 22px;align-items:start}
  .product > section:first-child{grid-column:1;grid-row:1}
  #p-rest{display:contents}
  #p-rest > *{grid-column:2}
  #p-rest > .spider-card{grid-column:1;grid-row:2 / span 4}
}
/* "same but butter" for a moment while the butter plays (startHero, nameWord) */
.brand .word b{display:inline-block}
.brand .word b.flip{animation:wordflip .45s var(--spring)}
@keyframes wordflip{from{transform:rotateX(90deg);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.brand .word b.flip{animation:none}}
/* A row that scrolls sideways fades out where it goes on, instead of a card cut off flat at the edge
   (Corné, 2026-10-10). The fade at either side is there only while there is more that way (edgeFade). */
.recent,.carousel{--fl:0px;--fr:56px;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 var(--fl),#000 calc(100% - var(--fr)),transparent 100%);
  mask-image:linear-gradient(to right,transparent 0,#000 var(--fl),#000 calc(100% - var(--fr)),transparent 100%)}
.recent[data-from-start],.carousel[data-from-start]{--fl:36px}
.recent[data-at-end],.carousel[data-at-end]{--fr:0px}
