*, *::before, *::after { box-sizing: border-box; }

.topnav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: ltr;
    padding: 26px 36px;
}
.topnav a, .nav-menu a, .lang-btn, .site-footer a, .back, .cta, .post-card { text-decoration: none; }
.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 0.1em;
    color: #FF6B00;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}
.logo:hover { opacity: 0.82; }
.topnav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-demo {
    display: inline-flex;
    align-items: center;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: #FF6B00;
    padding: 12px 18px;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 18px rgba(255, 107, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-demo:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255, 107, 0, 0.5); }
.nav-demo:active { transform: scale(0.97); }
.nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.nav-hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #1A1A1A;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-menu {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 61;
    width: min(300px, 82vw);
    background: #fff;
    border-right: 1px solid #E0E0E0;
    box-shadow: 40px 0 80px rgba(0,0,0,0.12);
    padding: 110px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
    overflow-y: auto;
}
.nav-menu.open { transform: translateX(0); }
.nav-menu > a {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1A1A1A;
    text-decoration: none;
    padding: 16px 0;
    border-bottom: 1px solid #E0E0E0;
    transition: color 0.2s ease;
}
.nav-menu > a:hover, .nav-menu > a.active { color: #FF6B00; }
.nav-menu a.nav-login {
    color: #FF6B00;
    text-align: center;
    border: 1px solid rgba(255, 107, 0, 0.5);
    border-radius: 999px;
    padding: 12px 0;
    margin-top: 14px;
}
.nav-menu a.nav-login:hover { background: rgba(255, 107, 0, 0.1); color: #FF6B00; }
.nav-menu > a.nav-menu-appstore { border-bottom: none; padding: 0; margin-top: 20px; align-self: flex-start; text-transform: none; letter-spacing: 0; }
.nav-menu-appstore img { height: 44px; width: auto; display: block; }
.nav-menu .lang-toggle { display: flex; align-items: center; gap: 4px; margin-top: 28px; }
.lang-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8E8E93;
    background: none;
    border: none;
    padding: 6px 9px;
    border-radius: 5px;
    text-decoration: none;
}
a.lang-btn:hover, .lang-btn:hover { color: #1A1A1A; }
.lang-btn.active { color: #FF6B00; }
.lang-sep { color: #E0E0E0; font-size: 10px; user-select: none; }
.nav-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.nav-menu-backdrop.open { opacity: 1; pointer-events: auto; }

html[lang="he"] .nav-menu > a,
html[lang="he"] .nav-demo { font-family: 'Heebo', sans-serif; letter-spacing: 0; text-transform: none; }
html[lang="he"] .nav-demo { font-size: 14px; }

.page {
    max-width: 760px;
    margin: 0 auto;
    padding: 150px 24px 72px;
}
.page-wide { max-width: 900px; }
.eyebrow {
    color: #FF6B00;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
html[lang="he"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 15px; }
.page h1, .prose h1 {
    font-size: clamp(36px, 6vw, 56px);
    line-height: 1.12;
    font-weight: 800;
    margin-bottom: 18px;
}
.accent { color: #FF6B00; }
.lead { font-size: 18px; line-height: 1.7; color: #3A3A3A; margin-bottom: 18px; }
.page p, .prose p { font-size: 18px; line-height: 1.75; color: #3A3A3A; margin-bottom: 14px; }
.page h2, .prose h2 { font-size: 26px; line-height: 1.3; margin: 36px 0 12px; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 28px 0; padding: 0; }
.steps li {
    background: #fff;
    border-radius: 18px;
    padding: 18px 20px 18px 72px;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
html[dir="rtl"] .steps li { padding: 18px 72px 18px 20px; }
.steps li::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    top: 18px;
    left: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FF6B00;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
html[dir="rtl"] .steps li::before { left: auto; right: 18px; }
.steps { counter-reset: step; }
.cta {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    background: #FF6B00;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 22px;
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(255, 107, 0, 0.35);
}
.store-link { display: inline-block; margin-top: 18px; }
.store-link img { height: 48px; width: auto; display: block; }

.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-card {
    display: block;
    background: #fff;
    border-radius: 22px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 16px 40px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(0,0,0,0.08); }
.post-card time { color: #FF6B00; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
html[lang="he"] .post-card time { letter-spacing: 0; text-transform: none; }
.post-card h2 { font-size: 26px; margin: 10px 0; line-height: 1.25; }
.post-card p { margin: 0; color: #3A3A3A; line-height: 1.7; }

.prose { max-width: 720px; margin: 0 auto; padding: 150px 24px 80px; }
.back {
    display: inline-block;
    color: #FF6B00;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 18px;
}
.prose time { display: block; color: #8E8E93; margin-bottom: 12px; }
.prose ul, .prose ol { margin: 4px 0 22px; padding-inline-start: 1.25em; }
.prose li { font-size: 18px; line-height: 1.7; color: #3A3A3A; margin-bottom: 10px; }
.prose strong { color: #1A1A1A; font-weight: 700; }
.prose .steps { margin-top: 8px; }
.prose .result {
    background: #fff;
    border-radius: 18px;
    padding: 18px 20px;
    margin: 8px 0 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.prose .faq-list { margin: 8px 0 28px; }
.prose .faq-item.open .faq-answer { max-height: 480px; }

.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid #E0E0E0; background: transparent; }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 0;
    text-align: start;
    font: inherit;
    color: inherit;
}
.faq-q-text { font-size: 17px; font-weight: 700; line-height: 1.4; }
.faq-chevron {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 2px solid #E0E0E0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8E8E93;
    transition: transform 0.25s, border-color 0.25s, color 0.25s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); border-color: #FF6B00; color: #FF6B00; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 280px; }
.faq-answer p { color: #757575; padding-bottom: 18px; }

.site-footer {
    background: #1A1A1A;
    color: rgba(255,255,255,0.78);
    text-align: center;
    padding: 40px 24px 48px;
}
.site-footer p { font-size: 14px; line-height: 1.6; max-width: 640px; margin: 0 auto 16px; color: rgba(255,255,255,0.78); }
.site-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 16px; }
.site-footer-nav a { color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.site-footer-nav a:hover { color: #FF6B00; }

.theme-orange { background: #FF6B00; color: #fff; }
.theme-orange .logo, .theme-orange .nav-hamburger span { color: #fff; background: none; }
.theme-orange .nav-hamburger span { background: #fff; }
.theme-orange .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 72px;
    position: relative;
    overflow: hidden;
}
.theme-orange .watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(80px, 20vw, 280px);
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.12);
}
.theme-orange .hero-copy { position: relative; z-index: 1; max-width: 760px; }
.theme-orange .eyebrow { color: rgba(255,255,255,0.8); }
.theme-orange h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(52px, 9vw, 104px);
    line-height: 0.92;
    letter-spacing: 0.02em;
    font-weight: 400;
    margin-bottom: 24px;
}
.theme-orange .lead {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(18px, 2.2vw, 22px);
    color: rgba(255,255,255,0.88);
    max-width: 520px;
    margin: 0 auto 28px;
}
.panel { background: #F5F5F7; color: #1A1A1A; padding: 72px 24px; }
.panel-inner { max-width: 720px; margin: 0 auto; }
.panel h2 { font-size: clamp(26px, 4vw, 36px); margin: 28px 0 10px; }
.panel p, .panel li { font-size: 17px; line-height: 1.7; color: #1A1A1A; }
.panel ul { margin: 8px 0 0; padding-inline-start: 1.2em; }
.panel a { color: #FF6B00; font-weight: 700; }

body.doc > header { padding-top: 120px; }

.missing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    background: #F5F5F7;
}
.missing h1 { font-size: clamp(36px, 6vw, 64px); margin: 12px 0; }

@media (max-width: 768px) {
    .topnav {
        background: rgba(245,245,247,0.88);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 14px 18px;
    }
    .theme-orange .topnav { background: rgba(0,0,0,0.28); }
    .topnav-right { gap: 10px; }
    .nav-demo { font-size: 11px; letter-spacing: 0.06em; padding: 10px 12px; }
    html[lang="he"] .nav-demo { font-size: 13px; letter-spacing: 0; }
    .nav-menu { padding: 90px 26px 26px; }
    .page, .prose { padding-top: 120px; }
}
