.speed-page {
  padding-top: 48px;
  padding-bottom: 64px;
  --speed-bg: #101625;
  --speed-surface: #171f31;
  --speed-line: #303c53;
  --speed-text: #f0f5ff;
  --speed-muted: #aebbd1;
  --speed-cyan: #42e1f5;
  --speed-purple: #be9dff;
  --speed-orange: #f26f21;
  --speed-accent: var(--speed-cyan);
  font-variant-numeric: tabular-nums;
}
.speed-page [hidden] {
  display: none !important;
}
.speed-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}
.speed-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  color: #8d3f11;
}
.speed-intro h1 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin: 0;
  color: #142038;
}
.speed-intro h1 span {
  color: #c64e0e;
}
.speed-intro > p {
  font-size: 16px;
  line-height: 1.7;
  color: #526079;
  margin: 0;
}
.speed-console {
  background: var(--speed-bg);
  color: var(--speed-text);
  border: 1px solid var(--speed-line);
  border-radius: 28px;
  padding: 28px 36px 22px;
  box-shadow: 0 24px 64px #1016251c;
  overflow: hidden;
}
.speed-console[data-state="upload"] {
  --speed-accent: var(--speed-purple);
}
.speed-console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.speed-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--speed-muted);
}
.speed-brand svg {
  color: var(--speed-cyan);
}
.speed-state-badge {
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid var(--speed-line);
  border-radius: 30px;
  background: #233047;
  color: #d3e1f5;
  white-space: nowrap;
}
.speed-console[data-state="complete"] .speed-state-badge {
  background: #163b35;
  color: #91f5d0;
  border-color: #2a6759;
}
.speed-primary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--speed-line);
}
.speed-primary-metrics > div {
  padding-left: 18px;
  border-left: 1px solid var(--speed-line);
}
.speed-primary-metrics > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.speed-primary-metrics dt {
  font-size: 14px;
  color: var(--speed-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.speed-primary-metrics dt > span {
  font-weight: 800;
  color: var(--speed-cyan);
  font-size: 20px;
}
.speed-primary-metrics [data-speed-metric="upload"] dt > span {
  color: var(--speed-purple);
}
.speed-primary-metrics small {
  font-size: 12px;
  margin-left: auto;
}
.speed-primary-metrics dd {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 750;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.speed-measure-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 48px;
  padding-top: 24px;
  padding-bottom: 28px;
  align-items: start;
}
.speed-gauge-block {
  text-align: center;
  min-width: 0;
}
.speed-gauge {
  max-width: 370px;
  width: 100%;
  aspect-ratio: 400/340;
  margin: auto;
  position: relative;
}
.speed-dial {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.speed-dial circle {
  fill: none;
}
.speed-dial-halo {
  stroke: var(--speed-accent);
  stroke-width: 25;
  opacity: 0.04;
}
.speed-dial-track {
  stroke: #2e3b52;
  stroke-width: 10;
}
.speed-dial-fill {
  stroke: var(--speed-accent);
  stroke-width: 11;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px #42e1f544);
}
.speed-dial-needle {
  fill: #e9fcff;
  opacity: 0.75;
}
.speed-dial text {
  fill: var(--speed-muted);
  font-size: 13px;
  text-anchor: middle;
  dominant-baseline: middle;
}
.speed-location-suggestion {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #dfe6ee;
  border-radius: 14px;
  background: #f8fafc;
  font-size: 15px;
  line-height: 1.6;
}
.speed-location-suggestion p {
  margin: 0;
}
.speed-location-suggestion button {
  width: auto;
  max-width: 100%;
  margin-top: 12px;
}
.speed-dial-readout {
  position: absolute;
  left: 0;
  right: 0;
  top: 65%;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.speed-dial-readout span {
  font-size: clamp(36px, 5.5vw, 54px);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.04em;
}
.speed-dial-readout small {
  font-size: 13px;
  color: var(--speed-muted);
  margin-top: 3px;
}
.speed-scan-ring {
  position: absolute;
  inset: 8% 15% 12%;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--speed-accent);
  opacity: 0;
  pointer-events: none;
}
.speed-console:is(
    [data-state="preparing"],
    [data-state="latency"],
    [data-state="download"],
    [data-state="upload"]
  )
  .speed-scan-ring {
  opacity: 0.3;
  animation: speed-scan 1.6s linear infinite;
}
@keyframes speed-scan {
  to {
    transform: rotate(360deg);
  }
}
.speed-status {
  font-size: 14px;
  line-height: 1.5;
  min-height: 42px;
  color: var(--speed-muted);
  margin: 8px 0 12px;
}
.speed-steps {
  padding: 0;
  margin: 0 auto 20px;
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.speed-steps li {
  font-size: 12px;
  color: var(--speed-muted);
  border: 1px solid var(--speed-line);
  border-radius: 20px;
  padding: 6px 10px;
}
.speed-steps [aria-current="step"] {
  color: var(--speed-accent);
  border-color: var(--speed-accent);
  background: #ffffff06;
}
.speed-steps .is-done {
  color: #82e8bc;
}
.speed-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.speed-start,
.speed-secondary,
.speed-plan-cta {
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.18s,
    transform 0.18s;
}
.speed-start,
.speed-plan-cta {
  background: var(--speed-orange);
  color: #151b28;
}
.speed-start {
  min-width: 180px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.speed-start:hover,
.speed-plan-cta:hover {
  background: #ff984d;
  transform: translateY(-1px);
}
.speed-start:active,
.speed-plan-cta:active {
  transform: translateY(1px);
}
.speed-start:disabled {
  background: #37435a;
  color: #bbc7db;
  cursor: wait;
  transform: none;
}
.speed-secondary {
  border: 1px solid #485978;
  background: #202b41;
  color: #edf5ff;
}
.speed-secondary:hover {
  background: #31405b;
}
.speed-page :is(button, a, select, summary):focus-visible {
  outline: 3px solid #0092b4;
  outline-offset: 4px;
}
.speed-console :is(button, a, summary):focus-visible {
  outline-color: var(--speed-cyan);
}
.speed-small-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--speed-muted);
  margin: 16px 0 0;
}
.speed-small-note a {
  color: #91e8fa;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.speed-gauge-block .speed-small-note {
  max-width: 420px;
  margin: 16px auto 0;
}
.speed-connection {
  background: var(--speed-surface);
  border: 1px solid var(--speed-line);
  border-radius: 18px;
  padding: 22px;
  margin-top: 22px;
  min-width: 0;
}
.speed-connection h2 {
  font-size: 16px;
  margin: 0 0 20px;
}
.speed-connection-list {
  margin: 0;
  display: grid;
  gap: 15px;
}
.speed-connection-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}
.speed-connection-list dt {
  font-size: 12px;
  color: var(--speed-muted);
}
.speed-connection-list dt small {
  display: block;
  font-size: 11px;
}
.speed-connection-list dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-align: right;
}
.speed-tips {
  padding: 16px 0 0;
  margin-top: 18px;
  border-top: 1px solid var(--speed-line);
  color: var(--speed-muted);
}
.speed-tips strong {
  font-size: 13px;
  color: #e2edf9;
}
.speed-tips p {
  font-size: 13px;
  line-height: 1.65;
  margin: 6px 0 0;
}
.speed-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--speed-line);
  padding-top: 20px;
}
.speed-chart-header h2 {
  font-size: 14px;
  margin: 0;
}
.speed-chart-header > div {
  display: flex;
  gap: 16px;
}
.speed-chart-key {
  font-size: 12px;
  color: var(--speed-cyan);
}
.speed-chart-key.upload {
  color: var(--speed-purple);
}
.speed-chart-wrap {
  margin-top: 14px;
  position: relative;
  min-height: 142px;
}
.speed-chart {
  width: 100%;
  height: 100px;
  overflow: visible;
}
.speed-chart path {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.speed-chart-grid {
  stroke: #29344a;
  stroke-width: 1;
  stroke-dasharray: 3 6;
}
.speed-chart-down {
  stroke: var(--speed-cyan);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.speed-chart-up {
  stroke: var(--speed-purple);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.speed-chart-wrap p {
  font-size: 11px;
  color: var(--speed-muted);
  margin: 0;
  padding: 2px 0 12px;
  line-height: 1.5;
}
.speed-details {
  border-top: 1px solid var(--speed-line);
  padding-top: 4px;
}
.speed-details summary {
  cursor: pointer;
  min-height: 48px;
  font-size: 13px;
  padding: 16px 0;
  font-weight: 600;
  color: #d2def2;
}
.speed-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 0;
}
.speed-detail-grid > div {
  padding: 12px 14px;
  background: var(--speed-surface);
  border-radius: 10px;
}
.speed-detail-grid dt {
  font-size: 12px;
  color: var(--speed-muted);
  margin-bottom: 7px;
}
.speed-detail-grid dd {
  font-size: 14px;
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.speed-result-footer {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--speed-line);
  margin-top: 12px;
}
.speed-result-footer p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--speed-muted);
  margin: 0;
}
.speed-result-footer button {
  flex-shrink: 0;
}
.speed-recommendations {
  margin-top: 48px;
}
.speed-recommend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.speed-recommend-header h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0;
  color: #16223a;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.speed-recommend-header p:not(.speed-eyebrow) {
  font-size: 14px;
  color: #526079;
  margin: 8px 0 0;
  line-height: 1.65;
}
.speed-all-plans {
  font-size: 14px;
  color: #924009;
  white-space: nowrap;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.speed-region {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid #dce3ed;
  border-radius: 16px;
  margin: 24px 0;
}
.speed-region > span {
  font-size: 14px;
  font-weight: 700;
  color: #26354d;
}
.speed-region label {
  display: block;
  font-size: 12px;
  color: #526079;
  margin-bottom: 6px;
}
.speed-region select {
  font: inherit;
  font-size: 14px;
  width: 100%;
  min-height: 44px;
  border: 1px solid #c7d1e0;
  border-radius: 9px;
  padding: 9px;
  background: #fff;
  color: #25354f;
  min-width: 0;
}
.speed-region > div {
  min-width: 0;
}
.speed-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.speed-plan-card {
  border: 1px solid #dce3ed;
  border-radius: 18px;
  background: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px #223b5908;
  min-width: 0;
}
.speed-plan-card > img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f4f7fc;
  padding: 8px;
}
.speed-plan-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.speed-plan-type {
  font-size: 11px;
  font-weight: 700;
  color: #924009;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.speed-plan-body h3 {
  font-size: 21px;
  margin: 0 0 8px;
  line-height: 1.4;
  color: #1a2942;
  overflow-wrap: anywhere;
}
.speed-plan-bandwidth {
  color: #233b54;
  font-size: 24px;
  font-weight: 750;
  margin: 0;
  line-height: 1.4;
}
.speed-plan-bandwidth small {
  font-size: 11px;
  font-weight: 400;
  color: #526079;
}
.speed-plan-reason {
  font-size: 12px;
  line-height: 1.6;
  color: #526079;
  min-height: 38px;
  margin: 8px 0 16px;
}
.speed-plan-price {
  font-size: 20px;
  font-weight: 750;
  color: #c04b0b;
  margin: 0 0 6px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.speed-plan-quote {
  font-size: 12px;
  color: #526079;
  line-height: 1.6;
  min-height: 40px;
  margin: 0;
}
.speed-plan-body ul {
  padding-left: 18px;
  margin: 16px 0 22px;
  color: #445570;
  font-size: 13px;
  line-height: 1.8;
  flex: 1;
}
.speed-plan-cta {
  width: 100%;
  margin-top: auto;
}
.speed-recommend-disclaimer {
  font-size: 12px;
  color: #526079;
  line-height: 1.7;
  margin-top: 20px;
}
.speed-text-button {
  font: inherit;
  color: #a8470e;
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
  min-height: 44px;
}
.speed-error {
  color: #ffb6b0;
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .main-nav-desktop {
    gap: 0;
  }
  .main-nav-desktop .nav-link-btn {
    padding: 10px 7px;
    font-size: 12px;
  }
  .portal-title {
    display: none;
  }
}
@media (max-width: 767px) {
  .speed-page {
    padding-top: 28px;
    padding-bottom: 36px;
  }
  .speed-intro {
    display: block;
    margin-bottom: 24px;
  }
  .speed-intro > p {
    margin-top: 16px;
    font-size: 14px;
  }
  .speed-console {
    border-radius: 20px;
    padding: 20px 16px 16px;
  }
  .speed-console-top {
    gap: 10px;
    margin-bottom: 22px;
  }
  .speed-brand {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  .speed-state-badge {
    padding: 5px 9px;
    font-size: 11px;
  }
  .speed-primary-metrics {
    gap: 18px 12px;
    grid-template-columns: 1fr 1fr;
  }
  .speed-primary-metrics > div {
    padding-left: 12px;
  }
  .speed-primary-metrics > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .speed-primary-metrics dt {
    font-size: 12px;
  }
  .speed-primary-metrics small {
    font-size: 11px;
  }
  .speed-primary-metrics dd {
    font-size: 30px;
  }
  .speed-measure-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 16px;
  }
  .speed-gauge {
    max-width: 320px;
  }
  .speed-connection {
    margin-top: 0;
    padding: 18px;
  }
  .speed-detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .speed-detail-grid > div {
    padding: 10px;
  }
  .speed-detail-grid dd {
    font-size: 13px;
  }
  .speed-result-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .speed-result-footer button {
    width: 100%;
  }
  .speed-recommendations {
    margin-top: 32px;
  }
  .speed-recommend-header {
    display: block;
  }
  .speed-all-plans {
    margin-top: 8px;
  }
  .speed-region {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 16px;
  }
  .speed-region > span {
    grid-column: 1/-1;
  }
  .speed-region > div:last-child {
    grid-column: 1/-1;
  }
  .speed-plan-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .speed-plan-body {
    padding: 20px;
  }
  .speed-plan-reason {
    min-height: 0;
  }
  .speed-plan-quote {
    min-height: 0;
  }
  .speed-chart-header > div {
    gap: 10px;
  }
  .speed-chart-key {
    font-size: 11px;
  }
  .speed-actions .speed-start {
    flex: 1;
    max-width: 260px;
  }
  .speed-eyebrow {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .speed-page * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .speed-scan-ring {
    display: none;
  }
}
