:root {
    --bg: #f7fbfa;
    --surface: #ffffff;
    --surface-soft: #fff3f7;
    --ink: #281722;
    --muted: #715d68;
    --line: #e7d8df;
    --rose: #df477c;
    --rose-dark: #a60e50;
    --teal: #0fa7a0;
    --violet: #6259d9;
    --amber: #d9902e;
    --green: #4f9275;
    --shadow: 0 18px 48px rgba(79, 52, 66, 0.13);
    --hero-image: url("../images/screens/en/sc1.png");
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 251, 250, 0.94);
    backdrop-filter: blur(14px);
}

.nav {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--rose-dark);
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--muted);
    font-size: 0.94rem;
}

.nav-links a {
    font-weight: 750;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--rose-dark);
}

.language-picker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 750;
}

.language-picker select {
    min-width: 142px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    padding: 0 10px;
}

.hero {
    min-height: 72svh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background-image:
        linear-gradient(90deg, rgba(247, 251, 250, 0.99) 0%, rgba(247, 251, 250, 0.94) 43%, rgba(247, 251, 250, 0.64) 72%, rgba(247, 251, 250, 0.24) 100%),
        var(--hero-image);
    background-repeat: no-repeat;
    background-size: cover, auto 124%;
    background-position: center, right 48%;
}

.hero-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 68px 0 64px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--rose-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 690px;
    margin: 0;
    color: #351827;
    font-size: 4rem;
    line-height: 1.04;
}

.hero-subtitle {
    max-width: 650px;
    margin: 22px 0 0;
    color: #604b57;
    font-size: 1.22rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.button.primary {
    background: var(--rose);
    color: #ffffff;
}

.button.secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.84);
    color: var(--rose-dark);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.hero-points {
    max-width: 730px;
    display: grid;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    color: var(--muted);
    font-weight: 680;
    list-style: none;
}

.hero-points li {
    position: relative;
    padding-inline-start: 22px;
}

.hero-points li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--teal);
}

.overview {
    width: min(1180px, calc(100% - 32px));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 24px auto 0;
}

.overview-item {
    min-height: 108px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 26px rgba(79, 52, 66, 0.07);
}

.overview-item span {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 760;
}

.overview-item strong {
    display: block;
    margin-top: 8px;
    color: var(--rose-dark);
    font-size: 1.08rem;
    line-height: 1.25;
}

.section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.section-heading {
    max-width: 800px;
    margin-bottom: 32px;
}

.section-heading h2,
.privacy-band h2 {
    margin: 0;
    color: #351827;
    font-size: 2.38rem;
    line-height: 1.12;
}

.section-heading p:not(.eyebrow),
.privacy-band p:not(.eyebrow) {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    min-height: 100%;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(79, 52, 66, 0.07);
}

.feature-card h3 {
    margin: 12px 0 10px;
    color: #351827;
    font-size: 1.2rem;
    line-height: 1.25;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
}

.feature-card ul {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding-inline-start: 20px;
    color: #4f3945;
}

.feature-mark {
    display: block;
    width: 36px;
    height: 5px;
    border-radius: 999px;
}

.feature-mark.glance {
    background: var(--rose);
}

.feature-mark.week {
    background: var(--teal);
}

.feature-mark.journal {
    background: var(--violet);
}

.feature-mark.calendar {
    background: var(--amber);
}

.feature-mark.reminders {
    background: #d35a95;
}

.feature-mark.checklist {
    background: var(--green);
}

.feature-mark.privacy {
    background: #147f88;
}

.feature-mark.caution {
    background: #b86e1b;
}

.caution-card {
    background: #fff9ef;
}

