:root {
    color-scheme: light;
    --ink: #182142;
    --muted: #69728b;
    --line: #e7e9f3;
    --purple: #6458e8;
    --purple-dark: #5145d0;
    --bg: #f7f7fb;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(ellipse 560px 380px at 2% 9%, #e9e8ff 0, transparent 72%),
        radial-gradient(ellipse 620px 430px at 98% 79%, #e0f8f5 0, transparent 76%),
        var(--bg);
    font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.page-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 38px;
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 23px;
    font-weight: 780;
    letter-spacing: -.05em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, #776df2, #5647ca);
    box-shadow: 0 6px 14px #675ce438;
}

.brand-mark svg { width: 25px; height: 25px; }
.brand-accent { color: var(--purple); }
.language-menu { position: relative; z-index: 3; }

.language-menu summary {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    min-width: 135px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: #414b67;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 4px 18px #252d5410;
}

.language-menu summary::-webkit-details-marker { display: none; }
.language-globe { font-size: 20px; line-height: 1; color: var(--purple); }
.chevron { margin-left: auto; font-size: 17px; line-height: 1; }

.language-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    width: 172px;
    max-height: 340px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 18px 46px #25325e23;
}

.language-options a {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
}

.language-options a:hover, .language-options a.active { color: var(--purple-dark); background: #f1f0ff; }

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 34px 0 72px;
}

.hero-copy { max-width: 710px; text-align: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 17px;
    color: #6862b9;
    font-size: 12px;
    font-weight: 780;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #8c81fa; }

h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 790;
    line-height: 1.09;
    letter-spacing: -.06em;
}

