/* סולם התקדמות. Brand: navy #14213D, gold #FCA311 (the one accent), gray #E5E5E5, Assistant.
   House style (signature-ui): calm type, whitespace, soft layered depth, restrained motion. Mobile first, RTL. */
:root {
  --bg: #09152C; --navy: #14213D; --navy-2: #1A2A4A; --navy-3: #22355C;
  --ink: #E5E5E5; --ink-2: #B9C1D3; --ink-3: #8C96AD; --white: #FFFFFF;
  --gold: #FCA311; --gold-2: #FFB840; --gold-soft: rgba(252, 163, 17, 0.14); --gold-ink: #14213D;
  --line: rgba(229, 229, 229, 0.10); --line-2: rgba(229, 229, 229, 0.20);
  --err: #FF6B6B;
  --font: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --r-sm: 12px; --r: 16px; --r-lg: 24px; --pill: 999px;
  --shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.22);
  --glow: 0 12px 34px -12px rgba(252, 163, 17, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --step-0: clamp(1.02rem, 0.97rem + 0.25vw, 1.15rem);
  --step-1: clamp(1.18rem, 1.08rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.2rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);
  --section: clamp(3.5rem, 7vw, 6.5rem);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html.is-quiz { overflow: hidden; }
body {
  font-family: var(--font); font-size: var(--step-0); line-height: 1.6; font-weight: 500;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--white); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }

.wrap { inline-size: min(100% - 32px, 1080px); margin-inline: auto; }
.narrow { max-inline-size: 760px; }
.section { padding-block: var(--section); }
.section--alt { background: linear-gradient(180deg, var(--navy) 0%, #111d36 100%); }

/* top bar */
.topbar { position: absolute; inset-inline: 0; top: 0; z-index: 2; padding-block: 18px; }
.topbar__in { display: flex; justify-content: center; }
.logo { inline-size: 168px; opacity: 0.92; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  border: 1.5px solid transparent; border-radius: var(--pill); padding: 0.78rem 1.6rem;
  font-weight: 800; text-decoration: none; line-height: 1.2;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--gold { background: var(--gold); color: var(--gold-ink); box-shadow: var(--glow); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--lg { font-size: 1.15rem; padding: 1rem 2.4rem; min-inline-size: 220px; }
.btn:disabled { opacity: 0.6; cursor: default; }

/* hero */
.hero { position: relative; overflow: hidden; padding-block: 104px 64px; }
.orb {
  position: absolute; inset-inline-start: -12%; top: -18%; inline-size: 62vmax; block-size: 62vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(252, 163, 17, 0.20), rgba(252, 163, 17, 0.05) 55%, transparent 72%);
  filter: blur(20px); pointer-events: none; animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(4%, 6%, 0) scale(1.06); } }
.hero__grid { position: relative; display: grid; gap: 44px; align-items: center; }
.hero__copy { display: grid; gap: 14px; }
.eyebrow { color: var(--gold); font-weight: 800; font-size: 0.92rem; letter-spacing: 0.02em; }
.lead { font-size: var(--step-1); color: var(--ink); font-weight: 600; max-inline-size: 30ch; }
.sub { color: var(--ink-2); max-inline-size: 42ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-block-start: 10px; }
.cta--center { justify-content: center; margin-block-start: 26px; }
.cta__note { color: var(--ink-3); font-size: 0.95rem; }

/* the 3x3 ladder */
.ladder {
  display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 7px; align-items: center; justify-self: center;
  inline-size: min(100%, 300px); padding: 14px; border-radius: var(--r-lg);
  background: rgba(20, 33, 61, 0.55); border: 1px solid var(--line); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.ladder__h { text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--ink-3); }
.ladder__r { font-size: 0.9rem; font-weight: 800; color: var(--ink-2); padding-inline-end: 6px; }
.ladder__tile {
  aspect-ratio: 1; border-radius: var(--r-sm); background: var(--navy-2); border: 1px solid var(--line);
  transition: background 600ms var(--ease), border-color 600ms var(--ease), box-shadow 600ms var(--ease), transform 600ms var(--ease);
}
.ladder__tile.is-on { background: var(--gold-soft); border-color: var(--gold); box-shadow: var(--glow); transform: translateY(-3px); }
.ladder__cap { grid-column: 1 / -1; text-align: center; color: var(--gold); font-weight: 800; margin-block-start: 6px; }

/* sections */
.traps { list-style: none; padding: 0; display: grid; gap: 12px; margin-block: 26px 22px; }
.traps li {
  padding: 16px 18px; border-radius: var(--r); background: var(--navy); border: 1px solid var(--line);
  border-inline-start: 3px solid var(--gold); font-size: var(--step-1); font-weight: 700; color: var(--white);
}
.punch { font-size: var(--step-1); font-weight: 800; color: var(--gold); }
.cards3 { display: grid; gap: 12px; margin-block-start: 26px; }
.card { padding: 20px; border-radius: var(--r); background: rgba(9, 21, 44, 0.55); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card b { display: block; color: var(--gold); font-size: 0.9rem; margin-block-end: 6px; }
.card p { font-weight: 700; color: var(--white); font-size: 1.08rem; }
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 14px; margin-block-start: 26px; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 58px; display: grid; gap: 2px; }
.steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 2px; inline-size: 40px; block-size: 40px;
  display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-weight: 800;
}
.steps b { color: var(--white); font-size: 1.1rem; }
.steps span { color: var(--ink-2); }
.results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-block-start: 26px; }
.results img { border-radius: var(--r); box-shadow: var(--shadow); }
/* who: Ofek with the men and with the women. Stacked on a phone, side by side on a wide screen */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.about__pics { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.about__pics img { display: block; inline-size: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow); background: var(--navy-2); }
.about h2 { margin-block-end: 10px; }
.about p + p { margin-block-start: 10px; }
.about p { color: var(--ink-2); }
.faq { display: grid; gap: 10px; margin-block-start: 22px; }
.faq details { border-radius: var(--r); background: rgba(9, 21, 44, 0.55); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 800; color: var(--white); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 16px; color: var(--ink-2); }
.final { background: radial-gradient(60% 80% at 50% 100%, rgba(252, 163, 17, 0.12), transparent 70%); }
.footer { border-block-start: 1px solid var(--line); padding-block: 22px 30px; color: var(--ink-3); font-size: 0.9rem; }
.footer__in { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }
.footer a { color: var(--ink-3); }

