/* השכנה, the website. Brand: brand/BRANDING.md. One theme, colours set explicitly.
   Plum field with cream type for confidence, marker yellow as the one colour block, ink for dark bands.
   The display face lives in --display only (Karantina for big headlines; set it to "Rubik" to go Rubik-only).
   Motion: transform/opacity only. Everything is visible at rest; html.js-motion (set by app.js, never under
   prefers-reduced-motion) is what hides things before they reveal. */

@font-face {
  font-family: "Karantina";
  src: url("/static/fonts/karantina-he.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("/static/fonts/rubik-he.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --plum: #4A1D5C;
  --plum-step: #552468;   /* one tone step on the plum field (no gradients) */
  --ink: #2A1530;
  --cream: #FFF3DE;
  --paper: #FFFBF3;       /* polaroids and tiles */
  --sand: #F6E3C2;        /* one step under the cream */
  --yellow: #FFC83A;
  --on-plum-soft: #E9D9EC;
  --muted: #5E4E66;
  --yes: #1F6B45;
  --no: #A3261E;
  --peg: #B98A55;
  --peg-dark: #8E6538;

  --display: "Karantina", "Rubik", "Arial Hebrew", sans-serif;
  --text: "Rubik", "Segoe UI", "Arial Hebrew", Arial, sans-serif;
  --gutter: clamp(18px, 4.5vw, 64px);
  --max: 1240px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-back: cubic-bezier(.3, 1.45, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.55 var(--text); font-variant-numeric: tabular-nums; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
a, button, input, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.display { font-family: var(--display); font-weight: 700; line-height: .9; letter-spacing: 0; }

.skip { position: absolute; inset-inline-start: 8px; top: 8px; z-index: 20; background: var(--yellow); color: var(--ink);
        padding: 10px 18px; border-radius: 999px; font-weight: 700; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 2px solid transparent;
  font: 700 18px/1 var(--text); text-decoration: none; cursor: pointer;
  transition: transform 180ms var(--ease-out), background-color 180ms, color 180ms;
}
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(0) scale(.97); }
.pill-yellow { background: var(--yellow); color: var(--ink); }
.pill-plum { background: var(--plum); color: var(--cream); }
.pill-line { border-color: currentColor; background: transparent; min-height: 44px; padding: 0 20px; font-size: 16px; }
.pill-line:hover { background: var(--cream); color: var(--plum); border-color: var(--cream); }
.pill-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.pill-quiet:hover { background: var(--ink); color: var(--cream); }

/* ---------- the plum field: bar + hero ---------- */
.hero-field { background: var(--plum); color: var(--cream); overflow: hidden; }
.bar {
  max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 24px/1 var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 50%; background: var(--sand); }
.bar-nav { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 16px; }
.bar-nav > a:not(.pill) { text-decoration: none; padding: 10px 0; }
.bar-nav > a:not(.pill):hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 720px) { .bar-nav > a:not(.pill) { display: none; } }

.hero {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) 64px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center;
}
.hero h1 { font-size: min(17.4vw, 150px); }
.hero h1 .line { display: block; }
.line-2 { margin-top: .06em; }
/* Karantina sits low in its box: equal room above and under the letters (Ofri 8.11) */
.block { position: relative; z-index: 0; display: inline-block; color: var(--ink); padding: .04em .2em .07em; margin-top: .04em; }
.block::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow); transform-origin: right center; }
.lede { margin-top: 26px; font-size: clamp(19px, 2.3vw, 23px); line-height: 1.45; max-width: 30em; color: var(--cream); }

.paste { margin-top: 26px; max-width: 640px; }
.paste label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.field {
  display: flex; align-items: center; gap: 6px; background: var(--paper); border-radius: 999px; padding: 6px;
  transition: transform 180ms var(--ease-out);
}
.field:focus-within { outline: 3px solid var(--yellow); outline-offset: 3px; }
.field input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: 400 18px/1.3 var(--text); padding: 14px 18px; text-align: left;
}
.field input::placeholder { color: var(--muted); opacity: 1; }
.field input:focus { outline: none; }
.field .pill { min-height: 54px; padding: 0 30px; font-size: 19px; flex: none; }
.field .pill[disabled] { opacity: .75; cursor: progress; transform: none; }
.paste-btn { margin-top: 12px; padding: 10px 16px; min-height: 44px; border: 1px dashed var(--on-plum-soft);
  border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 15px; cursor: pointer; }
