/* BroadbandBoost 2.0 (16 November 2026).  A free BroadbandSwitch.uk tool by Dr Alex J Martin-Smith.
   One stylesheet for every page.  Fonts are served from this site (SIL Open Font Licence, see fonts/).
   Layout: a full-width night stage where your connection is drawn as a lens of fibre-optic strands
   from the test server to your home; below it the result is explained as your home, your region
   and what to do next.  Light and dark themes; the stage is always night. */
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/unbounded-700.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/unbounded-800.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/onest-400.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/onest-500.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/onest-600.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/onest-700.woff2") format("woff2"); }
:root {
  --sky: #edf2fe;
  --sky-deep: #e2eafd;
  --glass: rgba(255, 255, 255, 0.84);
  --glass-strong: #ffffff;
  --ink: #0b1020;
  --ink-2: #44506e;
  --ink-3: #66719a;
  --line: #d3ddf6;
  --track: #e3eafb;
  --teal: #00b49b;
  --teal-ink: #00756a;
  --violet: #6c52f4;
  --violet-ink: #5034d6;
  --amber: #e5870a;
  --pink: #ff4f9a;
  --pink-hover: #ff6dac;
  --on-pink: #24040f;
  --good: #0a7d4e;
  --ok: #8f5c00;
  --poor: #c22c47;
  --shadow: 0 20px 50px rgba(20, 40, 90, 0.12);
  --shadow-lift: 0 26px 60px rgba(20, 40, 90, 0.18);
  --room: #f4f7ff;
  --room-line: #c3cfee;
  --furniture: #d9e2f7;
  --leaf: #b9e6d6;
  --hex-0: #dff4f0;
  --hex-1: #9fe3d6;
  --hex-2: #3fc7b0;
  --hex-3: #078f7c;
  --hex-4: #05685c;
  --hex-ink-low: #08302a;
  --hex-ink-high: #ffffff;
  --pop: #0b1020;
  --on-pop: #f2f6ff;
  /* The stage is always night: light reads best on dark */
  --night: #050915;
  --night-2: #0a1230;
  --night-ink: #f2f6ff;
  --night-ink-2: rgba(226, 234, 255, 0.76);
  --night-ink-3: rgba(226, 234, 255, 0.56);
  --night-line: rgba(160, 182, 255, 0.2);
  --fibre-teal: #5ef0d6;
  --fibre-violet: #b2a1ff;
  --fibre-amber: #ffc271;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  color-scheme: light;
  --body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-card: 22px;
  --r-control: 14px;
  --ease: cubic-bezier(0.16, 0.84, 0.24, 1);
}
/* Light is the default on every device.  Dark only when the visitor picks it with the switch. */
:root[data-theme="dark"] {
  --sky: #070c1b;
  --sky-deep: #0b1228;
  --glass: rgba(18, 26, 50, 0.82);
  --glass-strong: #141d38;
  --ink: #edf2ff;
  --ink-2: #abb7d9;
  --ink-3: #8794b8;
  --line: #24305a;
  --track: #1a2546;
  --teal: #5ef0d6;
  --teal-ink: #5ef0d6;
  --violet: #ab98ff;
  --violet-ink: #bdaeff;
  --amber: #ffbe6e;
  --good: #66e3a2;
  --ok: #ffd27a;
  --poor: #ff8fa3;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
  --shadow-lift: 0 28px 70px rgba(0, 0, 0, 0.6);
  --room: #111a34;
  --room-line: #2c3a68;
  --furniture: #1e2a50;
  --leaf: #1b4a44;
  --hex-0: #1d3852;
  --hex-1: #17595a;
  --hex-2: #137a6c;
  --hex-3: #1fae97;
  --hex-4: #5ef0d6;
  --hex-ink-low: #e8fffb;
  --hex-ink-high: #04241f;
  --pop: #edf2ff;
  --on-pop: #0b1020;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; min-height: 100%; background: var(--sky-deep); }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(to bottom, var(--sky), var(--sky-deep));
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
}
.wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.press { transition: transform 0.12s var(--ease); }
.press:active { transform: scale(0.97); }

/* ---------- The stage ---------- */
.stage {
  position: relative;
  isolation: isolate;
  color: var(--night-ink);
  background:
    radial-gradient(60% 70% at 15% 35%, rgba(0, 190, 165, 0.15), transparent 70%),
    radial-gradient(55% 70% at 88% 30%, rgba(108, 82, 244, 0.22), transparent 70%),
    linear-gradient(to bottom, var(--night) 0%, var(--night-2) 100%);
  overflow: hidden;
}
.stage::after {
  /* a faint grain so the night has texture */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.stage canvas.fibres { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.stage__inner { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; min-height: clamp(620px, 82vh, 780px); }
.stage :focus-visible { outline-color: var(--fibre-teal); }

.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__name { font: 700 20px/1 var(--display); letter-spacing: -0.01em; }
.brand__by { display: block; margin-top: 5px; font-size: 13px; color: var(--night-ink-2); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 10px 12px; border-radius: 12px; color: var(--night-ink-2); font-weight: 500; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--night-ink); background: rgba(255, 255, 255, 0.08); }
.nav .nav__cta { color: var(--on-pink); background: var(--pink); font-weight: 700; margin-left: 4px; white-space: nowrap; }
.nav__cta .short { display: none; }
.stage__inner > * { min-width: 0; }
.nav .nav__cta:hover { color: var(--on-pink); background: var(--pink-hover); }
.theme-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--night-line); background: rgba(255, 255, 255, 0.06); color: var(--night-ink); display: grid; place-items: center; cursor: pointer; margin-left: 6px; }
.theme-btn svg { width: 20px; height: 20px; }

