/* ==========================================================================
   כלכלה מאפס – landing page styles
   Mobile-first. On wider screens the page stays a centered phone-width column.
   ========================================================================== */

:root {
  /* Brand */
  --green-900: #01392C;   /* main dark green background */
  --green-950: #0B1F19;   /* footer */
  --green-700: #0B6B4F;
  --accent:    #0FB881;   /* primary CTA / eyebrow text */
  --cream:     #F5F4EF;
  --white:     #FFFFFF;

  /* Text on dark */
  --on-dark-1: #FFFFFF;
  --on-dark-2: #CFE3DA;
  --on-dark-3: #B9D4C9;
  --on-dark-4: #9FC4B6;
  --label:     #DCE9E3;

  /* Text on light */
  --ink-1: #01392C;
  --ink-2: #3B4A44;
  --ink-3: #4B5C55;
  --line:  #E4E5DD;

  /* Track colors (accordion cards) */
  --t1: #7CE0A3;  --t1-ink: #01392C;  --t1-sub: #0B4A38;   /* תוכנית ההכשרה */
  --t2: #5865F2;  --t2-ink: #FFFFFF;  --t2-sub: #E3E6FF;   /* קהילת הדיסקורד */
  --t3: #F5922F;  --t3-ink: #2B1600;  --t3-sub: #4A2A08;   /* מסמך ההכשרה */

  --font-body: 'Assistant', system-ui, sans-serif;
  --font-head: 'Heebo', system-ui, sans-serif;

  --page-w: 480px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--green-950);
  background: var(--green-950);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

.page {
  max-width: var(--page-w);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--green-900);
  overflow-x: hidden;
}

/* Wider screens: frame the phone-width column */
@media (min-width: 560px) {
  body { background: #0A2A21; }
  .page { box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 30px 80px rgba(0,0,0,0.35); }
}

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px;
  background: var(--accent); color: var(--green-900);
  padding: 10px 14px; border-radius: 8px; font-weight: 700; z-index: 10;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid #FFD166; outline-offset: 2px; }

/* ---------- Shared bits ---------- */

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent);
}

.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 16px; border-radius: 12px; border: 0;
  font: 700 17px/1.2 var(--font-body); cursor: pointer; text-align: center;
  width: 100%;
}
.btn--primary { background: var(--accent); color: var(--green-900); }
.btn--primary:hover { background: #12CC90; }
.btn--outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); font-weight: 600; }
.btn--outline:hover { border-color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 5;
  height: 68px; padding: 0 20px;
  background: var(--green-900);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { font: 700 17px var(--font-head); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-link {
  color: var(--white); font-size: 15px; font-weight: 600; padding: 0 10px;
  min-height: 44px; display: flex; align-items: center;
}
.header-link:hover { color: var(--accent); }
.header-cta {
  background: var(--accent); color: var(--green-900);
  font-size: 14px; font-weight: 700; padding: 11px 16px; border-radius: 9px;
  min-height: 44px; display: flex; align-items: center;
}

/* ---------- Hero ---------- */

.hero {
  padding: 40px 20px 44px; color: var(--white);
  display: flex; flex-direction: column; gap: 20px;
}
.hero h1 { font: 800 39px/1.16 var(--font-head); text-wrap: pretty; }
.hero p  { font-size: 18px; line-height: 1.6; color: var(--on-dark-2); text-wrap: pretty; }

/* ---------- Tracks (accordion) ---------- */

.tracks { padding: 44px 20px 52px; display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 68px; }
.tracks__intro { display: flex; flex-direction: column; gap: 10px; }
.tracks__intro h2 { font: 800 32px/1.2 var(--font-head); color: var(--white); text-wrap: pretty; }
.tracks__intro p  { font-size: 16px; line-height: 1.6; color: var(--on-dark-2); }

.track-list { display: flex; flex-direction: column; gap: 12px; }

.track {
  --c: var(--t1); --ink: var(--t1-ink); --sub: var(--t1-sub);
  border: 3px solid var(--c); border-radius: 18px; overflow: hidden; background: var(--c);
  scroll-margin-top: 80px;
}
.track--community { --c: var(--t2); --ink: var(--t2-ink); --sub: var(--t2-sub); }
.track--doc       { --c: var(--t3); --ink: var(--t3-ink); --sub: var(--t3-sub); }

.track__toggle {
  width: 100%; min-height: 140px; padding: 20px 22px 22px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
  background: var(--c); color: var(--ink); border: 0; border-radius: 0;
  font-family: inherit; text-align: right; cursor: pointer;
}
.track__bar { height: 4px; width: 44px; border-radius: 99px; background: rgba(0,0,0,0.22); }
.track.is-open .track__bar { background: var(--ink); }
.track__num   { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--sub); }
.track__title { font: 700 21px/1.25 var(--font-head); }
.track__desc  { font-size: 14px; line-height: 1.5; color: var(--sub); }
.track__more  { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--sub); }
.track__more svg { transition: transform 0.2s; }
.track.is-open .track__more svg { transform: rotate(180deg); }

