/* ─────────────────────────────────────────────────────────────
   The owner guide (/bot/guide/, tools/guide/build.mjs): a drawing of the dashboard phone with a key per room, the first
   route, a search, and a sheet per task with a short video of the real screen, «פתחו לי את זה» and the chat sentence.
   family.css brings the faces and the day's tokens; the night is set here (family.css has none). guide.js draws the rest.
   ───────────────────────────────────────────────────────────── */
:root {
  --page: #fbf9f3; --sheet: #fffdf7; --ivory: #f6f0df; --ink: #1b1a17; --ink-2: #2b2925; --ink-soft: #57534a;
  --yellow: #ffe81a; --hair: rgba(27, 26, 23, 0.14); --line: rgba(27, 26, 23, 0.32);
  --bezel: #161512; --screen: #fbf9f3; --tile: #fffdf7; --tile-line: rgba(27, 26, 23, 0.15); --bar: #fffdf7; --stage: #efe9da;
  --glow: rgba(255, 232, 26, 0.34); --wa-bubble: #d9fdd3; --wa-ink: #111b21; --wa-icon: #008069;
  --shadow-hard: 3px 4px 0 rgba(27, 26, 23, 0.86); --shadow-key: 2px 3px 0 rgba(27, 26, 23, 0.86);
  --card-shadow: 0 12px 28px rgba(27, 26, 23, 0.08), 4px 5px 0 rgba(27, 26, 23, 0.14); --tile-shadow: 0 6px 16px rgba(27, 26, 23, 0.06);
  --phone-shadow: 0 34px 60px -18px rgba(27, 26, 23, 0.32), 12px 14px 0 rgba(27, 26, 23, 0.09);
  --leaf: 30px 8px 30px 8px; --leaf-sm: 19px 6px 19px 6px;
  --f-display: "Suez One", Georgia, serif; --f-body: "Varela Round", system-ui, sans-serif; --f-ui: "Secular One", system-ui, sans-serif;
  --gut: 16px;
  color-scheme: light;
}
/* the night: a warm dark room where the phone is the lamp */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #1b1a17; --sheet: #24221e; --ivory: #2e2b25; --ink: #f6f0df; --ink-2: #e6dfcc; --ink-soft: #bdb5a1;
    --hair: rgba(246, 240, 223, 0.13); --line: rgba(246, 240, 223, 0.3);
    --bezel: #0b0a09; --screen: #23211d; --tile: #2e2b25; --tile-line: rgba(246, 240, 223, 0.1); --bar: #2e2b25; --stage: #2e2b25;
    --glow: rgba(255, 220, 90, 0.3); --wa-bubble: #005c4b; --wa-ink: #e9edef; --wa-icon: #7ee2c5;
    --shadow-hard: 3px 4px 0 rgba(0, 0, 0, 0.55); --shadow-key: 2px 3px 0 rgba(0, 0, 0, 0.5);
    --card-shadow: 0 16px 34px rgba(0, 0, 0, 0.35); --tile-shadow: none;
    --phone-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(246, 240, 223, 0.09);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #1b1a17; --sheet: #24221e; --ivory: #2e2b25; --ink: #f6f0df; --ink-2: #e6dfcc; --ink-soft: #bdb5a1;
  --hair: rgba(246, 240, 223, 0.13); --line: rgba(246, 240, 223, 0.3);
  --bezel: #0b0a09; --screen: #23211d; --tile: #2e2b25; --tile-line: rgba(246, 240, 223, 0.1); --bar: #2e2b25; --stage: #2e2b25;
  --glow: rgba(255, 220, 90, 0.3); --wa-bubble: #005c4b; --wa-ink: #e9edef; --wa-icon: #7ee2c5;
  --shadow-hard: 3px 4px 0 rgba(0, 0, 0, 0.55); --shadow-key: 2px 3px 0 rgba(0, 0, 0, 0.5);
  --card-shadow: 0 16px 34px rgba(0, 0, 0, 0.35); --tile-shadow: none;
  --phone-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(246, 240, 223, 0.09);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html:has(dialog[open]) { overflow: hidden; }
