/* ========== Post page – Stripe-style blog layout (RTL) ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
}
@media (max-width: 900px) {
    html {
        -webkit-text-size-adjust: 100%;
    }
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #fff;
    background-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.04) 1px,
        transparent 1px
    );
    background-size: 80px 100%;
    background-position: 0 0;
    color: #303030;
    min-height: 100vh;
    line-height: 1.6;
}
body.nav-open,
body.no-scroll {
    overflow: hidden;
    touch-action: none;
}

/* ========== נגישות ========== */
/* מסתיר ויזואלית אבל נשאר לקוראי מסך (כותרות לסקשנים) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 1px, 1px);
    white-space: nowrap;
    border: 0;
}

/* קישור דילוג – מוסתר עד שמגיעים אליו עם Tab, אז בולט */
.skip-link {
    position: fixed;
    top: -60px;
    right: 12px;
    z-index: 9999;
    padding: 14px 24px;
    background: #7c3aed;
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: top 0.25s ease;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}
.skip-link:focus {
    top: 12px;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* פוקוס גלוי לכל האלמנטים האינטראקטיביים – למשתמשי מקלדת */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========== Header ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #eaeaea;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Burger button – hidden on desktop */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-inline-start: auto;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.burger-btn:hover {
    background: #f1f5f9;
}
.burger-btn:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}
.burger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #0a2540;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(2) {
    opacity: 0;
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}
.nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Sidebar – slides from right (RTL) */
.nav-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    max-width: 300px;
    height: 100vh;
    height: 100dvh;
    padding-right: env(safe-area-inset-right, 0);
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.nav-sidebar.is-open {
    transform: translateX(0);
}