.hero-description {
    max-width: 620px;
    margin: 21px auto 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.upload-card {
    width: min(100%, 720px);
    margin-top: 38px;
    padding: 20px;
    border: 1px solid #e6e7f1;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 26px 70px #2b32651a, 0 4px 12px #2b326508;
}

.dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 30px 20px;
    border: 2px dashed #c9c7f7;
    border-radius: 18px;
    background: linear-gradient(145deg, #fafaff 0%, #f4f3ff 58%, #f5fbfc 100%);
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .2s;
}

.dropzone:hover, .dropzone.drag-over, .dropzone:focus-within {
    border-color: var(--purple);
    background: #f0efff;
    transform: translateY(-2px);
}

.dropzone:focus-within { outline: 3px solid #8077f45c; outline-offset: 3px; }
.file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

.upload-icon {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin-bottom: 18px;
    border-radius: 20px;
    color: var(--purple);
    background: #e9e7ff;
}

.upload-icon svg { width: 42px; height: 42px; }
.drop-title { font-size: 22px; font-weight: 750; letter-spacing: -.025em; }
.drop-subtitle { margin-top: 5px; color: var(--muted); font-size: 14px; }

.drop-limit {
    margin-top: 20px;
    padding: 7px 12px;
    border: 1px solid #e7e6f8;
    border-radius: 999px;
    background: #fff;
    color: #747c94;
    font-size: 12px;
    font-weight: 650;
}

.selection {
    margin: 17px 4px 0;
    padding: 12px 14px;
    border-radius: 11px;
    background: #f4f6fb;
    color: #45506c;
    font-size: 13px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.form-errors {
    margin: 15px 4px 0;
    padding: 9px 13px;
    border-radius: 10px;
    background: #fff0ef;
    color: #a43834;
    font-size: 13px;
}

.form-errors p { margin: 2px 0; }
.upload-button, .download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 55px;
    margin-top: 18px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(110deg, #7065ec, #5c4bd7);
    font-size: 16px;
    font-weight: 720;
    text-decoration: none;
    box-shadow: 0 9px 22px #6458e836;
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

.upload-button:hover, .download-button:hover { transform: translateY(-2px); box-shadow: 0 14px 26px #6458e84a; }
.upload-button { max-width: 260px; margin: 20px auto 0; }
.upload-button:disabled { opacity: .58; cursor: not-allowed; transform: none; box-shadow: none; }
.upload-button.uploading::before { content: ""; width: 16px; height: 16px; border: 2px solid #ffffff85; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.upload-button span { font-size: 21px; line-height: 1; }
.zip-note { margin: 16px 4px 2px; color: #8a92a8; font-size: 12px; text-align: center; }
.zip-note span { color: #9b8df2; font-size: 15px; }

.result-state { padding: 29px 20px 20px; text-align: center; }
.result-icon { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 23px; border-radius: 50%; background: #e8f9ef; color: #249663; font-size: 34px; font-weight: 700; }
.result-state h2 { margin: 0; font-size: 29px; letter-spacing: -.04em; }
.result-state p { margin: 11px 0 0; color: var(--muted); }
.result-state .zip-message { color: #6b62c7; font-size: 13px; }

.link-box {
    display: flex;
    gap: 9px;
    margin-top: 28px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #f8f9fd;
}

.link-box input { flex: 1; min-width: 0; padding: 7px 9px; border: 0; outline: 0; background: transparent; color: #33405f; font-size: 14px; }
.copy-button { padding: 10px 17px; border: 0; border-radius: 9px; background: #e9e7ff; color: #5145ce; font-size: 13px; font-weight: 750; white-space: nowrap; }
.copy-button:hover { background: #dedaff; }
.result-actions { margin-top: 22px; }
.download-button { max-width: 290px; margin: 0 auto; }
.again-link { display: inline-flex; gap: 7px; margin-top: 23px; color: var(--purple-dark); font-size: 14px; font-weight: 700; text-decoration: none; }
.again-link:hover { text-decoration: underline; }

.site-footer { display: flex; justify-content: space-between; gap: 15px; padding: 23px 0 28px; border-top: 1px solid #e9eaf1; color: #959caf; font-size: 12px; }

.download-main { min-height: calc(100vh - 172px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 0; }
.download-card { width: min(100%, 660px); padding: clamp(25px, 5vw, 48px); border: 1px solid #e6e7f1; border-radius: 26px; background: #fff; box-shadow: 0 26px 70px #2b32651a; }
.file-symbol { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 22px; border-radius: 18px; background: #e9e7ff; color: var(--purple); font-size: 31px; }
.download-card h1 { margin: 8px 0 0; font-size: clamp(32px, 5vw, 47px); line-height: 1.1; letter-spacing: -.045em; }
.download-intro { color: var(--muted); line-height: 1.6; }
.file-facts { margin: 28px 0; padding: 0; border-top: 1px solid var(--line); }
.file-facts div { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.file-facts dt { color: var(--muted); font-size: 13px; }
.file-facts dd { min-width: 0; margin: 0; font-size: 14px; font-weight: 680; overflow-wrap: anywhere; }
.file-contents { margin: 24px 0; padding: 18px; border-radius: 12px; background: #f7f8fc; }
.file-contents h2 { margin: 0 0 12px; font-size: 15px; }
.file-contents ul { margin: 0; padding-left: 20px; color: #4f5871; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.report-panel { margin-top: 35px; padding: 18px 20px; border: 1px solid #e9e8f4; border-radius: 16px; background: #fafaff; }
.report-panel summary { width: fit-content; color: #6258c9; font-size: 13px; font-weight: 750; cursor: pointer; }
.report-panel[open] summary { margin-bottom: 16px; }
.report-panel h2, .download-card h2 { margin: 10px 0 8px; font-size: 20px; letter-spacing: -.025em; }
.report-panel p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.report-form { display: grid; gap: 20px; margin-top: 24px; }
.report-field { display: grid; gap: 8px; min-width: 0; }
.report-form label { color: #39415b; font-size: 13px; font-weight: 700; }
.required-mark { color: #9d4bb0; }
.report-form textarea, .report-form input:not([type=checkbox]) { width: 100%; padding: 13px 14px; border: 1px solid #d9dbea; border-radius: 11px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; box-shadow: 0 2px 6px #333a6b08; }
.report-form textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.report-form textarea::placeholder, .report-form input::placeholder { color: #a0a6b8; }
.report-form textarea:focus, .report-form input:focus { outline: 2px solid #8c82ec; outline-offset: 1px; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.report-panel .report-hint { margin: -11px 1px 0; font-size: 12px; }
.report-checks { display: grid; gap: 10px; }
.check-row { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border: 1px solid #e4e3f0; border-radius: 11px; background: #fff; font-weight: 550 !important; line-height: 1.45; cursor: pointer; }
.check-row input { width: 16px; height: 16px; margin: 1px 0 0; flex: none; accent-color: #6255db; }
.report-submit { justify-self: start; min-width: 190px; padding: 14px 22px; border: 0; border-radius: 11px; background: linear-gradient(110deg, #7065ec, #5c4bd7); color: #fff; font: inherit; font-size: 14px; font-weight: 750; box-shadow: 0 9px 22px #6458e836; cursor: pointer; }
.report-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 26px #6458e84a; }
.report-success { padding: 12px 15px; border-radius: 10px; background: #e8f9ef; color: #167044 !important; }
.report-reason { white-space: pre-wrap; overflow-wrap: anywhere; }
.back-link { margin-top: 22px; color: #6258c9; font-size: 14px; font-weight: 700; text-decoration: none; }

@media (max-width: 620px) {
    .page-shell { padding: 0 17px; }
    .site-header { padding: 19px 0; }
    .brand { gap: 8px; font-size: 19px; }
    .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
    .brand-mark svg { width: 22px; height: 22px; }
    .language-menu summary { min-width: 0; max-width: 132px; font-size: 12px; }
    .main-content { justify-content: flex-start; padding: 55px 0 56px; }
    h1 { font-size: clamp(34px, 9vw, 46px); }
    .hero-description { margin-top: 17px; font-size: 15px; }
    .upload-card { margin-top: 30px; padding: 12px; border-radius: 20px; }
    .dropzone { min-height: 270px; padding: 25px 12px; }
    .drop-title { font-size: 19px; }
    .result-state { padding: 25px 7px 15px; }
    .result-state h2 { font-size: 25px; }
    .link-box { flex-direction: column; }
    .link-box input { width: 100%; text-align: center; }
    .site-footer { font-size: 11px; }
    .download-main { padding: 35px 0; }
    .download-card { border-radius: 20px; }
    .file-facts div { grid-template-columns: 78px minmax(0, 1fr); }
    .report-grid { grid-template-columns: 1fr; }
    .report-panel { padding: 17px; }
    .report-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
