:root {
    --shelf-mist: #f6f7f2;
    --ink-leaf: #12322e;
    --fresh-mint: #65b891;
    --soft-apricot: #f2b36d;
    --berry-check: #d96b72;
    --ceramic-blue: #6a8fbf;
    --quiet-grey: #8c9690;
    --card: #ffffff;
    --line: #dfe7dd;
    --shadow: 0 22px 70px rgba(18, 50, 46, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    color: var(--ink-leaf);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background:
        linear-gradient(180deg, rgba(101, 184, 145, 0.11), transparent 360px),
        var(--shelf-mist);
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 3px solid rgba(106, 143, 191, 0.9);
    outline-offset: 3px;
}

.site-header,
.site-footer,
main {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 24px 0 12px;
}

.brand,
.site-nav,
.site-footer,
.language-switch {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 900;
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(18, 50, 46, 0.14);
}

.site-nav {
    justify-content: center;
    gap: 16px;
    color: #38534d;
    font-size: 0.95rem;
}

.site-nav a,
.site-footer a {
    text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.language-switch {
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
}

.language-switch button {
    min-width: 42px;
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-leaf);
    cursor: pointer;
    font-weight: 800;
}

.language-switch button[aria-pressed="true"] {
    background: var(--ink-leaf);
    color: white;
}

main {
    padding: 38px 0 64px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.72fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    min-height: calc(100svh - 210px);
    padding: 32px 0 60px;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #3b946c;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    color: var(--ink-leaf);
    line-height: 1.02;
}

h1 {
    max-width: 760px;
    font-size: clamp(3rem, 8vw, 6.6rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(1.55rem, 2.5vw, 2.7rem);
    font-weight: 900;
}

.hero-lead,
.page > p,
.split-section p,
.notice p,
.legal-page p {
    color: #4d625b;
    font-size: 1.08rem;
}

.hero-lead {
    max-width: 600px;
    margin: 22px 0 0;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.primary-action,
.secondary-action,
.contact-form button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 850;
    text-decoration: none;
}

.primary-action,
.contact-form button {
    border: 0;
    background: var(--ink-leaf);
    color: white;
    cursor: pointer;
    padding: 0 18px;
}

.secondary-action {
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink-leaf);
    padding: 0 18px;
}

.phone-preview {
    position: relative;
    justify-self: center;
    width: min(100%, 360px);
    margin: 0;
    border-radius: 42px;
    background: var(--ink-leaf);
    padding: 14px;
    box-shadow: var(--shadow);
    transform: rotate(1.5deg);
    overflow: hidden;
}

.app-screenshot {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(76svh, 760px);
    border-radius: 30px;
    object-fit: cover;
    object-position: top center;
    background: var(--card);
}

.feature-band,
.split-section,
.notice,
.page {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 38px rgba(18, 50, 46, 0.06);
}

.feature-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
}

.feature-band article {
    padding: 28px;
    background: var(--card);
}

.feature-band span {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #ecf8f2;
    color: #28764f;
    font-weight: 900;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: 28px;
    margin-top: 24px;
    padding: 32px;
}

.use-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.use-grid div {
    border-radius: 10px;
    background: var(--card);
    padding: 18px;
    color: #415851;
    font-weight: 750;
}

.notice {
    margin-top: 24px;
    padding: 32px;
}

.notice a {
    font-weight: 850;
}

.page {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(28px, 6vw, 64px);
}

.page-narrow {
    max-width: 720px;
}

.legal-page p {
    margin: 18px 0 0;
}

.contact-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

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

.field label {
    font-weight: 850;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--ink-leaf);
    padding: 13px 14px;
}

.field textarea {
    resize: vertical;
}

.field ul {
    margin: 0;
    padding-left: 18px;
    color: var(--berry-check);
}

.flash-success,
.flash-error {
    border-radius: 8px;
    padding: 14px 16px;
    font-weight: 800;
}

.flash-success {
    background: #ecf8f2;
    color: #236b49;
}

.flash-error {
    background: #fff1e2;
    color: #8b3f24;
}

.site-footer {
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    border-top: 1px solid var(--line);
    padding: 26px 0 36px;
    color: #526760;
    font-size: 0.95rem;
}

.site-footer span {
    color: var(--ink-leaf);
    font-weight: 900;
}

@media (max-width: 850px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .site-nav {
        grid-column: 1 / -1;
        order: 3;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero,
    .split-section {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
        padding-top: 14px;
    }

    .phone-preview {
        width: min(100%, 320px);
        transform: none;
    }

    .feature-band,
    .use-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .site-header,
    .site-footer,
    main {
        width: min(100% - 22px, 1120px);
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .site-nav {
        gap: 12px;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 2.65rem;
    }

    .hero-actions,
    .hero-actions a {
        width: 100%;
    }

    .phone-preview {
        border-radius: 34px;
        padding: 10px;
    }

    .app-screenshot {
        max-height: 620px;
        border-radius: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
