/* ============================================================
   Yahad — Hebrew/RTL stylesheet.

   Written RTL-first with CSS logical properties (margin-inline,
   padding-block, inset-inline, text-align: start/end) rather than
   left/right. The RU stylesheet uses 26 physical properties and zero
   logical ones, which is exactly why it cannot simply be mirrored —
   every one of them would need a counterpart here. Starting logical
   means this sheet works in either direction for free, which matters
   because Russian-language cards are expected on this brand too
   (~1.5M Russian speakers in Israel) and those blocks render LTR.

   Fonts are self-hosted, same policy as darim.ai — no third-party
   font CDN in the critical path. Rubik carries headlines, Assistant
   the body text. Both are VARIABLE fonts: one file per subset covers
   the whole weight range, so the four files below are the complete
   set (~72 KB total) rather than one file per weight.
   ============================================================ */

@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/rubik-hebrew.woff2') format('woff2');
    unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/rubik-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Assistant';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/fonts/assistant-hebrew.woff2') format('woff2');
    unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
    font-family: 'Assistant';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/fonts/assistant-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ink: #F6F1EA;
    --muted: #B9AEC4;
    --bg: #241B2B;
    --panel: #2D2237;
    --accent: #E8A552;
    --accent-deep: #B8456A;
    --line: #40334D;
    --radius: 12px;
    --wrap: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Assistant', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.62;
    /* Hebrew sits lower in the em box than Cyrillic; a touch more leading
       keeps nikud-free text from feeling cramped. */
    text-rendering: optimizeLegibility;
}

h1, h2, h3, .display {
    font-family: 'Rubik', 'Assistant', system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.3px;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(30px, 5.2vw, 52px); }
h2 { font-size: clamp(23px, 3.4vw, 33px); }

p { margin: 0 0 1em; }

a { color: var(--accent); }

.wrap {
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 22px;
}

/* ---------- nav ---------- */

.nav {
    border-block-end: 1px solid var(--line);
    background: rgba(36, 27, 43, 0.86);
    backdrop-filter: blur(8px);
    position: sticky;
    inset-block-start: 0;
    z-index: 20;
}

.nav-in {
    max-width: var(--wrap);
    margin-inline: auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.star {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    /* margin-inline-start, not margin-left: in RTL this pushes the links
       away from the brand on the correct side automatically. */
    margin-inline-start: auto;
}

.nav-secondary {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
}

.nav-secondary:hover { color: var(--ink); }

.nav-cta {
    background: linear-gradient(180deg, #F0B368, #E09340);
    color: #2B1C10;
    text-decoration: none;
    font-weight: 600;
    border-radius: 9px;
    padding: 9px 17px;
    font-size: 15px;
}

/* ---------- hero ---------- */

.hero {
    padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 76px);
    background:
        radial-gradient(1100px 460px at 78% -8%, rgba(232, 165, 82, 0.16), transparent 60%),
        radial-gradient(760px 420px at 12% 8%, rgba(184, 69, 106, 0.14), transparent 62%);
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin: 0 0 14px;
}

.lead {
    font-size: clamp(16px, 2vw, 19px);
    color: #DCD3E4;
    max-width: 62ch;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-block-start: 26px;
}

.btn {
    display: inline-block;
    border-radius: 10px;
    padding: 13px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(180deg, #F0B368, #E09340);
    color: #2B1C10;
}

.btn-ghost {
    border: 1px solid var(--line);
    color: var(--ink);
}

.free {
    color: var(--muted);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* ---------- steps ---------- */

.section { padding-block: clamp(44px, 6vw, 78px); }

.steps {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
    margin-block-start: 30px;
}

.step {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px 24px;
}

.step-n {
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 8px;
}

.step h3 { font-size: 19px; margin: 0 0 8px; }

.step p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- footer ---------- */

.foot {
    border-block-start: 1px solid var(--line);
    padding-block: 30px 40px;
    color: var(--muted);
    font-size: 14.5px;
}

.foot a { color: var(--muted); text-decoration: none; }

.foot a:hover { color: var(--ink); }

/* Latin runs (brand name, dates, counts) inside Hebrew text must not have
   their character order flipped by the bidi algorithm. */
.ltr {
    direction: ltr;
    display: inline-block;
    unicode-bidi: isolate;
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
