:root {
    --ink: #18201c;
    --muted: #69746e;
    --line: #d8ded9;
    --paper: #fbfcfa;
    --panel: #ffffff;
    --accent: #2554d8;
    --accent-dark: #183a9e;
    --success: #0a7d4f;
    --error: #aa2d2d;
    --shadow: 0 24px 70px rgba(24, 32, 28, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(120deg, rgba(37, 84, 216, 0.08), transparent 34%),
        radial-gradient(circle at right 20%, rgba(10, 125, 79, 0.10), transparent 28%),
        var(--paper);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.shell {
    width: min(860px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    align-items: center;
    padding: 42px 0;
}

.lookup {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.lookup {
    padding: clamp(28px, 5vw, 64px);
    border-radius: 8px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.brand-mark {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: var(--accent);
    border-radius: 8px;
}

h1 {
    max-width: 780px;
    margin: 28px 0 12px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 0.96;
    letter-spacing: 0;
    text-wrap: balance;
}

.lead {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.55;
    text-wrap: pretty;
}

.form {
    margin-top: 40px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

input {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-size: 18px;
    outline: none;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 84, 216, 0.14);
}

button {
    min-height: 58px;
    padding: 0 24px;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

button:hover {
    background: var(--accent-dark);
}

button:focus-visible {
    outline: 4px solid rgba(37, 84, 216, 0.24);
    outline-offset: 2px;
}

.result {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.result strong {
    display: block;
    margin: 4px 0;
    font-size: 30px;
}

.result span,
.result small {
    display: block;
    color: var(--muted);
    line-height: 1.45;
}

.result-label {
    color: var(--success) !important;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.is-error {
    border-color: rgba(170, 45, 45, 0.32);
}

.is-error strong {
    color: var(--error);
}

meter {
    width: 100%;
    height: 10px;
    margin-top: 14px;
}

@media (max-width: 820px) {
    .shell {
        align-items: start;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    button {
        width: 100%;
    }
}