/* כפתור סגירה (X) בתוך הסיידבר – מובייל */
.nav-sidebar-close {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    inset-inline-end: max(12px, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: #f1f5f9;
    color: #0a2540;
    font-size: 1.75rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.nav-sidebar-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.nav-sidebar-close:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

.nav-sidebar-inner {
    padding: 80px 24px 32px;
    padding-top: max(80px, calc(60px + env(safe-area-inset-top)));
    padding-inline-end: max(24px, env(safe-area-inset-right));
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.nav-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-sidebar-links a {
    display: block;
    padding: 14px 0;
    font-size: 1.0625rem;
    font-weight: 500;
    color: #0a2540;
    border-bottom: 1px solid #f1f5f9;
}
.nav-sidebar-links a:hover {
    color: #635bff;
}
.nav-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}
.nav-sidebar-actions .sign-in {
    font-size: 1rem;
    color: #334155;
}
.nav-sidebar-actions .btn-contact {
    text-align: center;
    justify-content: center;
}

.logo {
    font-weight: 600;
    font-size: 1.125rem;
    color: #0a2540;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo:hover {
    color: #635bff;
}

.logo:hover img {
    opacity: 0.9;
}

.logo-divider {
    width: 1px;
    height: 20px;
    background: #e0e0e0;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 0.9375rem;
    color: #303030;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-links a:hover {
    color: #0a2540;
}

.chevron {
    font-size: 0.6rem;
    opacity: 0.85;
}

.header-actions {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sign-in {
    font-size: 0.9375rem;
    color: #303030;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.sign-in:hover {
    color: #0a2540;
}

.arrow {
    font-size: 1.1em;
    font-weight: 400;
}

.btn-contact {
    background: #635bff;
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-contact:hover {
    background: #5851e8;
}

/* Header – mobile: show burger, hide nav + actions. לוגו בשמאל, בורגר בימין */
@media (max-width: 900px) {
    .logo-divider,
    .nav-links,
    .header-actions {
        display: none !important;
    }
    .header-inner {
        padding: 12px 16px;
        padding-inline-start: max(16px, env(safe-area-inset-right));
        padding-inline-end: max(16px, env(safe-area-inset-left));
        gap: 12px;
    }
    .logo {
        order: 1;
        margin-inline-start: auto;
    }
    .logo img {
        height: 28px;
    }
    .burger-btn {
        display: flex;
        order: -1;
        margin-inline-start: 0;
    }
}

/* ========== Article container – single column, centered ========== */
.post-article {
    padding: 24px 16px 48px;
    padding-inline-start: max(16px, env(safe-area-inset-right));
    padding-inline-end: max(16px, env(safe-area-inset-left));
}
@media (min-width: 640px) {
    .post-article {
        padding: 32px 24px 64px;
        padding-inline-start: 24px;
        padding-inline-end: 24px;
    }
}

.article-container {
    max-width: 720px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: #635bff;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 8px;
    color: #94a3b8;
}

/* Article header row: share sidebar + title + meta */
.article-header-row {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
}

.share-sidebar {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.share-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.share-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.share-icon:hover {
    background: #e2e8f0;
    color: #0a2540;
}

.article-meta-block {
    flex: 1;
    min-width: 0;
}

.post-title {
    font-size: clamp(1.875rem, 4.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #0a2540;
    letter-spacing: -0.025em;
}

/* Stripe-style: metadata line above title, small, uppercase feel */
.post-meta-line {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.post-meta {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0;
}

.post-meta strong {
    color: #334155;
}

/* Hero visual – Balance: כמות מול איכות */
.post-hero-visual {
    margin-bottom: 48px;
}

.hero-balance {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.25);
}

.hero-balance img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.balance-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.balance-pan {
    flex: 1;
    min-width: 140px;
    max-width: 220px;
    padding: 24px 20px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.balance-left {
    background: rgba(148, 163, 184, 0.12);
    border: 2px solid rgba(200, 210, 230, 0.6);
    box-shadow: 
        inset 0 0 20px rgba(100, 100, 120, 0.1),
        0 0 0 1px rgba(148, 163, 184, 0.2);
}

.balance-left::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(120, 130, 150, 0.06) 4px, rgba(120, 130, 150, 0.06) 5px);
    pointer-events: none;
}

.balance-right {
    background: rgba(124, 58, 237, 0.2);
    border: 2px solid rgba(167, 139, 250, 0.5);
    box-shadow: 
        inset 0 0 20px rgba(80, 60, 140, 0.1),
        0 0 0 1px rgba(139, 92, 246, 0.2);
}

.balance-right::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(120, 100, 160, 0.08) 3px, rgba(120, 100, 160, 0.08) 4px);
    pointer-events: none;
}

.balance-left,
.balance-right {
    position: relative;
    overflow: hidden;
}

.balance-icon {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    position: relative;
    z-index: 1;
}

.balance-icon-cold {
    background: transparent;
    border: 2px solid rgba(200, 210, 230, 0.8);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(180, 190, 210, 0.4);
}

.balance-icon-cold::before,
.balance-icon-cold::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: transparent;
    border: 2px solid rgba(200, 210, 230, 0.9);
    border-radius: 50%;
}

.balance-icon-cold::before {
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.balance-icon-cold::after {
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.balance-icon-hot {
    width: 36px;
    height: 36px;
    margin: 6px auto 8px;
    background: transparent;
    border: 2px solid rgba(167, 139, 250, 0.9);
    transform: rotate(45deg);
}

.balance-icon-hot::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px dashed rgba(167, 139, 250, 0.5);
    transform: rotate(-45deg);
    border-radius: 50%;
}

.balance-label {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.balance-desc {
    font-size: 0.8125rem;
    color: #94a3b8;
}

.balance-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: #cbd5e1;
}

.balance-right .balance-value {
    color: #a5b4fc;
}

.balance-beam {
    width: 26px;
    height: 60px;
    background: rgba(100, 116, 139, 0.3);
    border: 2px solid rgba(148, 163, 184, 0.7);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(120, 130, 150, 0.3);
}

.balance-pivot {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid rgba(203, 213, 225, 0.95);
}

.hero-visual-caption {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    margin: 20px 0 0;
}

/* Post body – typography */
.post-body {
    font-size: 1.0625rem;
    color: #334155;
}

.post-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a2540;
    margin: 48px 0 16px;
    letter-spacing: -0.02em;
}

.post-body h2:first-child {
    margin-top: 0;
}

.post-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0a2540;
    margin: 32px 0 12px;
    letter-spacing: -0.02em;
}

.post-body p {
    margin: 0 0 20px;
    line-height: 1.7;
}

.post-body ul {
    margin: 0 0 20px;
    padding-inline-start: 1.5em;
}

.post-body li {
    margin-bottom: 8px;
}

/* Inline code */
.post-body code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 0.9em;
    background: #f1f5f9;
    color: #0a2540;
    padding: 0.15em 0.4em;
    border-radius: 4px;
}