.steps { display: flex; justify-content: center; gap: clamp(8px, 2vw, 26px); padding-top: 12px; }
.step { display: grid; gap: 8px; min-width: clamp(96px, 14vw, 158px); font-size: 13px; color: var(--night-ink-3); }
.step__top { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.step__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.5; flex: none; }
.step__val { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--night-ink); font-weight: 500; }
.step__bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.step__bar i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 0.2s linear; }
.step--ping { --c: var(--fibre-amber); }
.step--down { --c: var(--fibre-teal); }
.step--up { --c: var(--fibre-violet); }
.step__bar i { background: var(--c); box-shadow: 0 0 10px var(--c); }
.step[data-state="active"], .step[data-state="done"] { color: var(--night-ink); }
.step[data-state="active"] .step__dot, .step[data-state="done"] .step__dot { background: var(--c); opacity: 1; box-shadow: 0 0 10px var(--c); }
.step[data-state="active"] .step__dot { animation: beat 0.9s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.6); opacity: 0.6; } }

.centre { display: grid; place-items: center; text-align: center; padding: 18px 0 12px; position: relative; }
.readout { display: grid; justify-items: center; gap: 4px; }
.readout__row { display: flex; align-items: flex-end; gap: 12px; }
.odo { display: inline-flex; font: 800 clamp(84px, 14vw, 188px)/1 var(--display); letter-spacing: -0.04em; height: 1em; filter: drop-shadow(0 0 26px rgba(94, 240, 214, 0.3)); }
.odo__slot { display: inline-block; width: 0.975em; height: 1em; overflow: hidden; text-align: center; margin-right: -0.06em; transition: width 0.5s var(--ease); }
.odo.is-live .odo__slot { transition: width 0.18s linear; }
.odo.is-reveal .odo__slot { transition-duration: 1.2s; }
.odo.is-reset .odo__slot { transition: none; }
.odo__reel { display: flex; flex-direction: column; transition: transform 0.5s var(--ease); }
.odo__reel span { display: block; height: 1em; line-height: 1; letter-spacing: 0; }
.odo__dot { display: inline-block; width: 0.32em; text-align: center; letter-spacing: 0; }
.odo.is-live .odo__reel { transition: none; }
.odo.is-reveal .odo__reel { transition-duration: 1.2s; }
.odo.is-reset .odo__reel { transition: none; }
.readout__unit { font: 700 clamp(18px, 2.3vw, 30px)/1 var(--display); color: var(--night-ink-2); padding-bottom: 0.5em; }
.readout__cap { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(15px, 1.6vw, 18px); color: var(--night-ink-2); min-height: 1.6em; }
.readout__cap i { width: 9px; height: 9px; border-radius: 50%; background: var(--fibre-teal); box-shadow: 0 0 12px var(--fibre-teal); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; max-width: 560px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(10, 18, 48, 0.72); border: 1px solid var(--night-line); font-size: 14px; color: var(--night-ink-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.chip b { color: var(--night-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.chip__swatch { width: 8px; height: 8px; border-radius: 50%; }
.chip__grade { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 800 12px/1 var(--display); color: #04241f; background: var(--fibre-teal); }
.reveal .chip { animation: rise 0.6s var(--ease) both; }
.reveal .chip:nth-child(2) { animation-delay: 0.08s; }
.reveal .chip:nth-child(3) { animation-delay: 0.16s; }
.reveal .chip:nth-child(4) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.start { display: grid; justify-items: center; gap: 18px; }
.start h1 { font: 700 clamp(30px, 4.4vw, 56px)/1.06 var(--display); letter-spacing: -0.03em; max-width: 16ch; }
.start p { color: var(--night-ink-2); max-width: 44ch; font-size: clamp(15px, 1.5vw, 18px); }
.go {
  position: relative; display: inline-flex; align-items: center; gap: 12px; border: 0; cursor: pointer; border-radius: 999px; padding: 22px 46px 22px 30px;
  font: 700 21px/1 var(--display); letter-spacing: -0.01em; color: #04122a;
  background: linear-gradient(110deg, #5ef0d6 0%, #9fe7ff 45%, #b2a1ff 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45) inset, 0 18px 50px rgba(94, 240, 214, 0.35), 0 0 80px rgba(178, 161, 255, 0.35);
  transition: transform 0.15s var(--ease), box-shadow 0.3s;
}
.go:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55) inset, 0 24px 60px rgba(94, 240, 214, 0.45), 0 0 100px rgba(178, 161, 255, 0.45); }
.go:active { transform: scale(0.97); }
.go__icon { width: 34px; height: 34px; border-radius: 50%; background: #04122a; display: grid; place-items: center; }
.go__icon svg { width: 14px; height: 14px; margin-left: 2px; }
.go::after { content: ""; position: absolute; inset: -8px; border-radius: inherit; border: 1.5px solid rgba(94, 240, 214, 0.6); animation: halo 2.6s ease-out infinite; }
@keyframes halo { 0% { opacity: 1; transform: scale(0.95); } 100% { opacity: 0; transform: scale(1.18); } }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(10, 18, 48, 0.72); border: 1px solid var(--night-line); }
.seg button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--night-ink-2); min-height: 40px; transition: background 0.2s, color 0.2s; }
.seg button[aria-pressed="true"] { background: var(--night-ink); color: var(--night); }
.seg__hint { font-size: 13px; color: var(--night-ink-3); min-height: 1.4em; }
.start small { color: var(--night-ink-3); font-size: 13px; }

/* the two ends of your connection */
.node { position: absolute; z-index: 1; display: grid; justify-items: center; gap: 8px; transform: translate(-50%, -22px); pointer-events: none; text-align: center; width: 140px; }
.node__ring {
  --g: 0;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--night-ink);
  background: rgba(10, 18, 48, 0.9); border: 1px solid rgba(160, 182, 255, calc(0.25 + var(--g) * 0.6));
  box-shadow: 0 0 calc(8px + var(--g) * 26px) rgba(var(--rgb, 94, 240, 214), calc(0.15 + var(--g) * 0.55));
}
.node__ring svg { width: 20px; height: 20px; }
.node__label { font-size: 13px; line-height: 1.3; color: var(--night-ink-2); padding: 6px 10px; border-radius: 10px; background: rgba(5, 9, 21, 0.78); border: 1px solid var(--night-line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.node__label b { display: block; color: var(--night-ink); font-size: 14px; font-weight: 600; }

.horizon { position: relative; height: 118px; }
.horizon__label { position: absolute; left: 0; top: 4px; display: flex; gap: 14px; font-size: 12px; color: var(--night-ink-3); }
.horizon__label span { display: inline-flex; align-items: center; gap: 6px; }
.horizon__label i { width: 14px; height: 3px; border-radius: 3px; }

/* ---------- Below the stage ---------- */
main { display: grid; gap: 28px; padding-block: 32px 56px; }
main > .wrap { min-width: 0; }
.section-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 16px; }
.section-title h2 { font: 700 clamp(22px, 2.6vw, 30px)/1.15 var(--display); letter-spacing: -0.02em; }
.section-title p { color: var(--ink-2); max-width: 58ch; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 20px 18px; display: grid; gap: 4px; align-content: start; min-width: 0; box-shadow: var(--shadow); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tile__label { font-size: 14px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.key { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.tile__value { font: 700 clamp(32px, 3.4vw, 44px)/1.08 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tile__value small { font: 600 15px var(--body); letter-spacing: 0; color: var(--ink-2); margin-left: 5px; }
.tile__sub { font-size: 14px; color: var(--ink-2); }
.badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--track); color: var(--ink); margin-top: 6px; }
.badge svg { width: 14px; height: 14px; color: var(--good); }
.tile canvas { width: 100%; height: 40px; display: block; margin-top: 10px; }
.twin { display: grid; gap: 7px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.twin__row { display: grid; grid-template-columns: 44px 1fr 46px; gap: 8px; align-items: center; }
.twin__row i { display: block; height: 8px; border-radius: 8px; }
.twin__row span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.grade { display: flex; align-items: center; gap: 14px; }
.grade__ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 800 29px/1 var(--display); background: conic-gradient(var(--teal) var(--p, 80%), var(--track) 0); position: relative; }
.grade__ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--glass-strong); }
.grade__ring span { position: relative; }
.gscale { position: relative; margin-top: 14px; }
.gscale__bar { height: 8px; border-radius: 8px; background: linear-gradient(90deg, #0cc58c 0%, #7fd35a 30%, #f2c230 50%, #f2852a 70%, #c9304a 100%); }
.gscale__letters { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); text-align: center; }
.gscale__letters span[aria-current="true"] { color: var(--ink); }
.gscale__pin { position: absolute; top: -5px; width: 18px; height: 18px; border-radius: 50%; background: var(--glass-strong); border: 3px solid var(--ink); transform: translateX(-50%); }

.info { position: relative; margin-left: auto; }
.info__btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass-strong); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; font: 700 13px var(--body); }
.info__btn:hover, .info__btn[aria-expanded="true"] { color: var(--ink); border-color: var(--ink-3); }
.info__pop { position: absolute; right: -6px; top: 36px; z-index: 5; width: min(270px, 78vw); padding: 14px 16px; border-radius: 14px; background: var(--pop); color: var(--on-pop); font-size: 14px; line-height: 1.5; font-weight: 400; box-shadow: var(--shadow-lift); }
.info__pop::before { content: ""; position: absolute; right: 14px; top: -6px; width: 12px; height: 12px; background: var(--pop); transform: rotate(45deg); border-radius: 2px; }

.home { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--glass); border: 1px solid var(--line); border-radius: 28px; padding: clamp(18px, 3vw, 34px); box-shadow: var(--shadow); }
.home svg { width: 100%; height: auto; display: block; max-width: 100%; overflow: visible; }
.rooms { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.room { display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass-strong); transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s; cursor: default; }
.room.is-hot { border-color: var(--teal); transform: translateX(6px); box-shadow: var(--shadow); }
.room__icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--track); color: var(--ink-2); }
.room__icon svg { width: 22px; height: 22px; }
.room b { font-weight: 600; line-height: 1.3; }
.room__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 14px; color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.status::before { content: ""; width: 9px; height: 9px; flex: none; }
.status--good { color: var(--good); }
.status--good::before { border-radius: 50%; background: currentColor; }
.status--ok { color: var(--ok); }
.status--ok::before { background: currentColor; transform: rotate(45deg); width: 8px; height: 8px; }
.flow { stroke-dasharray: 3 10; animation: flow 0.9s linear infinite; }
.flow--up { animation-direction: reverse; animation-duration: 1.4s; }
@keyframes flow { to { stroke-dashoffset: -13; } }
.wifi path { animation: wifi 2.4s ease-out infinite; opacity: 0; }
.wifi path:nth-child(2) { animation-delay: 0.3s; }
.wifi path:nth-child(3) { animation-delay: 0.6s; }
@keyframes wifi { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.room-glow { transition: opacity 0.3s; }

.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 24px; }
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(18px, 2.6vw, 30px); display: grid; gap: 16px; align-content: start; min-width: 0; box-shadow: var(--shadow); }
.panel h2 { font: 700 clamp(21px, 2.2vw, 26px)/1.2 var(--display); letter-spacing: -0.02em; }
.lead { color: var(--ink-2); max-width: 60ch; }
.fine { font-size: 14px; color: var(--ink-2); }

