:root {
    color-scheme: light;
    --ink: #15201c;
    --muted: #60716b;
    --line: #d9e4df;
    --surface: #f7faf8;
    --panel: #ffffff;
    --mint: #d7f2df;
    --leaf: #1f7a4d;
    --coral: #d95d4f;
    --sky: #d8ecff;
}

* {
    box-sizing: border-box;
}

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

a {
    color: inherit;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 5vw, 72px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    font-weight: 800;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

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

.hero {
    min-height: calc(100vh - 70px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
    align-items: center;
    gap: clamp(28px, 7vw, 96px);
    padding: clamp(32px, 7vw, 96px);
    background: linear-gradient(135deg, #f7faf8 0%, #d7f2df 52%, #d8ecff 100%);
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.8rem, 8vw, 6.8rem);
    line-height: 0.94;
    letter-spacing: 0;
}

.eyebrow {
    color: var(--leaf);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.lede {
    max-width: 640px;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.55;
}

.actions,
.links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.primary {
    background: var(--leaf);
    color: white;
    border-color: var(--leaf);
}

.ghost {
    background: white;
    color: var(--ink);
}

.phone-panel {
    justify-self: center;
    width: min(100%, 340px);
    min-height: 520px;
    border: 12px solid #1c2521;
    border-radius: 32px;
    background: white;
    padding: 28px;
    box-shadow: 0 28px 80px rgba(21, 32, 28, 0.22);
}

.phone-status {
    color: var(--muted);
    font-weight: 800;
}

.progress-ring {
    display: grid;
    place-items: center;
    width: 190px;
    height: 190px;
    margin: 56px auto 28px;
    border: 18px solid var(--mint);
    border-top-color: var(--leaf);
    border-radius: 50%;
    font-size: 4rem;
    font-weight: 900;
}

.benefits,
.metric-grid,
.checks,
.status-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    padding: 28px clamp(18px, 5vw, 72px);
}

.benefits article,
.metric-grid article,
.checks article,
.status-strip article,
.admin-login form {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.benefits h2 {
    margin: 10px 0 0;
    font-size: 1.15rem;
}

.benefits span {
    display: block;
    width: 28px;
    height: 6px;
    background: var(--coral);
    border-radius: 4px;
}

.download,
.error-page {
    padding: 36px clamp(18px, 5vw, 72px) 72px;
}

.dashboard,
.admin-login {
    padding: 32px clamp(18px, 5vw, 72px);
}

.dashboard-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.dashboard h1,
.admin-login h1 {
    margin: 0;
    font-size: 2.2rem;
}

.metric-grid strong,
.status-strip strong {
    display: block;
    margin-top: 8px;
    font-size: 1.8rem;
}

.metric-grid span,
.status-strip span,
.checks span {
    color: var(--muted);
}

.ready {
    color: var(--leaf);
}

.not_ready,
.alert,
.validation {
    color: var(--coral);
}

.alert {
    background: #fff1ef;
    border: 1px solid #f2b3aa;
    border-radius: 8px;
    margin-top: 20px;
    padding: 14px;
}

.admin-login {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 70px);
}

.admin-login form {
    width: min(100%, 420px);
}

label {
    display: block;
    margin: 18px 0 6px;
    color: var(--muted);
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    font: inherit;
}

form .button {
    margin-top: 18px;
}

@media (max-width: 760px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .phone-panel {
        min-height: 420px;
    }

    .dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}
