/* WohSend speed test (wohsend.com/speed-test): the same room as WohSend itself — the site's film behind, the big
   white title, one glass window — with a real speedometer, a live line of every second and what the speed means
   for sending and receiving files. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("./fonts/inter-latin.woff2?v=1") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("./fonts/inter-latin-ext.woff2?v=1") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --win: rgba(24, 24, 27, 0.6);
  --edge: rgba(255, 255, 255, 0.1);
  --inset: rgba(255, 255, 255, 0.055);
  --inset-2: rgba(255, 255, 255, 0.09);
  --sep: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-2: rgba(235, 235, 245, 0.64);
  --text-3: rgba(235, 235, 245, 0.42);
  --accent: #0a84ff;
  --accent-2: #64d2ff;
  --green: #30d158;
  --track: rgba(255, 255, 255, 0.09);
  --tick: rgba(255, 255, 255, 0.28);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --win-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.5), 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --win: rgba(255, 255, 255, 0.74);
  --edge: rgba(0, 0, 0, 0.08);
  --inset: rgba(0, 0, 0, 0.04);
  --inset-2: rgba(0, 0, 0, 0.07);
  --sep: rgba(0, 0, 0, 0.08);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #8e8e93;
  --track: rgba(0, 0, 0, 0.08);
  --tick: rgba(0, 0, 0, 0.25);
  --win-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.6), 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 30px 80px -24px rgba(0, 0, 0, 0.35);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: #0b0c0e; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: transparent;
  color: var(--text); font: 400 17px/1.47 Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* the site's own film (or photo), under the same shade as on wohsend.com */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none !important; user-select: none; background: #0b0c0e center / cover no-repeat; }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none !important; }
