/* /guide: explainer page + tour on the real screens (owner request 2026-11-20). Same palette as app.css. */
:root {
  --bg: #f4f3ef; --surface: #fff; --ink: #1d2320; --muted: #5d6661; --line: #dedbd3;
  --brand: #1f2a24; --accent: #2f5d46; --ok-bg: #e4f0e7; --warn: #8a5a00; --warn-bg: #fbf0d9;
  --ring: #e0a030; --radius: 14px;
  --font: "Rubik", "Assistant", "Heebo", "Segoe UI", "Arial Hebrew", Arial, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
body.locked { overflow: hidden; }
[hidden] { display: none !important; }
a { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.topbar {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: var(--brand); color: #fff;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.topbar .brand img { border-radius: 8px; }
.top-link { color: #fff; opacity: .85; font-size: .95rem; }

main { max-width: 680px; margin: 0 auto; padding: 8px 16px 48px; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
.block { margin-top: 40px; }
.block > h2 { font-size: 1.45rem; margin-bottom: 12px; }
.sub { color: var(--muted); margin: -4px 0 14px; }

.hero { text-align: center; padding: 28px 0 4px; }
.hero-logo { border-radius: 30px; box-shadow: 0 12px 34px rgb(31 42 36 / .22); }
.hero h1 { font-size: clamp(1.9rem, 7vw, 2.5rem); margin-top: 18px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 36ch; margin: 10px auto 0; }
.hint { color: var(--muted); font-size: .9rem; margin: 12px 0 0; }
.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
}
.btn.big { min-height: 56px; padding: 0 28px; font-size: 1.1rem; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.block { width: 100%; margin-top: 16px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.card p { margin: 0; color: var(--muted); }
.grid3 { display: grid; gap: 10px; }
@media (min-width: 640px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.ic { font-size: 1.6rem; margin-bottom: 6px; }

.stats { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 14px 12px; text-align: center; }
.stat b { display: block; font-size: 1.25rem; }
.stat span { display: block; font-size: .85rem; opacity: .85; margin-top: 4px; line-height: 1.35; }

.switch { display: flex; background: #e9e6df; border-radius: 12px; padding: 4px; gap: 4px; }
.switch button { flex: 1; border: 0; background: transparent; border-radius: 9px; min-height: 44px; font-weight: 600; color: var(--muted); }
.switch button[aria-selected="true"], .switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / .1); }
.switch.small button { min-height: 36px; padding: 0 14px; }

.panel { margin-top: 16px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps > li {
  counter-increment: s; position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 60px 16px 16px;
}
.steps > li::before {
  content: counter(s); position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.steps h3 { font-size: 1.1rem; margin: 3px 0 4px; }
.steps p { margin: 0 0 6px; color: var(--muted); }
.steps ul { margin: 0 0 6px; padding-inline-start: 18px; color: var(--muted); }
.steps ul li { margin-bottom: 4px; }
.where { font-size: .9rem; color: var(--ink) !important; background: var(--bg); display: inline-block; padding: 2px 10px; border-radius: 8px; }
.show {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--accent); background: var(--ok-bg); color: var(--accent); border-radius: 999px; font-weight: 600; font-size: .95rem;
}
.show::before { content: "▶"; font-size: .7rem; }
.tips { margin-top: 12px; }
.tips ul { margin: 6px 0 0; padding-inline-start: 18px; color: var(--muted); }
.tips li { margin-bottom: 6px; }
.tips b { color: var(--ink); }

.features { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .features { grid-template-columns: 1fr 1fr; } }
.feat { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 38px; }
.feat h3 { font-size: 1.02rem; }
.feat p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.tag { position: absolute; bottom: 12px; right: 16px; font-size: .78rem; background: var(--ok-bg); color: var(--accent); padding: 1px 10px; border-radius: 999px; font-weight: 600; }

.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; }
.faq summary { min-height: 52px; display: flex; align-items: center; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-inline-start: auto; font-size: 1.3rem; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 14px; color: var(--muted); }
.end-cta { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 16px; }
.end-cta p { color: var(--muted); margin: 6px 0 0; }

/* ----- tour ----- */
#tour {
  position: fixed; inset: 0; z-index: 10; background: var(--bg); display: flex; flex-direction: column; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 16px calc(12px + env(safe-area-inset-bottom)); overflow-y: auto;
}
#tour > * { flex: none; width: 100%; max-width: 460px; margin-inline: auto; }
.t-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.ico { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; padding: 0; font-size: 1.1rem; flex: none; }
.chaps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chaps::-webkit-scrollbar { display: none; }
.chaps button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0 12px; min-height: 34px; font-size: .88rem; white-space: nowrap; }
.chaps button.seen { border-color: #b9b5aa; }
.chaps button[aria-current="step"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.prog { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s; }
#t-title { text-align: center; font-size: 1.4rem; outline: none; }
.stage { align-self: center; width: auto !important; border-radius: 34px; background: #222823; padding: 8px; box-shadow: 0 20px 50px rgb(31 42 36 / .28); }
#t-screen { position: relative; overflow: hidden; border-radius: 27px; background: var(--bg); }
#t-shot { display: block; width: 100%; height: auto; transition: opacity .2s; }
#t-shot.fade { opacity: 0; }
#t-ring {
  position: absolute; border: 3px solid var(--ring); border-radius: 12px; background: rgb(224 160 48 / .1); padding: 0;
  opacity: 0; transition: opacity .3s, left .35s, top .35s, width .35s, height .35s; pointer-events: none;
}
#t-ring.on { opacity: 1; pointer-events: auto; animation: pulse 1.6s ease-in-out infinite; }
#t-ring::after { content: ""; position: absolute; inset: -10px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(224 160 48 / .5); } 50% { box-shadow: 0 0 0 9px rgb(224 160 48 / 0); } }
#t-tap {
  position: absolute; transform: translateX(50%); background: var(--brand); color: #fff; font-size: .8rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; opacity: 0; transition: opacity .3s; pointer-events: none; white-space: nowrap;
}
#t-tap.on { opacity: .92; }
.say { display: flex; align-items: flex-end; gap: 10px; }
.say img { border-radius: 50%; border: 3px solid #fff; box-shadow: 0 6px 18px rgb(0 0 0 / .14); flex: none; }
#t-cap {
  flex: 1; margin: 0; min-height: 76px; background: var(--surface); border-radius: 20px 20px 6px 20px; padding: 12px 16px;
  font-size: 1.05rem; line-height: 1.5; font-weight: 500; box-shadow: 0 8px 26px rgb(0 0 0 / .1);
}
.t-ctl { display: flex; justify-content: center; align-items: center; gap: 14px; }
.t-ctl .ico { width: 50px; height: 50px; font-size: 1.5rem; }
.t-ctl .ico.main { width: 58px; height: 58px; background: var(--brand); border-color: var(--brand); color: #fff; font-size: 1rem; }
#t-end { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 30px; }
#t-end img { border-radius: 26px; }
#t-end h2 { font-size: 1.7rem; }
#t-end p { color: var(--muted); margin: 0; max-width: 34ch; }
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; animation: none !important; } html { scroll-behavior: auto; } }

/* /privacy: public privacy policy (owner approved text 2026-11-23). Reuses the guide's palette and topbar. */
.doc h1 { font-size: 1.7rem; margin-top: 24px; }
.doc h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.doc p, .doc li { line-height: 1.7; }
.doc ul { padding-inline-start: 22px; margin: 0; }
.doc ul ul { margin-top: 6px; }
.doc li { margin-bottom: 8px; }
.doc a { overflow-wrap: anywhere; }
