/* Itay Hallali course site. Colors, fonts and rules: brand/BRAND.md */
:root {
  --cobalt: #003566;
  --navy: #001D3D;
  --amber: #FFC300;
  --paper: #F4F6F9;
  --card: #FFFFFF;
  --sky: #8FB8E8;
  --text-2: #3D4F63;
  --text-3: #4E5F73;
  --line: #DDE3EA;
  --yellow-soft: #FFE07A;
  --blue-soft: #BFD3EE;
  --peach: #FFD3A3;
  --grey-blue: #D7DEEA;
  --on-dark-2: #C5D3E3;
  --cobalt-2: #0E4A82;
  --wrap: 1160px;
  --head: 'Rubik', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--cobalt);
  font-family: 'Assistant', sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--amber); }

h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 900; line-height: 1.15; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
p { margin: 0; text-wrap: pretty; }
.muted { color: var(--text-2); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 10;
  background: var(--cobalt); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-weight: 700;
}
.skip:focus { top: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 32px 64px; display: flex; flex-direction: column; gap: 28px; }
.section-head { display: flex; flex-direction: column; gap: 8px; }
.section-head p { max-width: 680px; }

.tag {
  align-self: flex-start; display: inline-block;
  padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; background: var(--yellow-soft); color: var(--cobalt);
}
.tag-blue { background: var(--blue-soft); }
.tag-white { background: var(--card); }
.tag-amber { background: var(--amber); color: var(--cobalt); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 24px; border-radius: 16px; text-decoration: none; font-weight: 700; text-align: center;
}
.btn-main { background: var(--amber); color: var(--cobalt); font-family: var(--head); font-weight: 900; }
.btn-dark { background: var(--cobalt); color: var(--paper); }
.btn-dark.big { font-family: var(--head); font-weight: 900; font-size: 20px; min-height: 56px; padding: 0 28px; border-radius: 18px; }
.btn-light { background: var(--card); border: 1px solid var(--line); min-height: 56px; border-radius: 18px; }
.btn-soft { background: var(--paper); }

