/* LeadEstate funnel · RTL, mobile first. Same palette as the ads: night green, mint, gold. */
:root {
  --bg: #0B1612;
  --bg2: #10231C;
  --panel: #18302A;
  --edge: #2A4A3E;
  --fg: #F2F7F4;
  --soft: #A9C1B6;
  --mint: #4FD69A;
  --gold: #E8BC5A;
  --red: #F08A7E;
  --ink: #0E1C17;
  --display: 'Rubik', Arial, sans-serif;
  --text: 'Assistant', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(ellipse at 50% -10%, #17352A 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}
.page {
  max-width: 720px;
  margin: 0 auto;
  padding-block: 28px 56px;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.page.wide { max-width: 960px; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(32px, 7vw, 52px); font-weight: 800; }
h2 { font-size: clamp(24px, 5vw, 32px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }
.eyebrow { font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--gold); }
.lead { font-size: 20px; color: var(--soft); }
.mint { color: var(--mint); }
.gold { color: var(--gold); }

.badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232, 188, 90, 0.12);
  border: 2px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  padding: 6px 16px;
  font-family: var(--display); font-weight: 700; font-size: 16px;
}

.learn { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.learn li { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--edge); border-radius: 16px; padding: 14px 16px; }
.learn .chk { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 15px; margin-top: 2px; }

.card { background: var(--panel); border: 1px solid var(--edge); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.card.gold { border: 2px solid var(--gold); background: #1E2A1F; }

form { display: flex; flex-direction: column; gap: 14px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 16px; }
input[type="text"], input[type="tel"], input[type="email"] {
  font: inherit; font-size: 18px; color: var(--fg);
  background: var(--bg); border: 2px solid var(--edge); border-radius: 14px;
  padding: 13px 14px; width: 100%;
}
input:focus { outline: none; border-color: var(--mint); }
input[type="tel"], input[type="email"] { direction: ltr; text-align: right; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--soft); font-weight: 400; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--mint); flex: none; }
.err { color: var(--red); font-size: 15px; min-height: 1em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 21px;
  background: var(--mint); color: var(--ink);
  border: none; border-radius: 16px; padding: 17px 22px;
  text-decoration: none; cursor: pointer; width: 100%;
  box-shadow: 0 10px 30px rgba(79, 214, 154, 0.25);
}
.btn.gold { background: var(--gold); box-shadow: 0 10px 30px rgba(232, 188, 90, 0.25); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }

.video { position: relative; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--edge); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--soft); font-size: 16px; }

.q { display: flex; flex-direction: column; gap: 10px; border: none; margin: 0; padding: 0; }
.q legend { font-family: var(--display); font-weight: 800; font-size: 20px; margin-bottom: 4px; padding: 0; }
.opt { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 2px solid var(--edge); border-radius: 14px; padding: 13px 14px; cursor: pointer; font-weight: 600; }
.opt input { width: 20px; height: 20px; accent-color: var(--mint); flex: none; }
.opt:has(input:checked) { border-color: var(--mint); background: rgba(79, 214, 154, 0.08); }