.pay__field { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pay__input { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--glass-strong); padding: 0 14px; min-height: 52px; }
.pay__input input { width: 5.5ch; border: 0; background: none; font: 700 22px var(--display); padding: 10px 6px 10px 0; font-variant-numeric: tabular-nums; }
.pay__input input:focus { outline: none; }
.pay__input:focus-within { outline: 3px solid var(--violet); outline-offset: 2px; }
.pay__input span { color: var(--ink-2); font-weight: 600; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets button { border: 1px solid var(--line); background: var(--glass-strong); border-radius: 999px; padding: 8px 13px; min-height: 40px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: border-color 0.2s, color 0.2s; }
.presets button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.meter { position: relative; padding-top: 40px; }
.meter__track { position: relative; height: 18px; border-radius: 99px; background: var(--track); overflow: hidden; }
.meter__fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--violet)); transition: width 0.7s var(--ease); }
.meter__ticks { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); pointer-events: none; }
.meter__ticks span { border-right: 2px solid color-mix(in srgb, var(--glass-strong) 70%, transparent); }
.meter__ticks span:last-child { border-right: 0; }
.meter__flag { position: absolute; top: 0; transform: translateX(-50%); padding: 5px 10px; border-radius: 10px; background: var(--ink); color: var(--sky); font: 700 13px var(--display); white-space: nowrap; transition: left 0.7s var(--ease); }
.meter__flag::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--ink); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.meter__ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); margin-top: 7px; }
.pay__msg { font-size: 18px; }
.pay__msg strong { font-family: var(--display); font-weight: 700; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 16px 26px; border-radius: 16px; text-decoration: none; font-weight: 700; font-size: 18px; background: var(--pink); color: var(--on-pink); box-shadow: 0 12px 30px rgba(255, 79, 154, 0.35); transition: transform 0.15s var(--ease), background 0.2s, box-shadow 0.2s; }
.cta:hover { background: var(--pink-hover); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(255, 79, 154, 0.45); }
.cta:active { transform: scale(0.98); }
.cta svg { width: 20px; height: 20px; transition: transform 0.2s var(--ease); }
.cta:hover svg { transform: translateX(3px); }