/* reveal (signature-ui). Hidden only after app.js sets .reveal-on, so the text shows even if the script fails. */
.reveal { transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal-on .reveal:not(.is-in) { opacity: 0; transform: translateY(18px); }

/* ---------- quiz ---------- */
.quiz { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: grid; grid-template-rows: auto 1fr auto; }
.quiz__top { background: var(--bg); border-block-end: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.quiz__bar { inline-size: min(100% - 32px, 576px); margin-inline: auto; display: flex; justify-content: space-between; gap: 12px; padding-block: 12px 10px; font-size: 0.9rem; font-weight: 700; color: var(--ink-2); }
.progress { block-size: 3px; background: var(--line); }
.progress i { display: block; block-size: 100%; inline-size: 0; background: var(--gold); transition: inline-size 320ms var(--ease); }
.quiz__body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 22px 16px 28px; }
.quiz__body > * { inline-size: min(100%, 576px); margin-inline: auto; }
.quiz__nav {
  display: flex; gap: 10px; justify-content: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(9, 21, 44, 0.94); border-block-start: 1px solid var(--line);
}
.quiz__nav .btn { min-inline-size: 132px; }
.q__num { color: var(--gold); font-weight: 800; font-size: 0.95rem; margin-block-end: 4px; }
.q__num--done span { display: inline-grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); }
.q__title { font-size: var(--step-1); outline: none; }
.q__note { color: var(--ink-2); margin-block-start: 6px; font-size: 0.98rem; }
.q__err { color: var(--err); font-weight: 700; min-block-size: 1.4em; margin-block-start: 10px; font-size: 0.95rem; }
.opts { display: grid; gap: 10px; margin-block-start: 18px; }
.opt {
  text-align: start; cursor: pointer; padding: 15px 16px; border-radius: var(--r); font-weight: 700; color: var(--white);
  background: var(--navy); border: 1.5px solid var(--line-2); display: flex; align-items: center; gap: 12px;
  transition: border-color 160ms var(--ease), background 160ms var(--ease), transform 160ms var(--ease);
}
.opt:active { transform: scale(0.99); }
.opt[aria-checked="true"], .opt[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); }
.opt--check i { flex: none; inline-size: 22px; block-size: 22px; border-radius: 7px; border: 2px solid var(--line-2); display: grid; place-items: center; }
.opt--check[aria-pressed="true"] i { background: var(--gold); border-color: var(--gold); }
.opt--check[aria-pressed="true"] i::after { content: "✓"; color: var(--gold-ink); font-size: 14px; font-weight: 800; font-style: normal; }
.opts--img { grid-template-columns: repeat(2, 1fr); }
.opt--img { flex-direction: column; align-items: stretch; padding: 8px 8px 12px; gap: 8px; }
.opt--img img { inline-size: 100%; aspect-ratio: 480 / 596; object-fit: cover; border-radius: 10px; background: var(--navy-2); }
.opt--img span { text-align: center; white-space: pre-line; font-size: 0.92rem; line-height: 1.35; }
.detail { display: grid; gap: 4px; margin-block: -2px 4px; }
.detail textarea { inline-size: 100%; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--navy-2); padding: 12px 14px; resize: vertical; }
.detail small { color: var(--ink-3); font-size: 0.85rem; }
.form { display: grid; gap: 14px; margin-block-start: 20px; }
.field { display: grid; gap: 6px; font-weight: 700; }
.field input { inline-size: 100%; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--navy); padding: 14px 16px; font-size: 1.1rem; }
.field input[dir="ltr"] { text-align: right; }
.field input:focus { border-color: var(--gold); outline: none; }
.hp { position: absolute; inset-inline-start: -9999px; inline-size: 1px; block-size: 1px; opacity: 0; }
.consent { color: var(--ink-2); font-size: 0.88rem; }
.privacy { color: var(--ink-3); font-size: 0.82rem; line-height: 1.5; }

