:root {
    --bg: #f6f1e8;
    --surface: #fffaf2;
    --surface-strong: #f0e4d2;
    --text: #1e1d1a;
    --muted: #60594f;
    --line: #dccfb9;
    --accent: #1f6b5b;
    --accent-dark: #174f44;
    --shadow: 0 16px 40px rgba(36, 31, 19, 0.08);
    --radius: 20px;
    --container: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(31, 107, 91, 0.14), transparent 32%),
        linear-gradient(180deg, #fbf7f1 0%, var(--bg) 100%);
    line-height: 1.6;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.narrow {
    width: min(calc(100% - 2rem), 760px);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    background: var(--text);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    z-index: 1000;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(251, 247, 241, 0.88);
    border-bottom: 1px solid rgba(220, 207, 185, 0.7);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    position: relative;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 250, 242, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.28rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 99px;
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--muted);
}

.main-nav a[aria-current="page"] {
    color: var(--text);
    font-weight: 700;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 250, 242, 0.8);
}

.language-switcher a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
}

.language-switcher a[aria-current="true"] {
    background: var(--accent);
    color: white;
}

.hero,
.section {
    padding: 5rem 0;
}

.hero-grid,
.app-page,
.contact-grid {
    display: grid;
    gap: 2rem;
}

.hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    min-height: calc(100vh - 90px);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
}

h1,
h2,
h3 {
    line-height: 1.15;
    margin-top: 0;
}

h1 {
    font-size: clamp(2.7rem, 6vw, 5rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 62ch;
}

.hero-actions,
.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.button,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.3rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button {
    background: var(--accent);
    color: white;
}

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

.button-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.card,
.app-highlight {
    background: rgba(255, 250, 242, 0.86);
    border: 1px solid rgba(220, 207, 185, 0.8);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: auto -30px -40px auto;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(31, 107, 91, 0.18), transparent 65%);
}

.check-list,
.footer-links {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
}

.section-heading {
    margin-bottom: 2rem;
}

.text-link {
    color: var(--accent-dark);
    font-weight: 700;
}

.app-logo-heading {
    margin-bottom: 1rem;
}

.app-logo {
    display: block;
    width: min(100%, 320px);
    height: auto;
}

.app-page {
    gap: 1.8rem;
}