/* Code block – Stripe-style dark */
.post-body pre {
    margin: 28px 0;
    padding: 24px;
    background: #1e293b;
    border-radius: 12px;
    overflow-x: auto;
}

.post-body pre code {
    background: none;
    padding: 0;
    color: #e2e8f0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.post-body hr {
    border: none;
    height: 1px;
    background: #e2e8f0;
    margin: 48px 0;
}

.post-body .related-posts {
    margin-top: 48px;
    padding-top: 24px;
}

.post-body .related-posts h2 {
    font-size: 1.25rem;
    margin: 0 0 16px;
}

/* Callout – Stripe-style light purple/lavender box */
.callout {
    border-radius: 12px;
    padding: 24px 28px;
    margin: 32px 0;
}

.callout-purple {
    background: #f5f3ff;
    color: #3730a3;
    border: 1px solid #e9e5ff;
}

.callout-purple h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #0a2540;
}

.callout-purple p,
.callout-purple li {
    margin: 0 0 8px;
    color: #334155;
}

.callout-purple ul {
    margin: 12px 0 0;
    padding-inline-start: 1.25em;
}

.callout-purple a {
    color: #635bff;
    text-decoration: underline;
}

/* FAQ – שאלות ותשובות (אקורדיון מעוצב) */
.faq-heading {
    margin-top: 48px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #7c3aed;
    display: inline-block;
}

