/* פאזה — אותה שפה כמו האפליקציה (lib/theme/paza_theme.dart): נייר, כבלים בצבעי התקן, כותרות דחוסות. */
@font-face {
  font-family: "Noto Sans Hebrew";
  src: url("fonts/NotoSansHebrew-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
}
@font-face { font-family: "Cousine"; src: url("fonts/Cousine-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cousine"; src: url("fonts/Cousine-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f3efe6;
  --home-bg: #f5f1e8;
  --card: #fbf9f4;
  --ink: #2a2723;
  --mute: #6f685d;
  --line: #e2dccf;
  --ok: #2d7a3e;
  --ok-bg: #e6f0e3;
  --acc: #b8460f;
  --on-acc: #fff;
  --exam: #c2410c;
  --exam-shadow: #7c2a08;
  --panel: #1d1b18;
  --panel-ink: #f5f1e8;
  --panel-mute: #c9c3b6;
  --w-brown: #7b3f1e;
  --w-black: #1d1b18;
  --w-gray: #8f9396;
  --w-blue: #1f5fbf;
  --w-green: #2f9e44;
  --w-yellow: #f2c80f;
  --copper: #c87533;
  --copper-light: #e08a45;
  --black-outline: transparent;
  --earth: repeating-linear-gradient(-45deg, var(--w-green) 0 7px, var(--w-yellow) 7px 14px);
  --radius: 18px;
  --he: "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
  --mono: "Cousine", "Courier New", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1c1a;
    --home-bg: #1e1c1a;
    --card: #282522;
    --ink: #e6e0d4;
    --mute: #a39b8d;
    --line: #3a3632;
    --ok: #7cc48a;
    --ok-bg: #243326;
    --acc: #e98a52;
    --on-acc: #1e1c1a;
    --exam: #e98a52;
    --exam-shadow: #8a4a22;
    --panel: #282522;
    --panel-ink: #e6e0d4;
    --panel-mute: #a39b8d;
    --black-outline: #5a544c;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--he);
  font-size: 18px;
  line-height: 1.7;
  font-variation-settings: "wght" 400;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--acc); }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.mono, .updated .num { font-family: var(--mono); }
.stats b { direction: ltr; unicode-bidi: isolate; text-align: right; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* פס הכבלים העליון — כמו בראש מסך השאלה באפליקציה */
.wirestrip { display: flex; height: 6px; }
.wirestrip i { flex: 1; }
.wirestrip i:nth-child(1) { background: var(--w-brown); }
.wirestrip i:nth-child(2) { background: var(--w-black); box-shadow: inset 0 -1px var(--black-outline); }
.wirestrip i:nth-child(3) { background: var(--w-gray); }
.wirestrip i:nth-child(4) { background: var(--w-blue); }
.wirestrip i:nth-child(5) { background: var(--earth); }

/* כותרת עליונה */
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; min-height: 68px; flex-wrap: wrap; padding-block: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px; background: var(--card); border: 1.5px solid var(--line);
  display: grid; place-items: center; font-size: 26px; line-height: 1;
  font-variation-settings: "wght" 900, "wdth" 62.5; font-weight: 900; font-stretch: 62.5%;
}
.brand-word, .cond {
  font-weight: 900; font-stretch: 62.5%;
  font-variation-settings: "wght" 900, "wdth" 62.5;
  letter-spacing: 0;
}
.brand-word { font-size: 30px; line-height: 1; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.nav a {
  display: inline-block; padding: 8px 12px; border-radius: 10px; text-decoration: none;
  font-variation-settings: "wght" 600; font-weight: 600; font-size: 16px; color: var(--mute);
}
.nav a:hover { color: var(--ink); background: var(--card); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--card); box-shadow: inset 0 -3px var(--acc); }

/* ============ דף הבית ============ */
.hero { position: relative; overflow: hidden; background: var(--home-bg); padding-bottom: 40px; }
.cables { position: absolute; inset: 0 0 auto 0; width: 100%; height: 300px; pointer-events: none; }
.cables .k { fill: none; stroke-width: 26; stroke-linecap: butt; }
.hero-in { position: relative; display: grid; gap: 24px; padding-top: 128px; }
.wordmark {
  justify-self: start;
  background: var(--home-bg); border-radius: 20px; padding: 4px 20px 10px;
  margin: 0; font-size: clamp(86px, 20vw, 150px); line-height: .95;
}
.hero-copy h2 { margin: 0 0 10px; font-size: clamp(30px, 6.4vw, 50px); line-height: 1.08; }
.hero-copy .lead { margin: 0 0 22px; color: var(--mute); font-size: 19px; max-width: 36ch; }
.hero-copy .note { font-size: 15px; color: var(--mute); margin: 14px 0 0; }
.hero-shot { justify-self: center; width: min(300px, 78vw); }

.phone {
  border-radius: 34px; padding: 9px; background: var(--w-black);
  box-shadow: 0 0 0 1px var(--black-outline), 0 24px 50px -24px rgba(40, 25, 10, .45);
}
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 600 / 1298; object-fit: cover; object-position: top; background: var(--bg); }

/* כפתורי חנויות */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 20px 8px 18px;
  border-radius: 16px; background: var(--exam); color: var(--on-acc); text-decoration: none;
  box-shadow: 0 5px 0 var(--exam-shadow); font-weight: 700; font-variation-settings: "wght" 700; font-size: 19px; line-height: 1.15;
}
.store i { font-size: 26px; }
.store small { display: block; font-size: 13px; font-weight: 500; font-variation-settings: "wght" 500; opacity: .9; }
a.store:hover { color: var(--on-acc); filter: brightness(1.06); }
.store.is-soon { background: var(--card); color: var(--ink); box-shadow: none; border: 2px dashed var(--mute); }
.store.is-soon small { color: var(--mute); opacity: 1; }