.map { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(160px, 0.65fr); gap: 20px; align-items: center; }
.map svg { width: 100%; height: auto; display: block; overflow: visible; }
.hex { stroke: var(--glass-strong); stroke-width: 3; transition: transform 0.25s var(--ease), filter 0.25s; transform-box: fill-box; transform-origin: center; cursor: default; }
.hexg:hover .hex { transform: scale(1.08); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2)); }
.hex-label { font: 600 11px var(--body); pointer-events: none; }
.hex-value { font: 700 13px var(--display); pointer-events: none; }
.versus { display: grid; gap: 12px; }
.versus__row { display: grid; gap: 4px; }
.versus__name { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; }
.versus__name span:last-child { font: 700 15px var(--display); font-variant-numeric: tabular-nums; }
.versus__track { height: 10px; border-radius: 99px; background: var(--track); overflow: hidden; }
.versus__track i { display: block; height: 100%; border-radius: inherit; }
.legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.legend i { flex: 1; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--hex-0), var(--hex-1), var(--hex-2), var(--hex-3), var(--hex-4)); }

.share { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; background: var(--glass); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3.6vw, 44px); box-shadow: var(--shadow); }
.card-stage { perspective: 900px; }
.card {
  width: min(290px, 100%); aspect-ratio: 4 / 5; border-radius: 22px; padding: 22px; color: #f2f6ff; display: grid; align-content: space-between;
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(0, 190, 165, 0.6), transparent 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(108, 82, 244, 0.7), transparent 60%),
    #070c1f;
  box-shadow: 0 30px 70px rgba(10, 20, 60, 0.35); transform: rotate(-2deg); transition: transform 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.14) 48%, transparent 60%); transform: translateX(var(--shine, -60%)); transition: transform 0.3s var(--ease); pointer-events: none; }