.faq-accordion {
    margin: 32px 0 48px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

.faq-item.is-open {
    border-color: #7c3aed;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0a2540;
    text-align: right;
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.faq-question:hover {
    background: #f1f5f9;
    color: #7c3aed;
}

.faq-question:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

.faq-question-text {
    flex: 1;
    line-height: 1.4;
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
    background: #e2e8f0;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.2s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: #475569;
    transition: background 0.2s ease;
}

.faq-icon::before {
    width: 10px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 2px;
    height: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-icon {
    background: #7c3aed;
    transform: rotate(180deg);
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
    background: #fff;
}

.faq-item.is-open .faq-icon::after {
    height: 0;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-answer {
    max-height: 400px;
}

.faq-answer p {
    margin: 0;
    padding: 0 0 20px;
    padding-top: 4px;
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
}

.faq-answer p:last-child {
    padding-bottom: 20px;
}

/* Legacy FAQ list (אם משתמשים ב-dl) */
.faq-list {
    margin: 32px 0;
    padding: 0;
    list-style: none;
}

.faq-list dt,
.faq-list dd {
    margin: 0;
    padding: 0;
}

.faq-q {
    font-weight: 700;
    font-size: 1.0625rem;
    color: #0a2540;
    margin-top: 24px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
}

.faq-q:first-of-type {
    margin-top: 0;
}

.faq-a {
    padding: 16px 20px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 10px 10px;
    color: #334155;
    line-height: 1.65;
}

/* Funnel visual – משפך סינון לידים */
.funnel-visual {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    margin: 36px 0;
}

.funnel-visual img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.funnel-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 24px;
    text-align: center;
}

.funnel-stages {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.funnel-stage {
    width: 100%;
    max-width: 360px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 2px solid #cbd5e1;
    color: #334155;
}

.funnel-stage:first-child {
    border-radius: 4px 4px 0 0;
}

.funnel-stage:last-child {
    border-radius: 0 0 4px 4px;
}

.funnel-stage + .funnel-stage {
    border-top: none;
}

.funnel-wide {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: linear-gradient(90deg, #94a3b8 0%, #cbd5e1 100%);
    color: #0f172a;
    font-weight: 600;
    box-shadow: inset 0 0 20px rgba(80, 90, 110, 0.1);
}

.funnel-wide::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: repeating-linear-gradient(-30deg, transparent, transparent 5px, rgba(80, 90, 110, 0.06) 5px, rgba(80, 90, 110, 0.06) 6px);
    pointer-events: none;
}

.funnel-mid {
    position: relative;
    overflow: hidden;
    width: 85%;
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
    color: #fff;
}

.funnel-mid::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: repeating-linear-gradient(30deg, transparent, transparent 4px, rgba(255,255,255,0.06) 4px, rgba(255,255,255,0.06) 5px);
    pointer-events: none;
}

.funnel-narrow {
    position: relative;
    overflow: hidden;
    width: 55%;
    background: linear-gradient(90deg, #7c3aed 0%, #8b5cf6 100%);
    color: #fff;
}

.funnel-narrow::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: repeating-linear-gradient(-25deg, transparent, transparent 3px, rgba(255,255,255,0.08) 3px, rgba(255,255,255,0.08) 4px);
    pointer-events: none;
}

.funnel-tip {
    position: relative;
    overflow: hidden;
    width: 35%;
    background: linear-gradient(90deg, #635bff 0%, #7c3aed 100%);
    color: #fff;
    font-weight: 600;
}

.funnel-tip::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: repeating-linear-gradient(20deg, transparent, transparent 3px, rgba(255,255,255,0.1) 3px, rgba(255,255,255,0.1) 4px);
    pointer-events: none;
}

.funnel-num {
    font-size: 1rem;
    font-weight: 700;
    min-width: 36px;
}

.funnel-text {
    font-size: 0.9375rem;
}

/* ========== Footer ========== */
.post-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 48px 24px 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0a2540;
    margin: 0 0 16px;
    letter-spacing: 0.02em;
}

.footer-col a {
    display: block;
    font-size: 0.9375rem;
    color: #64748b;
    margin-bottom: 10px;
    padding: 2px 0;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #635bff;
}

.footer-brand .footer-logo {
    font-weight: 600;
    font-size: 1.125rem;
    color: #0a2540;
    margin-bottom: 12px;
    display: inline-block;
}

.footer-brand .footer-logo img {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-lang {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    margin: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
    background: #cbd5e1;
    color: #0a2540;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links a {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    padding: 4px 0;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #635bff;
}

.footer-copy {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Footer – tablet */
@media (max-width: 768px) {
    .post-footer {
        padding: 32px 16px 20px;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    .footer-inner {
        padding-inline: 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 24px;
        margin-bottom: 28px;
    }
    .footer-col h4 {
        font-size: 0.75rem;
        margin-bottom: 14px;
    }
    .footer-col a {
        font-size: 0.9375rem;
        margin-bottom: 8px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 20px;
        gap: 16px;
    }
    .footer-links {
        gap: 20px;
    }
    .footer-links a {
        min-height: 44px;
        padding: 8px 0;
    }
}

/* Footer – mobile: 2 עמודות שוות, אחד ליד השני */
@media (max-width: 480px) {
    .post-footer {
        padding: 28px 16px 20px;
        padding-inline-start: max(16px, env(safe-area-inset-right));
        padding-inline-end: max(16px, env(safe-area-inset-left));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    .footer-inner {
        padding-inline: 0;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px 16px;
        margin-bottom: 28px;
    }
    .footer-col {
        padding-bottom: 0;
        border-bottom: none;
        min-width: 0;
    }
    .footer-col h4 {
        font-size: 0.7rem;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    .footer-col a {
        font-size: 0.875rem;
        margin-bottom: 0;
        min-height: 40px;
        padding: 6px 0;
        display: flex;
        align-items: center;
        -webkit-tap-highlight-color: transparent;
    }
    .footer-brand .footer-logo img {
        height: 26px;
    }
    .footer-lang {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }
    .footer-social {
        gap: 8px;
    }
    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
        -webkit-tap-highlight-color: transparent;
    }
    .footer-bottom {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding-top: 20px;
        gap: 12px;
    }
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px 20px;
    }
    .footer-links a {
        min-height: 40px;
        font-size: 0.8125rem;
        padding: 6px 0;
    }
    .footer-copy {
        font-size: 0.8125rem;
    }
}

/* Footer – small phones (שמירה על 2 עמודות שוות) */
@media (max-width: 360px) {
    .post-footer {
        padding: 24px 12px 16px;
        padding-inline-start: max(12px, env(safe-area-inset-right));
        padding-inline-end: max(12px, env(safe-area-inset-left));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
    .footer-grid {
        gap: 16px 12px;
    }
    .footer-col a {
        min-height: 38px;
        font-size: 0.8125rem;
    }
    .footer-links {
        gap: 12px 16px;
    }
    .footer-links a {
        min-height: 38px;
        font-size: 0.75rem;
    }
}

/* ========== Mobile-first responsive ========== */
@media (max-width: 640px) {
    .article-header-row {
        flex-direction: column-reverse;
        gap: 20px;
        margin-bottom: 28px;
    }

    .share-sidebar {
        flex-direction: row;
        gap: 8px;
    }

    .share-icon {
        width: 40px;
        height: 40px;
    }

    .post-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .post-meta-line {
        font-size: 0.7rem;
    }

    .hero-balance {
        padding: 24px 16px;
        margin-bottom: 32px;
        border-radius: 12px;
    }

    .balance-inner {
        flex-direction: column;
        gap: 16px;
    }

    .balance-pan {
        min-width: 100%;
        max-width: none;
        padding: 20px 16px;
    }

    .balance-beam {
        width: 60px;
        height: 24px;
        background: linear-gradient(90deg, #64748b 0%, #94a3b8 50%, #64748b 100%);
    }

    .balance-pivot {
        transform: rotate(-90deg);
    }

    .breadcrumb {
        font-size: 0.8125rem;
        margin-bottom: 16px;
    }

    .post-body {
        font-size: 1rem;
    }

    .post-body h2 {
        font-size: 1.25rem;
        margin: 36px 0 12px;
    }

    .post-body h3 {
        font-size: 1.125rem;
        margin: 24px 0 10px;
    }

    .post-body p,
    .post-body ul {
        margin-bottom: 16px;
    }

    .callout,
    .callout-purple {
        padding: 18px 16px;
        margin: 24px 0;
        border-radius: 10px;
    }

    .callout-purple h3 {
        font-size: 1rem;
    }

    .funnel-visual {
        padding: 20px 16px;
        margin: 24px 0;
    }

    .funnel-stage {
        padding: 12px 16px;
    }

    .funnel-wide,
    .funnel-mid,
    .funnel-narrow,
    .funnel-tip {
        width: 100%;
        max-width: none;
    }

    .faq-heading {
        margin-top: 36px;
        margin-bottom: 20px;
        font-size: 1.25rem;
    }

    .faq-accordion {
        margin: 24px 0 36px;
        gap: 10px;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 18px;
    }

    .faq-answer p {
        padding-bottom: 16px;
        font-size: 0.9375rem;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .post-article {
        padding: 16px 12px 40px;
    }

    .article-container {
        padding: 0 4px;
    }

    .post-title {
        font-size: 1.35rem;
    }

    .balance-pan {
        padding: 16px 12px;
    }

    .balance-label {
        font-size: 0.9375rem;
    }

    .funnel-num {
        font-size: 0.875rem;
    }

    .funnel-text {
        font-size: 0.8125rem;
    }
}

/* ========== Lead / Contact form (כל ~2 דקות קריאה) ========== */
.contact-form-insert {
    margin: 40px 0;
}

.lead {
    padding: 12px 0 0;
}

.lead--inline {
    max-width: 700px;
}

.form-wrapper {
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-top: 24px;
}

@media (max-width: 900px) {
    .form-wrapper {
        width: 100%;
        box-sizing: border-box;
    }
}

.form-wrapper.has-background {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.lead__container {
    max-width: 980px;
}

.lead__form {
    display: grid;
    gap: 20px;
}

.form-step {
    display: none;
}

.form-step.is-active {
    display: block;
}

.pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    background: rgba(246, 249, 252, 0.7);
    border: 1px solid rgba(230, 232, 235, 0.9);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px) saturate(130%);
}

.pill input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 16px 16px 16px 20px;
    font-size: 18px;
    outline: none;
}

.btn--cta {
    background: #0b2540;
    color: white;
    border-radius: 999px;
    padding: 14px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn--cta:hover {
    background: #0d2f52;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 37, 64, 0.3);
}

.btn--cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(11, 37, 64, 0.2);
}

.step__group {
    margin: 16px 0;
}

.step__title {
    margin: 0 0 8px;
    font-weight: 700;
    color: #0a0b0d;
}

.step__note {
    margin: 0 0 12px;
    font-size: 0.9375rem;
    color: #64748b;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #d0d5dd;
    background: #fff;
    cursor: pointer;
}

.chip.is-selected {
    background: #eef2ff;
    border-color: #7c3aed;
    color: #4630eb;
}

.field {
    display: grid;
    gap: 6px;
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    font-size: 16px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.step__actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.lead__form .btn:not(.btn--cta) {
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    color: #334155;
    font-weight: 500;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lead__form .btn:not(.btn--cta):hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #0f172a;
}

.lead__form .btn--primary {
    background: linear-gradient(135deg, #635bff 0%, #7c3aed 100%);
    color: #fff;
    border-color: #5b52e6;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99, 91, 255, 0.35);
}

.lead__form .btn--primary:hover {
    background: linear-gradient(135deg, #5851e8 0%, #6d28d9 100%);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.4);
}

@media (max-width: 700px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .pill {
        padding: 8px;
    }

    .pill input {
        padding: 12px 12px 12px 16px;
        font-size: 16px;
    }
}

/* RTL – lead form */
[dir="rtl"] .pill input {
    padding: 16px 20px 16px 18px;
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .pill input::placeholder {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .field {
    text-align: right;
}

[dir="rtl"] .field input,
[dir="rtl"] .field textarea {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .field input::placeholder,
[dir="rtl"] .field textarea::placeholder {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .field span {
    text-align: right;
}

[dir="rtl"] .step__actions {
    flex-direction: row;
}

[dir="rtl"] .chips {
    justify-content: flex-start;
}

[dir="rtl"] .chip {
    text-align: center;
}

[dir="rtl"] .pill {
    flex-direction: row;
}

[dir="rtl"] .grid-2 {
    direction: rtl;
}

[dir="rtl"] .step__group {
    text-align: right;
}

[dir="rtl"] .step__title {
    text-align: right;
}

@media (max-width: 600px) {
    .contact-form-insert {
        margin: 28px 0;
    }

    .form-wrapper {
        margin-top: 16px;
    }

    .form-wrapper.has-background {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .pill {
        padding: 8px;
        gap: 8px;
    }

    .pill input {
        padding: 10px 10px 10px 14px;
        font-size: 15px;
    }

    .btn--cta {
        padding: 12px 16px;
        font-size: 14px;
    }

    .step__title {
        font-size: 14px;
    }

    .chip {
        padding: 8px 12px;
        font-size: 13px;
    }

    .field input,
    .field textarea {
        font-size: 14px;
        padding: 10px 12px;
    }

    .grid-2 {
        gap: 10px;
    }
}