.paste-btn.ready { border-style: solid; border-color: var(--yellow, #F5C842); font-weight: 600; }
.paste-btn:focus-visible { outline: 3px solid var(--yellow, #F5C842); outline-offset: 2px; }
.hint { margin-top: 12px; font-size: 15px; color: var(--on-plum-soft); }
.form-error { margin-top: 14px; background: var(--cream); color: var(--ink); border-radius: 14px; padding: 12px 16px; font-weight: 700; }
.form-error span { display: block; font-weight: 400; }

.polaroid {
  justify-self: center; width: min(78vw, 440px); background: var(--paper); padding: 12px 12px 0; color: var(--ink);
  rotate: 3deg; box-shadow: 0 18px 40px rgba(20, 6, 26, .35);
}
.polaroid img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.polaroid figcaption {
  display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px 16px;
  font: 500 13px/1 var(--text); letter-spacing: .08em; color: var(--muted);
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr); gap: 56px; padding-top: 34px; padding-bottom: 96px; }
  .hero h1 { font-size: min(8.9vw, 136px); }   /* one line for "הדשא של השכנה", the yellow block under it */
  .polaroid { rotate: -3deg; width: 100%; max-width: 440px; padding: 14px 14px 0; }
}

/* ---------- ticker ---------- */
.ticker { position: relative; background: var(--ink); color: var(--cream); overflow: hidden; padding: 16px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ticker-track { display: flex; width: max-content; animation: ticker 34s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li { display: flex; align-items: center; font: 700 clamp(34px, 5vw, 48px)/1 var(--display); white-space: nowrap; }
.ticker li::after {
  content: ""; width: .42em; height: .42em; margin: 0 .7em; background: var(--yellow);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* ---------- sections on cream ---------- */
.result, .how, .faq { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section-title { font-size: clamp(64px, 12vw, 128px); }
.section-title .solid, .section-title .outline { display: block; }
.outline { position: relative; display: inline-block; overflow: hidden; padding: 0 .04em; }
.outline-text { color: transparent; -webkit-text-stroke: 2px var(--plum); }
.fill-text { position: absolute; inset: 0; padding: 0 .04em; overflow: hidden; color: var(--plum); }
/* a wipe in reading direction (right to left): the solid letters sit exactly on the outline and are uncovered,
   never slid (9.11: a sliding copy looked like a full, misaligned word at once) */
.fill-text { clip-path: inset(0 0 0 calc((1 - var(--p, 1)) * 100%)); }
.fill-text > span { display: block; }

.how { padding-top: 120px; }
.how-head { display: grid; gap: 22px; }
.how-head p { font-size: 19px; max-width: 34em; }
.checks { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.checks li {
  background: var(--paper); border-radius: 18px; padding: 24px 22px 26px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: baseline;
  transition: transform 220ms var(--ease-out);
}
.checks li:hover { transform: translateY(-4px) rotate(-.6deg); }
.num { grid-row: span 2; align-self: start; background: var(--yellow); color: var(--ink); font: 700 34px/1 var(--display);
       padding: 6px 10px 2px; min-width: 2.2ch; text-align: center; }
.checks h3 { font: 700 30px/1 var(--display); font-size: 34px; }
.checks p { margin-top: 6px; font-size: 17px; }
@media (min-width: 760px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .checks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .checks li { grid-template-columns: minmax(0, 1fr); row-gap: 18px; padding: 26px 24px 30px; }
  .num { grid-row: auto; justify-self: start; }
}

.faq { padding-top: 120px; display: grid; gap: 36px; }
.faq-list { display: grid; gap: 10px; }
@media (min-width: 1000px) {
  .faq { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
  .faq .section-title { position: sticky; top: 32px; }
}
.faq details { background: var(--paper); border-radius: 18px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px; min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 32px/1 var(--text); flex: none; transition: transform 220ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--plum); }
.faq details p { padding: 0 22px 22px; font-size: 18px; max-width: 44em; }

/* ---------- Telegram band, footer ---------- */
.telegram { margin-top: 120px; background: var(--plum); color: var(--cream); }
.telegram-inner {
  max-width: var(--max); margin: 0 auto; padding: 44px var(--gutter) 0;
  display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 22px; align-items: end;
}
.telegram h2 { font-size: clamp(54px, 9vw, 104px); }
.telegram p { margin-top: 10px; font-size: 19px; }
.telegram .pill { margin: 22px 0 44px; }
.tg-sticker { width: 110px; height: auto; }
@media (min-width: 900px) { .telegram-inner { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; } .tg-sticker { width: 190px; } }

.foot { background: var(--ink); color: var(--on-plum-soft); padding: 48px var(--gutter) 40px; }
.foot > * { max-width: var(--max); margin-inline: auto; }
.foot-name { font-size: clamp(110px, 26vw, 300px); line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--cream); }
.foot-text { margin-top: 28px; display: grid; gap: 6px; font-size: 15px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 18px; font-size: 15px; }
.foot-nav a { color: var(--cream); padding: 10px 0; }
.foot-nav span { padding: 10px 0; }
.noscript { max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter); font-weight: 700; }

/* ---------- the result ---------- */
.result { padding-top: 64px; scroll-margin-top: 0; }
.verdict { display: flex; align-items: center; gap: 18px; }
.verdict img { width: 92px; height: auto; flex: none; }
.verdict .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--sand); }
.verdict h2 { font: 700 clamp(48px, 9vw, 92px)/.92 var(--display); }
.verdict h2:focus { outline: none; }
.verdict p { margin-top: 10px; font-size: 19px; max-width: 38em; }
.verdict.checking img { animation: bob 900ms ease-in-out infinite alternate; }

.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; font-size: 18px; }
.steps li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); }
.steps li::before { content: "·"; width: 1em; text-align: center; font-weight: 900; }
.steps li.done { color: var(--ink); }
.steps li.done::before { content: "✓"; color: var(--yes); } /* taste-skill-ignore: the bot's own mark */
.steps li.now { color: var(--ink); font-weight: 700; }
.steps li.now::before { content: "…"; }
.steps .cycle { animation: swap-in 360ms var(--ease-out) both; }