.card__brand { display: flex; align-items: center; gap: 8px; font: 700 13px var(--display); }
.card__num { font: 800 70px/0.9 var(--display); letter-spacing: -0.04em; }
.card__num small { font: 700 15px var(--display); letter-spacing: 0; margin-left: 4px; color: rgba(242, 246, 255, 0.75); }
.card__rows { display: grid; gap: 6px; font-size: 13px; }
.card__rows div { display: flex; justify-content: space-between; border-top: 1px solid rgba(242, 246, 255, 0.2); padding-top: 6px; }
.share h2 { font: 700 clamp(22px, 2.6vw, 30px)/1.15 var(--display); letter-spacing: -0.02em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 12px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass-strong); font-weight: 600; cursor: pointer; text-decoration: none; transition: border-color 0.2s, transform 0.15s var(--ease); }
.btn:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; }
.btn--dark { background: var(--ink); color: var(--sky); border-color: var(--ink); }

.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; padding: 22px; border-radius: var(--r-card); text-decoration: none; background: var(--glass); border: 1px solid var(--line); transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.2s; }
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--ink-3); }
.tool__icon { grid-row: span 3; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.tool__icon svg { width: 24px; height: 24px; }
.tool b { font: 700 17px/1.25 var(--display); letter-spacing: -0.01em; }
.tool span { color: var(--ink-2); font-size: 15px; }
.tool em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--violet-ink); display: inline-flex; align-items: center; gap: 6px; }
.tool em svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.tool:hover em svg { transform: translateX(3px); }

.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.guides a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass-strong); text-decoration: none; font-weight: 600; transition: border-color 0.2s, transform 0.2s var(--ease); }
.guides a:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.guides a span { flex: 1; }
.guides a small { font-weight: 500; font-size: 13px; color: var(--ink-3); white-space: nowrap; }

footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 32px 48px; display: grid; gap: 22px; font-size: 14px; color: var(--ink-2); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.foot-top h3 { font: 700 14px var(--display); color: var(--ink); margin-bottom: 10px; }
.foot-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-top a { text-decoration: none; }
.foot-top a:hover { color: var(--ink); text-decoration: underline; }
.legal { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; border-top: 1px solid var(--line); padding-top: 18px; }

.sticky {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(7, 12, 31, 0.92); color: #f2f6ff; border: 1px solid rgba(160, 182, 255, 0.25);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translate(-50%, 140%); transition: transform 0.45s var(--ease); max-width: calc(100% - 24px);
}
.sticky.is-on { transform: translate(-50%, 0); }
.sticky__num { font: 800 22px/1 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.sticky__num small { font: 700 12px var(--display); color: rgba(242, 246, 255, 0.7); margin-left: 3px; letter-spacing: 0; }
.sticky button, .sticky a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.sticky button { background: rgba(255, 255, 255, 0.1); color: #f2f6ff; }
.sticky a { background: var(--pink); color: var(--on-pink); }
.sticky .short { display: none; }

.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: -2px 0 18px; font-size: 14px; color: var(--ink-2); }
.byline__avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 700 13px var(--display); color: #fff; background: linear-gradient(135deg, #00a58e, #5b43e6); }
.byline a { color: var(--ink); font-weight: 600; }
.byline__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.cite { font-size: 0.86em; font-weight: 600; color: var(--violet-ink); text-decoration: none; white-space: nowrap; }
.cite:hover { text-decoration: underline; }
.fix { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--violet-ink); text-decoration: none; }
.fix:hover { text-decoration: underline; }
.fix svg { width: 13px; height: 13px; }
.aside-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }

.method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mstep { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow); }
.mstep__n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--display); color: #04122a; background: var(--c); }
.mstep h3 { font: 700 17px/1.25 var(--display); letter-spacing: -0.01em; }
.mstep p { color: var(--ink-2); font-size: 15px; }
.bands { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.band { border-radius: 14px; padding: 12px 8px; text-align: center; font-size: 13px; font-weight: 600; color: #0b1020; }
.band b { display: block; font: 800 22px/1.1 var(--display); }
.band--f { color: #fff; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fact { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow); }
.fact__num { font: 800 clamp(34px, 4vw, 48px)/1 var(--display); letter-spacing: -0.03em; }
.fact__bar { width: 44px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--violet)); }
.fact p { color: var(--ink-2); font-size: 15px; }

.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 28px; align-items: start; }
.faq { display: grid; gap: 10px; }
.qa { background: var(--glass-strong); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; transition: border-color 0.2s; }
.qa[open] { border-color: var(--ink-3); }
.qa summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--track); font: 700 18px/1 var(--display); color: var(--ink-2); transition: transform 0.25s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa__a { padding-bottom: 18px; color: var(--ink-2); max-width: 68ch; }

.sources { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.refs li { padding-left: 2em; text-indent: -2em; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); scroll-margin-top: 90px; }
.refs li:target { color: var(--ink); background: color-mix(in srgb, var(--teal) 14%, transparent); border-radius: 8px; }
.refs a { color: var(--violet-ink); overflow-wrap: anywhere; }
.citebox { border: 1px dashed var(--ink-3); border-radius: 18px; padding: 18px; display: grid; gap: 12px; background: var(--glass-strong); }
.citebox h3 { font: 700 16px var(--display); }
.citebox p { font-size: 14.5px; color: var(--ink-2); padding-left: 2em; text-indent: -2em; }

.toast { position: fixed; left: 50%; top: calc(20px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--sky); padding: 12px 18px; border-radius: 12px; font-weight: 500; z-index: 40; max-width: calc(100% - 32px); box-shadow: var(--shadow-lift); }

