/* ==========================================================================
   Fonts (self-hosted, SIL OFL: see /static/fonts/LICENSE.md)
   ========================================================================== */
@font-face { font-family: 'Assistant'; font-weight: 400; font-display: swap; src: url(fonts/assistant-hebrew-400-normal.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Assistant'; font-weight: 400; font-display: swap; src: url(fonts/assistant-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Assistant'; font-weight: 600; font-display: swap; src: url(fonts/assistant-hebrew-600-normal.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Assistant'; font-weight: 600; font-display: swap; src: url(fonts/assistant-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Assistant'; font-weight: 700; font-display: swap; src: url(fonts/assistant-hebrew-700-normal.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Assistant'; font-weight: 700; font-display: swap; src: url(fonts/assistant-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rubik'; font-weight: 500; font-display: swap; src: url(fonts/rubik-hebrew-500-normal.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; font-weight: 500; font-display: swap; src: url(fonts/rubik-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rubik'; font-weight: 700; font-display: swap; src: url(fonts/rubik-hebrew-700-normal.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; font-weight: 700; font-display: swap; src: url(fonts/rubik-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Secular One'; font-weight: 400; font-display: swap; src: url(fonts/secular-one-hebrew-400-normal.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Secular One'; font-weight: 400; font-display: swap; src: url(fonts/secular-one-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Arabic and Russian surveys: Rubik covers the characters Assistant lacks. */
@font-face { font-family: 'Rubik'; font-weight: 400; font-display: swap; src: url(fonts/rubik-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Rubik'; font-weight: 400; font-display: swap; src: url(fonts/rubik-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Rubik'; font-weight: 500; font-display: swap; src: url(fonts/rubik-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Rubik'; font-weight: 500; font-display: swap; src: url(fonts/rubik-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Rubik'; font-weight: 700; font-display: swap; src: url(fonts/rubik-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Rubik'; font-weight: 700; font-display: swap; src: url(fonts/rubik-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --purple: #4b2bd6;
  --purple-deep: #3a1fb0;
  --purple-soft: #f1eeff;
  --night: #1d1650;
  --night-2: #2a2170;
  --night-text: #d9d3ff;
  --yellow: #ffd23f;
  --yellow-soft: #fff4d1;
  --ink: #17123a;
  --ink-2: #3d3866;
  --muted: #5b5680;
  --bg: #f6f4ff;
  --card: #ffffff;
  --line: #e6e2f5;
  --line-2: #f0edfa;
  --good: #15803d;
  --good-soft: #e3f4e8;
  --warn: #8a5a00;
  --warn-soft: #fff4d1;
  --bad: #a3301a;
  --bad-soft: #ffe4dc;
  --orange: #ffb020;
  --star: #e89a00;
  --brand: var(--purple);
  --radius: 16px;
  --font: 'Assistant', 'Rubik', 'Segoe UI', Arial, sans-serif;
  --font-head: 'Rubik', 'Assistant', 'Segoe UI', sans-serif;
  --font-display: 'Secular One', 'Rubik', 'Segoe UI', sans-serif;
  font-family: var(--font);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.5; font-size: 16px; }
a { color: var(--purple); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; text-wrap: balance; }
h1 { font-size: 1.75rem; margin: 0 0 .4rem; }
h2 { font-size: 1.25rem; margin: 0 0 .6rem; }
h3 { margin: 0 0 .75rem; font-size: 1.08rem; font-weight: 500; }
h4 { margin: 1rem 0 .4rem; font-size: .95rem; font-weight: 500; }
code { background: var(--purple-soft); padding: 0 .35em; border-radius: 5px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.pre { white-space: pre-wrap; }
.icon { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--purple) 55%, transparent); outline-offset: 2px; }

/* ==========================================================================
   Buttons & forms
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 42px; padding: .5em 1.05em; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background .12s, border-color .12s;
}
.btn:hover { border-color: #cfc8ee; background: #fbfaff; }
.btn.primary { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn.primary:hover { background: var(--purple-deep); border-color: var(--purple-deep); }
.btn.accent { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn.accent:hover { background: #ffcb1f; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.big { font-size: 1.1rem; min-height: 56px; width: 100%; border-radius: 16px; }
.btn.danger { color: var(--bad); border-color: #f3c4b8; }
.btn.wa { background: #1faa55; border-color: #1faa55; color: #fff; }
.btn-link { background: none; border: 0; color: var(--purple); cursor: pointer; font: inherit; padding: 0; }
.icon-btn { background: none; border: 0; color: inherit; cursor: pointer; padding: 6px; border-radius: 8px; display: inline-flex; }
input, select, textarea {
  font: inherit; padding: .6em .8em; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--purple); outline: 3px solid var(--purple-soft); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--purple); }
input[type=color] { width: 4rem; height: 2.6rem; padding: .15em; }
label { display: flex; flex-direction: column; gap: .35em; font-size: .93rem; font-weight: 600; }
label.check { flex-direction: row; align-items: center; gap: .55em; font-weight: 400; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: flex; gap: .6rem; align-items: end; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; }
.row > .btn { flex: 0 0 auto; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.error, .field-error { color: var(--bad); }
.error { background: var(--bad-soft); padding: .7em 1em; border-radius: 12px; margin-bottom: 1rem; font-weight: 600; }
.flash { background: var(--good-soft); border: 1px solid #bfe6cf; color: #14532d; padding: .75em 1em; border-radius: 12px; margin-bottom: 1rem; word-break: break-word; font-weight: 600; }
.warn { background: var(--warn-soft); border: 1px solid #f5d38a; color: #6b4400; padding: .75em 1em; border-radius: 12px; margin-bottom: 1rem; }

/* ==========================================================================
   Auth pages (login, register, reset)
   ========================================================================== */
body.auth-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 40px 16px; background: var(--bg); }
.auth-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); text-decoration: none; margin-bottom: 24px; }
.auth-main { width: 100%; max-width: 440px; }
.auth { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 20px 50px rgba(29, 22, 80, .08); }
.auth h1 { font-size: 1.6rem; }
.auth .btn.primary { width: 100%; min-height: 50px; font-size: 1.05rem; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--yellow); color: var(--night); flex: none; }

/* ==========================================================================
   App shell: sidebar on the right (RTL) + main
   ========================================================================== */
body.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 256px; flex: none; background: var(--night); color: var(--night-text);
  display: flex; flex-direction: column; gap: 6px; padding: 22px 14px 16px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; color: #fff; font-family: var(--font-display); font-size: 1.35rem; text-decoration: none; }
.biz-card { display: flex; align-items: center; gap: 10px; background: var(--night-2); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.biz-avatar { width: 32px; height: 32px; border-radius: 9px; background: var(--purple); color: #fff; display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; }
.biz-avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.biz-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.biz-meta b { color: #fff; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biz-meta small { font-size: .78rem; }
.biz-card select { background: transparent; border: 0; color: #fff; font-weight: 700; padding: 4px 0; cursor: pointer; }
.biz-card select option { color: var(--ink); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--night-text); text-decoration: none; font-weight: 500; }
.side-nav a:hover { background: var(--night-2); color: #fff; }
.side-nav a.active { background: var(--yellow); color: var(--night); font-weight: 700; }
.side-nav a span:first-of-type { flex: 1; }
.nav-badge { background: #ff6b4a; color: #fff; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.side-nav a.active .nav-badge { background: var(--night); }
.usage { margin-top: auto; background: var(--night-2); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; color: var(--night-text); text-decoration: none; font-size: .85rem; }
.usage-bar { height: 6px; border-radius: 3px; background: #3b3190; display: flex; overflow: hidden; }
.usage-bar span { background: var(--yellow); border-radius: 3px; }
.usage small { font-size: .78rem; }
.side-user { display: flex; align-items: center; gap: 6px; padding: 12px 6px 0; margin-top: auto; border-top: 1px solid var(--night-2); }
.usage + .side-user { margin-top: 10px; }
.side-user a { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--night-text); text-decoration: none; font-size: .92rem; min-width: 0; }
.side-user a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .icon-btn:hover, .side-user a:hover { color: #fff; }
.app-main { flex: 1; min-width: 0; padding: 28px 34px 48px; max-width: 1320px; }

/* ==========================================================================
   Content building blocks
   ========================================================================== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin-bottom: 1rem; }
.card.empty { text-align: center; padding: 2.2rem; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.page-head h1 { margin: 0; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.filters select, .filters input:not([type="checkbox"]):not([type="radio"]) { width: auto; min-width: 140px; min-height: 42px; }
.filters label.check { min-height: 42px; padding-inline: .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.filters label.check { font-size: .92rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1rem; margin-bottom: 1rem; }
.grid2 > .card { margin-bottom: 0; }
.danger-zone { margin-top: 2rem; }
.pager { display: flex; gap: .5rem; justify-content: center; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 0 0 1rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.alert-bar { display: flex; align-items: center; gap: 10px; background: #fff0ec; border: 1px solid #ffc9bb; color: var(--bad); padding: .8em 1.1em; border-radius: 14px; margin-bottom: 1rem; text-decoration: none; font-weight: 700; }
.alert-bar span { flex: 1; }
.alert-bar:hover { background: #ffe6de; }

/* dashboard */
.dash-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 1.2rem; }
.dash-head .titles { flex: 1; min-width: 220px; }
.dash-head h1 { margin: 0; }
.dash-head .filters { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 1rem; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi-label { color: var(--muted); font-size: .9rem; }
.kpi-value { font-family: var(--font-head); font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-value a { color: inherit; text-decoration: none; }
.kpi-hint { color: var(--muted); font-size: .84rem; font-weight: 600; }
.kpi-hint.up { color: var(--good); }
.kpi-hint.down { color: var(--bad); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin-bottom: 1rem; }
.dash-grid > .card { margin-bottom: 0; }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: .6rem; flex-wrap: wrap; }
.card-head h3 { margin: 0; flex: 1; }
.chart { width: 100%; height: auto; }
.chart .axis { stroke: var(--line); }
.chart .grid { stroke: var(--line-2); }
.chart .tick { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.bar-pos { fill: var(--purple); }
.bar-neg { fill: var(--orange); }
.bar-scan { fill: #dcd5ff; }
.legend { display: flex; gap: 1rem; align-items: center; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.sw.scans { background: #dcd5ff; } .sw.pos { background: var(--purple); } .sw.neg { background: var(--orange); }
.waiting { display: flex; flex-direction: column; }
.waiting a { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line-2); color: inherit; text-decoration: none; }
.waiting a:first-child { border-top: 0; }
.waiting a:hover .w-name { color: var(--purple); }
.w-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--purple-soft); color: var(--purple); display: grid; place-items: center; font-weight: 700; flex: none; }
.w-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.w-name { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.w-text { font-size: .92rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dist-row { display: flex; align-items: center; gap: .6rem; margin: .4rem 0; }
.dist-label { width: 2.6rem; font-size: .9rem; }
.dist-label.wide { width: 7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dist-bar { flex: 1; height: 10px; background: var(--line-2); border-radius: 5px; overflow: hidden; display: block; }
.dist-bar > span { display: block; height: 100%; background: var(--purple); border-radius: 5px; }
.dist-bar > .good { background: var(--purple); } .dist-bar > .mid { background: var(--yellow); } .dist-bar > .bad { background: var(--orange); }
.dist-n { width: 2.6rem; text-align: end; font-variant-numeric: tabular-nums; color: var(--muted); }

/* tables & badges */
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { padding: .65rem .55rem; border-bottom: 1px solid var(--line-2); text-align: start; vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.table tr:hover td { background: #fbfaff; }
.table tr.late td { background: #fff7f4; }
.table .clip { max-width: 320px; }
.stars-sm { color: var(--star); letter-spacing: 1px; white-space: nowrap; }
.badge { display: inline-block; padding: .15em .7em; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.st-new { background: var(--purple-soft); color: var(--purple); }
.st-in_progress { background: var(--warn-soft); color: var(--warn); }
.st-resolved, .st-ok { background: var(--good-soft); color: var(--good); }
.st-closed { background: var(--line-2); color: var(--muted); }
.st-late { background: var(--bad-soft); color: var(--bad); }
.st-pub { background: #e0ecff; color: #1d4ed8; }

/* campaigns, QR, settings */
.cards { display: grid; gap: 1rem; }
.camp { display: flex; gap: 1.1rem; align-items: flex-start; }
.qr-thumb { width: 96px; height: 96px; flex: none; border-radius: 10px; border: 1px solid var(--line); padding: 4px; background: #fff; }
.qr-big { width: 240px; max-width: 100%; align-self: center; }
.qrow { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr .8fr auto; gap: .4rem; margin-bottom: .5rem; align-items: center; }
form.inline { display: inline; }
form.inline select { width: auto; padding: .3em .6em; }
.danger-text { color: var(--bad); }
.meter-row { margin: .4rem 0 .9rem; }
.meter-head { display: flex; justify-content: space-between; font-size: .93rem; margin-bottom: .35rem; }
.kpi-value.small-value { font-size: 1.15rem; padding: .35rem 0; }
.insight h4 { margin: 1rem 0 .3rem; color: var(--purple); }
.insight ul { margin: .2rem 0; padding-inline-start: 1.2rem; }
.insight p { margin: .3rem 0; }
textarea[readonly] { font-family: ui-monospace, monospace; font-size: .85rem; background: #fbfaff; }
.logo-row { display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap; }
.logo-preview { width: 160px; height: 90px; object-fit: contain; border: 1px dashed var(--line); border-radius: 12px; background: #fff; padding: 6px; }
.logo-preview.empty { display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.logo-row form { flex: 1 1 240px; }

@media (max-width: 900px) {
  body.app { flex-direction: column; }
  .sidebar { width: auto; height: auto; position: static; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
  .side-brand { padding: 0; font-size: 1.15rem; }
  .biz-card { margin: 0; padding: 6px 10px; margin-inline-start: auto; max-width: 55%; }
  .biz-meta small, .usage { display: none; }
  .side-nav { order: 10; width: 100%; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 2px; }
  .side-nav a { white-space: nowrap; padding: 8px 12px; }
  .side-user { order: 5; border: 0; padding: 0; margin: 0; }
  .side-user a span { display: none; }
  .app-main { padding: 20px 16px 40px; }
  .dash-grid { grid-template-columns: 1fr; }
  .qrow { grid-template-columns: 1fr 1fr; padding-bottom: .6rem; border-bottom: 1px dashed var(--line); }
  .qrow input[name=q_label], .qrow input[name=q_options] { grid-column: 1 / -1; }
  .table.responsive thead { display: none; }
  .table.responsive tr { display: block; border-bottom: 1px solid var(--line); padding: .4rem 0; }
  .table.responsive td { display: flex; gap: .6rem; border: 0; padding: .2rem 0; }
  .table.responsive td::before { content: attr(data-l); color: var(--muted); min-width: 5rem; }
  .camp { flex-direction: column; }
}

/* ==========================================================================
   Customer survey
   ========================================================================== */
body.public { min-height: 100vh; background: var(--bg); display: flex; justify-content: center; }
.survey-shell { width: 100%; max-width: 460px; background: #fff; display: flex; flex-direction: column; min-height: 100vh; }
.survey-head { background: var(--brand); color: #fff; padding: 40px 26px 34px; border-radius: 0 0 32px 32px; display: flex; flex-direction: column; gap: 12px; }
.survey-biz { display: flex; align-items: center; gap: 10px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.survey-initial { width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.25rem; }
.survey-logo { height: 44px; max-width: 150px; background: #fff; border-radius: 12px; padding: 5px 8px; display: flex; align-items: center; }
.survey-logo img { max-height: 34px; max-width: 134px; object-fit: contain; }
.survey-head h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 2.3rem; line-height: 1.12; }
.survey-head p { margin: 0; font-size: 1.05rem; color: rgba(255, 255, 255, .82); }
.survey-head .picked { color: var(--yellow); font-size: 1.4rem; letter-spacing: 3px; }
.survey-body { padding: 28px 22px 16px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.greet { font-weight: 600; font-size: 1.05rem; color: rgba(255, 255, 255, .9); margin: 0; }
.rating-form { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rate-btn {
  height: 78px; border-radius: 18px; border: 2px solid var(--line); background: #fff; color: var(--ink);
  font-family: var(--font-display); font-size: 1.9rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: transform .08s, background .12s, border-color .12s;
}
.rate-btn small { font-family: var(--font); font-size: .7rem; font-weight: 600; color: var(--muted); }
.rate-btn:hover, .rate-btn:focus-visible { background: var(--yellow); border-color: var(--ink); transform: translateY(-2px); outline: none; }
.rate-btn:hover small, .rate-btn:focus-visible small { color: var(--ink); }
.rate-scale { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); }
.rate-hint { background: var(--purple-soft); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-weight: 600; color: var(--ink-2); }
.rate-hint svg { color: var(--star); }
.survey { display: flex; flex-direction: column; gap: 1rem; }
fieldset.q { border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1rem 1rem; margin: 0; display: flex; flex-direction: column; gap: .65rem; }
fieldset.q legend { padding: 0 .35rem; font-family: var(--font-head); font-weight: 500; }
fieldset.has-error { border-color: var(--bad); }
.req { color: var(--bad); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .45em 1em; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; user-select: none; font-weight: 600; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--purple-soft); outline-offset: 2px; }
.nps { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; direction: ltr; }
.nps-cell input { position: absolute; opacity: 0; pointer-events: none; }
.nps-cell span { display: block; text-align: center; padding: .5em 0; border: 1.5px solid var(--line); border-radius: 9px; cursor: pointer; font-size: .9rem; font-weight: 600; }
.nps-cell input:checked + span { background: var(--yellow); border-color: var(--ink); }
.nps-cell input:focus-visible + span { outline: 3px solid var(--purple-soft); }
.nps-legend { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); direction: ltr; }
.survey .btn.big { background: var(--ink); border-color: var(--ink); color: #fff; }
.thanks { display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
.thanks-icon { width: 72px; height: 72px; border-radius: 22px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; margin-top: -64px; border: 4px solid #fff; }
.thanks p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.review-links { display: flex; flex-direction: column; gap: .7rem; width: 100%; margin-top: .4rem; }
.alt-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.btn.google { background: var(--ink); border-color: var(--ink); color: #fff; }
.google .g { background: #fff; color: #4285f4; font-weight: 800; border-radius: 50%; width: 1.6em; height: 1.6em; display: inline-grid; place-items: center; font-family: Arial, sans-serif; }
.public-note { margin-top: .6rem; padding-top: 1rem; border-top: 1px solid var(--line); width: 100%; }
.public-foot { padding: 14px 22px 22px; font-size: .78rem; color: var(--muted); text-align: center; }
.public-foot a { color: var(--muted); }
@media (min-width: 520px) {
  body.public { padding: 32px 16px; }
  .survey-shell { min-height: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 24px 60px rgba(29, 22, 80, .14); align-self: flex-start; }
}

/* ==========================================================================
   Printable poster
   ========================================================================== */
body.poster { background: #e9e6f5; margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 18px 16px 40px; }
.poster-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; width: 100%; max-width: 210mm; background: var(--night); color: var(--night-text); padding: 10px 14px; border-radius: 14px; font-size: .92rem; }
.poster-sheet { width: 100%; max-width: 210mm; aspect-ratio: 210 / 297; background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 18px 50px rgba(29, 22, 80, .18); }
.poster-band { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 5% 6%; background: var(--brand); color: #fff; }
.poster-logo { max-height: 64px; max-width: 45%; object-fit: contain; background: #fff; border-radius: 12px; padding: 6px; }
.poster-initial { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--yellow); color: var(--night); font: 700 1.8rem/1 var(--font-head); }
.poster-band .poster-biz { font: 700 clamp(1.3rem, 3.6vw, 2rem)/1.2 var(--font-head); }
.poster-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; gap: 10px; padding: 4% 7% 6%; text-align: center; }
.poster-body h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 6vw, 3.2rem); line-height: 1.15; color: var(--ink); text-wrap: balance; }
.poster-sub { margin: 0; color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.3rem); }
.poster-qr-wrap { position: relative; padding: 18px; border-radius: 28px; background: var(--yellow); }
.poster-qr { background: #fff; border-radius: 18px; padding: 14px; }
.poster-qr svg { display: block; width: min(62vw, 250px); height: auto; }
.poster-badge { position: absolute; top: -16px; inset-inline-start: 50%; transform: translateX(50%); white-space: nowrap; background: var(--night); color: #fff; font: 700 .95rem/1 var(--font-head); padding: 9px 16px; border-radius: 99px; }
[dir="ltr"] .poster-badge { transform: translateX(-50%); }
.poster-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.poster-steps li { display: grid; justify-items: center; gap: 6px; font-size: clamp(.8rem, 2vw, 1rem); color: var(--ink-2); }
.poster-steps li span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--purple-soft); color: var(--purple); font: 700 1rem/1 var(--font-head); }
.poster-stars { color: var(--star); font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: 8px; }
@media print {
  @page { size: A4; margin: 0; }
  body.poster { background: #fff; padding: 0; display: block; }
  .poster-sheet { max-width: none; width: 210mm; height: 297mm; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .poster-band { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .poster-qr-wrap, .poster-badge, .poster-initial, .poster-steps li span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .poster-qr svg { width: 95mm; }
}
@media print { .noprint { display: none; } }

/* ==========================================================================
   Marketing site
   ========================================================================== */
body.site { background: #fff; }
.site-head { display: flex; align-items: center; gap: 1.8rem; padding: .9rem max(16px, calc((100% - 1140px) / 2)); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); z-index: 5; flex-wrap: wrap; }
.site-head .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); text-decoration: none; }
.site-head .brand-mark { background: var(--purple); color: var(--yellow); }
.site-head nav { display: flex; gap: 1.5rem; flex: 1; flex-wrap: wrap; }
.site-head nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-head nav a:hover { color: var(--purple); }
.site-cta { display: flex; gap: 1rem; align-items: center; }
.site-cta > a:not(.btn) { color: var(--purple); text-decoration: none; font-weight: 700; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; padding: 3.5rem max(16px, calc((100% - 1140px) / 2)) 3rem; background: var(--bg); }
.hero-text { display: flex; flex-direction: column; gap: 1.3rem; }
.hero-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 5px; font-size: .92rem; font-weight: 600; }
.hero-pill b { background: var(--yellow); border-radius: 999px; padding: 1px 10px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.14; margin: 0; }
.hero h1 em { font-style: normal; color: var(--purple); }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 34em; margin: 0; }
.hero .actions { margin: 0; }
.btn.big-inline { font-size: 1.08rem; min-height: 54px; padding: .7em 1.5em; border-radius: 14px; }
.checks { display: flex; gap: 1.3rem; flex-wrap: wrap; color: var(--ink-2); font-size: .95rem; }
.checks span { display: inline-flex; align-items: center; gap: 6px; }
.checks svg { color: var(--purple); }
.hero-visual { position: relative; min-height: 460px; display: flex; align-items: center; justify-content: center; }
.mock-dash { width: min(100%, 500px); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px rgba(29, 22, 80, .14); overflow: hidden; display: flex; }
.mock-side { width: 58px; background: var(--night); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; }
.mock-side i { display: block; width: 22px; height: 6px; border-radius: 3px; background: #4a3fa0; }
.mock-side i:first-child { width: 28px; height: 28px; border-radius: 8px; background: var(--yellow); }
.mock-side i:nth-child(2) { background: var(--yellow); }
.mock-main { flex: 1; padding: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.mock-main b { font-family: var(--font-head); }
.mock-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mock-kpis span { background: #fff; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; font-size: .7rem; color: var(--muted); }
.mock-kpis strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); }
.mock-bars { background: #fff; border-radius: 10px; padding: 10px; height: 130px; display: flex; align-items: flex-end; gap: 5px; direction: ltr; }
.mock-bars i { flex: 1; background: var(--purple); border-radius: 3px 3px 0 0; }
.mock-bars i:last-child { background: var(--yellow); }
.mock-rows { background: #fff; border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; font-size: .8rem; }
.mock-rows span { display: flex; justify-content: space-between; }
.mock-phone { position: absolute; bottom: 10px; right: -6px; width: 178px; background: var(--night); border-radius: 26px; padding: 8px; box-shadow: 0 24px 48px rgba(29, 22, 80, .3); }
.mock-phone > div { background: #fff; border-radius: 19px; overflow: hidden; }
.mock-phone .top { background: var(--purple); color: #fff; padding: 14px 12px; font-family: var(--font-display); font-size: 1.05rem; }
.mock-phone .nums { padding: 10px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.mock-phone .nums span { height: 26px; border-radius: 7px; border: 1.5px solid var(--line); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.mock-phone .nums span:last-child { background: var(--yellow); border-color: var(--ink); }
.band { padding: 3.5rem max(16px, calc((100% - 1140px) / 2)); }
.band.alt { background: var(--bg); }
.band h2 { text-align: center; font-size: 1.9rem; margin: 0 0 2rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.step { text-align: center; padding: 1rem; }
.step-n { width: 2.8rem; height: 2.8rem; border-radius: 14px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.3rem; margin: 0 auto .7rem; }
.step h3, .feature h3 { margin: .3rem 0; font-size: 1.15rem; }
.step p, .feature p { color: var(--ink-2); margin: 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.f-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--purple-soft); color: var(--purple); display: grid; place-items: center; margin-bottom: .5rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; max-width: 940px; margin: 0 auto; }
.plan { border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; position: relative; background: #fff; }
.plan.featured { border: 2px solid var(--purple); box-shadow: 0 14px 34px rgba(75, 43, 214, .14); }
.plan-tag { position: absolute; top: -.85rem; inset-inline-start: 1rem; background: var(--yellow); color: var(--ink); font-size: .8rem; font-weight: 700; padding: .15em .8em; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 1.2rem; }
.plan-price { margin: .5rem 0 1rem; }
.price { font-family: var(--font-head); font-size: 2rem; font-weight: 700; }
.price-contact { font-size: 1.2rem; font-weight: 700; color: var(--purple); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.plan li.off { color: #a29dbf; }
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: .6rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: .6rem 0 0; color: var(--ink-2); }
.band.final { text-align: center; background: var(--night); color: #fff; }
.band.final h2 { color: #fff; }
.site-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.5rem max(16px, calc((100% - 1140px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-foot nav { display: flex; gap: 1.2rem; }
.site-foot a { color: var(--muted); }
.legal { max-width: 760px; margin: 0 auto; padding: 2.5rem 16px 4rem; line-height: 1.75; }
.legal h2 { font-size: 1.2rem; margin: 1.8rem 0 .4rem; }
.legal ul { padding-inline-start: 1.3rem; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.2rem; }
  .hero-visual { min-height: 360px; }
  .site-head nav { display: none; }
  .site-cta { margin-inline-start: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* campaign template picker */
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; border: 0; padding: 0; background: none; }
.template-card { position: relative; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; font-weight: 400; }
.template-card input { position: absolute; opacity: 0; }
.template-card .t-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--purple-soft); color: var(--purple); display: grid; place-items: center; margin-bottom: 6px; }
.template-card b { font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; }
.template-card small { color: var(--muted); }
.template-card:has(input:checked) { border-color: var(--purple); background: #fbfaff; box-shadow: 0 0 0 3px var(--purple-soft); }
.template-card:has(input:checked) .t-icon { background: var(--yellow); color: var(--ink); }
.template-card:has(input:focus-visible) { outline: 3px solid var(--purple-soft); }

/* onboarding checklist */
.onboarding { border: 2px solid var(--purple-soft); }
.ob-bar { background: var(--line-2); height: 8px; margin: .2rem 0 .8rem; }
.ob-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ob-steps li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.ob-steps li.next { background: var(--purple-soft); }
.ob-steps li.done span:not(.ob-check) { color: var(--muted); text-decoration: line-through; }
.ob-steps li a:not(.btn) { color: var(--ink); font-weight: 600; text-decoration: none; }
.ob-steps li a:not(.btn):hover { color: var(--purple); }
.ob-steps li .btn { margin-inline-start: auto; min-height: 36px; padding: .3em .9em; }
.ob-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.ob-steps li.done .ob-check { background: var(--good); border-color: var(--good); color: #fff; }

/* close the loop */
.followup { display: flex; flex-direction: column; gap: 10px; }
.followup-box { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; background: var(--purple-soft); border-radius: 12px; padding: 12px 14px; margin-top: .6rem; }

/* integrations */
pre.code { background: var(--night); color: #e9e5ff; padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-size: .85rem; line-height: 1.55; margin: 0; }
.how-list { margin: 0; padding-inline-start: 1.2rem; display: grid; gap: .5rem; }

/* AI topic tags */
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag { font-size: .75rem; font-weight: 700; padding: .1em .6em; border-radius: 999px; background: var(--purple-soft); color: var(--purple); text-decoration: none; white-space: nowrap; }
.tag:hover { background: var(--purple); color: #fff; }
.dist-bar.stacked { display: flex; }
.dist-bar.stacked > span { border-radius: 0; }
.dist-bar.stacked > span:first-child { border-radius: 0 5px 5px 0; }
.topic-row { color: inherit; text-decoration: none; border-radius: 8px; padding: 2px 4px; }
.topic-row:hover { background: var(--purple-soft); }

/* white-label logo */
.brand-logo { max-width: 150px; object-fit: contain; border-radius: 8px; background: #fff; padding: 2px 4px; }

/* ---------- leaderboard ---------- */
.rank { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 700; font-family: var(--font-head); background: var(--line-2); color: var(--ink-2); }
.rank-1 { background: var(--yellow); color: var(--night); }
.rank-2 { background: #dcd5ff; color: var(--night); }
.rank-3 { background: var(--yellow-soft); color: var(--warn); }
.rank-none { background: transparent; color: var(--muted); }
.leader-table tr.unranked td, .staff-table tr.unranked td { color: var(--muted); }
.star-inline { color: var(--star); }
.neg { color: var(--bad); font-weight: 700; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; align-items: end; }
.podium-item { display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; padding: 1rem .6rem; border-radius: var(--radius); background: var(--purple-soft); }
.podium-item.p1 { background: var(--night); color: #fff; padding-block: 1.4rem; order: 2; }
.podium-item.p2 { order: 1; } .podium-item.p3 { order: 3; }
.podium-item.p1 small { color: var(--night-text); }
.podium-item b { font-family: var(--font-head); font-size: 1.05rem; }
.podium-score { font-family: var(--font-display); font-size: 1.4rem; }
.podium-item.p1 .podium-score { color: var(--yellow); }
.row.compact { gap: .4rem; align-items: center; }
.row.compact input[name="name"] { max-width: 180px; }
input.copy { width: 100%; font-size: .85rem; }
@media (max-width: 640px) {
  .podium { grid-template-columns: 1fr; }
  .podium-item.p1, .podium-item.p2, .podium-item.p3 { order: 0; }
}
.link-row { margin-top: .35rem; white-space: nowrap; }

/* ---------- error pages ---------- */
.error-card { display: grid; justify-items: center; gap: 1rem; text-align: center; padding: 2.4rem 1.6rem; }
.error-card h1 { margin: 0; font-size: 1.4rem; text-wrap: balance; }
.error-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--yellow-soft); color: var(--warn); }
.error-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }

/* ---------- campaign cards ---------- */
.camp > div:not(.camp-stats) { flex: 1; min-width: 0; }
.camp-stats { display: grid; grid-template-columns: repeat(3, auto); gap: .3rem 1.2rem; align-self: center; padding: .8rem 1rem; border-radius: 14px; background: var(--purple-soft); }
.camp-stats span { display: grid; justify-items: center; font-size: .8rem; color: var(--muted); }
.camp-stats b { font-family: var(--font-head); font-size: 1.35rem; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .camp-stats { align-self: stretch; justify-content: space-around; } }

/* ---------- template picker on phones: two per row ---------- */
@media (max-width: 640px) {
  .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ---------- leaderboard + staff on phones ---------- */
.leader-table td { white-space: nowrap; }
.leader-table td:nth-child(2) { white-space: normal; }
@media (max-width: 640px) {
  .leader-table th:nth-child(n+6), .leader-table td:nth-child(n+6) { display: none; }
  .leader-table th, .leader-table td { padding-inline: .35rem; }
  .staff-table thead { display: none; }
  .staff-table, .staff-table tbody, .staff-table tr, .staff-table td { display: block; width: 100%; }
  .staff-table tr { padding-block: .8rem; border-bottom: 1px solid var(--line); }
  .staff-table td { border: 0; padding: .25rem 0; }
  .staff-table td[data-l]::before { content: none; }
  .staff-table .row.compact { flex-wrap: nowrap; }
  .staff-table .row.compact input[name="name"] { max-width: none; flex: 1 1 auto; width: auto; min-width: 0; }
  .link-row { white-space: normal; }
}

/* ---------- file picker (the native one is English-only) ---------- */
.file-pick { flex-direction: row; align-items: center; gap: .7rem; flex-wrap: wrap; font-weight: 400; cursor: pointer; }
.file-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-pick .btn { pointer-events: none; }
.file-pick:has(input:focus-visible) .btn { outline: 3px solid var(--purple-soft); }
.file-name { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.poster-qr-wrap { margin-top: 14px; }
@media screen and (max-width: 640px) { .poster-sheet { aspect-ratio: auto; } .poster-body { gap: 18px; padding-block: 24px 28px; } }

/* ---------- trial / paused bar ---------- */
.trial-bar { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; padding: .75rem 1rem; border-radius: 14px; background: var(--yellow-soft); color: var(--ink); text-decoration: none; border: 1px solid #f5dd8a; }
.trial-bar > span:first-of-type { flex: 1; min-width: 12rem; }
.trial-bar .trial-cta { font-weight: 700; color: var(--purple); white-space: nowrap; }
.trial-bar.paused { background: var(--bad-soft); border-color: #f6c3b5; }
.trial-bar.paused .icon { color: var(--bad); }

/* ---------- pricing (landing + plan page) ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; justify-items: center; }
.pricing .plans { width: 100%; }
.cycle-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.cycle-switch { position: relative; }
.cycle-switch input { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.cycle-switch label { flex-direction: row; align-items: center; gap: .4rem; padding: .55rem 1.2rem; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.cycle-switch input:checked + label { background: var(--night); color: #fff; }
.cycle-switch input:focus-visible + label { outline: 3px solid var(--purple-soft); }
.save-chip { font-size: .72rem; font-weight: 700; background: var(--yellow); color: var(--night); padding: .15em .55em; border-radius: 999px; }
.pricing .when-annual { display: none; }
.pricing:has(input[value="annual"]:checked) .when-annual { display: block; }
.pricing:has(input[value="annual"]:checked) .when-monthly { display: none; }
.plan { display: flex; flex-direction: column; }
.plan ul { flex: 1; margin-bottom: 1.2rem; }
.plan-tagline { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
.plan .save { display: block; color: var(--good); font-weight: 700; font-size: .85rem; }
.plan-cta { width: 100%; justify-content: center; }
.plan.current { outline: 3px solid var(--good-soft); }
.plan.current::after { content: 'המסלול שלכם'; position: absolute; top: -.85rem; inset-inline-end: 1rem; background: var(--good); color: #fff; font-size: .8rem; font-weight: 700; padding: .15em .8em; border-radius: 999px; }
.pricing-note { margin: 0; text-align: center; color: var(--muted); font-size: .92rem; }
.band-sub { text-align: center; color: var(--ink-2); margin: -.4rem auto 1.4rem; max-width: 60ch; }
.agency-offer { max-width: 940px; margin: 1.4rem auto 0; padding: 1rem 1.3rem; border-radius: 16px; background: var(--night); color: var(--night-text); }
.agency-offer b { color: var(--yellow); }
.plan-status { display: grid; gap: .2rem; padding: .9rem 1.1rem; border-radius: 14px; background: var(--good-soft); }
.plan-status.trial { background: var(--yellow-soft); }
.plan-status.paused { background: var(--bad-soft); }
.plan-status span { color: var(--ink-2); }
.billing-cell { display: grid; gap: .35rem; min-width: 16rem; }
.billing-cell .row.compact select { width: auto; min-height: 36px; padding-block: .2rem; }
.req-flag { color: var(--warn); }
.plan-branches { margin: -.3rem 0 1rem; padding: .55rem .8rem; border-radius: 12px; background: var(--purple-soft); color: var(--purple); font: 700 1.05rem/1.2 var(--font-head); text-align: center; }
.plan.featured .plan-branches { background: var(--yellow); color: var(--night); }

/* ---------- quote offer + contact form ---------- */
.custom-offer { max-width: 940px; margin: 1.4rem auto 0; padding: 1.3rem 1.5rem; border-radius: 20px; background: var(--night); color: var(--night-text); display: flex; gap: 1.2rem 2rem; align-items: center; flex-wrap: wrap; }
.custom-items { flex: 1 1 22rem; display: grid; gap: .8rem; }
.custom-items div { display: grid; gap: .15rem; }
.custom-items b { color: #fff; font-family: var(--font-head); font-size: 1.05rem; }
.custom-cta { display: grid; gap: .5rem; justify-items: center; }
.custom-cta span { color: var(--yellow); font-weight: 700; }
.contact-form { max-width: 720px; margin: 0 auto; display: grid; gap: .9rem; }
.contact-form .grid2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: .9rem; margin: 0; }
.contact-done { max-width: 720px; margin: 0 auto; text-align: center; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* ---------- GoFive logo ---------- */
.logo-mark { flex: none; display: block; border-radius: 22%; }
.wordmark { font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em; }
.wm-go { color: var(--night); }
.wm-five { color: #4E2EF6; }
.side-brand .wm-go { color: #fff; }
.side-brand .wm-five { color: #9d8bff; }
.site-foot .wm-go, .poster-foot .wm-go { color: inherit; }
.role-chip { display: block; font-size: .72rem; font-weight: 700; color: var(--yellow); }

/* ---------- Google reviews ---------- */
h1 .g-logo { vertical-align: -3px; margin-inline-end: .2rem; }
.g-hero { padding: 1.6rem; }
.g-hero h2 { margin: 0; font-size: 1.3rem; }
.g-btn { background: #fff; color: var(--ink); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; }
.g-btn:hover { background: var(--purple-soft); }
.g-stars { color: var(--star); letter-spacing: 2px; white-space: nowrap; }
.g-stars .off { color: var(--line); }
.g-list { display: grid; gap: .8rem; }
.g-item { display: grid; gap: .45rem; color: var(--ink); text-decoration: none; }
.g-item:hover { border-color: var(--purple); }
.g-item.pending { border-inline-start: 4px solid var(--yellow); }
.g-item p { margin: 0; }
.g-head { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.g-reply { background: var(--purple-soft); border-radius: 10px; padding: .5rem .7rem; color: var(--ink-2); }
.g-comment { font-size: 1.1rem; margin: 0; white-space: pre-wrap; }
.g-dash { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.g-dash b { font-family: var(--font-head); font-size: 1.1rem; }
.row.between { justify-content: space-between; align-items: center; }
.g-item .badge { justify-self: start; }

/* ==========================================================================
   Accessibility menu, cookie notice, skip link
   ========================================================================== */
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: .6em 1em; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.a11y-root { position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 16px; }
.a11y-fab { width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: #1f4fd8; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgba(23, 18, 58, .28); }
.a11y-fab:hover { background: #163da8; }
.a11y-fab:focus-visible { outline: 3px solid #ffb020; outline-offset: 3px; }
.a11y-panel { width: min(330px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow-y: auto; background: #fff; color: #17123a; border: 1px solid #d8d3ee; border-radius: 16px; box-shadow: 0 16px 48px rgba(23, 18, 58, .25); padding: 14px; }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.a11y-head h2 { margin: 0; font-size: 1.15em; }
.a11y-close { border: 0; background: #f1eeff; color: #17123a; width: 36px; height: 36px; border-radius: 10px; font-size: 1.4em; line-height: 1; cursor: pointer; }
.a11y-size { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #f6f4ff; border-radius: 12px; padding: 6px; margin-bottom: 10px; }
.a11y-size span { font-weight: 600; font-size: .95em; }
.a11y-size button { min-width: 48px; height: 40px; border: 1px solid #d8d3ee; background: #fff; color: #17123a; border-radius: 10px; font-weight: 700; font-size: 1em; cursor: pointer; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-grid button { min-height: 52px; padding: 6px 8px; border: 1px solid #d8d3ee; background: #fff; color: #17123a; border-radius: 12px; font: inherit; font-size: .9em; font-weight: 600; cursor: pointer; text-align: center; }
.a11y-grid button[aria-pressed="true"] { background: #1f4fd8; border-color: #1f4fd8; color: #fff; }
.a11y-panel button:focus-visible, .a11y-panel a:focus-visible { outline: 3px solid #ffb020; outline-offset: 2px; }
.a11y-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: .9em; }
.a11y-foot button { border: 0; background: none; color: #a3301a; font: inherit; font-weight: 600; cursor: pointer; padding: 6px 0; text-decoration: underline; }
.a11y-foot a { color: #1f4fd8; font-weight: 600; }

.cookie-bar { position: fixed; bottom: 16px; inset-inline-start: 16px; inset-inline-end: 84px; z-index: 55; max-width: 720px; display: flex; align-items: center; gap: 12px; background: #17123a; color: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 10px 32px rgba(23, 18, 58, .3); }
.cookie-bar p { margin: 0; font-size: .9rem; line-height: 1.5; }
.cookie-bar a { color: #ffd23f; }
.cookie-bar .btn { flex-shrink: 0; min-height: 38px; }
@media (max-width: 640px) { .cookie-bar { flex-direction: column; align-items: stretch; } }
@media print { .a11y-root, .cookie-bar { display: none !important; } }

/* The settings the menu turns on. The menu itself keeps its own look. */
html.a11y-text-1 { font-size: 112.5%; }
html.a11y-text-2 { font-size: 125%; }
html.a11y-text-3 { font-size: 140%; }
html.a11y-text-4 { font-size: 160%; }
html.a11y-contrast body, html.a11y-contrast body *:not(.a11y-root):not(.a11y-root *):not(svg):not(svg *):not(img) { background-color: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important; }
html.a11y-contrast body a:not(.a11y-root *), html.a11y-contrast body a:not(.a11y-root *) * { color: #ffeb3b !important; }
html.a11y-contrast body :is(.btn.primary, button[aria-pressed="true"]):not(.a11y-root *) { outline: 2px solid #ffeb3b !important; }
html.a11y-gray body > *:not(.a11y-root) { filter: grayscale(1); }
html.a11y-links body a:not(.a11y-root *) { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px dashed #ffb020; outline-offset: 2px; }
html.a11y-font body *:not(svg):not(svg *) { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: .02em; }
html.a11y-spacing body *:not(.a11y-root *) { line-height: 1.9 !important; word-spacing: .1em; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 10-7 1.5 4 7.5-3 1.5-4-7.5L4 20z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 6 3, auto !important; }
html.a11y-focus *:focus { outline: 4px solid #ffb020 !important; outline-offset: 3px !important; }
.legal-toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1.2rem; margin: 1.2rem 0 1.5rem; }
.legal-toc ol { margin: 0; padding-inline-start: 1.3rem; columns: 2; column-gap: 2rem; }
.legal-toc li { break-inside: avoid; padding: .15rem 0; }
.legal h2 { scroll-margin-top: 90px; }
.legal .table-wrap { overflow-x: auto; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
