@font-face {
    font-family: 'Yarden';
    src: url('Assets/yarden-regular-alefalefalef.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yarden';
    src: url('Assets/yarden-bold-alefalefalef.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Yarden', sans-serif;
    background: #ffffff;
    color: #000000;
    direction: rtl;
    min-height: 100vh;
}

body.landing {
    overflow: hidden;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(24px, 4vh, 48px);
    padding: clamp(24px, 6vh, 48px) clamp(24px, 7vw, 120px);
}

.content-wrapper {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 64px);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    align-items: center;
    direction: ltr; /* Override RTL for grid layout */
}

/* Hero Content */
.hero-content {
    padding-left: clamp(16px, 4vw, 48px);
    direction: rtl; /* Restore RTL for content */
    text-align: right;
    justify-self: end;
}

.hero-title {
    font-size: clamp(48px, 7vw, 76px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: clamp(20px, 3vh, 32px);
    color: #000000;
}

.title-line {
    display: block;
}

.title-emphasis {
    display: block;
    text-align: right;
    margin-left: 50%;
}

.hero-features {
    margin-bottom: clamp(20px, 3vh, 32px);
}

.hero-features p {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 6px;
    color: #000000;
}

.hero-features strong {
    font-weight: 700;
}

.download-section {
    margin-top: clamp(16px, 2.5vh, 28px);
}

.app-store-btn {
    display: inline-block;
}

.app-store-btn img {
    height: 53px;
    width: auto;
}

/* Phone Mockup */
.phone-mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 clamp(16px, 3vw, 24px);
    direction: ltr;
}

.phone-mockup-image {
    width: min(100%, 420px);
    height: auto;
    max-height: min(65vh, 560px);
    display: block;
    object-fit: contain;
}

/* Footer */
.footer {
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

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

.footer-links a {
    color: #000;
    text-decoration: none;
    font-size: 22px;
    font-weight: 400;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-brand {
    display: flex;
    gap: 3px;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    color: #000;
}

.currency {
    font-weight: 700;
}

/* Legal Pages */
.legal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(20px, 6vw, 40px) clamp(20px, 7vw, 60px);
}

.legal-logo {
    font-size: 26px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.legal-back {
    font-size: 18px;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.legal-back:hover {
    border-color: #000;
}

.legal-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 clamp(20px, 7vw, 60px) clamp(40px, 8vh, 80px);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.legal-section h1 {
    font-size: clamp(36px, 6vw, 52px);
    font-weight: 700;
    line-height: 1.2;
}

.legal-section h2 {
    font-size: clamp(24px, 4vw, 32px);
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-section p,
.legal-section li {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-section ul {
    list-style: disc;
    padding-right: 1.5rem;
}

.legal-footer {
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(20px, 6vw, 40px) clamp(20px, 7vw, 60px);
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    display: flex;
    justify-content: center;
    text-align: center;
}

/* Mobile Responsive Design */
@media (max-width: 393px) {
    .hero-section {
        padding: 32px 20px;
        min-height: 100vh;
        min-height: 100dvh;
        gap: 32px;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
        direction: rtl;
    }

    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
        order: 1;
        text-align: center;
        max-width: 100%;
    }

    .hero-title {
        font-size: 59px;
        margin-bottom: 30px;
    }

    .title-line, .title-emphasis {
        text-align: center;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-features {
        display: none; /* Hide on mobile as per design */
    }

    .download-section {
        margin-top: 30px;
    }

    .phone-mockup-container {
        order: 2;
        justify-content: center;
        padding: 0;
    }

    .phone-mockup-image {
        max-width: 80%;
        max-height: 420px;
    }

    .footer {
        flex-direction: column;
        gap: 16px;
        padding: 0;
    }

    .footer-links {
        order: 2;
        gap: 16px;
    }

    .footer-brand {
        order: 1;
        display: none; /* Hide on mobile as per design */
    }
}

@media (min-width: 394px) and (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        padding-left: 0;
        text-align: center;
    }

    .hero-title {
        font-size: 60px;
    }

    .title-line, .title-emphasis {
        text-align: center;
        margin-left: 0;
        margin-right: 0;
    }

    .phone-mockup-container {
        justify-content: center;
        padding: 0;
    }

    .phone-mockup-image {
        max-width: 80%;
        max-height: 440px;
    }

    .footer {
        justify-content: center;
        gap: 16px;
    }

    .legal-header,
    .legal-section,
    .legal-footer {
        padding-right: 24px;
        padding-left: 24px;
    }

    .legal-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .legal-section ul {
        padding-right: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: clamp(48px, 6vw, 70px);
    }

    .hero-features p {
        font-size: 20px;
    }

    .content-wrapper {
        gap: 40px;
    }
}
