:root { font: 16px/1.5 system-ui, sans-serif; color: #171c29; background: #fcfbf8; color-scheme: light; --accent:#284ad1; }
* { box-sizing: border-box; }
body { margin: 0; }
header { max-width: 80rem; margin: auto; padding: 1.45rem clamp(1.25rem,5vw,3rem); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-weight: 840; letter-spacing: .04em; }
.brand small { padding-left: .65rem; border-left: 1px solid #d9dce4; color: #575e6b; font-size: .84rem; font-weight: 520; letter-spacing: 0; }
.mark { width: 1.15rem; height: 1rem; background: var(--accent); clip-path: polygon(50% 0,100% 100%,73% 100%,50% 51%,27% 100%,0 100%); }
main { width: min(100% - 2.5rem, 36rem); margin: clamp(4.5rem,12vh,8rem) auto 3rem; text-align: center; }
h1 { margin: 0 0 1.45rem; color: #525a6b; font-size: clamp(.95rem,3vw,1.12rem); font-weight: 560; }
.readout { display: flex; justify-content: center; align-items: baseline; gap: clamp(.4rem,2vw,1rem); }
#value { font-size: clamp(3.7rem,15vw,8.2rem); font-weight: 690; letter-spacing: -.085em; line-height: 1; font-variant-numeric: tabular-nums; }
.unit { color: #525a6b; font-size: clamp(.88rem,2.7vw,1.3rem); font-weight: 530; }
.meter { height: 3px; width: min(60%, 13rem); margin: 1.8rem auto 1.15rem; border-radius: 4px; background: #dedfe7; overflow: hidden; }
.meter::after { display: block; width: 100%; height: 100%; background: var(--accent); content: ''; transform: scaleX(var(--progress,0)); transform-origin: left; }
#feedback { min-height: 2.5rem; margin: 0; color: #555c6b; font-size: .88rem; }
button { min-height: 44px; padding: .58rem 1.55rem; border-radius: 99px; border: none; color: white; background: var(--accent); font: inherit; font-weight: 645; cursor: pointer; }
button:hover:not(:disabled) { background: #203ab0; }
button:disabled { opacity: .65; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .meter::after { transition: transform .15s linear; }
  .meter.checking::after { width: 34%; transform-origin: center; animation: search 1s ease-in-out infinite alternate; }
  @keyframes search { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