/* a subtle line the cards are pegged to */
.line-wrap { position: relative; margin-top: 30px; padding-top: 16px; }
.rope { position: absolute; top: 6px; right: calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); height: 14px;
        overflow: visible; pointer-events: none; }
.rope path { fill: none; stroke: #A7927C; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hangers {
  position: relative; display: flex; gap: 22px; align-items: flex-start;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 26px; scrollbar-width: thin;
}
.tag {
  position: relative; flex: 0 0 min(82vw, 430px); scroll-snap-align: start;
  background: var(--paper); border-radius: 4px; padding: 32px 18px 22px; margin-top: 10px; transform-origin: 50% -10px;
  box-shadow: 0 10px 26px rgba(42, 21, 48, .12);
}
.tag.pick { flex-basis: min(82vw, 560px); }
.tag.own { flex-basis: min(76vw, 350px); background: var(--sand); box-shadow: none; }
.peg { position: absolute; top: -22px; left: 50%; width: 14px; height: 40px; margin-left: -7px; background: var(--peg);
       border-radius: 3px; border-inline-start: 4px solid var(--peg-dark); transform-origin: 50% 0; }
.tag-label { font: 500 13px/1.3 var(--text); letter-spacing: .14em; color: var(--muted); }
.tag-top { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 10px; }
.tag-top img { width: 108px; height: 108px; object-fit: contain; background: #fff; border-radius: 4px; }
.tag-top .noimg { width: 108px; height: 108px; border-radius: 4px; background: var(--sand); }
.name { font-weight: 700; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.price-line { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.price { font: 800 54px/1 var(--text); letter-spacing: -.02em; color: var(--plum); unicode-bidi: isolate; }
.own .price { font-size: 38px; color: var(--ink); }
.instead { color: var(--muted); font-size: 16px; unicode-bidi: isolate; }
.basis { font-size: 15px; color: var(--muted); }
.save { margin-top: 14px; font-weight: 700; font-size: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.save .mark { position: relative; z-index: 0; display: inline-block; padding: 7px 14px 6px; font: 800 24px/1 var(--text);
              color: var(--ink); unicode-bidi: isolate; }
.save .mark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow); transform-origin: right center; }
.save .pct { font-weight: 400; font-size: 17px; color: var(--muted); unicode-bidi: isolate; }

.facts { margin: 16px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; font-size: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; unicode-bidi: isolate; }
.weak { margin-top: 10px; font-weight: 700; }
.compare { margin-top: 18px; background: var(--cream); border-radius: 10px; padding: 14px 16px; }
.compare h3 { font-size: 15px; font-weight: 700; color: var(--muted); }
.compare ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.compare li { display: flex; gap: 8px; align-items: baseline; }
.compare li::before { width: 1.1em; flex: none; font-weight: 900; text-align: center; }
.compare li.yes::before { content: "✓"; color: var(--yes); } /* taste-skill-ignore: the bot's own mark */
.compare li.no::before { content: "✗"; color: var(--no); } /* taste-skill-ignore: the bot's own mark */
.compare li.extra::before { content: "+"; color: var(--plum); }
.compare .unclear, .compare .bottom { margin-top: 8px; }
.compare .bottom { font-weight: 700; }
.notes { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 15px; }
.notes li { background: var(--sand); border-radius: 10px; padding: 9px 13px; }
.buy { margin-top: 20px; display: grid; gap: 8px; }
.buy .btn { width: 100%; }
.disclose { font-size: 14px; color: var(--muted); text-align: center; }
.bad { justify-self: center; background: none; border: 0; padding: 10px 6px; min-height: 44px; font: 400 15px var(--text);
       color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bad:hover { color: var(--ink); }
.bad[disabled] { text-decoration: none; cursor: default; }

/* buttons built by app.js: class "btn" + "" (primary) or "btn-quiet" */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 999px;
       background: var(--plum); color: var(--cream); font: 700 19px/1 var(--text); text-decoration: none; border: 2px solid var(--plum);
       cursor: pointer; transition: transform 180ms var(--ease-out), background-color 180ms, color 180ms; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.btn-quiet:hover { background: var(--ink); color: var(--cream); }

.more { margin-top: 26px; }
.more h3 { font: 700 44px/1 var(--display); }
.more .tag { flex-basis: min(78vw, 370px); }
.more .price { font-size: 44px; }
.after { margin-top: 18px; display: grid; gap: 14px; }
.meta { font-size: 15px; color: var(--muted); display: grid; gap: 2px; }
.tip { font-size: 16px; max-width: 46em; }
.after-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 1000px) {
  .hangers { overflow: visible; margin-inline: 0; padding-inline: 0; gap: 44px; }
  .tag.pick { flex: 0 1 580px; }
  .tag.own { flex: 0 1 370px; margin-top: 40px; }
  .more .hangers { gap: 28px; }
  .more .tag { flex: 0 1 370px; }
}

/* ---------- the answer in one calm column (Ofri 8.11: "too much noise") ----------
   The pick hangs alone on the line; their own product is a small row under it; "what I checked" is folded;
   every code for the whole cart sits in one box; the small print comes last. */
.result { max-width: 760px; }
.result .verdict img { width: 76px; }
.result .verdict h2 { font-size: clamp(44px, 7vw, 72px); }
.result .verdict p { font-size: 18px; margin-top: 6px; }
.result .hangers { overflow: visible; margin-inline: 0; padding: 0 0 8px; display: block; }
.result > div > .line-wrap .tag { width: 100%; box-shadow: none; border-radius: 14px; padding: 30px 22px 18px; }
.result .tag-label { letter-spacing: 0; font-size: 14px; font-weight: 700; color: var(--plum); }
.result .tag-top { grid-template-columns: 92px minmax(0, 1fr); align-items: center; }
.result .tag-top img, .result .tag-top .noimg { width: 92px; height: 92px; border-radius: 10px; }
.result .price { font-size: 48px; }
.result .save .mark { font-size: 21px; }
.result .facts { margin-top: 12px; font-size: 15px; gap: 2px 12px; }
.result .notes { gap: 6px; }
.result .notes li { background: none; padding: 0; color: var(--muted); }
.result .coupon { margin-top: 14px; background: var(--cream); padding: 10px 14px; gap: 2px; font-size: 15px; }
.result .coupon-head { font-size: 15px; }
.result .coupon-how { font-size: 13px; }
.result .code-chip code { font-size: 15px; }
.result .copy { min-height: 32px; font-size: 13px; }
.result .buy { margin-top: 16px; gap: 4px; }
.result .disclose { font-size: 13px; }
.result .bad { font-size: 14px; min-height: 40px; padding: 6px; }
.fold { margin-top: 12px; }
.fold summary { cursor: pointer; font-size: 15px; font-weight: 700; color: var(--plum); min-height: 40px; display: flex; align-items: center;
                gap: 8px; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; font: 400 22px/1 var(--text); transition: transform 200ms var(--ease-out); }
.fold[open] summary::after { transform: rotate(45deg); }
.fold .compare { margin-top: 2px; }
.result .tag.own-row { margin-top: 14px; box-shadow: none; border-radius: 14px; padding: 16px 18px; }
.own-row .peg { display: none; }
.own-row .tag-label { color: var(--muted); }
.own-row .tag-top { grid-template-columns: 56px minmax(0, 1fr); margin-top: 6px; }
.own-row .tag-top img, .own-row .tag-top .noimg { width: 56px; height: 56px; }
.own-row .name { font-size: 16px; }
.result .own-row .price { font-size: 26px; }
.own-row .price-line { margin-top: 2px; }
.own-row .facts { margin-top: 6px; }
.own-row .buy { margin-top: 10px; }
.own-row .buy .btn { min-height: 46px; font-size: 16px; }
.result .more .tag { box-shadow: none; border-radius: 14px; }
.result .more .hangers { display: flex; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 12px; }
.result .after { margin-top: 26px; gap: 18px; }
.result .tip { padding-inline-start: 14px; border-inline-start: 4px solid var(--yellow); }
.result .codes { background: var(--sand); border-radius: 14px; padding: 14px 18px; display: grid; gap: 4px; }
.result .codes .cart-line { font-size: 16px; }
.result .codes .deals { max-width: none; background: none; padding: 0; }
.result .codes .deals[open] { padding-bottom: 4px; }
.result .after-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.result .after-actions .btn { min-height: 52px; font-size: 17px; padding: 0 12px; }
.result .meta { font-size: 13px; }

/* ---------- text pages ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 24px var(--gutter) 72px; }
.doc h1 { font: 700 clamp(64px, 12vw, 112px)/.9 var(--display); color: var(--plum); }
.doc h2 { font-weight: 700; font-size: 26px; margin-top: 36px; }
.doc p, .doc li { font-size: 17px; }
.doc p, .doc ul { margin-top: 12px; }
.doc ul { padding-inline-start: 22px; }
.doc li + li { margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.doc th, .doc td { text-align: start; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--sand); }
.doc th { color: var(--muted); }
.doc .table-wrap { overflow-x: auto; }
.doc .updated { color: var(--muted); }
body > .bar .pill { min-height: 44px; }
body > .foot .foot-nav { margin-top: 0; }

/* ---------- sale banner, coupons, "bigger cart?" ---------- */
.sale { background: var(--yellow); color: var(--ink); }
.sale[hidden] { display: none; }
.sale-link { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 12px;
             max-width: var(--max); margin: 0 auto; padding: 9px var(--gutter); color: inherit; text-decoration: none;
             font-size: 15px; text-align: center; }
.sale-link strong { font-weight: 700; }
.sale-link span { text-decoration: underline; text-underline-offset: 3px; }
.sale-link span::after { content: " ←"; }
.sale-link:hover span { text-decoration-thickness: 2px; }

.code-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 2px dashed var(--ink);
             border-radius: 8px; padding: 2px 4px 2px 10px; vertical-align: middle; }
.code-chip code { font: 700 17px/1.2 ui-monospace, "Cascadia Mono", Menlo, monospace; letter-spacing: .04em; direction: ltr; }
.copy { min-height: 36px; padding: 0 12px; border-radius: 6px; border: 0; background: var(--ink); color: var(--cream);
        font: 700 14px/1 var(--text); cursor: pointer; }
.copy:hover { background: var(--plum); }
.copy:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.coupon { margin-top: 16px; background: #FFF4C8; border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; font-size: 16px; }
.coupon-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-weight: 700; }
.coupon-how { font-size: 14px; color: var(--muted); }
.cart-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-weight: 700; }
.deals { background: var(--paper); border-radius: 12px; padding: 4px 16px; max-width: 46em; }
.deals summary { cursor: pointer; font-weight: 700; padding: 12px 0; min-height: 44px; }
.deals[open] { padding-bottom: 16px; }
.cart-rows { list-style: none; display: grid; gap: 10px; margin: 4px 0 10px; }
.cart-rows li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.deals .btn { margin-top: 12px; min-height: 48px; }