@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-wrap, .sources { grid-template-columns: 1fr; }
  .home, .pair { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr; }
  .nav a:not(.nav__cta) { display: none; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .stage__inner { min-height: clamp(600px, 90svh, 720px); }
  .head { padding-block: 16px 4px; }
  .brand__name { font-size: 17px; }
  .brand__by { display: none; }
  .nav .nav__cta { padding: 9px 12px; font-size: 14px; }
  .nav__cta .long { display: none; }
  .nav__cta .short { display: inline; }
  .stage .chips { display: none; }
  body[data-state="done"] .stage__inner { min-height: clamp(560px, 78svh, 680px); }
  .readout__cap { font-size: 14px; max-width: 30ch; }
  .steps { justify-content: space-between; gap: 10px; }
  .step { min-width: 0; flex: 1; }
  .step__dot { display: none; }
  .centre { padding: 12px 0 28px; }
  .node { width: auto; }
  .node__label { display: none; }
  .node__ring { width: 38px; height: 38px; }
  .horizon { height: 100px; }
  .horizon__label { gap: 10px; }
  .tile { padding: 16px 14px 16px; }
  .grade { gap: 10px; }
  .grade__ring { width: 52px; height: 52px; font-size: 24px; }
  .map { grid-template-columns: 1fr; }
  .share { grid-template-columns: 1fr; justify-items: center; }
  .share > div:last-child { justify-self: stretch; }
  .card-stage { width: 100%; display: grid; justify-items: center; }
  .card { width: min(270px, 100%); padding: 18px; }
  .card__num { font-size: 58px; }
  .foot-top { grid-template-columns: 1fr; }
  .method, .facts { grid-template-columns: 1fr; }
  .bands { gap: 5px; }
  .band { padding: 10px 4px; font-size: 12px; }
  .qa { padding: 0 16px; }
  .qa summary { font-size: 16px; }
  .sticky { padding-left: 14px; gap: 6px; }
  .sticky button { padding: 10px 12px; }
}
@media (max-width: 400px) {
  .theme-btn { display: none; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 16px; }
  .tiles { grid-template-columns: 1fr; }
  .band { font-size: 11px; padding: 9px 2px; }
  .band b { font-size: 18px; }
}
@media (max-width: 350px) {
  .brand { gap: 8px; }
  .brand__name { font-size: 14px; }
  .nav .nav__cta { padding: 9px 10px; }
  .sticky .long { display: none; }
  .sticky .short { display: inline; }
  .sticky__num { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .go::after, .flow, .wifi path, .step[data-state="active"] .step__dot { animation: none; }
  .wifi path { opacity: 1; }
  .odo__reel, .odo__slot, .tiers__pin, .meter__fill, .meter__flag, .step__bar i, .sticky, .tile, .tool, .card, .card::after { transition: none; }
  .reveal .chip { animation: none; }
}

/* ---------- Live test details ---------- */
.stop-btn { margin-top: 14px; border: 1px solid var(--night-line); background: rgba(10, 18, 48, 0.72); color: var(--night-ink); border-radius: 999px; padding: 10px 18px; min-height: 44px; font-weight: 600; cursor: pointer; }
.stop-btn:hover { border-color: rgba(226, 234, 255, 0.5); }
.conn { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--night-ink-2); }
.conn .seg button { min-height: 36px; padding: 7px 14px; }
.stage-error { max-width: 46ch; margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(207, 53, 80, 0.18); border: 1px solid rgba(255, 143, 163, 0.5); color: var(--night-ink); font-size: 15px; }
.result-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.result-note a, .result-note button { color: var(--violet-ink); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; font-size: inherit; }
.is-waiting .tile__value { color: var(--ink-3); }
.waiting-note { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--track); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.status--wait { color: var(--ink-3); }
.status--wait::before { border-radius: 50%; border: 2px solid currentColor; width: 7px; height: 7px; }
.status--poor { color: var(--poor); }
.status--poor::before { background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.region-tests { font-size: 13px; color: var(--ink-3); }
.hex--empty { opacity: 0.55; }

/* ---------- Inner pages ---------- */
.page-head { position: relative; isolation: isolate; color: var(--night-ink); overflow: hidden;
  background: radial-gradient(60% 90% at 12% 20%, rgba(0, 190, 165, 0.16), transparent 70%), radial-gradient(55% 90% at 90% 10%, rgba(108, 82, 244, 0.22), transparent 70%), linear-gradient(to bottom, var(--night) 0%, var(--night-2) 100%); }
.page-head__lens { position: absolute; inset: auto 0 0 0; height: 100%; width: 100%; z-index: -1; opacity: 0.55; pointer-events: none; }
.page-head .head { padding-block: 22px 8px; }
.page-head__body { padding-block: 26px 46px; display: grid; gap: 14px; max-width: 780px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--night-ink-3); list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--night-ink-3); }
.crumbs a { color: var(--night-ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--night-ink); text-decoration: underline; }
.page-head h1 { font: 700 clamp(30px, 4.6vw, 52px)/1.08 var(--display); letter-spacing: -0.03em; }
.page-head__lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--night-ink-2); max-width: 60ch; }
.page-head .byline { color: var(--night-ink-2); margin: 4px 0 0; }
.page-head .byline a { color: var(--night-ink); }
.page-head .byline__sep { background: var(--night-ink-3); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; padding-block: 36px 56px; }
.article { min-width: 0; max-width: 760px; font-size: 17px; line-height: 1.7; }
.article > * + * { margin-top: 18px; }
.article h2 { font: 700 clamp(22px, 2.4vw, 28px)/1.2 var(--display); letter-spacing: -0.02em; margin-top: 40px; scroll-margin-top: 20px; }
.article h3 { font: 700 19px/1.3 var(--display); letter-spacing: -0.01em; margin-top: 28px; }
.article p, .article li { color: var(--ink-2); }
.article strong { color: var(--ink); }
.article ul, .article ol { padding-left: 1.3em; }
.article li + li { margin-top: 8px; }
.article a:not(.cta):not(.btn) { color: var(--violet-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.answer { padding: 20px 22px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); font-size: 18px; }
.answer b { font-family: var(--display); font-weight: 700; }
.figure { margin: 26px 0 0; padding: 20px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); }
.figure svg { display: block; width: 100%; height: auto; max-width: 100%; }
.figure figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--glass-strong); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 440px; font-size: 15px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { font-weight: 700; color: var(--ink); background: var(--track); }
.table-wrap td { color: var(--ink-2); }
.table-wrap tr:last-child td { border-bottom: 0; }
.steps-list { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.steps-list li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.steps-list li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--display); color: #04122a; background: linear-gradient(135deg, #5ef0d6, #b2a1ff); }
.steps-list li b { color: var(--ink); display: block; }
.side { position: sticky; top: 20px; display: grid; gap: 16px; }
.side-card { padding: 20px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 10px; }
.side-card h2, .side-card h3 { font: 700 16px/1.3 var(--display); }
.side-card p { font-size: 15px; color: var(--ink-2); }
.side-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.side-card a { color: var(--violet-ink); text-decoration: none; }
.side-card a:hover { text-decoration: underline; }
.side-card .cta { color: var(--on-pink); font-size: 16px; min-height: 52px; padding: 14px 18px; }
.cta-band { margin-top: 40px; padding: clamp(22px, 3vw, 32px); border-radius: 24px; color: var(--night-ink); background: radial-gradient(70% 120% at 0% 0%, rgba(0, 190, 165, 0.35), transparent 60%), radial-gradient(70% 120% at 100% 100%, rgba(108, 82, 244, 0.45), transparent 60%), var(--night-2); display: grid; gap: 14px; }
.cta-band h2 { margin: 0; color: var(--night-ink); }
.cta-band p { color: var(--night-ink-2); }
.cta-band .btn-row { margin-top: 4px; }
.cta-band .btn { background: rgba(255, 255, 255, 0.08); color: var(--night-ink); border-color: var(--night-line); }
.article .refs li { font-size: 15px; }
.updated { font-size: 14px; color: var(--ink-3); }