.steps { display: flex; flex-direction: column; gap: 10px; counter-reset: s; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps li::before { counter-increment: s; content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 16px; }

.booking { width: 100%; min-height: 720px; border: none; border-radius: 18px; background: #fff; }
.legal { font-size: 13px; color: var(--soft); line-height: 1.5; border-top: 1px solid var(--edge); padding-top: 16px; }
.legal a { color: var(--soft); }
.foot { display: flex; flex-wrap: wrap; gap: 6px 14px; }
[hidden] { display: none !important; }

@media (min-width: 760px) {
  .two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* WhatsApp: questions before booking */
.wa-card { display: flex; flex-direction: column; gap: 12px; background: var(--panel); border: 1px solid var(--edge); border-radius: 18px; padding: 16px 18px; }
.wa-card p { font-size: 17px; color: var(--soft); }
.wa-card p b { color: var(--fg); }
.btn.wa { background: #25D366; color: #0B1612; font-size: 19px; padding: 14px 18px; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.22); }
@media (min-width: 760px) { .wa-card { flex-direction: row; align-items: center; justify-content: space-between; } .btn.wa { width: auto; flex: none; } }

/* The VSL is a 16:10 screen recording: match its shape so the player shows no side bars. */
.video.r1610 { aspect-ratio: 16 / 10; background: #000; }
.btn.stack { flex-direction: column; gap: 2px; line-height: 1.2; }
.btn.stack small { font-family: var(--text); font-weight: 700; font-size: 15px; opacity: 0.8; }

/* Landing hero: on phones the form comes right after the headline; on desktop it sits beside the points. */
.hero { display: grid; gap: 22px; grid-template-areas: "head" "form" "points"; }
.hero-head { grid-area: head; display: flex; flex-direction: column; gap: 18px; }
.hero-points { grid-area: points; }
.hero-form { grid-area: form; }
.hero-points .chk { font-family: var(--display); }
.about-training .chk { background: var(--gold); font-family: var(--display); }
@media (min-width: 760px) {
  .hero { grid-template-columns: 1.15fr 1fr; grid-template-areas: "head form" "points form"; column-gap: 32px; align-items: start; }
  .hero-form { position: sticky; top: 24px; }
}

/* Step-by-step questionnaire */
.quiz { gap: 18px; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; min-height: 28px; }
.quiz-count { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--gold); }
.quiz-back { font: inherit; font-size: 15px; font-weight: 700; color: var(--soft); background: none; border: none; cursor: pointer; padding: 4px 0; }
.quiz-bar { height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.quiz-bar span { display: block; height: 100%; width: 33%; background: var(--gold); border-radius: 99px; transition: width .25s ease; }
.quiz .q legend { font-size: 22px; line-height: 1.35; margin-bottom: 8px; }
.quiz .opt { font-size: 19px; padding: 16px; }

/* Landing: centered headline */
.top { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; max-width: 860px; margin-inline: auto; }
.top .badge { align-self: center; }
.top h1 { font-size: clamp(32px, 6.4vw, 58px); }
.hero-head .lead b { color: var(--fg); }

/* Landing: animated lead feed with jumping dollars */
.show { position: relative; width: 100%; max-width: 460px; margin-inline: auto; padding: 34px 30px 8px; }
.feed { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; background: rgba(16, 35, 28, 0.9); border: 1px solid var(--edge); border-radius: 26px; padding: 22px 16px 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.row { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--edge); border-radius: 16px; padding: 11px 14px; opacity: 0; transform: translateY(14px) scale(0.97); transition: opacity .35s ease, transform .45s cubic-bezier(.2, 1.4, .4, 1); }
.row.on { opacity: 1; transform: none; }
.row b { display: block; font-family: var(--display); font-size: 17px; line-height: 1.3; }
.row small { display: block; font-size: 14px; color: var(--soft); }
.row .ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--display); font-weight: 800; font-size: 14px; background: rgba(79, 214, 154, 0.14); color: var(--mint); border: 1px solid rgba(79, 214, 154, 0.4); }
.row.rent { background: #2A2A1A; border: 2px solid var(--gold); }
.row.rent .ic { background: var(--gold); color: var(--ink); border: none; font-size: 18px; }
.row.rent b { color: var(--gold); }
.note { text-align: center; font-size: 12px; color: var(--soft); opacity: 0.7; }
.pop { position: absolute; top: -22px; left: 50%; z-index: 2; translate: -50% 0; font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--gold); background: #2A2A1A; border: 2px solid var(--gold); border-radius: 999px; padding: 4px 18px; direction: ltr; opacity: 0; scale: 0.6; transition: opacity .3s ease, scale .5s cubic-bezier(.2, 1.8, .4, 1); box-shadow: 0 8px 24px rgba(232, 188, 90, 0.35); }
.pop.on { opacity: 1; scale: 1; }
.coin { position: absolute; left: var(--x); top: var(--y); z-index: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 22px; animation: bob 2.4s ease-in-out var(--d) infinite; }
.coin::before { content: "$"; }
.coin.s { width: 34px; height: 34px; margin: -17px 0 0 -17px; font-size: 16px; }
.coin.g { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 4px rgba(232, 188, 90, 0.22), 0 0 26px rgba(232, 188, 90, 0.45); }
.coin.m { background: var(--mint); color: var(--ink); box-shadow: 0 0 0 4px rgba(79, 214, 154, 0.2), 0 0 26px rgba(79, 214, 154, 0.4); }
.show.burst .coin { animation: jump .7s cubic-bezier(.3, 1.6, .5, 1) var(--d) 1, bob 2.4s ease-in-out calc(var(--d) + .7s) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-8deg); } }
@keyframes jump { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-34px) scale(1.18); } 100% { transform: translateY(0) scale(1); } }
@media (min-width: 760px) { .show { max-width: 520px; padding-inline: 44px; } .coin { width: 54px; height: 54px; margin: -27px 0 0 -27px; font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .row, .pop { opacity: 1 !important; transform: none !important; scale: 1 !important; } }
.coin { z-index: 2; }
.show { padding-bottom: 26px; }
.top h1 .mint { display: block; }

/* Phone only: jump from the animation straight to the form */
.mob-cta { max-width: 460px; margin: -6px auto 0; }
@media (min-width: 760px) { .mob-cta { display: none; } }
@media (max-width: 759px) {
  .page.wide { gap: 18px; padding-top: 20px; }
  .top { gap: 12px; }
  .show { padding-top: 28px; padding-bottom: 18px; }
  .feed { gap: 7px; padding: 20px 12px 8px; }
  .row { padding: 8px 12px; }
  .row b { font-size: 16px; }
  .row small { font-size: 13px; }
  .row .ic { width: 32px; height: 32px; }
}