.bg-video::-webkit-media-controls, .bg-video::-webkit-media-controls-enclosure, .bg-video::-webkit-media-controls-panel,
.bg-video::-webkit-media-controls-start-playback-button, .bg-video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none !important; opacity: 0 !important; }
.shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.22) 30%, rgba(0, 0, 0, 0.32) 65%, rgba(0, 0, 0, 0.7) 100%); }
/* no film (a festive season, or it has not come yet): the night of the site */
body:not(:has(.backdrop)) { background: radial-gradient(1200px 640px at 50% -10%, rgba(10, 132, 255, 0.16), transparent 70%), #0b0b0d; }

/* the bar, exactly where it sits on wohsend.com */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 48px; padding: 0 16px 0 18px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16.5px; letter-spacing: -0.02em; color: #fff; }
.brand .mark { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.me { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18); flex: none; }
.me[hidden] { display: none; }
.me img { width: 100%; height: 100%; object-fit: cover; }

.wrap { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: clamp(28px, 6vh, 64px) 24px 28px; display: flex; flex-direction: column; align-items: center; }
.hero { text-align: center; }
.hero h1 { margin: 0; font-size: 80px; font-weight: 600; line-height: 1.05; letter-spacing: -0.015em; padding-bottom: 0.04em; background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, 0.74) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise 0.5s var(--ease) backwards; }
.hero p { margin: 6px auto 0; max-width: 680px; font-size: 28px; line-height: 1.14; letter-spacing: 0.007em; color: #fff; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.25); animation: rise 0.5s var(--ease) 0.03s backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- the window ---------- */
.win {
  position: relative; width: 100%; margin-top: clamp(28px, 5vh, 44px); padding: 28px;
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 28px; align-items: center;
  border-radius: 20px; background: var(--win); box-shadow: var(--win-shadow);
  backdrop-filter: saturate(160%) blur(40px); -webkit-backdrop-filter: saturate(160%) blur(40px);
  animation: winIn 0.55s var(--ease) 0.05s backwards;
}
@keyframes winIn { from { opacity: 0; transform: translateY(28px) scale(0.985); } }
.gauge-col { display: grid; justify-items: center; gap: 18px; }

/* ---------- the speedometer ---------- */
.gauge { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; margin-top: 6px; }
/* the labels sit just outside the ring: the drawing is 320 wide, the labels reach 4 units past it */
.g-svg { padding: 4%; }
.g-svg { width: 100%; height: 100%; overflow: visible; }
.g-track { stroke: var(--track); stroke-width: 16; stroke-linecap: round; }
.win[data-state="idle"] .g-arc, .win[data-state="idle"] .g-glow { opacity: 0; }
.g-arc, .g-glow { stroke: url(#g-down); stroke-width: 16; stroke-linecap: round; stroke-dasharray: 0 1000; transition: stroke-dasharray 0.08s linear; }
.g-glow { stroke-width: 22; opacity: 0.55; filter: blur(9px); }
.win[data-phase="up"] .g-arc, .win[data-phase="up"] .g-glow { stroke: url(#g-up); }
.win[data-phase="ping"] .g-arc, .win[data-phase="ping"] .g-glow { stroke: url(#g-ping); }
.g-ticks line { stroke: var(--tick); stroke-width: 1.5; }
.g-ticks line.major { stroke-width: 2.2; stroke: color-mix(in srgb, var(--tick) 100%, transparent); }
.g-ticks line.lit { stroke: rgba(255, 255, 255, 0.85); transition: stroke 0.2s; }
.g-labels text { stroke: none; fill: var(--text-3); font: 500 13px Inter, system-ui, sans-serif; letter-spacing: 0; text-anchor: middle; dominant-baseline: middle; font-variant-numeric: tabular-nums; transition: fill 0.2s, opacity 0.3s; }
.g-labels text.lit { fill: var(--text); }
.g-labels.swap text { opacity: 0; }
.g-needle { transform-origin: 160px 160px; transform: rotate(-135deg); opacity: 0; transition: opacity 0.4s var(--ease); }
.g-needle-l { stroke: #fff; stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55)); }
:root[data-theme="light"] .g-needle-l { stroke: #1d1d1f; filter: none; }
.g-hub { fill: url(#g-hub); stroke: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45)); }
.g-hub-dot { fill: var(--accent); stroke: none; }
.win[data-phase="up"] .g-hub-dot { fill: var(--green); }
.g-mid { position: absolute; left: 0; right: 0; top: 63%; display: grid; justify-items: center; gap: 0; opacity: 0; transition: opacity 0.35s var(--ease); pointer-events: none; }
.g-num { display: block; white-space: nowrap; font-size: 52px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.g-unit { margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.g-phase { margin-top: 10px; font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); min-height: 1.2em; }
.win:not([data-state="idle"]) .g-needle, .win:not([data-state="idle"]) .g-mid { opacity: 1; }

/* ---------- the start button: in the middle of the dial, breathing ---------- */
.go { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--accent) 70%, #fff) 0%, var(--accent) 58%, color-mix(in srgb, var(--accent) 70%, #000) 100%);
  color: #fff; box-shadow: 0 18px 48px -10px color-mix(in srgb, var(--accent) 75%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.45s var(--spring), opacity 0.35s var(--ease), filter 0.2s; }
.go b { position: relative; font-size: 30px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.go:hover { filter: brightness(1.08); transform: translate(-50%, -50%) scale(1.04); }
.go:active { transform: translate(-50%, -50%) scale(0.96); }
.go:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 18px 48px -10px color-mix(in srgb, var(--accent) 75%, transparent); }
.go-ring { position: absolute; inset: -14%; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--accent) 70%, transparent); animation: breathe 2.6s var(--ease) infinite; pointer-events: none; }
.go-ring.r2 { animation-delay: 1.3s; }
@keyframes breathe { 0% { transform: scale(0.86); opacity: 0.9; } 100% { transform: scale(1.32); opacity: 0; } }
.win:not([data-state="idle"]) .go { opacity: 0; transform: translate(-50%, -50%) scale(0.4); pointer-events: none; }

/* ---------- the three steps ---------- */
.steps { display: flex; gap: 6px; margin: 0; padding: 4px; list-style: none; border-radius: 980px; background: var(--inset); box-shadow: inset 0 0 0 0.5px var(--edge); }
.steps li { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px 0 10px; border-radius: 980px; font-size: 13px; font-weight: 500; color: var(--text-3); letter-spacing: -0.01em; transition: background 0.3s var(--ease), color 0.3s var(--ease); white-space: nowrap; }
.steps i { position: relative; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; flex: none; transition: background 0.3s, box-shadow 0.3s; }
.steps li.on { background: var(--inset-2); color: var(--text); }
.steps li.on i { box-shadow: inset 0 0 0 1.5px var(--accent); }
.steps li.on i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); animation: dot 1s ease-in-out infinite alternate; }
@keyframes dot { from { transform: scale(0.6); opacity: 0.6; } to { transform: scale(1); opacity: 1; } }
.steps li.done { color: var(--text-2); }
.steps li.done i { background: var(--green); box-shadow: none; }
.steps li.done i::after { content: ""; position: absolute; left: 4.5px; top: 2.5px; width: 3.5px; height: 6.5px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }

/* ---------- the right side: one lane per direction, with its own live line ---------- */
.side { display: grid; gap: 12px; min-width: 0; }
.lane { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 12px; min-height: 120px; padding: 16px 18px 0; border-radius: 16px; background: var(--inset); box-shadow: inset 0 0 0 0.5px var(--edge); overflow: hidden; transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease); }
.lane-h { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); align-self: start; }
.lane-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-2); }
.lane.up .lane-ic { background: color-mix(in srgb, var(--green) 22%, transparent); color: var(--green); }
.lane-ic svg { width: 14px; height: 14px; stroke-width: 2.4; }
.lane-v { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 6px; position: relative; z-index: 1; }
.lane { container-type: inline-size; }
.lane-v { min-width: 0; }
.lane-v b { white-space: nowrap; font-size: min(40px, 17cqi); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.lane-v small { font-size: 13px; font-weight: 500; color: var(--text-2); }
.spark { grid-column: 1 / -1; display: block; width: calc(100% + 36px); height: 46px; margin: 2px -18px 0; }
.lane.live { background: var(--inset-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 32px -8px color-mix(in srgb, var(--accent) 45%, transparent); }
.lane.up.live { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 55%, transparent), 0 0 32px -8px color-mix(in srgb, var(--green) 45%, transparent); }
.lane.pop .lane-v b { animation: pop 0.5s var(--spring); }
@keyframes pop { 40% { transform: scale(1.06); } }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 18px; border-radius: 16px; background: var(--inset); box-shadow: inset 0 0 0 0.5px var(--edge); }
.mini > span { font-size: 14px; font-weight: 600; color: var(--text-2); }
.mini b { display: inline-flex; align-items: baseline; gap: 4px; }
.mini em { font-style: normal; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mini small { font-size: 12px; color: var(--text-2); font-weight: 500; }
.where { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.where[hidden], .where [hidden] { display: none; }
.where div { min-width: 0; padding: 0 4px; }
.where dt { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.where dd { margin: 2px 0 0; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- what it means: how long a file takes, and what to do next ---------- */
.means { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px 24px; padding-top: 22px; border-top: 0.5px solid var(--sep); animation: meansIn 0.5s var(--ease) backwards; }
.means[hidden] { display: none; }
@keyframes meansIn { from { opacity: 0; transform: translateY(10px); } }
.means-h { display: grid; gap: 10px; }
.means-h > b { font-size: 15px; font-weight: 600; }
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 980px; background: var(--inset); box-shadow: inset 0 0 0 0.5px var(--edge); justify-self: start; }
.seg button { height: 28px; padding: 0 12px; border-radius: 980px; font-size: 13px; font-weight: 500; color: var(--text-2); transition: background 0.2s, color 0.2s; font-variant-numeric: tabular-nums; }
.seg button[aria-checked="true"] { background: var(--inset-2); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.means-r { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eta { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--inset); box-shadow: inset 0 0 0 0.5px var(--edge); min-width: 0; }
.eta > span:last-child { display: grid; min-width: 0; }
.eta small { font-size: 12px; color: var(--text-2); font-weight: 500; }
.eta b { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eta-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-2); }
.eta-ic.up { background: color-mix(in srgb, var(--green) 22%, transparent); color: var(--green); }
.eta-ic svg { width: 16px; height: 16px; stroke-width: 2.4; }
.acts { display: flex; gap: 10px; }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 20px; border-radius: 980px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 500; letter-spacing: -0.016em; white-space: nowrap; box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(0, 0, 0, 0.12); transition: filter 0.2s, transform 0.12s ease-out; }
.pill.gray { background: var(--inset-2); color: var(--text); box-shadow: inset 0 0 0 0.5px var(--edge); }
.pill:hover { filter: brightness(1.08); }
.pill:active { transform: scale(0.97); }
.pill:focus-visible, .seg button:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 60%, transparent); }

.private { display: block; max-width: 560px; margin: 18px auto 0; text-wrap: balance; font-size: 13px; color: rgba(255, 255, 255, 0.62); text-align: center; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35); }
.private svg { display: inline-block; width: 14px; height: 14px; margin: 0 6px -2px 0; vertical-align: baseline; }
.foot { text-align: center; padding: 20px 24px 28px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.foot a:hover { color: #fff; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .win { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .gauge { max-width: 340px; }
  .means { grid-template-columns: 1fr; }
  .acts .pill { flex: 1; }
}
@media (max-width: 734px) {
  .hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -0.003em; }
  .hero p { font-size: 21px; line-height: 1.19; letter-spacing: 0.011em; }
}
@media (max-width: 480px) {
  .wrap { padding: 24px 16px 20px; }
  .win { padding: 18px 16px; border-radius: 20px; }
  .gauge { max-width: 300px; }
  .g-num { font-size: 42px; }
  .lane { min-height: 104px; padding: 14px 16px 0; }
  .lane-v b { font-size: min(32px, 19cqi); }
  .spark { width: calc(100% + 32px); margin: 2px -16px 0; }
  .side { grid-template-columns: 1fr 1fr; gap: 10px; }
  .side > .minis, .side > .where { grid-column: 1 / -1; }
  .minis { gap: 10px; }
  .mini { padding: 12px 14px; }
  .mini em { font-size: 21px; }
  .means-r { gap: 10px; }
  .eta { padding: 10px 12px; gap: 10px; }
  .eta b { font-size: 17px; }
  .eta-ic { width: 28px; height: 28px; }
  .steps li { padding: 0 11px 0 8px; font-size: 12.5px; }
}
@media (max-width: 360px) {
  .side { grid-template-columns: 1fr; }
  .means-r { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero p, .win, .means { animation: none; }
  .go-ring, .steps li.on i::after { animation: none; }
  .g-arc, .g-glow { transition: none; }
}