.gallery-section {
    padding-top: 36px;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.screenshot-grid figure {
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(79, 52, 66, 0.08);
}

.screenshot-grid img {
    width: 100%;
    aspect-ratio: 9 / 16;
    border: 1px solid #ead4df;
    border-radius: 6px;
    background: #f8fbfa;
    object-fit: cover;
    object-position: top center;
}

.screenshot-grid figcaption {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    color: #5a3548;
    font-weight: 850;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
}

.privacy-band {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 28px;
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 34px;
    border: 1px solid #bcdcd3;
    border-radius: 8px;
    background: linear-gradient(90deg, #eaf8f5, #fff5f8);
}

.contact-section {
    padding-top: 48px;
    text-align: center;
}

.contact-section .section-heading {
    margin-inline: auto;
}

.email-link {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--rose-dark);
    font-weight: 850;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.policy-page {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0 76px;
}

.policy-content {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.back-link {
    color: var(--rose-dark);
    font-weight: 850;
    text-decoration: none;
}

.policy-content h1 {
    margin: 0;
    color: #351827;
    font-size: 2.75rem;
    line-height: 1.1;
}

.policy-content .updated {
    margin: 12px 0 28px;
    color: var(--muted);
    font-weight: 760;
}

.policy-content section {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.policy-content h2 {
    margin: 0 0 8px;
    color: #351827;
    font-size: 1.34rem;
}

.policy-content p {
    margin: 0;
    color: var(--muted);
}

.not-found .button {
    margin-top: 22px;
}

.site-footer {
    padding: 28px 16px;
    border-top: 1px solid var(--line);
    background: #ffffff;
    color: var(--muted);
    text-align: center;
}

.site-footer p {
    margin: 6px 0;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .hero {
    background-image:
        linear-gradient(270deg, rgba(247, 251, 250, 0.99) 0%, rgba(247, 251, 250, 0.94) 43%, rgba(247, 251, 250, 0.64) 72%, rgba(247, 251, 250, 0.24) 100%),
        var(--hero-image);
    background-position: center, left 48%;
}

html[dir="rtl"] .nav,
html[dir="rtl"] .hero-content,
html[dir="rtl"] .section-heading,
html[dir="rtl"] .policy-content {
    text-align: right;
}

@media (max-width: 1120px) {
    .feature-grid,
    .screenshot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .nav {
        min-height: auto;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: 14px;
        padding-bottom: 4px;
        overflow-x: auto;
    }

    html[dir="rtl"] .nav-links {
        justify-content: flex-end;
    }

    .hero {
        min-height: 68svh;
        background-size: cover, auto 112%;
        background-position: center, right center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .brand span {
        font-size: 0.96rem;
    }

    .language-picker {
        width: 100%;
        justify-content: space-between;
    }

    .language-picker select {
        flex: 1;
        min-width: 0;
    }

    .hero {
        min-height: 66svh;
        background-image:
            linear-gradient(180deg, rgba(247, 251, 250, 0.99) 0%, rgba(247, 251, 250, 0.94) 58%, rgba(247, 251, 250, 0.84) 100%),
            var(--hero-image);
        background-size: cover, auto 78%;
        background-position: center, right bottom;
    }

    html[dir="rtl"] .hero {
        background-image:
            linear-gradient(180deg, rgba(247, 251, 250, 0.99) 0%, rgba(247, 251, 250, 0.94) 58%, rgba(247, 251, 250, 0.84) 100%),
            var(--hero-image);
        background-position: center, left bottom;
    }

    .hero-content {
        padding: 48px 0;
    }

    .hero h1 {
        font-size: 2.34rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-actions {
        display: grid;
    }

    .button,
    .email-link {
        width: 100%;
    }

    .overview,
    .feature-grid,
    .screenshot-grid,
    .privacy-band {
        grid-template-columns: 1fr;
    }

    .overview-item {
        min-height: auto;
    }

    .section {
        padding: 54px 0;
    }

    .section-heading h2,
    .privacy-band h2 {
        font-size: 1.9rem;
    }

    .screenshot-grid {
        gap: 18px;
    }

    .screenshot-grid figure {
        max-width: 340px;
        margin-inline: auto;
    }

    .privacy-band {
        padding: 24px;
    }

    .policy-content {
        padding: 24px;
    }

    .policy-content h1 {
        font-size: 2rem;
    }
}
