:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #183a59; background: #122a4d; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-height: 100vh; margin: 0; background: linear-gradient(125deg, #122a4d, #0d4c70); }
.page { display: flex; flex-direction: column; width: min(1160px, calc(100% - 48px)); min-height: 100vh; margin: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 29px 0; }
.brand { display: inline-flex; align-items: center; gap: .45rem; color: #fff; font-size: 1.2rem; font-weight: 800; letter-spacing: -.035em; text-decoration: none; }
.brand strong { color: #fff; }
.brand-mark { display: block; width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.header-note { color: #c0d9e8; font-size: .82rem; font-weight: 650; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(26px, 5vw, 60px); align-items: center; flex: 1; width: 100%; padding: 36px 0 54px; }
.intro { min-width: 0; color: #fff; }
.eyebrow, .step-label, .link-label { font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { margin-bottom: 0; color: #8cdbed; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 540px; margin: 12px 0 19px; color: #fff; font-size: clamp(2.6rem, 4.4vw, 4.1rem); line-height: 1.06; letter-spacing: -.055em; }
.intro-copy { max-width: 470px; margin-bottom: 0; color: #c0d9e8; font-size: 1.04rem; line-height: 1.6; }
.trust-row { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 25px; color: #d7f2f7; font-size: .84rem; font-weight: 750; }
.button-install { margin-top: 24px; border: 1px solid #8cdbed; background: #e9f6fb; color: #123e5b; }
.button-install:hover { background: #d8f0f9; }
.install-help { max-width: 470px; margin: 12px 0 0; color: #d7f2f7; font-size: .84rem; line-height: 1.5; }
.card { min-width: 0; padding: clamp(24px, 3vw, 36px); border: 1px solid #dbeaf2; border-radius: 17px; background: #fff; box-shadow: 0 18px 42px #061c3450; }
.card-top { margin-bottom: 8px; }
.step-label { color: #2389a6; }
h2 { margin-bottom: 8px; color: #183a59; font-size: clamp(1.55rem, 2.4vw, 2rem); line-height: 1.17; letter-spacing: -.04em; }
.card-copy { margin-bottom: 20px; color: #6b879a; font-size: .94rem; line-height: 1.5; }
.file-picker { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 146px; padding: 18px; border: 2px dashed #a7cbdc; border-radius: 12px; background: #e9f6fb; color: #183a59; text-align: center; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.file-picker:hover, .file-picker:focus-within { border-color: #329cb8; background: #def1f8; transform: translateY(-2px); }
.file-picker:focus-within { outline: 3px solid #ffbc51; outline-offset: 3px; }
.picker-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 6px; border-radius: 9px; background: #fff; color: #2389a6; font-size: 1.3rem; font-weight: 800; }
.file-picker strong { font-size: .95rem; }
.file-picker small { margin-top: 4px; color: #7892a5; font-size: .77rem; }
#files { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; }
.selection { min-height: 1.4em; margin: 13px 0 17px; color: #7892a5; font-size: .82rem; overflow-wrap: anywhere; }
.selection-pending { color: #176e9e; }
.selection-pending::before { content: ''; display: inline-block; width: .8em; height: .8em; margin-right: .5em; border: 2px solid #a7cbdc; border-top-color: #176e9e; border-radius: 50%; vertical-align: -.1em; animation: selection-spin .8s linear infinite; }
@keyframes selection-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .selection-pending::before { animation: none; } }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 16px; border: 0; border-radius: 9px; font: inherit; font-size: .9rem; font-weight: 850; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .text-button:focus-visible, a:focus-visible { outline: 3px solid #ffbc51; outline-offset: 3px; }
.button-primary { background: #176e9e; color: #fff; }
.button-primary:hover { background: #11587f; }
.button-primary:disabled { opacity: .65; cursor: wait; transform: none; }
.button-light { border: 1px solid #c6dfee; background: #edf8fd; color: #226b99; }
.button-light:hover { background: #dff1fa; }
#submit { width: 100%; }
.fine-print { margin: 13px 0 0; color: #8298a8; font-size: .74rem; line-height: 1.45; }
progress { width: 100%; height: 17px; margin: 5px 0; border: 0; border-radius: 100px; overflow: hidden; accent-color: #2e94bb; }
progress::-webkit-progress-bar { background: #e6f2f8; }
progress::-webkit-progress-value { border-radius: 100px; background: linear-gradient(90deg, #2689b8, #56bba9); }
progress::-moz-progress-bar { background: #2d98b8; }
.ready-badge { display: grid; place-items: center; width: 53px; height: 53px; margin: -3px 0 16px; border-radius: 16px; background: #dff6eb; color: #28976e; font-size: 1.7rem; font-weight: 800; }
#result .step-label { display: block; margin-bottom: 7px; color: #329977; }
.link-box { padding: 15px; border: 1px solid #d5ebf4; border-radius: 13px; background: #f2faff; }
.link-label { display: block; margin-bottom: 8px; color: #6b96ac; font-size: .67rem; }
#download-link { display: block; color: #12669b; font-size: .89rem; font-weight: 700; overflow-wrap: anywhere; }
.share-area { margin: 22px 0 18px; }
#share-widget { min-height: 46px; }
.widget-fallback { color: #718b9c; font-size: .8rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .button { flex: 1 1 145px; }
.text-button { display: block; margin: 20px auto 0; padding: 4px; border: 0; background: none; color: #267cad; font: inherit; font-size: .9rem; font-weight: 800; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.error { margin: 18px 0 0; padding: 13px; border-radius: 10px; background: #fff0ef; color: #ac3232; font-size: .89rem; font-weight: 700; }
.site-footer { padding: 0 0 24px; color: #a3c7d8; font-size: .75rem; text-align: center; }
.download-page { width: min(100% - 32px, 620px); margin: 0 auto; padding: 28px 0 70px; }
.download-card { margin-top: 65px; }
.download-card h1 { margin: 6px 0 16px; color: #183a59; font-size: clamp(2.2rem, 6vw, 3.5rem); }
.download-card .step-label { display: block; }
.download-card .button { min-width: 180px; }
.download-card p:last-child { margin: 26px 0 0; }
.download-card p:last-child a { color: #267cad; font-weight: 700; }
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; gap: 25px; padding-top: 10px; }
  .card { grid-row: 1; width: min(100%, 620px); margin: auto; }
  .intro { grid-row: 2; width: min(100%, 620px); margin: auto; }
  h1 { font-size: clamp(2.1rem, 6vw, 3rem); }
}
@media (max-width: 550px) {
  .page { width: min(100% - 28px, 470px); }
  .site-header { padding: 18px 0 16px; }
  .header-note { display: none; }
  .layout { gap: 19px; padding: 0 0 36px; }
  .card { padding: 20px; }
  .file-picker { min-height: 128px; }
  .intro-copy { font-size: .9rem; }
  .trust-row { gap: 8px 14px; margin-top: 18px; font-size: .76rem; }
  .site-footer { padding-bottom: 20px; }
  .download-card { margin-top: 42px; }
}
