/* ארץ המספרים · עיצוב האתר. צבעי הדמויות מתוך chars.py */
@font-face { font-family: "Rubik"; font-weight: 400; font-display: swap; src: url("fonts/rubik-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: "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: 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: 800; font-display: swap; src: url("fonts/rubik-hebrew-800-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: 400; font-display: swap; src: url("fonts/rubik-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+2074, 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-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+2074, 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-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-weight: 800; font-display: swap; src: url("fonts/rubik-latin-800-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #2B2A33;
  --muted: #5A5866;
  --paper: #FFFBF2;
  --card: #FFFFFF;
  --line: #E7E0D2;
  --teal: #3DB8B5;
  --teal-dark: #1F7472;
  --teal-tint: #E2F5F4;
  --orange: #F7A23B;
  --orange-tint: #FEF0DC;
  --purple: #9C7FE3;
  --purple-tint: #EFEAFB;
  --yellow-tint: #FDF5D8;
  --coral: #F07167;
  --coral-dark: #A33A31;
  --coral-tint: #FDE6E3;
  --green-tint: #E8F6E4;
  --sky-tint: #E6F4FC;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(43, 42, 51, .06), 0 8px 24px rgba(43, 42, 51, .07);
  --wrap: 1040px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5.2vw, 46px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.6vw, 32px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }

/* header */
.site-header { background: rgba(255, 251, 242, .92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.2) blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { text-decoration: none; font-weight: 500; }
.nav .hide-sm { display: none; }
@media (min-width: 700px) { .nav .hide-sm { display: inline; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal-dark); color: #fff; }
.btn-primary:hover { background: #185E5C; color: #fff; }
.btn-ghost { background: transparent; color: var(--teal-dark); border-color: var(--teal-dark); }
.btn-ghost:hover { background: var(--teal-tint); color: var(--teal-dark); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.linklike { background: none; border: 0; padding: 6px 2px; font: inherit; color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 40px; }
.linklike[disabled] { color: var(--muted); text-decoration: none; cursor: default; }

/* hero */
.hero { padding: 44px 0 28px; }
.hero .eyebrow { display: inline-block; background: var(--orange-tint); color: #7A4A0E; font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero p.lead { font-size: 19px; max-width: 640px; color: #3A3944; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.crew { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 36px; max-width: 760px; }
.crew figure { margin: 0; text-align: center; }
.crew img { width: 100%; height: auto; aspect-ratio: 1; }
.crew figcaption { font-size: 13px; font-weight: 700; margin-top: 2px; }
@media (max-width: 520px) {
  .crew { grid-template-columns: repeat(4, 1fr); row-gap: 10px; }
  .crew figure:nth-child(n+5) { transform: translateX(calc(-50% - 3px)); }
}

/* sections */
section.block { padding: 40px 0; }
section.block.alt { background: #FFF6E3; border-block: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: relative; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal-dark); color: #fff; font-weight: 800; margin-bottom: 10px; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: #3A3944; font-size: 16px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { padding-inline-start: 34px; position: relative; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%233F8A33' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.kits { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 760px) { .kits { grid-template-columns: repeat(2, 1fr); } }
.kit { border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); background: var(--card); }
.kit h3 { margin-bottom: 4px; }
.kit p { margin: 0; color: #3A3944; font-size: 16px; }
.kit .when { font-size: 14px; font-weight: 700; color: var(--muted); }
.kit.k1 { border-top: 6px solid var(--orange); }
.kit.k2 { border-top: 6px solid var(--purple); }
.kit.k3 { border-top: 6px solid var(--teal); }
.kit.k4 { border-top: 6px solid var(--coral); }
.pilot { background: var(--teal-tint); border: 1px solid #BFE6E4; border-radius: 24px; padding: 26px; display: grid; gap: 8px; }
.pilot .btn { justify-self: start; margin-top: 8px; }
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-top: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style-position: inside; }
details.faq p { margin: 0 0 14px; color: #3A3944; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 40px; margin-top: 30px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* app */
.app-main { padding: 28px 0 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 24px 20px; max-width: 520px; margin: 0 auto; }
@media (min-width: 560px) { .card { padding: 30px 32px; } }
.card.wide { max-width: 760px; }
.card .who { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.card .who img { width: 64px; height: 64px; flex: none; }
.field { display: grid; gap: 6px; margin: 16px 0; }
.field label, .field .label { font-weight: 700; }
.field .hint { font-size: 14px; color: var(--muted); margin: 0; }
input[type="email"], input[type="text"], input[type="tel"], select {
  font: inherit; font-size: 18px; width: 100%; min-height: 50px; padding: 10px 14px;
  border: 2px solid #CFC8BA; border-radius: 14px; background: #fff; color: var(--ink);
}
input:focus, select:focus { border-color: var(--teal-dark); outline: none; box-shadow: 0 0 0 3px rgba(31, 116, 114, .2); }
input.otp { letter-spacing: .4em; text-align: center; font-weight: 700; font-size: 26px; direction: ltr; }
input.code { text-transform: uppercase; letter-spacing: .08em; direction: ltr; text-align: center; font-weight: 700; }
input[aria-invalid="true"] { border-color: var(--coral); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--teal-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 18px; }
.actions .btn { flex: 1 1 auto; }
.msg { border-radius: 12px; padding: 12px 14px; margin: 14px 0 0; font-size: 16px; }
.msg:empty { display: none; }
.msg.error { background: var(--coral-tint); color: var(--coral-dark); }
.msg.ok { background: var(--green-tint); color: #2E6826; }
.msg.info { background: var(--sky-tint); color: #2C5C7A; }
.setup-warning { max-width: 760px; margin: 0 auto 18px; background: #FFF0C2; border: 2px dashed #D9A400; border-radius: 14px; padding: 12px 16px; }
.topline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 15px; color: var(--muted); }

.library { display: grid; gap: 16px; margin-top: 18px; }
.product { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.product > h3 { margin: 0; padding: 14px 18px; background: var(--orange-tint); font-size: 18px; }
.product:nth-child(5n+2) > h3 { background: var(--orange-tint); }
.product:nth-child(5n+3) > h3 { background: var(--purple-tint); }
.product:nth-child(5n+4) > h3 { background: var(--teal-tint); }
.product:nth-child(5n+5) > h3 { background: var(--coral-tint); }
.product:nth-child(5n+1) > h3 { background: var(--yellow-tint); }
.files { list-style: none; margin: 0; padding: 4px 0; }
.files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid #F1ECE2; }
.files li:first-child { border-top: 0; }
.files .name { font-weight: 500; }
.tips { margin-top: 20px; background: var(--yellow-tint); border-radius: 16px; padding: 16px 18px; }
.tips h3 { margin-bottom: 6px; }
.tips ul { margin: 0; padding-inline-start: 20px; }

/* legal pages */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(28px, 4.2vw, 38px); }
.doc h2 { font-size: 22px; margin-top: 1.4em; }
.doc .draft { background: #FFF0C2; border: 2px dashed #D9A400; border-radius: 12px; padding: 10px 14px; }

/* ---------- admin upload page ---------- */
.admin-card { max-width: 860px; }
.adm-steps { padding-inline-start: 22px; line-height: 1.6; }
.table-wrap { overflow-x: auto; margin: 12px 0; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th, .adm-table td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm-table th { font-weight: 700; background: var(--teal-tint); }
.adm-table td.ltr { direction: ltr; text-align: left; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.adm-missing { padding-inline-start: 22px; line-height: 1.6; }
.adm-missing-head { list-style: none; font-weight: 700; margin-inline-start: -22px; }