/* ---------- 404 ---------- */
.lost { min-height: 100vh; }
.lost-body { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 80px; display: grid; justify-items: start; gap: 18px; }
.lost-body h1 { font-size: clamp(56px, 12vw, 110px); }
.lost-body p { font-size: 19px; max-width: 30em; }

/* ---------- motion ---------- */
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes rise { from { transform: translateY(42%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drop { 0% { translate: 0 -70px; rotate: -9deg; opacity: 0; } 60% { opacity: 1; } 100% { translate: 0 0; opacity: 1; } }
@keyframes bob { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-8px) rotate(2deg); } }
@keyframes swap-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes settle { 0% { translate: -40px 18px; rotate: -5deg; opacity: 0; } 55% { rotate: 1.6deg; opacity: 1; }
                    80% { rotate: -.6deg; } 100% { translate: 0 0; rotate: 0deg; opacity: 1; } }
@keyframes clip { from { transform: scaleY(.5); } to { transform: none; } }

.hero .line-1 { animation: rise 640ms var(--ease-out) 80ms both; }
.hero .line-2 { animation: rise 640ms var(--ease-out) 200ms both; }
.hero .block::before { animation: wipe 520ms var(--ease-out) 560ms both; }
.hero .lede { animation: rise 600ms var(--ease-out) 360ms both; }
.hero .paste { animation: rise 600ms var(--ease-out) 460ms both; }
.polaroid { animation: drop 900ms var(--ease-back) 300ms both; }

html.js-motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
html.js-motion [data-reveal].in { opacity: 1; transform: none; }
html.js-motion .checks li[data-reveal]:nth-child(2) { transition-delay: 90ms; }
html.js-motion .checks li[data-reveal]:nth-child(3) { transition-delay: 180ms; }
html.js-motion .checks li[data-reveal]:nth-child(4) { transition-delay: 270ms; }
html.js-motion .checks li[data-reveal].in:hover { transform: translateY(-4px) rotate(-.6deg); transition-delay: 0ms; }

.arrive { animation: settle 720ms var(--ease-out) both; }
.arrive.second { animation-delay: 140ms; }
.arrive .peg { animation: clip 240ms var(--ease-back) 420ms both; }
.arrive .save .mark::before { animation: wipe 480ms var(--ease-out) 700ms both; }
.verdict.arrive { animation: swap-in 380ms var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker-track { transform: none; }
  .pill:hover, .btn:hover, .checks li:hover { transform: none; }
}

/* ---------- the answer, 9.11 (Ofri: "something there doesn't work") ---------- */
/* the headline fits its column and breaks evenly (no lonely "בפחות" on a line of its own) */
.result .verdict h2 { font-size: clamp(40px, 6vw, 60px); line-height: .95; text-wrap: balance; }
.result .verdict p { text-wrap: pretty; }
/* one price story: the price, its saving next to it, one quiet line under them */
.result .price-line { align-items: center; gap: 8px 14px; margin-top: 6px; }
.result .price-line .save { margin: 0; font-size: inherit; }
.result .price-line .save .mark { font-size: 19px; padding: 7px 12px 6px; border-radius: 6px; overflow: hidden; }
.price-sub { margin-top: 6px; font-size: 15px; color: var(--muted); unicode-bidi: plaintext; }
.price-sub span { white-space: nowrap; }
.result .tag-top { align-items: start; }
/* the seller's code inside the card: a quiet row, not a third box */
.result .tag .coupon { background: none; border-top: 1px solid rgba(42, 21, 48, .12); border-radius: 0;
                       padding: 14px 0 0; margin-top: 16px; }
@media (max-width: 480px) {
  .result .tag-top { grid-template-columns: 68px minmax(0, 1fr); gap: 12px; }
  .result .tag-top img, .result .tag-top .noimg { width: 68px; height: 68px; }
  .result .price { font-size: 46px; }
}

/* ---------- the find: both on the laundry line (Ofri 9.11, direction א) ---------- */
.pair-card { margin-top: 18px; }
.pair-line { margin-top: 0; padding-top: 18px; }
.pair-line .rope { top: 4px; height: 26px; }
.pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 440px; margin: 0 auto; }
.pair.single { grid-template-columns: minmax(0, 220px); justify-content: center; }
.partial .coupon-row { max-width: 520px; margin-inline: auto; }
.partial-next { margin-top: 10px; }
.hang { position: relative; background: var(--paper); border-radius: 14px; padding: 24px 12px 16px; text-align: center; }
.hang .peg { top: -20px; }
.hang-img { background: #fff; border-radius: 10px; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; }
.hang-img img { width: 86%; height: 86%; object-fit: contain; }
.hang-img .noimg { width: 100%; height: 100%; background: var(--sand); }
.hang-who { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.hang-price { margin-top: 4px; font: 800 clamp(30px, 8vw, 40px)/1 var(--text); color: var(--plum); unicode-bidi: isolate; }
.hang-trust { margin-top: 6px; font-size: 13px; color: var(--muted); unicode-bidi: plaintext; }
.hang.hers { transform: rotate(-1.5deg); box-shadow: 0 12px 26px rgba(42, 21, 48, .14); }
.hang.theirs { background: var(--sand); transform: rotate(1.5deg); }
.hang.theirs .hang-price { color: var(--muted); font-size: clamp(26px, 6.6vw, 32px); }
.hang.struck .hang-price { text-decoration: line-through; text-decoration-thickness: 3px; }
.pair-save { margin: 24px auto 0; width: fit-content; background: var(--yellow); color: var(--ink);
             font: 800 clamp(22px, 5.6vw, 28px)/1 var(--text); padding: 10px 20px 9px; border-radius: 8px; unicode-bidi: plaintext; }
.pair-save.quiet { background: var(--sand); font-size: 18px; font-weight: 700; line-height: 1.3; max-width: 30em; text-align: center; }
.pair-sub { margin-top: 2px; text-align: center; font-size: 15px; color: var(--muted); }
.pair-sub span { white-space: nowrap; }
.pair-name { margin-top: 14px; text-align: center; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.pair-card .weak, .pair-card .notes { max-width: 520px; margin-inline: auto; }
.pair-card .buy, .pair-card .coupon-row, .pair-card .fold, .pair-foot { max-width: 520px; margin-inline: auto; }
.coupon-row { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px;
              background: var(--paper); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.coupon-row strong { display: block; }
.coupon-ends { display: block; font-size: 13px; color: var(--muted); }
.pair-card .buy { margin-top: 14px; gap: 4px; }
.pair-card .disclose { font-size: 13px; }
.pair-card .fold { margin-top: 8px; border-top: 1px solid rgba(42, 21, 48, .12); padding-top: 4px; }
.pair-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; }
.pair-foot .own-link { color: var(--plum); font-weight: 700; font-size: 15px; text-underline-offset: 3px; min-height: 44px;
                       display: inline-flex; align-items: center; }
.pair-foot .bad { justify-self: auto; }
.codes-fold { background: var(--sand); border-radius: 14px; padding: 0 18px; }
.codes-fold > summary { cursor: pointer; list-style: none; min-height: 52px; display: flex; align-items: center;
                        justify-content: space-between; font-weight: 700; font-size: 16px; }
.codes-fold > summary::-webkit-details-marker { display: none; }
.codes-fold > summary::after { content: "+"; font: 400 22px/1 var(--text); color: var(--plum); transition: transform 200ms var(--ease-out); }
.codes-fold[open] > summary::after { transform: rotate(45deg); }
.codes-fold[open] { padding-bottom: 14px; }
.codes-fold .cart-line { font-size: 16px; }
.codes-fold .deals { max-width: none; background: none; padding: 0; margin-top: 6px; }
@media (min-width: 760px) { .pair { gap: 28px; } .hang { padding: 26px 18px 18px; } }

/* The final price to the door: one calm row under the price story (FINAL_PRICE) */
.final-row { margin: 14px auto 0; max-width: 520px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
             gap: 2px 10px; background: var(--paper); border: 2px solid var(--yellow); border-radius: 12px; padding: 10px 14px; }
.final-label { font-size: 16px; font-weight: 700; }
.final-price { font: 800 26px/1.1 var(--text); color: var(--plum); unicode-bidi: isolate; }
.final-parts { flex-basis: 100%; text-align: center; font-size: 14px; color: var(--muted); }
.tag .final-row { margin-inline: 0; justify-content: flex-start; }
.tag .final-parts { text-align: start; }

/* Price alert link (10.11): calm, one line under the answer, same quiet button as the rest. */
.after .watch-line { margin: 12px 0 0; text-align: center; }
.after .watch-line .btn { width: 100%; }

/* Share the result (board #67): one row under the answer; on /r/<token> a short note above it. */
.share-row { text-align: center; }
.share-lead { margin: 0 0 8px; font-size: 16px; color: var(--muted); }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-actions .btn { min-height: 48px; font-size: 16px; padding: 0 10px; text-align: center; }
.shared-note { margin: 0 0 14px; font-size: 16px; color: var(--muted); text-align: center; }

/* Search by name: three picks, each with one line on why */
.pick-why { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.result .buy .full-check { min-height: 44px; font-size: 15px; margin-top: 4px; }

/* ---------- polish 11.11 ---------- */
/* Focus on light grounds is plum (yellow on cream is under 3:1); the plum/ink bands keep the yellow ring. */
body :focus-visible { outline-color: var(--plum); }
.hero-field :focus-visible, .ticker :focus-visible, .telegram :focus-visible, .foot :focus-visible,
.lost :focus-visible { outline-color: var(--yellow); }
.a11y-toggle:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* The box is RTL while it shows the Hebrew placeholder, LTR once a link is in it; a long placeholder never cuts mid-word. */
.field input:placeholder-shown { direction: rtl; text-align: right; text-overflow: ellipsis; }
@media (max-width: 420px) { .field input { padding: 14px 12px; font-size: 17px; } .field .pill { padding: 0 22px; } }
/* Text pages: the footer row keeps its gaps, the contact line sits with it. */
.doc h1 { text-wrap: balance; }
.doc .doc-sub { margin-top: 14px; color: var(--muted); font-size: 17px; }
.foot-name { overflow: hidden; padding-inline: .02em; }
/* Calm hero (Ofri 11.11 "too busy"): the field label is for screen readers, the placeholder says it on screen. */
.paste label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- accessibility menu (a11y.js) ---------- */
.a11y { position: fixed; z-index: 40; bottom: 16px; inset-inline-end: 16px; display: flex; flex-direction: column;
        align-items: flex-end; gap: 10px; font: 400 16px/1.4 var(--text); }
.a11y-toggle { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--cream); background: var(--plum);
               color: var(--cream); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(20, 6, 26, .3); }
.a11y-toggle svg { fill: currentColor; }
.a11y-toggle:hover { background: var(--plum-step); }
.a11y-panel { width: min(300px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); border-radius: 18px;
              padding: 14px; box-shadow: 0 18px 44px rgba(20, 6, 26, .35); border: 1px solid var(--sand); }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
.a11y-title { font: 700 30px/1 var(--display); color: var(--plum); }
.a11y-title:focus { outline: none; }
.a11y-close { width: 44px; height: 44px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--ink); cursor: pointer; border-radius: 50%; }
.a11y-close:hover { background: var(--sand); }
.a11y-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.a11y-opt { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
            padding: 0 14px; border-radius: 12px; border: 2px solid var(--sand); background: var(--cream); color: var(--ink);
            font: 500 16px/1.2 var(--text); text-align: start; cursor: pointer; }
.a11y-opt:hover { border-color: var(--plum); }
.a11y-opt.on { background: var(--plum); border-color: var(--plum); color: var(--cream); }
.a11y-mark { font-weight: 700; min-width: 2.4em; text-align: end; unicode-bidi: isolate; }
.a11y-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 0 4px; }
.a11y-reset { min-height: 44px; border: 0; background: none; padding: 0 4px; font: 700 16px/1 var(--text); color: var(--plum);
              text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.a11y-link { color: var(--plum); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 3px; }
@media print { .a11y { display: none; } }

/* the options */
html.a11y-text-1 body > :not(.a11y) { zoom: 1.15; }
html.a11y-text-2 body > :not(.a11y) { zoom: 1.3; }
html.a11y-contrast { --muted: #2A1530; --on-plum-soft: #FFFFFF; --cream: #FFFFFF; --paper: #FFFFFF; --sand: #8A7A90; --plum: #3A0F4C; }
html.a11y-contrast .hint, html.a11y-contrast .foot { color: #FFFFFF; }
html.a11y-contrast .field, html.a11y-contrast .checks li, html.a11y-contrast details { outline: 2px solid var(--ink); }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; }
html.a11y-links a:not(.pill):not(.btn) { background: var(--yellow); color: var(--ink) !important; }
html.a11y-font { --display: "Rubik", "Arial Hebrew", Arial, sans-serif; }
html.a11y-font .display, html.a11y-font .doc h1 { letter-spacing: 0; line-height: 1.05; }
html.a11y-spacing body { line-height: 1.9; letter-spacing: .02em; word-spacing: .1em; }
html.a11y-spacing p, html.a11y-spacing li { line-height: 1.9 !important; }
html.a11y-motion { scroll-behavior: auto; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; }
html.a11y-motion .ticker-track { transform: none; }
html.a11y-motion [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ---------- add to home screen (home.js, 11.11) ---------- */
.foot-home { background: none; border: 0; padding: 10px 0; color: var(--cream); font: inherit; text-decoration: underline;
             text-underline-offset: 3px; cursor: pointer; }
.foot-home[hidden] { display: none; }
.home-sheet { position: fixed; z-index: 50; inset-inline: 0; bottom: 0; padding: 0 12px calc(12px + env(safe-area-inset-bottom));
              transform: translateY(110%); transition: transform .26s var(--ease-out); pointer-events: none; }
.home-sheet.in { transform: none; pointer-events: auto; }
.home-card { max-width: 460px; margin: 0 auto; background: var(--paper); color: var(--ink); border-radius: 22px; padding: 16px 16px 8px;
             border: 1px solid var(--sand); box-shadow: 0 -6px 40px rgba(20, 6, 26, .32); font: 400 16px/1.45 var(--text); }
.home-head { display: flex; align-items: center; gap: 12px; }
.home-app { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: 0 3px 10px rgba(20, 6, 26, .25); }
.home-head > div { flex: 1; min-width: 0; }
.home-title { margin: 0; font: 700 32px/1 var(--display); color: var(--plum); }
.home-title:focus { outline: none; }
.home-sub { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.home-x { align-self: flex-start; width: 44px; height: 44px; margin: -6px 0 0; margin-inline-end: -6px; border: 0; background: none; border-radius: 50%;
          font-size: 28px; line-height: 1; color: var(--ink); cursor: pointer; flex: none; }
.home-x:hover { background: var(--sand); }
.home-go { width: 100%; min-height: 52px; margin-top: 14px; font-size: 18px; }
.home-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.home-step { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--cream); border-radius: 14px; }
.home-num { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--plum);
            color: var(--cream); font-weight: 700; font-size: 15px; }
.home-step-text { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-weight: 500; }
.home-step-text small { flex-basis: 100%; font-size: 13px; font-weight: 400; color: var(--muted); }
.home-ico { flex: none; fill: none; stroke: #0A84FF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-later { display: block; margin: 6px auto 0; min-height: 44px; padding: 0 16px; border: 0; background: none;
              font: 500 15px/1 var(--text); color: var(--muted); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .home-sheet { transition: none; } }
html.a11y-motion .home-sheet { transition: none; }
@media print { .home-sheet { display: none; } }
/* Opened from the home screen: the status bar sits over the page (black-translucent), so the page starts under it. */
@media (display-mode: standalone) { html { background: var(--plum); } body { margin-top: env(safe-area-inset-top); } }
/* The offline page the service worker shows (sw.js). */
body.offline { min-height: 100vh; margin: 0; display: grid; place-items: center; background: var(--plum); color: var(--cream);
               font: 400 18px/1.5 var(--text); text-align: center; padding: 24px; }
.offline-box img { border-radius: 22px; }
.offline-box h1 { font-size: 52px; margin: 18px 0 6px; }
.offline-box .pill { margin-top: 18px; }

/* ---------- go-public fixes 13.11 ---------- */
/* The cards "settle" in from 40px to the side. In RTL the left card left the screen for a moment, the page grew wider,
   and a phone kept the view panned sideways after the answer (seen at 390px, after the similar answer). Clip it here:
   main is not the viewport, so nothing else changes and the pegs above the line stay visible. */
main { overflow-x: clip; }
@supports not (overflow-x: clip) { main { overflow-x: hidden; } }  /* iOS 15 and older */
/* The accessibility button lives in the header (a11y.js); the floating one stays only on a page without a header. */
.bar-end { display: flex; align-items: center; gap: 12px; }
.a11y-toggle.in-bar { width: 44px; height: 44px; flex: none; margin-inline-end: 2px; box-shadow: none; border-color: currentColor; }
.a11y-toggle.in-bar svg { width: 24px; height: 24px; }
.a11y.from-bar { position: absolute; top: 72px; bottom: auto; }
.a11y.from-bar .a11y-panel { box-shadow: 0 16px 40px rgba(20, 6, 26, .28); }
.bar .pill { white-space: nowrap; }
@media (max-width: 420px) {
  .bar { gap: 10px; }
  .bar .pill { padding: 0 16px; font-size: 16px; min-height: 44px; }
  .brand { font-size: 21px; }
  .brand img { width: 36px; height: 36px; }
}
@media (max-width: 340px) { .brand span { display: none; } }
