:root {
    color-scheme: light;
    --ink: #102a24;
    --muted: #62706b;
    --paper: #fffefa;
    --canvas: #eef2ec;
    --line: #dfe5df;
    --green: #18a96b;
    --green-dark: #0f7d50;
    --green-soft: #e6f7ee;
    --danger: #b42318;
    --shadow: 0 28px 70px rgba(21, 50, 40, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--canvas);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 12%, rgba(24, 169, 107, 0.14), transparent 28rem),
        radial-gradient(circle at 92% 88%, rgba(16, 42, 36, 0.08), transparent 24rem),
        var(--canvas);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

.page-shell {
    width: min(100%, 620px);
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(18px, 4vw, 42px) 18px 22px;
    display: grid;
    align-content: center;
    gap: 18px;
}

.app-card {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 6vw, 50px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 32px;
    background: rgba(255, 254, 250, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.app-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -105px;
    right: -85px;
    border: 28px solid rgba(24, 169, 107, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: clamp(38px, 8vw, 68px);
}

.brand-mark {
    position: relative;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px 15px 15px 5px;
    color: white;
    background: var(--ink);
    box-shadow: 0 9px 22px rgba(16, 42, 36, 0.2);
}

.brand-mark span {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.eyebrow,
.brand-caption,
.hero-copy p,
.format-hint,
.validation-message,
.privacy-note p,
.footer-note {
    margin: 0;
}

.eyebrow {
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.14em;
}

.brand-caption {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.status-pill {
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #cde9da;
    border-radius: 999px;
    color: var(--green-dark);
    background: var(--green-soft);
    font-size: 12px;
    font-weight: 750;
}

.status-pill span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(24, 169, 107, 0.12);
}

h1 {
    max-width: 480px;
    margin: 0;
    font-size: clamp(36px, 8.4vw, 59px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-copy > p {
    max-width: 470px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.phone-form {
    margin-top: 38px;
}

.phone-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 800;
}

.input-wrap {
    position: relative;
}

.phone-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    color: var(--green-dark);
    font-size: 18px;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    height: 62px;
    padding: 0 18px 0 52px;
    border: 1.5px solid var(--line);
    border-radius: 17px;
    outline: none;
    color: var(--ink);
    background: #ffffff;
    font-size: 17px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-wrap input::placeholder {
    color: #98a39e;
}

.input-wrap input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(24, 169, 107, 0.13);
}

.input-wrap input[aria-invalid="true"] {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.09);
}

.format-hint,
.validation-message {
    min-height: 19px;
    margin-top: 9px;
    font-size: 12px;
    line-height: 1.55;
}

.format-hint {
    color: var(--muted);
}

.validation-message {
    display: none;
    color: var(--danger);
    font-weight: 650;
}

.validation-message.is-visible {
    display: block;
}

.normalized-preview {
    margin-top: 13px;
    padding: 13px 15px;
    border-radius: 13px;
    background: var(--green-soft);
}

.normalized-preview span,
.normalized-preview strong {
    display: block;
}

.normalized-preview span {
    margin-bottom: 3px;
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.normalized-preview strong {
    overflow-wrap: anywhere;
    font-size: 14px;
}

.primary-button {
    width: 100%;
    min-height: 62px;
    margin-top: 18px;
    padding: 0 18px 0 23px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 17px;
    color: white;
    background: var(--green);
    box-shadow: 0 14px 28px rgba(24, 169, 107, 0.25);
    font-weight: 820;
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.primary-button:hover {
    background: #13955e;
    box-shadow: 0 17px 32px rgba(24, 169, 107, 0.29);
    transform: translateY(-1px);
}

.primary-button:active {
    transform: translateY(1px);
}

.primary-button:focus-visible,
.install-button:focus-visible {
    outline: 3px solid rgba(16, 42, 36, 0.3);
    outline-offset: 3px;
}

.arrow {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.17);
    font-size: 18px;
}

.privacy-note {
    margin-top: 27px;
    padding-top: 22px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.privacy-note p {
    font-size: 12px;
    line-height: 1.55;
}

.privacy-note strong {
    color: var(--ink);
}

.lock {
    color: var(--green);
    font-size: 8px;
    line-height: 19px;
}

.install-button {
    width: 100%;
    margin-top: 16px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: transparent;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.footer-note {
    text-align: center;
    color: #718079;
    font-size: 11px;
    letter-spacing: 0.02em;
}

.footer-note span {
    padding: 0 5px;
    color: var(--green);
}

[hidden] {
    display: none !important;
}

@media (max-width: 480px) {
    .page-shell {
        padding: 0;
        display: block;
    }

    .app-card {
        min-height: 100vh;
        padding: max(24px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .app-header {
        margin-bottom: 46px;
    }

    .footer-note {
        display: none;
    }
}

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