/* לוח הנתונים — כרטיס המוכנות הכהה של האפליקציה */
.panel {
  position: relative; background: var(--panel); color: var(--panel-ink); border-radius: 24px;
  padding: 26px 22px 24px; box-shadow: 0 10px 0 var(--w-brown);
}
.panel h2 { margin: 0 0 4px; font-size: 22px; font-variation-settings: "wght" 700; font-weight: 700; }
.panel .sub { margin: 0 0 18px; color: var(--panel-mute); font-size: 16px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.stats b { display: block; font-family: var(--mono); font-size: clamp(30px, 8vw, 44px); line-height: 1.1; font-weight: 700; color: var(--panel-ink); }
.stats span { color: var(--panel-mute); font-size: 15px; line-height: 1.45; display: block; }
.meter { margin-top: 24px; }
.meter-bar { position: relative; height: 22px; border-radius: 11px; background: #3a3632; }
.meter-bar .fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 86%; background: var(--earth); border-radius: 11px; }
.meter-bar .mark { position: absolute; inset-block: -5px; inset-inline-start: 80%; width: 4px; background: var(--panel-ink); border-radius: 2px; }
.meter p { margin: 10px 0 0; color: var(--panel-mute); font-size: 15px; }

/* מקטעים */
.sec { padding: 56px 0; }
.sec-alt { background: var(--home-bg); }
.sec h2.cond { font-size: clamp(36px, 7vw, 54px); line-height: 1.05; margin: 0 0 10px; }
.sec .intro { color: var(--mute); margin: 0 0 28px; max-width: 60ch; }
.kicker { margin: 0 0 6px; font-size: 15px; font-weight: 700; font-variation-settings: "wght" 700; color: var(--acc); }

/* מסלולים — כמו מסך בחירת המסלול */
.tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.track {
  position: relative; overflow: hidden; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 18px 30px 18px 20px;
}
.track::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 10px; background: var(--edge, var(--w-brown)); }
.track h3 { margin: 0; font-size: 32px; line-height: 1.15; }
.track p { margin: 4px 0 0; color: var(--mute); font-size: 16px; }
.track.t2 { --edge: var(--w-black); }
.track.t3 { --edge: var(--w-blue); }
.track.t4 { --edge: linear-gradient(90deg, var(--w-green) 50%, var(--w-yellow) 50%); }
@media (prefers-color-scheme: dark) { .track.t2::before { box-shadow: inset -1px 0 var(--black-outline); background: #0e0d0c; } }

/* נושאים — כבל במהדק */
.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.topic { display: grid; grid-template-columns: 44px 70px minmax(0, 1fr); align-items: center; gap: 0 14px; }
.screw {
  width: 44px; height: 44px; border-radius: 9px; background: linear-gradient(#efebe3, #ddd7cb);
  border: 1px solid #cfc8ba; box-shadow: 0 3px 0 #c4bcae; display: grid; place-items: center;
}
.screw::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b9b2a5; background: linear-gradient(135deg, transparent 44%, #a9a194 44% 56%, transparent 56%), #e6e1d7; }
.cable { position: relative; height: 18px; border-radius: 6px; background: var(--c, var(--w-brown)); margin-inline-start: 20px; }
.cable::after {
  content: ""; position: absolute; inset-block: 3px; inset-inline-start: -20px; width: 20px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--copper) 0 3px, var(--copper-light) 3px 6px);
}
.topic:nth-child(5n+2) .cable { --c: var(--w-black); box-shadow: 0 0 0 1px var(--black-outline); }
.topic:nth-child(5n+3) .cable { --c: var(--w-gray); }
.topic:nth-child(5n+4) .cable { --c: var(--w-blue); }
.topic:nth-child(5n+5) .cable { --c: repeating-linear-gradient(90deg, var(--w-green) 0 8px, var(--w-yellow) 8px 16px); }
.topic-name { font-size: 19px; font-weight: 700; font-variation-settings: "wght" 700; line-height: 1.3; }
.topic-name small { display: block; font-size: 14.5px; font-weight: 400; font-variation-settings: "wght" 400; color: var(--mute); }
@media (prefers-color-scheme: dark) {
  .screw { background: linear-gradient(#3a3632, #2f2b28); border-color: #4a4540; box-shadow: 0 3px 0 #171513; }
  .screw::before { border-color: #6a635a; background: linear-gradient(135deg, transparent 44%, #8a8276 44% 56%, transparent 56%), #3a3632; }
}

/* תכונות */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feature > i { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--bg); border: 1.5px solid var(--line); color: var(--acc); }
.feature h3 { margin: 0; font-size: 19px; font-variation-settings: "wght" 700; font-weight: 700; line-height: 1.35; }
.feature p { margin: 4px 0 0; color: var(--mute); font-size: 16px; line-height: 1.6; }

/* חינם מול מלאה */
.plans { display: grid; gap: 22px; }
.plan { background: var(--card); border: 1.5px solid var(--line); border-radius: 22px; padding: 24px 22px; }
.plan h3 { margin: 0; font-size: 36px; line-height: 1.1; }
.plan .price { margin: 6px 0 16px; color: var(--mute); font-size: 16px; }
.plan .price b { font-family: var(--mono); font-size: 34px; color: var(--ink); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: baseline; line-height: 1.5; }
.plan li i { color: var(--ok); flex: none; }
.plan.full { border: 2.5px solid var(--acc); box-shadow: 0 6px 0 var(--exam-shadow); }

/* צילומים */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(230px, 64vw); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; margin: 0; list-style: none; overscroll-behavior-x: contain; }
.shots li { scroll-snap-align: start; margin: 0; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 10px; font-size: 15px; color: var(--mute); text-align: center; }
.shots .phone { border-radius: 28px; padding: 7px; }
.shots .phone img { border-radius: 22px; }
.swipe-hint { color: var(--mute); font-size: 15px; margin: -14px 0 14px; }

/* פרטיות קצרה */
.trust { display: grid; gap: 22px; align-items: center; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trust li { display: flex; gap: 12px; align-items: center; font-size: 18px; font-variation-settings: "wght" 600; font-weight: 600; }
.trust li i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); font-size: 15px; flex: none; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 22px; border-radius: 14px;
  background: var(--acc); color: var(--on-acc); text-decoration: none; font-weight: 700; font-variation-settings: "wght" 700;
}
.btn:hover { color: var(--on-acc); filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn.ghost:hover { color: var(--ink); background: var(--card); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.disclaimer { border-top: 1.5px solid var(--line); padding-top: 18px; margin-top: 40px; color: var(--mute); font-size: 15px; }

/* ============ עמודי טקסט ============ */
.page-hero { padding: 36px 0 8px; }
.page-hero h1 { font-size: clamp(48px, 11vw, 80px); line-height: 1; margin: 0; }
.page-hero .lead { color: var(--mute); margin: 12px 0 0; max-width: 60ch; }
.prose { padding-block: 18px 64px; }
.prose h2 { font-size: 24px; line-height: 1.3; margin: 36px 0 8px; font-weight: 800; font-variation-settings: "wght" 800; }
.prose h2::before { content: ""; display: inline-block; width: 22px; height: 10px; border-radius: 3px; background: var(--acc); margin-inline-end: 10px; vertical-align: middle; }
.prose p, .prose li { max-width: 68ch; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--acc); }
.prose .updated { color: var(--mute); font-size: 15px; margin-top: 0; }
.prose a { color: var(--acc); }
.box { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.box.ok { background: var(--ok-bg); border-color: transparent; }
.box > :first-child { margin-top: 0; } .box > :last-child { margin-bottom: 0; }
.nolist { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.nolist li { display: flex; gap: 10px; align-items: baseline; margin: 0; }
.nolist li i { color: var(--ok); flex: none; width: 18px; text-align: center; }

/* שאלות נפוצות */
.faq { display: grid; gap: 12px; margin-top: 18px; }
.faq details { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 20px; font-weight: 700; font-variation-settings: "wght" 700; font-size: 19px;
  display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 58px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--mute); transition: transform .2s; flex: none; }
.faq details[open] summary i { transform: rotate(180deg); }
.faq .ans { padding: 0 20px 18px; }
.faq .ans p { margin: 0 0 10px; } .faq .ans > :last-child { margin-bottom: 0; }
.faq .ans ol { margin: 0 0 10px; padding-inline-start: 22px; }

/* תחתית */
.foot { background: var(--panel); color: var(--panel-ink); padding: 40px 0 28px; }
@media (prefers-color-scheme: dark) { .foot { background: #151412; } }
.foot a { color: var(--panel-ink); }
.foot a:hover { color: var(--copper-light); }
.foot-in { display: grid; gap: 18px; }
.foot-brand .brand-word { font-size: 42px; }
.foot-brand p { margin: 6px 0 0; color: var(--panel-mute); font-size: 15px; max-width: 52ch; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { display: inline-block; padding: 8px 0; text-decoration: none; font-variation-settings: "wght" 600; font-weight: 600; }
.foot-contact { margin: 0; }
.foot-legal { margin: 0; color: var(--panel-mute); font-size: 14px; border-top: 1px solid #3a3632; padding-top: 16px; }

/* ============ מסכים רחבים ============ */
@media (min-width: 760px) {
  .wrap { padding-inline: 32px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
  .panel { padding: 32px 34px 30px; }
  .foot-in { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .foot-legal, .foot-contact { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .cables { height: 400px; }
  .hero { padding-bottom: 64px; }
  .hero-in { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); padding-top: 64px; column-gap: 56px; }
  .wordmark { grid-column: 1; grid-row: 1; }
  .hero-copy { grid-column: 1; grid-row: 2; padding-top: 70px; }
  .hero-shot { grid-column: 2; grid-row: 1 / span 2; width: 320px; justify-self: end; margin-top: 30px; }
  .hero-copy .lead { font-size: 21px; }
  .sec { padding: 80px 0; }
  .shots { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .swipe-hint { display: none; }
  .trust { grid-template-columns: 1.2fr 1fr; }
}
