:root {
    color-scheme: light;
    --bg: #f5f1eb;
    --surface: #ffffff;
    --surface-muted: #fbf8f4;
    --border: #ded5ca;
    --text: #1c1917;
    --muted: #6b6257;
    --accent: #b36a1e;
    --accent-strong: #8e5316;
    --success: #2f855a;
    --warning: #b7791f;
    --danger: #c05621;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

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

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 18px;
}

.brand {
    font-size: 1.1rem;
    font-weight: 700;
}

.site-nav {
    display: flex;
    gap: 20px;
    color: var(--muted);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
    gap: 32px;
    align-items: center;
    padding: 36px 0 32px;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #f5dcc0;
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.02;
    margin-bottom: 16px;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 0;
}

.hero-text,
.legal-page p,
.info-card p,
.support-intro,
li {
    color: var(--muted);
    line-height: 1.65;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-weight: 600;
}

.button-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.button-secondary {
    background: var(--surface);
}

.device {
    position: relative;
    justify-self: end;
    width: 100%;
    max-width: 400px;
    padding: 16px;
    border-radius: 34px;
    background: #1f1b17;
    box-shadow: 0 32px 64px rgba(31, 27, 23, 0.16);
}

.device-notch {
    width: 138px;
    height: 26px;
    margin: 0 auto 8px;
    border-radius: 16px;
    background: #0e0c0a;
}

.device-screen {
    background: linear-gradient(180deg, #fff9f2 0%, #f6efe6 100%);
    border-radius: 26px;
    padding: 18px;
}

.device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    background: #f2d9bc;
    color: var(--accent-strong);
    font-size: 0.8rem;
}

.deadline-card,
.info-card,
.doc-link {
    background: var(--surface);
    border: 1px solid var(--border);
}

.deadline-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.deadline-title {
    margin-bottom: 4px;
    font-weight: 700;
}

.deadline-subtitle {
    margin-bottom: 0;
    font-size: 0.92rem;
}

.deadline-state {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 700;
}

.deadline-state-ok {
    background: #e8f5ec;
    color: var(--success);
}

.deadline-state-warning {
    background: #fff4df;
    color: var(--warning);
}

.deadline-state-critical {
    background: #fde8df;
    color: var(--danger);
}

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

.feature-chip {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.section {
    padding: 48px 0;
}

.section-muted {
    border-top: 1px solid var(--border);
}

.section-heading {
    max-width: 640px;
    margin-bottom: 24px;
}

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

.info-card {
    padding: 20px;
    border-radius: 8px;
}

.info-card h3 {
    margin-bottom: 8px;
}

.link-list {
    display: grid;
    gap: 12px;
}

.doc-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.legal-page {
    max-width: 760px;
    padding: 36px 0 56px;
}

.legal-meta {
    margin-bottom: 28px;
}

.legal-section {
    margin-bottom: 28px;
}

.legal-section h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

ul {
    padding-left: 20px;
}

.support-email a {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 0 36px;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

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

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

    .device {
        justify-self: start;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-header,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav,
    .footer-links {
        flex-wrap: wrap;
    }
}