/* Consent panel colours (shared component) */
html:root { --stc-accent: #ff4f9a; --stc-accent-ink: #24040f; --stc-bg: var(--glass-strong); --stc-fg: var(--ink); --stc-fg-2: var(--ink-2); --stc-line: var(--line); --stc-radius: 14px; --stc-font: var(--body); }
.stc-overlay { z-index: 9995; }

@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 620px) {
  .article { font-size: 16px; }
  .answer { font-size: 17px; padding: 18px; }
  .figure { padding: 14px; }
  .steps-list li { padding: 14px 14px 14px 56px; }
}
@media print {
  .stage, .page-head__lens, .sticky, .nav, .theme-btn, .side, .cta-band, .stc-banner { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- House marks and waiting states ---------- */
.mk { display: none; }
[data-state="good"] > .mk-good, [data-state="ok"] > .mk-ok, [data-state="poor"] > .mk-poor, [data-state="wait"] > .mk-wait { display: inline; }
body:not([data-state="done"]) .home .flow, body:not([data-state="done"]) .home .wifi path { animation-play-state: paused; opacity: 0.45; }
.waiting { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: -6px 0 18px; }
.waiting .btn { min-height: 40px; padding: 8px 16px; font-size: 14px; }
body[data-state="done"] .waiting { display: none; }
.room__src { flex-basis: 100%; font-size: 13px; color: var(--ink-3); }
.room__src .fix { font-size: 13px; }
.versus__rows { display: grid; gap: 12px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--pink); color: var(--on-pink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
footer .linkish { font-weight: 600; }

/* ---------- Guide figures and flow charts ---------- */
.layout--single { grid-template-columns: minmax(0, 1fr); }
.figure svg { max-width: 600px; margin: 0 auto; }
.figure text { font-family: var(--body); }
.flowchart { display: grid; gap: 0; justify-items: stretch; }
.flowchart__box { padding: 14px 16px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--line); color: var(--ink); font-size: 15px; line-height: 1.5; }
.flowchart__box b { display: block; font-family: var(--display); font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.flowchart__box span { color: var(--ink-2); }
.flowchart__q { background: var(--track); border-style: dashed; text-align: center; font-weight: 600; }
.flowchart__arrow { justify-self: center; width: 2px; height: 22px; background: var(--ink-3); position: relative; }
.flowchart__arrow::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateX(-50%) rotate(45deg); }
.flowchart__split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flowchart__branch { display: grid; gap: 0; align-content: start; }
.flowchart__tag { justify-self: center; margin: 8px 0 0; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--ink); color: var(--sky); }
.flowchart__end { border-color: var(--teal); }
.flowchart__end--warn { border-color: var(--ok); }
.key-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.key-figures div { padding: 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.key-figures b { display: block; font: 800 26px/1.1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.key-figures span { font-size: 14px; color: var(--ink-2); }
.article .faq { display: grid; gap: 10px; }
.article .qa__a { font-size: 16px; }
@media (max-width: 620px) {
  .flowchart__split { grid-template-columns: 1fr; }
}
.article .steps-list { padding-left: 0; }
.side-card .btn--dark, .side-card .btn--dark:hover { color: var(--sky); text-decoration: none; }
.side-card .btn { justify-content: center; }
.side-card .btn svg { width: 16px; height: 16px; }
@media (max-width: 620px) {
  .byline__sep { display: none; }
  .byline { gap: 6px 14px; }
}
.citebox p, .refs li { overflow-wrap: anywhere; }
.stc-banner .stc-actions { flex: 1 1 auto; min-width: 0; }
.page-head__body { min-width: 0; }
.page-head h1 { overflow-wrap: break-word; }
@media (max-width: 400px) {
  .page-head h1 { font-size: 26px; }
}
@media (max-width: 620px) {
  .figure { padding: 10px; }
  .article .table-wrap { overflow: visible; }
  .article .table-wrap table { min-width: 0; }
  .article .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .article .table-wrap tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .article .table-wrap tr:last-child { border-bottom: 0; }
  .article .table-wrap td, .article .table-wrap tbody th { display: block; padding: 2px 0; border: 0; background: none; text-align: left; }
  .article .table-wrap tbody tr > :first-child { font-weight: 700; color: var(--ink); }
  .article .table-wrap td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); }
}
.article .cite, .steps-list .cite { white-space: normal; }
.twin__row span:last-child { white-space: nowrap; }

/* ---------- Test again, under a result ---------- */
.readout:focus { outline: none; }
.again { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; margin-top: 16px; }
.again__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(94, 240, 214, 0.55); background: rgba(10, 18, 48, 0.72); color: var(--night-ink); font-weight: 700; font-size: 15px; cursor: pointer; }
.again__btn svg { width: 16px; height: 16px; color: var(--fibre-teal); }
.again__btn:hover { border-color: var(--fibre-teal); background: rgba(94, 240, 214, 0.12); }
.again__link { background: none; border: 0; padding: 6px 2px; min-height: 44px; color: var(--night-ink-2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.again__link:hover { color: var(--night-ink); }
.hex--empty { stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 4 3; }
.stc-backdrop { position: fixed; inset: 0; z-index: 9989; background: rgba(5, 9, 21, 0.55); }

/* ---------- Where your download sits: Ofcom's speed bands on a ten-times scale ---------- */
:root { --tier-0: #fbd9e0; --tier-1: #fbeab8; --tier-2: #c8efe5; --tier-3: #ddd5ff; --tier-ink: #0b1020; }
:root[data-theme="dark"] { --tier-0: #4a2232; --tier-1: #4a3d17; --tier-2: #14473f; --tier-3: #312a64; --tier-ink: #edf2ff; }
.tiers { overflow: clip; margin-top: 14px; padding: 20px 22px 18px; border-radius: var(--r-card); background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 14px; }
.tiers__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; }
.tiers__head h3 { font: 700 18px/1.25 var(--display); letter-spacing: -0.01em; }
.tiers__head p { font-size: 14px; color: var(--ink-2); max-width: 62ch; }
.tiers__scale { position: relative; padding: 34px 0 52px; }
.tiers__bar { position: relative; height: 34px; border-radius: 12px; overflow: hidden; background: var(--track); }
.tiers__band { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; border-right: 2px solid var(--glass-strong); }
.tiers__band:last-child { border-right: 0; }
.tiers__band b { font-size: 13px; font-weight: 700; color: var(--tier-ink); white-space: nowrap; }
.tiers__band--t0 { background: var(--tier-0); }
.tiers__band--t1 { background: var(--tier-1); }
.tiers__band--t2 { background: var(--tier-2); }
.tiers__band--t3 { background: var(--tier-3); }
.tiers__ticks { position: relative; height: 18px; margin-top: 6px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tiers__ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.tiers__ticks span:first-child { transform: none; }
.tiers__ticks .tiers__unit { right: 0; left: auto; transform: none; }
.tiers__pin { position: absolute; left: clamp(var(--half, 0px), var(--x, 0%), calc(100% - var(--half, 0px))); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; font-weight: 600; transition: left 1.1s var(--ease), opacity 0.4s; }
.tiers__pin--you { top: 0; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--sky); font-variant-numeric: tabular-nums; }
.tiers__pin--you b { font-weight: 700; }
.tiers__pin--you::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 2px; height: 12px; background: var(--ink); transform: translateX(-50%); }
.tiers__pin--region, .tiers__pin--uk { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tiers__pin--region { bottom: 26px; }
.tiers__pin--uk { bottom: 4px; }
.tiers__pin--region::before, .tiers__pin--uk::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.tiers__legend { display: none; list-style: none; margin: 0; padding: 0; gap: 6px 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.tiers__legend li { display: inline-flex; align-items: center; gap: 6px; }
.tiers__legend i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.tiers__legend span { color: var(--ink-3); }
.tiers__say { font-size: 15px; color: var(--ink); min-height: 1.4em; }
.tiers__say b { font-weight: 700; }
@media (max-width: 760px) {
  .tiers { padding: 16px; }
  .tiers__band b { display: none; }
  .tiers__legend { display: flex; }
  .tiers__ticks .tiers__unit { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tiers__pin { transition: none; } }