.track__row  { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.track__text { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.track__price { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.track__price b { font: 800 38px/1 var(--font-head); }
.track__price s { font-size: 16px; font-weight: 600; color: var(--sub); }

.track__panel { background: var(--white); border-radius: 0 0 15px 15px; padding: 26px 20px; }
.track__panel[hidden] { display: none; }

/* ---------- Panel content ---------- */

.panel { display: flex; flex-direction: column; gap: 22px; color: var(--ink-2); }
.panel h3 { font: 800 28px/1.25 var(--font-head); color: var(--ink-1); text-wrap: pretty; }
.panel .subhead { font-size: 18px; font-weight: 700; color: var(--ink-1); }
.panel p { font-size: 16px; line-height: 1.75; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--tight { gap: 12px; }

.topic { border-right: 3px solid var(--accent); padding-right: 14px; display: flex; flex-direction: column; gap: 5px; }
.topic b    { font-size: 17px; color: var(--ink-1); }
.topic span { font-size: 15px; line-height: 1.6; color: var(--ink-3); }
.topic--discord { background: #EEF0FF; border-right-color: var(--t2); border-radius: 10px 0 0 10px; padding: 14px 14px 14px 16px; }
.topic--discord b    { color: #3C45C9; }
.topic--discord span { color: #2E3470; }

.feature { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 7px; }
.feature b    { font-size: 17px; color: var(--ink-1); }
.feature span { font-size: 15px; line-height: 1.6; color: var(--ink-3); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.check svg { flex-shrink: 0; margin-top: 3px; }

.note { background: var(--cream); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.note b    { font-size: 16px; color: var(--ink-1); }
.note span { font-size: 15px; line-height: 1.7; color: var(--ink-3); }

/* ---------- CTA box (dark, inside panels) ---------- */

.cta-box { background: var(--green-900); border-radius: 16px; padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.cta-box .pill {
  align-self: flex-start; background: var(--accent); color: var(--green-900);
  font-size: 13px; font-weight: 700; padding: 6px 13px; border-radius: 99px;
}
.cta-box .cta-title { font: 700 25px/1.25 var(--font-head); color: var(--white); }
.cta-box .cta-text  { font-size: 15px; line-height: 1.65; color: var(--on-dark-3); }
.cta-box .fine      { font-size: 13px; line-height: 1.55; color: var(--on-dark-4); text-align: center; }
.cta-box .fine--row { display: flex; gap: 8px; align-items: flex-start; justify-content: center; text-align: right; }
.cta-box .fine--row svg { flex-shrink: 0; margin-top: 2px; }

.price-line { display: flex; align-items: baseline; justify-content: center; gap: 9px; }
.price-line .lbl { font-size: 14px; color: var(--label); }
.price-line s    { font-size: 16px; color: var(--on-dark-4); }
.price-line b    { font-size: 18px; color: var(--white); }

.big-price { display: flex; align-items: baseline; gap: 9px; }
.big-price b   { font: 800 46px/1 var(--font-head); color: var(--white); }
.big-price .cur{ font-size: 19px; font-weight: 600; color: var(--label); }
.big-price s   { font-size: 21px; color: var(--on-dark-4); }

/* Form */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--label); }
.field input {
  height: 50px; padding: 0 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.07);
  color: var(--white); font: 16px var(--font-body);
}
.field input::placeholder { color: rgba(255,255,255,0.45); }
.field input[aria-invalid="true"] { border-color: #FF8A8A; }
.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.consent label { font-size: 13px; line-height: 1.5; color: var(--on-dark-3); }
.consent a { text-decoration: underline; }
.form-error { font-size: 14px; color: #FFB3B3; min-height: 0; }
.form-error:empty { display: none; }
.form-error a { color: inherit; text-decoration: underline; }
.hp { display: none !important; }
.btn[disabled] { opacity: .7; cursor: wait; }

/* ---------- About ---------- */

.about { padding: 44px 20px; color: var(--white); display: flex; flex-direction: column; gap: 18px; }
.about__photo {
  height: 300px; border-radius: 16px; border: 1px dashed rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--on-dark-4); font-size: 15px;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.about h2 { font: 800 32px/1.2 var(--font-head); }
.about p  { font-size: 16px; line-height: 1.75; color: var(--on-dark-2); }

/* ---------- Footer ---------- */

.site-footer { background: var(--green-950); padding: 32px 20px 36px; display: flex; flex-direction: column; gap: 20px; }
.site-footer .brand img { width: 44px; height: 44px; }
.site-footer .brand span { font-size: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer nav a { font-size: 14px; color: #C5D5CD; }
.site-footer nav a:hover { color: var(--white); }
.site-footer p { font-size: 13px; line-height: 1.7; color: #8FAA9F; }

/* ---------- Thank-you page ---------- */

.thanks {
  position: relative; overflow: hidden; min-height: 100vh; padding: 48px 24px;
  display: flex; align-items: center; justify-content: center; color: var(--white);
}
.thanks::before, .thanks::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.thanks::before { top: -180px; right: -140px; width: 440px; height: 440px; border: 1px solid rgba(255,255,255,0.09); }
.thanks::after  { bottom: -200px; left: -150px; width: 400px; height: 400px; border: 1px solid rgba(255,255,255,0.07); }
.thanks__inner { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.thanks__logo  { width: 66px; height: 66px; border-radius: 50%; }
.thanks__check { width: 62px; height: 62px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.thanks h1 { font: 800 36px/1.2 var(--font-head); text-wrap: pretty; }
.thanks p  { font-size: 17px; line-height: 1.7; color: var(--on-dark-2); text-wrap: pretty; }
.thanks__actions { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 6px; }
.thanks__foot { margin-top: 14px; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; width: 100%; font-size: 14px; color: #A7CEC0; }
.thanks__foot a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: flex; align-items: center; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track__more svg { transition: none; }
}