/* ---------- video page ---------- */
.vhero { position: relative; overflow: hidden; padding-block: 96px 48px; }
.vhero .wrap { position: relative; display: grid; gap: 12px; }
.badge { justify-self: start; padding: 4px 14px; border-radius: var(--pill); background: var(--gold); color: var(--gold-ink); font-weight: 800; }
.why { padding: 14px 16px; border-radius: var(--r); background: var(--gold-soft); border: 1px solid rgba(252, 163, 17, 0.4); color: var(--white); font-weight: 600; }
/* The 9 videos are vertical (1080x1920). The cover hides the old name burned into the first frame until play. */
.player { position: relative; inline-size: min(100%, 400px); justify-self: center; margin-block-start: 8px; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.player video { inline-size: 100%; aspect-ratio: 9 / 16; background: #000; }
.cover {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; cursor: pointer; border: 0;
  background: radial-gradient(70% 55% at 50% 40%, rgba(252, 163, 17, 0.20), transparent 70%), linear-gradient(180deg, var(--navy-3), var(--bg));
  color: var(--white); text-align: center; padding: 24px;
}
.cover__play { inline-size: 84px; block-size: 84px; border-radius: 50%; background: var(--gold); box-shadow: var(--glow); display: grid; place-items: center; }
/* Media play icons are not mirrored in RTL: the triangle points right, physically. */
.cover__play::before { content: ""; margin-left: 6px; border-top: 16px solid transparent; border-bottom: 16px solid transparent; border-left: 26px solid var(--gold-ink); }
.cover b { font-size: var(--step-1); }
.cover span { color: var(--ink-2); }
.inside { margin-block-start: 8px; padding-inline-start: 1.2em; color: var(--ink-2); display: grid; gap: 4px; }
.inside li::marker { color: var(--gold); }
.offer { display: grid; gap: 12px; justify-items: start; padding: 24px; border-radius: var(--r-lg); background: rgba(9, 21, 44, 0.6); border: 1px solid var(--gold); box-shadow: var(--glow); }
.vhero .offer { margin-block-start: 14px; }
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-block-start: 22px; }
.vgrid img { inline-size: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.offer p { color: var(--ink-2); }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 240px); gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 22px 16px 8px; scroll-padding-inline: 16px; margin-inline: -16px;
}
.tcard { scroll-snap-align: start; display: grid; gap: 8px; }
.tcard video { inline-size: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r); background: var(--navy-2); }
.tcard b { display: block; color: var(--white); }
.tcard span { color: var(--ink-3); font-size: 0.92rem; }

@media (min-width: 760px) {
  .hero { padding-block: 128px 88px; }
  .hero__grid { grid-template-columns: 1.15fr 1fr; }
  .ladder { justify-self: end; }
  .cards3 { grid-template-columns: repeat(3, 1fr); }
  .results { grid-template-columns: repeat(3, 1fr); }
  .about__pics { display: flex; align-items: flex-start; }
  .about__pics img { flex: 3 1 0; min-inline-size: 0; }
  .about__pics img[data-g="m"] { flex-grow: 4; } /* 4:3 beside 1:1 at 4 to 3 widths: the same height, whichever comes first */
  .opts--img { grid-template-columns: repeat(3, 1fr); }
}

