@font-face { font-family: Plex; src: url('/assets/vendor/sans/files/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Plex; src: url('/assets/vendor/sans/files/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
:root { font-family: Plex, 'IBM Plex Sans', sans-serif; color: #0f1b46; background: #f8faff; --blue: #2563eb; --muted: #526589; --border: #d3e0f7; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle, #bcd3fb 1px, transparent 1.5px), #f8faff; background-size: 28px 28px; }
main { max-width: 1360px; margin: auto; padding: 38px 40px 28px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 38px; }
.brand { display: flex; align-items: center; gap: 18px; font-size: 32px; font-weight: 600; letter-spacing: -.035em; }
.brand-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 15px; background: var(--blue); color: white; font-size: 50px; box-shadow: 0 10px 24px #2563eb20; }
.accent { color: var(--blue); }
.server-pill { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 11px 20px; border: 1px solid var(--border); border-radius: 40px; background: white; color: var(--muted); }
.server-pill strong { color: #0f1b46; overflow-wrap: anywhere; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #16a34a; }
h1 { font-size: clamp(32px, 3.7vw, 52px); line-height: 1.2; letter-spacing: -.035em; margin: 0 0 16px; font-weight: 600; }
p { margin: 0; line-height: 1.65; }
.intro { color: var(--muted); max-width: 760px; font-size: 20px; margin-bottom: 42px; }
.results { display: grid; grid-template-columns: 1.37fr 1fr; gap: 28px; }
.card { background: white; border: 1px solid var(--border); border-radius: 20px; padding: 34px; box-shadow: 0 10px 32px #2563eb05; min-width: 0; }
.download-card { grid-row: span 2; }
h2 { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 0; font-size: 18px; font-weight: 600; }
.icon { display: grid; place-items: center; border: 1px solid var(--border); border-radius: 12px; color: var(--blue); width: 44px; height: 44px; flex-shrink: 0; font-size: 23px; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 5px 13px; border-radius: 30px; background: #e7f6ed; color: #147b40; font-size: 15px; font-weight: 600; white-space: nowrap; }
.gauge { position: relative; max-width: 400px; margin: 48px auto 32px; }
.gauge svg { width: 100%; display: block; overflow: visible; }
.gauge path { fill: none; stroke-width: 20; stroke-linecap: round; }
.gauge-track { stroke: #e3eafa; }
#gauge-fill { stroke: var(--blue); transition: stroke-dasharray .3s ease; }
.gauge-value { position: absolute; top: 41%; left: 0; width: 100%; text-align: center; }
.gauge-value strong { display: block; font-size: clamp(40px, 5vw, 68px); font-weight: 600; line-height: 1.1; letter-spacing: -.035em; }
.gauge-value > span { display: block; color: var(--muted); font-size: 21px; margin-top: 8px; }
.gauge-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 15px; }
.actions { max-width: 430px; margin: auto; display: flex; gap: 10px; }
button { background: var(--blue); color: white; border: 0; border-radius: 10px; padding: 17px 22px; font: inherit; font-size: 20px; font-weight: 600; cursor: pointer; flex: 1; }
button i { margin-left: 12px; }
button:hover { background: #1d4ed8; }
button:disabled { opacity: .65; cursor: wait; }
button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
#cancel { flex: 0; background: #eef4ff; color: var(--blue); }
.metric { display: flex; align-items: baseline; gap: 10px; margin-top: 24px; }
.metric strong { font-size: 44px; line-height: 1.2; font-weight: 600; letter-spacing: -.035em; }
.metric > span { color: var(--muted); font-size: 18px; }
progress { display: block; appearance: none; border: 0; border-radius: 10px; background: #e3eafa; width: 100%; height: 10px; margin-top: 24px; overflow: hidden; }
progress::-webkit-progress-bar { background: #e3eafa; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 10px; }
progress::-moz-progress-bar { background: var(--blue); border-radius: 10px; }
.latency-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.notes { display: flex; gap: 20px; margin-top: 36px; }
.note { flex: 1; display: flex; gap: 18px; padding: 22px 26px; background: white; color: var(--muted); border: 1px solid var(--border); border-radius: 18px; font-size: 17px; }
.note > i { color: var(--blue); font-size: 23px; }
#status { color: var(--muted); font-size: 14px; margin-top: 20px; }
[hidden] { display: none !important; }
.speedtest-footer { padding: 12px 24px 32px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; }
.speedtest-footer .site-version { display: block; margin-top: 12px; }
@media (max-width: 800px) { main { padding: 24px; } header { flex-wrap: wrap; margin-bottom: 30px; } .brand { font-size: 26px; gap: 12px; } .brand-mark { width: 48px; height: 48px; font-size: 38px; } .results { grid-template-columns: 1fr; gap: 20px; } .download-card { grid-row: auto; } .notes { flex-direction: column; } .intro { font-size: 18px; margin-bottom: 28px; } .card { padding: 24px; } .gauge-value strong { font-size: clamp(38px, 10vw, 64px); } }
@media (max-width: 400px) { main { padding: 20px 14px; } .card { padding: 20px 16px; } h2 { font-size: 16px; } .server-pill { font-size: 14px; padding: 10px 14px; } .metric strong { font-size: 36px; } }
@media (prefers-reduced-motion: reduce) { #gauge-fill { transition: none; } }