body { position: relative; margin: 0; min-height: 100vh; background: var(--page); color: var(--ink); font: 17px/1.6 var(--f-body); font-synthesis: none; -webkit-font-smoothing: antialiased; }
main { display: block; overflow-x: clip; }   /* the phone's glow may spill; clip, not hidden, so the sticky phone still sticks */
main:focus { outline: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 400; line-height: 1.1; letter-spacing: 0; text-wrap: balance; }
p { margin: 0; }
p, li { text-wrap: pretty; }
button { margin: 0; padding: 0; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
b, strong { font-family: var(--f-ui); font-weight: 400; }
mark { color: inherit; padding: 0 0.06em; background: linear-gradient(176deg, transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.icon { display: inline-block; width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon--fill { fill: currentColor; stroke: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nb { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--yellow); color: #1b1a17; }
.skip { position: absolute; z-index: 50; top: 8px; inset-inline-start: 8px; padding: 10px 16px; border-radius: 12px; background: var(--yellow); color: #1b1a17; font: 16px/1.2 var(--f-ui); transform: translateY(-160%); }
.skip:focus { transform: none; }

/* a printed key you press into its shadow (family.css .btn) */
.key { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 12px 24px; border: 2px solid #1b1a17; border-radius: var(--leaf-sm);
  background: var(--yellow); color: #1b1a17; font: 19px/1.2 var(--f-ui); text-decoration: none; box-shadow: var(--shadow-hard); transition: transform 0.14s ease, box-shadow 0.14s ease; }
.key:hover { transform: translate(-1px, -2px); box-shadow: 4px 6px 0 rgba(27, 26, 23, 0.86); }
.key:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 rgba(27, 26, 23, 0.86); }
.key .icon { width: 21px; height: 21px; stroke-width: 2.2; }

/* ── the top: the guide's name, the first route's dial, and the way to the dashboard ── */
.top { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; width: min(100% - 2 * var(--gut), 1180px); margin: 0 auto; padding: 12px 0 6px; }
.g-brand { display: flex; align-items: center; gap: 9px; margin-inline-end: auto; color: var(--ink); text-decoration: none; }
.g-brand img { width: 38px; height: 38px; flex: none; }
.g-brand__txt { display: grid; line-height: 1; }
.g-brand__t { font: 22px/1.05 var(--f-display); }
.g-brand__by { margin-top: 3px; font: 12.5px/1.2 var(--f-ui); color: var(--ink-soft); white-space: nowrap; }
.learned { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--ink); text-decoration: none; }
.dial { width: 44px; height: 44px; overflow: visible; }
/* the logo's dial (logo-mark.svg, viewBox 256): a hole per step of the first route, the seventh is the flag's */
.dial__body { fill: none; stroke: var(--ink); stroke-width: 14; stroke-linejoin: round; stroke-linecap: round; }
.dial__hub { fill: none; stroke: var(--ink); stroke-width: 10; }
.dial__hole { fill: transparent; stroke: var(--ink); stroke-width: 9; transition: fill 0.3s ease, stroke 0.3s ease; }
.dial__hole.is-on { fill: var(--yellow); stroke: var(--ink); }
.dial__hole.is-flag { stroke-dasharray: 9 8; }
.dial__hole.is-flag.is-on { stroke-dasharray: none; }
.cheer { position: absolute; z-index: 5; top: calc(100% + 6px); left: 50%; padding: 7px 13px; border-radius: 16px; background: var(--yellow); color: #1b1a17; font: 15px/1.2 var(--f-ui); white-space: nowrap;
  box-shadow: 2px 3px 0 rgba(27, 26, 23, 0.85); opacity: 0; pointer-events: none; transform: translate(-50%, -6px) scale(0.9); transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1); }
.cheer.is-on { opacity: 1; transform: translate(-50%, 0); }
.spark { position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); pointer-events: none; }
.spark:nth-child(3n) { width: 4px; height: 10px; border-radius: 2px; background: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--sheet); color: var(--ink);
  font: 15px/1 var(--f-ui); text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-key); }
.chip .icon { width: 18px; height: 18px; }

/* ── one question, one field ── */
.hero { position: relative; z-index: 4; width: min(100% - 2 * var(--gut), 600px); margin: 0 auto; padding-top: 14px; text-align: center; }
.hero h1 { font-size: clamp(36px, 9vw, 52px); }
.promise { margin-top: 8px; font: 18px/1.45 var(--f-ui); color: var(--ink-2); }
.find { position: relative; margin-top: 16px; text-align: start; }
.find input { width: 100%; min-height: 58px; padding: 10px 52px 10px 16px; border: 2px solid var(--ink); border-radius: var(--leaf-sm); background: var(--sheet); color: var(--ink);
  font: 18px/1.3 var(--f-body); box-shadow: var(--shadow-hard); appearance: none; -webkit-appearance: none; }
.find input::placeholder { color: var(--ink-soft); opacity: 0.85; }
.find input:focus { outline: none; box-shadow: var(--shadow-hard), 0 0 0 5px var(--glow); }
.find input::-webkit-search-cancel-button { -webkit-appearance: none; }
.find__ic { position: absolute; top: 50%; right: 16px; width: 24px; height: 24px; translate: 0 -50%; pointer-events: none; }
.hits { position: absolute; z-index: 30; top: calc(100% + 10px); inset-inline: 0; max-height: min(430px, 62vh); margin: 0; padding: 6px; overflow: auto; list-style: none;
  background: var(--sheet); border: 2px solid var(--ink); border-radius: var(--leaf-sm); box-shadow: var(--card-shadow); }
.hits__t { padding: 6px 10px 2px; font: 13.5px/1.3 var(--f-ui); color: var(--ink-soft); }
.hit { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "ic t" "ic p"; column-gap: 12px; align-items: center; padding: 9px 10px; border-radius: 15px 5px 15px 5px; cursor: pointer; }
.hit[aria-selected="true"], .hit:hover { background: var(--ivory); }
.hit__ic { grid-area: ic; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: #1b1a17; border: 1.5px solid #1b1a17; }
.hit__ic .icon { width: 20px; height: 20px; }
.hit__t { grid-area: t; font: 16.5px/1.3 var(--f-ui); }
.hit__p { grid-area: p; font-size: 13.5px; line-height: 1.35; color: var(--ink-soft); }
.hit--ask { grid-template-areas: "ic t"; }
.hit--ask .hit__ic { background: var(--wa-bubble); color: var(--wa-icon); border-color: transparent; }
.hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font: 15.5px/1.3 var(--f-ui); color: var(--ink-soft); }
.hint .icon { width: 18px; height: 18px; }

/* ── the stage: the phone in the middle, the first route and the chat beside it ── */
.stage { position: relative; z-index: 1; display: grid; grid-template-areas: "map" "route" "write"; justify-items: center; gap: 56px; width: min(100% - 2 * var(--gut), 1180px); margin: 14px auto 0; }
.map { grid-area: map; position: relative; width: min(100%, 344px); scroll-margin-top: 12px; }
.route { grid-area: route; width: min(100%, 520px); scroll-margin-top: 12px; }
.write { grid-area: write; width: min(100%, 520px); }

/* the phone, drawn: dark bezel, cream screen, the dashboard's own keys at its foot; at night its light is the room's */
.map::before { content: ""; position: absolute; z-index: -1; inset: 6% -26% 0; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.phone { position: relative; padding: 8px; border-radius: 50px; background: var(--bezel); box-shadow: var(--phone-shadow); }
.screen { position: relative; display: flex; flex-direction: column; height: 560px; overflow: hidden; border-radius: 42px; background: var(--screen); isolation: isolate; }
.island { position: absolute; z-index: 4; top: 11px; left: 50%; width: 88px; height: 24px; border-radius: 999px; background: var(--bezel); translate: -50% 0; }
.room { display: flex; flex: 1; min-height: 0; flex-direction: column; padding: 48px 14px 0; }
.room__t { font-size: 28px; }
.room__line { margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--ink-soft); }
.tiles { display: grid; flex: 1; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: min-content; align-content: start; gap: 9px; margin: 14px -4px 0; padding: 4px 4px 14px; overflow-y: auto; list-style: none; scrollbar-width: none; }
.tiles::-webkit-scrollbar { display: none; }
.tiles > li { min-width: 0; animation: tile-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 60ms both; }
.tiles > li:nth-child(2) { animation-delay: 120ms; } .tiles > li:nth-child(3) { animation-delay: 180ms; } .tiles > li:nth-child(4) { animation-delay: 240ms; }
.tiles > li:nth-child(5) { animation-delay: 300ms; } .tiles > li:nth-child(6) { animation-delay: 360ms; } .tiles > li:nth-child(n+7) { animation-delay: 420ms; }
.tiles > li.wide { grid-column: 1 / -1; }
@keyframes tile-in { from { opacity: 0; transform: translateY(20px) scale(0.95); } }
.tile { position: relative; display: flex; color: inherit; text-decoration: none; flex-direction: column; align-items: flex-start; gap: 7px; width: 100%; height: 100%; padding: 11px 12px 12px; text-align: start;
  background: var(--tile); border: 1.5px solid var(--tile-line); border-radius: 20px 7px 20px 7px; box-shadow: var(--tile-shadow); transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease; }
.tile:hover { border-color: var(--ink); box-shadow: var(--shadow-key); transform: translate(-1px, -1px); }
.tile:active { transform: scale(0.97); }
.tile__obj { width: auto; height: 34px; }
.tile__t { font: 14.5px/1.24 var(--f-ui); }
.tile__play { position: absolute; top: 9px; inset-inline-end: 9px; display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid #1b1a17; border-radius: 50%; background: var(--yellow); color: #1b1a17; }
.tile__play .icon { width: 11px; height: 11px; }
.tile.done .tile__play { background: var(--sheet); }
.tile--wide { flex-direction: row; align-items: center; gap: 12px; padding-block: 12px; padding-inline: 14px 46px; }
.tile--wide .tile__obj { height: 44px; }
.tile--wide .tile__t { font-size: 16px; }
.tile--wide .tile__play { top: 50%; translate: 0 -50%; inset-inline-end: 12px; }
/* «עוד בחלק הזה»: the rest of the room, a door rather than a card */
.tile--more { flex-direction: row; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 14px; background: transparent; border: 2px dashed var(--line); box-shadow: none; font: 15px/1.2 var(--f-ui); }
.tile--more:hover { border-style: solid; }
.tile--more .icon { width: 18px; height: 18px; }
.tile.ping, .pill.ping { border-color: var(--ink); animation: ping 1.1s ease-out 2; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 232, 26, 0.95), var(--shadow-key); } 100% { box-shadow: 0 0 0 16px rgba(255, 232, 26, 0), var(--shadow-key); } }