.section-app .app-page,
.section-app .app-page h1,
.section-app .app-page h2,
.section-app .app-page h3,
.section-app .app-page p,
.section-app .app-page li,
.section-app .app-page a,
.section-app .app-page button {
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.section-app .eyebrow {
    letter-spacing: 0.18em;
}

.section-app .lead {
    font-size: 1.08rem;
    line-height: 1.72;
    max-width: 58ch;
}

.app-claim {
    margin: -0.1rem 0 0;
    color: var(--muted);
    font-size: 1.18rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-showcase {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 0.8rem;
    align-items: center;
    margin-top: 0.2rem;
}

.app-badge {
    position: absolute;
    top: -18px;
    left: -18px;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: #d9483b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 18px 35px rgba(168, 57, 44, 0.28);
    z-index: 3;
}

.app-showcase__visuals {
    min-height: 360px;
    padding: 0.4rem 1.6rem 0.4rem 0;
}

.app-slider {
    position: relative;
    width: 100%;
}

.app-slider__track {
    position: relative;
    min-height: 300px;
}

.app-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.app-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.app-slide__frame {
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: stretch;
}

.app-slide__screen {
    width: min(100%, 650px);
    border-radius: 20px;
    background: linear-gradient(180deg, #4b9cdd 0%, #3b8dce 100%);
    box-shadow: 0 18px 50px rgba(35, 31, 24, 0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.94);
    padding: 1.35rem 1rem;
}

.app-slide__screen span {
    font-size: 1.15rem;
    font-weight: 700;
}

.app-slide__screen small {
    font-size: 0.88rem;
    letter-spacing: 0.04em;
}

.app-info-box {
    position: relative;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(220, 207, 185, 0.9);
    border-radius: 20px;
    padding: 1.25rem;
    margin-left: -64px;
    z-index: 2;
    box-shadow: var(--shadow);
}

.app-slider__controls {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.65rem;
}

.app-slider__arrow {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(220, 207, 185, 0.9);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.app-slider__dots {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.app-slider__dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 0;
    background: rgba(31, 107, 91, 0.2);
    padding: 0;
    cursor: pointer;
}

.app-slider__dot.is-active {
    background: var(--accent);
}

.app-info-box h2 {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    margin-bottom: 0.7rem;
}

.app-info-box p {
    color: var(--muted);
    margin: 0.6rem 0;
}

.app-info-list {
    margin: 0.8rem 0 1rem;
    padding-left: 1.2rem;
    color: var(--muted);
}

.app-info-list li + li {
    margin-top: 0.35rem;
}

.app-info-box__privacy {
    margin-top: 0.85rem;
}

.app-page__outro {
    width: min(100%, 760px);
    padding-left: 0.1rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(255, 250, 242, 0.75);
    padding: 0.8rem 0 0.9rem;
}

.footer-minimal {
    display: flex;
    justify-content: flex-end;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.footer-legal a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.92rem;
}

.contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
}

.contact-form {
    display: grid;
    gap: 0.9rem;
}

.contact-form label {
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    font: inherit;
    color: var(--text);
    background: white;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(31, 107, 91, 0.18);
    border-color: var(--accent);
}

.notice {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
}

.notice ul {
    margin: 0;
    padding-left: 1.2rem;
}

.notice-success {
    background: rgba(31, 107, 91, 0.1);
    border: 1px solid rgba(31, 107, 91, 0.3);
}

.notice-error {
    background: rgba(162, 44, 44, 0.08);
    border: 1px solid rgba(162, 44, 44, 0.24);
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.legal-page p,
.legal-page li {
    color: var(--muted);
}

.legal-page--app,
.legal-page--app h1,
.legal-page--app h2,
.legal-page--app h3,
.legal-page--app p,
.legal-page--app li,
.legal-page--app a {
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.legal-page--app .narrow {
    width: min(calc(100% - 2rem), 820px);
}

.legal-page--app h1 {
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    line-height: 1.12;
    margin-bottom: 1.4rem;
}

.legal-page--app h2 {
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    line-height: 1.28;
    margin-top: 2rem;
    margin-bottom: 0.7rem;
}

.legal-page--app p,
.legal-page--app li {
    font-size: 1rem;
    line-height: 1.72;
}

.legal-page--app ul {
    margin: 0.7rem 0 1rem;
    padding-left: 1.2rem;
}

.legal-page--app .legal-note {
    margin-top: 1.4rem;
}

.legal-note,
.store-note {
    padding: 1rem 1.25rem;
    background: var(--surface-strong);
    border-radius: 14px;
    border: 1px solid var(--line);
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 30;
}

.cookie-banner__inner {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
    background: rgba(24, 23, 20, 0.94);
    color: white;
    border-radius: 24px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.cookie-banner__inner p,
.cookie-banner__inner h2 {
    margin: 0;
}

@media (max-width: 900px) {
    .hero-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: auto;
    }

    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-minimal,
    .footer-legal {
        justify-content: center;
    }

    .app-showcase {
        grid-template-columns: 1fr;
    }

    .app-showcase__visuals {
        min-height: auto;
        padding: 0.5rem 0 0;
    }

    .app-info-box {
        margin-left: 0;
        max-width: 640px;
    }
}

@media (max-width: 640px) {
    .hero,
    .section {
        padding: 3.5rem 0;
    }

    .header-inner {
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .header-controls {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding-top: 0.75rem;
    }

    .header-controls.is-open {
        display: flex;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
        width: 100%;
    }

    .main-nav a {
        width: 100%;
    }

    .language-switcher {
        align-self: flex-start;
    }

    .card,
    .app-highlight,
    .cookie-banner__inner {
        padding: 1.25rem;
    }

    .app-badge {
        top: -16px;
        left: 50%;
        transform: translateX(-50%);
        width: 88px;
        height: 88px;
        font-size: 0.72rem;
    }

    .app-showcase__visuals {
        padding-top: 0;
    }

    .app-slide__frame {
        min-height: 250px;
    }

    .app-slide__screen {
        width: 100%;
        min-height: 250px;
    }

    .app-slider__controls {
        justify-content: center;
    }

    .legal-page--app h1 {
        font-size: 1.7rem;
        line-height: 1.16;
    }

    .legal-page--app h2 {
        font-size: 1.05rem;
        line-height: 1.3;
        margin-top: 1.5rem;
    }

    .legal-page--app p,
    .legal-page--app li {
        font-size: 0.98rem;
        line-height: 1.68;
    }
}