.card { background: var(--card); border-radius: 28px; padding: 28px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.dot { display: block; width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo span { font-family: var(--head); font-weight: 900; font-size: 24px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 16px; font-weight: 600; }
.nav-links a:not(.btn) { text-decoration: none; padding-block: 10px; }
.nav-links a:not(.btn):hover { text-decoration: underline; }
.nav-links .btn { min-height: 46px; padding: 0 20px; border-radius: 14px; }
@media (max-width: 860px) { .nav-links a:not(.btn) { display: none; } }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 40px 72px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(48px, 7vw, 88px); line-height: 1.08; }
.hero-lead { font-size: clamp(18px, 2vw, 22px); max-width: 560px; color: var(--text-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.marker { background: linear-gradient(transparent 55%, var(--amber) 55%, var(--amber) 92%, transparent 92%); padding: 0 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.bubbles { flex: 1 1 380px; position: relative; height: 440px; min-width: 280px; }
.bubbles span { position: absolute; border-radius: 50%; }
@media (max-width: 640px) {
  .hero { padding-block: 16px 48px; gap: 24px; }
  .bubbles { height: 200px; flex-basis: 100%; }
  .bubbles span { transform: scale(0.5); transform-origin: center; }
}

/* Stats */
.stats { background: var(--cobalt); color: var(--paper); }
.stats .wrap { padding-block: 40px; display: grid; gap: 24px 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 640px) { .stat b { font-size: 44px; } .stat { font-size: 16px; } }
.stat { display: flex; flex-direction: column; }
.stat b { font-family: var(--head); font-weight: 900; font-size: 52px; line-height: 1.1; color: var(--sky); }

/* Pains */
.pains { padding-block: 88px 40px; }
.pain { display: flex; flex-direction: column; gap: 10px; }
.pain h3 { font-family: 'Assistant', sans-serif; font-weight: 700; font-size: 22px; }

/* Courses */
.courses-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.course { background: var(--card); border-radius: 36px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.course-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.course-top small { font-size: 15px; color: var(--text-3); }
.course h3 { font-size: 32px; }
.promise { padding: 14px 18px; background: var(--paper); border-radius: 18px; font-weight: 600; }
.modules { margin: 4px 0 0; padding: 0 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 20px; font-size: 16px; }

/* Free lessons */
.lesson { background: var(--card); border-radius: 28px; padding: 14px 14px 24px; display: flex; flex-direction: column; gap: 14px; }
.thumb { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: var(--cobalt); border-radius: 20px; overflow: hidden; }
.thumb .c1 { position: absolute; right: -30px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--cobalt-2); }
.thumb .c2 { position: absolute; left: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%; }
.thumb .play { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--paper); display: flex; align-items: center; justify-content: center; }
.lesson-body { padding: 0 10px; display: flex; flex-direction: column; gap: 8px; }
.lesson-body small { font-size: 15px; font-weight: 700; color: var(--text-3); }
.lesson-body h3 { font-size: 24px; line-height: 1.2; }
.lesson-body p { font-size: 17px; }
.lesson-body a { margin-top: 4px; font-weight: 700; padding-block: 8px; }

/* Method */
.panel { background: var(--card); border-radius: 40px; padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: 28px; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.checks li { background: var(--paper); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.checks .n { width: 44px; height: 44px; border-radius: 50%; background: var(--cobalt); color: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 900; font-size: 20px; }
.checks strong { font-size: 19px; }
.checks span:last-child { font-size: 16px; color: var(--text-2); }

/* Diffs */
.diffs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.diff { display: flex; gap: 14px; align-items: flex-start; }
.diff i { flex-shrink: 0; width: 16px; height: 16px; margin-top: 7px; border-radius: 50%; }
.diff div { display: flex; flex-direction: column; gap: 2px; }
.diff strong { font-size: 20px; }

/* Bonus */
.bonus { background: var(--cobalt); color: var(--paper); border-radius: 40px; padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.bonus-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.bonus-text p { color: var(--on-dark-2); max-width: 480px; }
.bonus-text small { font-size: 14px; color: #A9BACD; }
.phone { flex: 0 1 300px; margin: 0 auto; background: var(--paper); color: var(--cobalt); border-radius: 36px; padding: 18px; display: flex; flex-direction: column; gap: 12px; border: 6px solid var(--cobalt-2); }
.phone-head { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 900; font-size: 16px; }
.phone-bubbles { position: relative; height: 230px; background: var(--card); border-radius: 22px; overflow: hidden; }
.phone-bubbles span { position: absolute; border-radius: 50%; }
.phone-bar { display: flex; gap: 3px; height: 12px; border-radius: 999px; overflow: hidden; }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 64px; }
.portrait { flex: 0 1 360px; margin: 0 auto; position: relative; }
.portrait::before { content: ''; position: absolute; left: -18px; bottom: 10px; width: 120px; height: 120px; border-radius: 50%; background: var(--amber); }
.portrait img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 45%; border-radius: 50%; border: 8px solid var(--card); }
.about-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.about-text .punch { font-family: var(--head); font-weight: 900; font-size: 22px; }

/* Testimonials */
.quote { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.quote blockquote { margin: 0; font-size: 19px; }
.quote figcaption { font-weight: 700; }

/* Pricing */
.prices { display: grid; gap: 16px; align-items: stretch; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.price { background: var(--card); border-radius: 36px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.price .part { font-weight: 700; color: var(--text-3); }
.price strong { font-size: 24px; }
.price .amount { font-family: var(--head); font-weight: 900; font-size: 44px; line-height: 1; }
.price .btn { margin-top: auto; }
.price-main { background: var(--cobalt); color: var(--paper); }
.price-main .muted, .price-main s { color: var(--on-dark-2); }
.price-main .tag { font-size: 14px; padding: 4px 12px; }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bonus-line { color: var(--sky); font-weight: 700; }
.assure { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; font-size: 16px; font-weight: 600; }
.assure li { display: flex; align-items: center; gap: 8px; }
.center { text-align: center; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; padding: 32px 24px 80px; display: flex; flex-direction: column; gap: 12px; }
.faq h2 { margin-bottom: 12px; }
.faq details { background: var(--card); border-radius: 20px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; padding: 18px 24px; }
.faq details p { padding: 0 24px 20px; color: var(--text-2); }

/* Footer */
.footer { background: var(--cobalt); color: var(--on-dark-2); }
.footer .wrap { padding-block: 40px; display: flex; flex-direction: column; gap: 16px; font-size: 15px; }
.footer .logo { color: var(--paper); }
.footer .logo span { font-size: 20px; }
.footer p { max-width: 820px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; border-top: 1px solid #1F5A92; }
.footer nav a { color: var(--paper); padding-block: 6px; }
.footer nav span { margin-inline-start: auto; padding-block: 6px; }

/* Legal pages */
.legal { max-width: 820px; margin: 0 auto; padding: 24px 24px 80px; display: flex; flex-direction: column; gap: 14px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin-top: 20px; }
.legal ul { margin: 0; padding-inline-start: 24px; display: flex; flex-direction: column; gap: 6px; }
.draft-note { background: var(--yellow-soft); border-radius: 16px; padding: 14px 18px; font-weight: 600; }
.legal .meta { color: var(--text-3); font-size: 16px; }

/* v2 (25.10): portrait hero, steps, pricing helpers, final CTA */
.hero-visual { flex: 1 1 360px; position: relative; max-width: 440px; margin: 0 auto; aspect-ratio: 1; }
.hero-visual img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: cover; border-radius: 50%; border: 8px solid var(--card); }
.hero-visual span { position: absolute; border-radius: 50%; }
.hero-visual .b1 { width: 34%; height: 34%; left: 0; bottom: 4%; background: var(--amber); }
.hero-visual .b2 { width: 20%; height: 20%; right: 2%; top: 4%; background: var(--cobalt); }
.hero-visual .b3 { width: 11%; height: 11%; right: 0; top: 30%; background: var(--sky); }
.hero-visual .b4 { width: 9%; height: 9%; left: 10%; top: 6%; background: var(--blue-soft); }
@media (max-width: 640px) { .hero-visual { max-width: 300px; flex-basis: 100%; } }
.trust-line { font-size: 15px; font-weight: 600; color: var(--text-3); }

.pain h3 { font-size: 21px; }

.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: step; }
.steps li { background: var(--card); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.steps .n { width: 44px; height: 44px; border-radius: 50%; background: var(--cobalt); color: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 900; font-size: 20px; }
.steps strong { font-size: 21px; }

.course .tag-main { background: var(--cobalt); color: var(--paper); }

.helper { font-size: 18px; font-weight: 600; max-width: 760px; }
.price .monthly { font-size: 16px; font-weight: 600; color: var(--text-3); }
.price-main .monthly { color: var(--on-dark-2); }
.after-pay { font-weight: 700; }

.final { background: var(--card); border-radius: 40px; padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.final .hero-ctas { justify-content: center; }

/* Calculators page (27.10) */
.calc-page { display: flex; flex-direction: column; gap: 24px; padding-block: 16px 80px; }
.calc-intro { gap: 12px; }
.calc-intro h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.1; }
.calc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.calc-jump a { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 16px; text-decoration: none; }
.calc-jump a:hover { border-color: var(--cobalt); }
.calc { background: var(--card); border-radius: 36px; padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 16px; }
.calc-head { display: flex; flex-direction: column; gap: 8px; }
.calc-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.calc-head p { max-width: 720px; }
.calc-body { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.calc-fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.calc-fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 16px; position: relative; }
.calc-fields .unit { position: absolute; inset-inline-end: 16px; bottom: 13px; font-weight: 600; color: var(--text-3); pointer-events: none; }
.calc-fields input {
  height: 52px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper);
  padding: 0 16px; font: 700 20px 'Assistant', sans-serif; color: var(--cobalt); direction: ltr; text-align: right; width: 100%;
}
.calc-fields label:has(.unit) input { padding-left: 40px; }
.calc-fields input:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 1px; background: var(--card); }
.calc-result { background: var(--paper); border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.res-label { font-weight: 700; color: var(--text-3); }
.res-big { font-family: var(--head); font-weight: 900; font-size: clamp(38px, 5vw, 52px); line-height: 1.05; }
.res-cost { color: #C0392B; }
.res-split { margin: 0; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.res-split div { background: var(--card); border-radius: 18px; padding: 12px 16px; }
.res-split dt { font-size: 15px; font-weight: 600; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.res-split dd { margin: 0; font-family: var(--head); font-weight: 700; font-size: 22px; }
.res-note { font-size: 16px; color: var(--text-2); }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.sw-dep, .bar-dep { background: var(--cobalt); }
.sw-gain, .bar-gain { background: var(--sky); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 200px; margin-top: 8px; direction: ltr; }
.bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 20px; }
.bar-stack { flex: 1; width: 100%; max-width: 44px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar-stack i { display: block; width: 100%; }
.bar-stack .bar-gain { border-radius: 8px 8px 0 0; }
.bar-stack .bar-val { margin-bottom: 4px; }
.bar-dep { border-radius: 0 0 4px 4px; }
.bar-val, .bar-year { font-size: 12px; color: var(--text-3); white-space: nowrap; direction: rtl; }
.bar-val { font-weight: 700; color: var(--cobalt); }
@media (max-width: 520px) { .bar-val { display: none; } .bar-year { font-size: 11px; } .res-split { grid-template-columns: 1fr; } }
.calc-honest { display: flex; flex-direction: column; gap: 14px; }
.calc-honest h2 { font-size: 28px; }
.calc-honest ul { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }

/* Guide pages (open-account) */
.guide h1 { line-height: 1.15; }
.guide h3 { font-size: 22px; }
.guide .tag { margin-bottom: -4px; }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { background: var(--card); border-radius: 18px; padding: 14px 18px; }
.guide-steps { margin: 0; padding: 0; list-style: none; counter-reset: gstep; display: flex; flex-direction: column; gap: 12px; }
.guide-steps > li { counter-increment: gstep; background: var(--card); border-radius: 24px; padding: 22px 24px 22px 24px; padding-inline-start: 76px; position: relative; display: flex; flex-direction: column; gap: 10px; }
.guide-steps > li::before { content: counter(gstep); position: absolute; inset-inline-start: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--cobalt); color: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 900; font-size: 18px; }
.shot { margin: 4px 0 0; border: 2px dashed var(--line); border-radius: 16px; padding: 28px 16px; text-align: center; color: var(--text-3); font-weight: 600; background: var(--paper); }
.aside { background: var(--yellow-soft); border-radius: 14px; padding: 10px 14px; font-size: 16px; font-weight: 600; }
.disclosure { font-size: 16px; color: var(--text-2); }
@media (max-width: 520px) { .guide-steps > li { padding-inline-start: 22px; padding-top: 72px; } }
.guide a[dir="ltr"] { white-space: nowrap; }

/* Video testimonials (29.10) */
.vid { margin: 0; background: var(--card); border-radius: 28px; padding: 14px 14px 22px; display: flex; flex-direction: column; gap: 12px; }
.vid video { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 20px; background: var(--navy); }
.vid blockquote { margin: 0; padding: 0 8px; font-size: 18px; }
.vid figcaption { padding: 0 8px; font-weight: 700; }
.vid figcaption span { font-weight: 400; color: var(--text-3); }
video::cue { font-family: 'Assistant', sans-serif; font-size: 18px; line-height: 1.4; background: rgba(0, 29, 61, 0.82); color: #FFFFFF; }

/* Free-lessons gift page (31.10) */
.gift { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; padding-block: 24px 72px; }
.gift-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.gift-text h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.12; }
.gift-list { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 18px; }
.gift-proof { color: var(--text-2); font-weight: 600; }
.gift-card { flex: 1 1 360px; min-width: 0; }
.gift-card form { display: flex; flex-direction: column; gap: 16px; }
.gift-card h2 { font-size: 26px; line-height: 1.2; }
.gift-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.gift-card input:not([type="checkbox"]) { height: 52px; border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; font: inherit; font-weight: 400; background: var(--card); color: var(--cobalt); width: 100%; }
.gift-card label.gift-consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 16px; color: var(--text-2); }
.gift-consent input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: var(--cobalt); }
.gift-card .btn { width: 100%; justify-content: center; min-height: 56px; font-size: 20px; border: 0; cursor: pointer; }
.gift-small { font-size: 15px; color: var(--text-3); }
.gift-error { color: #C0392B; font-weight: 700; }
#gift-done { display: flex; flex-direction: column; gap: 14px; }
#gift-done[hidden], .gift-card form[hidden] { display: none; }
.gift-jump { display: none; font-size: 20px; min-height: 56px; }
@media (max-width: 720px) { .gift { flex-direction: column; gap: 28px; } .gift-text, .gift-card { flex: 0 1 auto; width: 100%; } .gift-jump { display: inline-flex; } }