/* the whole room, in groups: each thing an object of its own, never a striped list */
.more { flex: 1; min-height: 0; margin: 10px -4px 0; padding: 0 4px 16px; overflow-y: auto; scrollbar-width: none; }
.more::-webkit-scrollbar { display: none; }
.more__back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 2px; font: 14.5px/1 var(--f-ui); color: var(--ink-2); }
.more__back .icon { width: 17px; height: 17px; }
.grp { margin-top: 12px; padding: 10px 10px 12px; border-radius: 18px 6px 18px 6px; background: var(--ivory); scroll-margin-top: 8px; }
.grp.is-here { box-shadow: 0 0 0 3px var(--yellow); }
.grp__t { display: flex; align-items: center; gap: 7px; font: 15px/1.25 var(--f-ui); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.pill { display: inline-flex; color: inherit; text-decoration: none; align-items: center; gap: 5px; min-height: 36px; padding: 6px 11px; border: 1.5px solid var(--tile-line); border-radius: 999px; background: var(--tile); font: 13.5px/1.25 var(--f-ui); text-align: start; }
.pill:hover { border-color: var(--ink); }
.pill .icon { width: 12px; height: 12px; color: var(--ink-soft); }
.pill.done { border-color: var(--yellow); }

.bar { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0 8px 8px; padding: 4px 2px; border-radius: 30px; background: var(--bar);
  box-shadow: 0 10px 24px rgba(27, 26, 23, 0.13), 0 0 0 1px var(--tile-line); }
.bar button { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 58px; padding: 2px 0; color: var(--ink-soft); font: 12px/1.15 var(--f-ui); border-radius: 22px; }
.bar button:hover { color: var(--ink); }
.bar__ic { display: grid; place-items: center; width: 42px; height: 28px; border: 2px solid transparent; border-radius: 999px; transition: background 0.2s ease; }
.bar__ic .icon { width: 21px; height: 21px; }
.bar button[aria-selected="true"] { color: var(--ink); }
.bar button[aria-selected="true"] .bar__ic { background: var(--yellow); color: #1b1a17; border-color: #1b1a17; box-shadow: var(--shadow-key); animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes pop { from { transform: scale(0.6); } }
.bar button:focus-visible { outline-offset: -2px; }
/* the room lights up from its key */
.light { position: absolute; z-index: 2; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(90% 70% at var(--lx, 85%) 100%, rgba(255, 232, 26, 0.42), rgba(255, 232, 26, 0) 70%); }
.screen.lit .light { animation: lit 1s ease-out; }
@keyframes lit { 20% { opacity: 1; } 100% { opacity: 0; } }
/* the first visit only: a hand comes down onto «הבוט» from above (its name below stays readable) and presses twice */
.hintf { position: absolute; z-index: 5; bottom: 56px; left: 75%; width: 30px; pointer-events: none; opacity: 0; transform: translate(-44%, -30px) scaleY(-1); }
.hintf svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 -4px 4px rgba(0, 0, 0, 0.24)); }
.hintf.on { animation: hint 2.6s ease-in-out 2; }
.hintr { position: absolute; z-index: 4; bottom: 34px; left: 75%; width: 44px; height: 44px; margin-left: -22px; border: 3px solid var(--yellow); border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(27, 26, 23, 0.6); opacity: 0; pointer-events: none; }
.hintf.on + .hintr { animation: hint-ring 2.6s ease-out 2; }
@keyframes hint { 0% { opacity: 0; transform: translate(-44%, -40px) scaleY(-1); } 24%, 30% { opacity: 1; transform: translate(-44%, 0) scaleY(-1); } 36% { transform: translate(-44%, 2px) scale(0.86, -0.86); } 44%, 78% { opacity: 1; transform: translate(-44%, 0) scaleY(-1); } 100% { opacity: 0; transform: translate(-44%, -18px) scaleY(-1); } }
@keyframes hint-ring { 0%, 34% { opacity: 0; transform: scale(0.4); } 38% { opacity: 1; } 70%, 100% { opacity: 0; transform: scale(1.5); } }