/* video page on a computer: text and offer on the right, the vertical video on the left */
@media (min-width: 900px) {
  .vhero .wrap.narrow { max-inline-size: 1080px; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 56px; align-items: start; }
  .vhero .wrap > * { grid-column: 1; }
  .vhero .wrap > .player { grid-column: 2; grid-row: 1 / span 7; inline-size: 100%; margin-block-start: 0; position: sticky; top: 24px; }
  .vgrid { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 760px) {
  .ladder { inline-size: min(100%, 400px); padding: 18px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- UX checklist (2.11.2026): skeleton, soft transitions, pop, hover and press, inline validation, toast ---------- */
:root { --ok: #4ADE80; --sk-1: #17284A; --sk-2: #22375F; }
.sk { background: linear-gradient(100deg, var(--sk-1) 30%, var(--sk-2) 50%, var(--sk-1) 70%) !important; background-size: 300% 100% !important; animation: sk 1.3s ease-in-out infinite; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sk-in { animation: sk-in 320ms var(--ease); }
@keyframes sk-in { from { opacity: 0.15; } }
.skel { display: grid; gap: 12px; padding-block-start: 8px; }
.skel i { display: block; border-radius: 10px; }
.skel__badge { inline-size: 120px; block-size: 32px; }
.skel__line { block-size: 46px; }
.skel__line--short { inline-size: 70%; }
.skel__player { inline-size: min(100%, 400px); aspect-ratio: 9 / 16; justify-self: center; border-radius: var(--r-lg); margin-block-start: 6px; }

.q-in > * { animation: q-in 260ms var(--ease) both; }
@keyframes q-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade-in { from { opacity: 0; } }
.quiz:not([hidden]) { animation: fade-in 200ms var(--ease); }
.q__err:not(:empty), .field__msg:not(:empty) { animation: fade-in 200ms var(--ease); }
.faq details[open] p { animation: q-in 240ms var(--ease); }

.is-pop { animation: pop 260ms var(--ease); }
@keyframes pop { 40% { transform: scale(1.035); } }
.opt--check[aria-pressed="true"] i::after { display: inline-block; animation: pop 220ms var(--ease); }

.btn, .opt, .tile, .bar__cta, .faq summary { transition: transform 150ms var(--ease), box-shadow 150ms var(--ease), border-color 150ms var(--ease), background 150ms var(--ease), color 150ms var(--ease); }
@media (hover: hover) {
  .btn:not(:disabled):hover, .bar__cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.5); }
  .opt:hover { transform: translateY(-1px); border-color: rgba(252, 163, 17, 0.6); }
  .tile:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.55); }
  .faq summary:hover { color: var(--gold); }
}
.btn:not(:disabled):active, .bar__cta:active, .tile:active { transform: scale(0.97); }
.opt:active { transform: scale(0.985); }

.field__box { position: relative; display: block; }
.field__ok { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%) scale(0.5); opacity: 0; color: var(--ok); font-style: normal; font-weight: 800; pointer-events: none; transition: transform 200ms var(--ease), opacity 200ms var(--ease); }
.field.is-valid input { border-color: var(--ok); }
.field.is-valid .field__ok { opacity: 1; transform: translateY(-50%) scale(1); }
.field.is-invalid input { border-color: var(--err); }
.field__msg { min-block-size: 1.2em; color: var(--err); font-size: 0.85rem; font-weight: 600; }

.toasts { position: fixed; z-index: 90; top: calc(12px + env(safe-area-inset-top, 0px)); inset-inline-end: 12px; display: grid; gap: 8px; inline-size: min(360px, calc(100vw - 24px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; color: #FFFFFF; font-weight: 700; font-size: 0.98rem; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55); opacity: 0; transform: translateX(-24px); transition: opacity 280ms var(--ease), transform 280ms var(--ease); }
.toast.is-in { opacity: 1; transform: none; }
.toast--ok { background: #1E7A45; }
.toast--err { background: #B42318; }
.toast i { flex: none; display: grid; place-items: center; inline-size: 24px; block-size: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); font-style: normal; }

.offer__icon { position: relative; inline-size: 44px; block-size: 44px; border-radius: 12px; background: var(--gold-soft); }
.offer__icon::before { content: ""; position: absolute; inset: 11px 12px; border: 2.5px solid var(--gold); border-radius: 4px; }
.offer__icon::after { content: ""; position: absolute; inset-inline: 17px; top: 18px; block-size: 8px; border-block: 2.5px solid var(--gold); }
.form { gap: 10px; }
.form .q__err:empty { display: none; }
