:root {
    --ink: #12212d;
    --muted: #61717c;
    --line: #dbe4e8;
    --paper: #ffffff;
    --soft: #f3f7f8;
    --accent: #087f8c;
    --accent-dark: #05616b;
    --gold: #dca53a;
    --danger: #a63232;
    --shadow: 0 20px 55px rgba(18, 33, 45, .11);
}

* { box-sizing: border-box; }

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

a { color: inherit; }

.shell {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.96);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -.02em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    color: white;
    background: linear-gradient(135deg, var(--accent), #12a4a7);
    font-size: 13px;
    letter-spacing: .04em;
}

.header-tag {
    color: var(--muted);
    font-size: 14px;
}

.hero {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 64px;
    align-items: center;
    padding-block: 72px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.03;
    letter-spacing: -.055em;
}

.lead {
    max-width: 700px;
    margin: 25px 0;
    color: var(--muted);
    font-size: 18px;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.facts span {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--soft);
    font-size: 13px;
    font-weight: 650;
}

.upload-card,
.status-card {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow);
}

.upload-card h2,
.workflow h2 {
    margin-top: 0;
    letter-spacing: -.025em;
}

label {
    display: block;
    margin-top: 17px;
    font-size: 14px;
    font-weight: 720;
}

input[type="email"],
input[type="number"],
input[type="file"] {
    width: 100%;
    margin-top: 7px;
    padding: 13px 14px;
    border: 1px solid #c9d5da;
    border-radius: 11px;
    background: white;
    color: var(--ink);
    font: inherit;
}

input:focus {
    outline: 3px solid rgba(8,127,140,.14);
    border-color: var(--accent);
}

small,
.form-note {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-weight: 550;
}

.consent input { margin-top: 4px; }

button,
.download-button,
.secondary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: 11px;
    text-decoration: none;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

button,
.download-button {
    width: 100%;
    margin-top: 20px;
    color: white;
    background: var(--accent);
}

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

.secondary-button {
    margin-top: 20px;
    border: 1px solid var(--line);
    background: var(--soft);
}

.mail-warning {
    margin-top: 20px;
    padding: 14px 16px;
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    background: #fff8e7;
    color: #6e5727;
    font-size: 13px;
}

.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 14px;
}

.alert-error {
    color: #762626;
    background: #fff0f0;
    border: 1px solid #efc4c4;
}

.workflow {
    padding-block: 70px;
    background: var(--soft);
    border-block: 1px solid var(--line);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.steps article {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
}

.steps b {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: white;
    background: var(--accent);
}

.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

footer {
    padding: 28px 0;
    color: var(--muted);
    font-size: 13px;
}

.status-main {
    padding-block: 70px;
}

.status-card {
    max-width: 850px;
    margin-inline: auto;
}

.status-card h1 {
    font-size: clamp(30px, 5vw, 48px);
}

.status-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.status-heading p { color: var(--muted); }

.status-pill {
    flex: 0 0 auto;
    padding: 8px 13px;
    border-radius: 999px;
    background: #e7f4f5;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 850;
}

.status-pill[data-status="FAILED"],
.status-pill[data-status="EXPIRED"] {
    color: var(--danger);
    background: #fff0f0;
}

.progress-track {
    height: 10px;
    margin-top: 28px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef0;
}

.progress-fill {
    width: 10%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #25b6aa);
    transition: width .45s ease;
}

.status-message {
    min-height: 28px;
    margin-top: 16px;
    font-weight: 720;
}

.job-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin: 28px 0;
}

.job-details div {
    padding: 14px;
    border-radius: 11px;
    background: var(--soft);
}

.job-details dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.job-details dd {
    margin: 5px 0 0;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.result-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px;
    border: 1px solid #acd6d6;
    border-radius: 13px;
    background: #effafa;
}

.result-box div {
    display: grid;
}

.result-box span {
    color: var(--muted);
    font-size: 13px;
}

.result-box .download-button {
    width: auto;
    margin: 0;
}

@media (max-width: 850px) {
    .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 45px; }
    .steps { grid-template-columns: 1fr 1fr; }
    .header-tag { display: none; }
}

@media (max-width: 560px) {
    .shell { width: min(100% - 24px, 1160px); }
    .upload-card, .status-card { padding: 22px; border-radius: 17px; }
    .two-columns, .steps, .job-details { grid-template-columns: 1fr; }
    .status-heading, .result-box { align-items: stretch; flex-direction: column; }
    .result-box .download-button { width: 100%; }
}