/* ── the first route: a road with six stops and the flag ── */
.route h2, .write h2 { font-size: clamp(28px, 6.4vw, 34px); }
.route__lead, .write__lead { margin-top: 6px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.road { position: relative; margin-top: 14px; }
.road__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.road__base { fill: none; stroke: var(--ink); stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; }
.road__mid { fill: none; stroke: var(--page); stroke-width: 2.5; stroke-dasharray: 9 11; stroke-linecap: round; opacity: 0.85; }
.stops { position: relative; display: grid; margin: 0; padding: 26px 0 0; list-style: none; }
.stop { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; min-height: 96px; }
.stop__dot { position: relative; z-index: 1; display: grid; place-items: center; justify-self: start; width: 56px; height: 56px; border: 2.5px solid var(--ink); border-radius: 50%;
  background: var(--sheet); color: var(--ink); font: 21px/1 var(--f-ui); box-shadow: var(--shadow-key); transition: background 0.2s ease; }
.stop--b .stop__dot { justify-self: end; margin-inline-end: 4px; }
.stop__dot .icon { display: none; width: 26px; height: 26px; stroke-width: 3; }
.stop.done .stop__dot { background: var(--yellow); color: #1b1a17; border-color: #1b1a17; }
.stop.done .stop__dot .icon { display: block; }
.stop.done .stop__dot .n { display: none; }
.stop.pop .stop__dot { animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
.stop__body { display: grid; justify-items: start; gap: 4px; min-width: 0; padding: 6px 0; }
.stop__go { display: grid; color: inherit; text-decoration: none; justify-items: start; gap: 6px; padding: 4px 6px; text-align: start; border-radius: 14px; }
.stop__t { font: 17px/1.3 var(--f-ui); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: 5px; transition: text-decoration-color 0.15s ease; }
.stop__go:hover .stop__t { text-decoration-color: var(--yellow); }
.stop.done .stop__t { color: var(--ink-soft); }
.stop__where { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 2px 8px; border-radius: 999px; background: var(--ivory); color: var(--ink-2); font: 13px/1.4 var(--f-ui); }
.stop__where .icon { width: 15px; height: 15px; }
.stop__also { padding-inline-start: 6px; font-size: 14px; line-height: 1.4; color: var(--ink-soft); }
.stop__also a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; color: var(--ink-2); }
.stop__also a:hover { text-decoration-color: var(--yellow); }
.flag { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: end; padding-top: 4px; }
.flag__pin { justify-self: start; width: 64px; height: 84px; margin-inline-start: 2px; overflow: visible; transform: scaleX(-1); }   /* the cloth points at the words */
.flag__pole { stroke: var(--ink); }
.flag__cloth { transform-origin: 18px 12px; }
.route.all .flag__cloth { animation: wave 1.4s ease-in-out infinite; }
@keyframes wave { 50% { transform: skewY(-7deg) scaleX(0.9); } }
.flag__go { display: grid; color: inherit; text-decoration: none; justify-items: start; gap: 6px; padding: 0 6px 10px; text-align: start; }
.flag__t { font: 20px/1.3 var(--f-display); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.flag__go:hover .flag__t { text-decoration-color: var(--yellow); }

/* ── or just write it: the same change, in the owner's own WhatsApp bubbles, each one a link that sends it ── */
.chat { display: grid; gap: 9px; margin-top: 16px; padding: 18px 16px 20px; border-radius: var(--leaf-sm); background: var(--ivory); }
.wab { position: relative; display: flex; align-items: flex-end; gap: 10px; width: fit-content; max-width: 92%; padding: 10px 12px 10px 14px; border-radius: 14px 14px 14px 4px;
  background: var(--wa-bubble); color: var(--wa-ink); text-decoration: none; font: 16px/1.45 var(--f-body); box-shadow: 0 1px 1px rgba(11, 20, 26, 0.13); transition: transform 0.15s ease; }
.wab:hover { transform: translateY(-1px); }
.wab .icon { width: 20px; height: 20px; margin-bottom: 1px; color: var(--wa-icon); transform: scaleX(-1); }
.chat .wab { justify-self: end; animation: bub-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 300ms both; }
.chat .wab:nth-child(2) { animation-delay: 440ms; } .chat .wab:nth-child(n+3) { animation-delay: 580ms; }
@keyframes bub-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
.write__first { margin-top: 12px; font-size: 15px; }
.write__first a { font: 15px/1.3 var(--f-ui); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }

.foot { position: relative; z-index: 1; width: min(100% - 2 * var(--gut), 1180px); margin: 64px auto 0; padding: 22px 0 40px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--ink-soft); }

/* ── the sheet: where it is, the video, the steps, «פתחו לי את זה», and the chat sentence ── */
.sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: calc(100dvh - 16px); margin: 0; padding: 0; overflow: auto; overscroll-behavior: contain;
  color: var(--ink); background: var(--sheet); border: 0; border-radius: 30px 30px 0 0; box-shadow: 0 -18px 50px rgba(27, 26, 23, 0.22); }
.sheet::backdrop { background: rgba(27, 26, 23, 0.46); }
.sheet[open] { animation: sheet-up 0.42s cubic-bezier(0.2, 0.85, 0.2, 1); }
.sheet[open]::backdrop { animation: fade 0.3s ease; }
@keyframes sheet-up { from { transform: translateY(70px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sh { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "where" "t" "vid" "steps" "go" "say" "done"; padding: 10px 16px 24px; }
.sh__grab { position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; border-radius: 999px; background: var(--line); translate: -50% 0; }
.sh__x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 6; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ivory); color: var(--ink); }
.where { grid-area: where; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 16px; padding-inline-end: 52px; font: 14.5px/1.35 var(--f-ui); color: var(--ink-2); }
.where__tab { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 3px 9px; border: 1.5px solid #1b1a17; border-radius: 999px; background: var(--yellow); color: #1b1a17; }
.where__tab .icon { width: 17px; height: 17px; }
.where__sep { color: var(--ink-soft); }
.sh__head { grid-area: t; margin: 10px 0 14px; }
.sh__t { font-size: clamp(25px, 6.6vw, 34px); line-height: 1.12; }
.sh__t:focus { outline: none; }
.sh__what { margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.sh__plan { display: inline-block; margin-top: 8px; padding: 3px 11px 2px; border-radius: 999px; background: var(--ivory); color: var(--ink-2); font: 13.5px/1.4 var(--f-ui); }

/* the video: the real screen on the sample data, a camera on the spot, a finger that taps, and the dashboard's own frame
   (app.css .is-marked: an ink line and a yellow pulse) */
.vid { grid-area: vid; margin: 0; min-width: 0; }
.vid__stage { position: relative; height: 300px; overflow: hidden; border-radius: 22px; background: var(--stage); isolation: isolate; }
.vid__stage::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--hair); pointer-events: none; }
.vid__layer { position: absolute; top: 0; left: 0; right: 0; width: min(100%, 390px); margin-inline: auto; aspect-ratio: 390 / 844; transition: transform 0.75s cubic-bezier(0.45, 0, 0.2, 1); will-change: transform; }
.vid__layer img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.45s ease; }
.vid__layer img.is-on { opacity: 1; }
.ring { position: absolute; z-index: 2; border-radius: 10px; outline: 3px solid #1b1a17; outline-offset: 3px; opacity: 0; transform: scale(1.05); pointer-events: none;
  transition: opacity 0.22s ease, transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.ring.is-on { opacity: 1; transform: none; animation: setting-mark 1.2s ease-out 2; }
.ring.is-still { opacity: 1; transform: none; animation: none; box-shadow: 0 0 0 7px rgba(255, 232, 26, 0.85); }
@keyframes setting-mark { from { box-shadow: 0 0 0 0 rgba(255, 232, 26, 0.95); } to { box-shadow: 0 0 0 18px rgba(255, 232, 26, 0); } }
.finger { position: absolute; z-index: 3; width: 46px; height: 46px; margin: -23px 0 0 -23px; opacity: 0; pointer-events: none;
  transition: left 0.62s cubic-bezier(0.3, 0.75, 0.25, 1), top 0.62s cubic-bezier(0.3, 0.75, 0.25, 1), opacity 0.3s ease; }
.finger.is-on { opacity: 1; }
.finger__dot { position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.5); border: 2px solid rgba(27, 26, 23, 0.55);
  box-shadow: 0 8px 20px rgba(27, 26, 23, 0.28), inset 0 0 0 7px rgba(255, 255, 255, 0.4); transition: transform 0.16s ease; }
.finger__wave { position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid rgba(27, 26, 23, 0.6); opacity: 0; }
.finger.is-press .finger__dot { transform: scale(0.8); }
.finger.is-press .finger__wave { animation: wave-out 0.64s ease-out; }
@keyframes wave-out { from { opacity: 0.75; transform: scale(0.7); } to { opacity: 0; transform: scale(2.4); } }
.finger.is-still { opacity: 1; }
.finger.is-still .finger__dot { transform: scale(0.88); }
.finger.is-still .finger__wave { opacity: 0.45; transform: scale(1.7); }
.pp { position: absolute; z-index: 5; bottom: 10px; left: 10px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 253, 247, 0.94); color: #1b1a17; box-shadow: 0 2px 10px rgba(27, 26, 23, 0.22); }
.pp .icon { width: 16px; height: 16px; }
.cap { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; min-height: 3.2em; margin-top: 12px; font: 17px/1.38 var(--f-ui); }
.cap__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: #1b1a17; font: 15px/1 var(--f-ui); }
.cap.flip { animation: cap-in 0.4s ease; }
@keyframes cap-in { from { opacity: 0; transform: translateY(6px); } }
/* without motion: the frames as numbered still steps */
.stills { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.still { display: grid; gap: 10px; }
.still .vid__stage { height: 260px; }
.still__say { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; font: 16.5px/1.38 var(--f-ui); }
/* no video: one picture from the guide's own screenshots */
.shot { display: grid; place-items: center; margin: 0; padding: 12px; border-radius: 22px; background: var(--stage); }
.shot img { width: auto; max-height: 380px; border-radius: 12px; box-shadow: 0 10px 24px rgba(27, 26, 23, 0.14); }

.steps { grid-area: steps; display: grid; gap: 4px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: s; }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 11px; width: 100%; padding: 8px 10px; border-radius: 14px; text-align: start; font-size: 16px; line-height: 1.5; color: var(--ink-2); transition: background 0.3s ease; counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); font: 14px/1 var(--f-ui); color: var(--ink); transition: background 0.3s ease, border-color 0.3s ease; }
button.step:hover { background: var(--ivory); }
.step.is-now { background: var(--ivory); color: var(--ink); }
.step.is-now::before { background: var(--yellow); border-color: var(--yellow); color: #1b1a17; }
.go { grid-area: go; display: grid; gap: 8px; margin-top: 18px; }
.go .key { width: 100%; min-height: 60px; font-size: 20px; }
.go__line { font-size: 14px; line-height: 1.4; color: var(--ink-soft); text-align: center; }
.say { grid-area: say; display: grid; justify-items: start; gap: 8px; margin-top: 18px; }
.say__t { font: 15px/1.3 var(--f-ui); color: var(--ink-soft); }
.say__note { font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.didit { grid-area: done; display: inline-flex; align-items: center; justify-self: start; gap: 8px; min-height: 44px; margin-top: 16px; padding: 7px 14px 6px 12px; border: 2px solid #1b1a17; border-radius: 999px;
  background: var(--yellow); color: #1b1a17; font: 15px/1 var(--f-ui); }
.didit .icon { width: 18px; height: 18px; stroke-width: 2.6; }
.didit small { font: 13px/1 var(--f-body); opacity: 0.75; }

/* ── a wide screen: the sheet is a card, its video a small phone beside the words ── */
@media (min-width: 760px) {
  .sheet { inset: 0; width: min(900px, calc(100% - 48px)); max-height: calc(100dvh - 40px); margin: auto; border: 2px solid var(--ink); border-radius: var(--leaf); box-shadow: var(--card-shadow); }
  .sheet[open] { animation: sheet-in 0.36s cubic-bezier(0.2, 0.85, 0.2, 1); }
  .sh { grid-template-columns: 288px minmax(0, 1fr); grid-template-rows: auto auto auto auto auto 1fr; grid-template-areas: "vid where" "vid t" "vid steps" "vid go" "vid say" "vid done"; column-gap: 40px; padding: 32px 36px 32px 40px; }
  .sh.novid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "where" "t" "vid" "steps" "go" "say" "done"; }
  .sh__grab { display: none; }
  .vid { align-self: start; }
  .sh:not(.novid) .vid__stage { height: auto; aspect-ratio: 390 / 844; border: 7px solid var(--bezel); border-radius: 40px; box-shadow: 0 18px 36px -10px rgba(27, 26, 23, 0.4); }
  .sh:not(.novid) .vid__stage::after { box-shadow: none; }
  .sh:not(.novid) .still .vid__stage { aspect-ratio: auto; height: 300px; }
  .where { margin-top: 4px; }
  .sh__head { margin: 12px 0 8px; }
  .sh__t { font-size: 36px; }
  .go { justify-items: start; }
  .go .key { width: auto; padding-inline: 30px; }
  .go__line { text-align: start; }
}
@keyframes sheet-in { from { transform: translateY(14px) scale(0.98); opacity: 0; } }
@media (min-width: 1040px) {
  .hero { padding-top: 8px; }
  .hero h1 { font-size: 50px; }
  .stage { grid-template-columns: minmax(0, 1fr) 372px minmax(0, 1fr); grid-template-areas: "route map write"; align-items: start; gap: 52px; margin-top: 18px; }
  .map { position: sticky; top: 16px; width: 372px; }
  .route, .write { width: 100%; max-width: 380px; padding-top: 4px; }
  .route { justify-self: start; }
  .write { justify-self: end; }
}

/* the night: the marked words glow instead of a highlighter stroke, and the phone throws a wider light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) mark { color: var(--yellow); background: none; }
  :root:not([data-theme="light"]) .map::before { inset: -4% -40% -6%; }
}
:root[data-theme="dark"] mark { color: var(--yellow); background: none; }
:root[data-theme="dark"] .map::before { inset: -4% -40% -6%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
