/* =========================================================
   IdolVPN — Speed Test
   Design tokens
   ========================================================= */
:root{
  --bg-void:      #070a1f;
  --bg-void-2:    #0b0f2c;
  --bg-panel:     #10142c;
  --bg-panel-2:   #141a38;
  --border-soft:  rgba(255,255,255,.08);
  --border-soft-2:rgba(255,255,255,.14);

  /* Primary accent = the cyan sampled straight from the IdolVPN mark (H182°). */
  --accent:       #1fe0ea;
  --accent-soft:  #7ff3f8;
  --accent-dim:   rgba(31,224,234,.16);

  /* Complement: Itten/hue-wheel opposite of the logo's cyan (H182°) is a
     red-orange at H2° — rotated 180° at equal saturation/lightness so the
     pair stays perceptually balanced instead of clashing. */
  --accent-2:      #ff4d3d;
  --accent-2-soft: #ff9186;
  --accent-2-dim:  rgba(255,77,61,.16);

  --text-hi:      #f4f5fb;
  --text-mid:     #9aa0c3;
  --text-low:     #5b6088;

  --good:   #3ad98b;
  --warn:   #ffc94d;
  --bad:    #ff5470;

  /* Neutral surface overlays — swapped for dark-tinted equivalents in the
     light theme block below, so panels/hovers stay correct in both modes. */
  --overlay-soft:   rgba(255,255,255,.03);
  --overlay-mid:    rgba(255,255,255,.05);
  --overlay-strong: rgba(255,255,255,.12);

  --bg-glow-1: rgba(31,224,234,.10);
  --bg-glow-2: rgba(255,77,61,.09);

  --font-display: "Space Grotesk", "Vazirmatn", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Vazirmatn", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-panel: 0 20px 50px -30px rgba(0,0,0,.7);
}

/* =========================================================
   Light theme — toggled via html[data-theme="light"]
   ========================================================= */
html[data-theme="light"]{
  color-scheme: light;
  --bg-void:      #eef2fa;
  --bg-void-2:    #e6ebf7;
  --bg-panel:     #ffffff;
  --bg-panel-2:   #f5f8fd;
  --border-soft:  rgba(16,26,70,.08);
  --border-soft-2:rgba(16,26,70,.15);

  --text-hi:      #10142c;
  --text-mid:     #545a7c;
  --text-low:     #8288a8;

  --overlay-soft:   rgba(16,26,70,.035);
  --overlay-mid:    rgba(16,26,70,.06);
  --overlay-strong: rgba(16,26,70,.10);

  --bg-glow-1: rgba(31,224,234,.16);
  --bg-glow-2: rgba(255,77,61,.11);

  --shadow-panel: 0 20px 45px -30px rgba(20,30,80,.18);
}

/* =========================================================
   Persian / RTL
   ========================================================= */
html[lang="fa"] body,
html[dir="rtl"] body{
  font-family: "Vazirmatn", var(--font-body);
}
html[dir="rtl"] .hero-title,
html[dir="rtl"] .gauge-value,
html[dir="rtl"] #gaugeNumber{
  font-family: "Vazirmatn", var(--font-display);
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ color-scheme: dark; }
body{
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(60vw 60vh at 14% 8%, var(--bg-glow-1), transparent 60%),
    radial-gradient(50vw 50vh at 88% 92%, var(--bg-glow-2), transparent 60%),
    var(--bg-void);
  color: var(--text-hi);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .2s ease, color .2s ease;
}
h1, h2, h3{ margin: 0; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul{ margin: 0; padding: 0; list-style: none; }
svg{ display: block; }
a{ color: inherit; }

:focus-visible{
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
/* Manual equivalent, toggled via the Advanced options popover */
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after{
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
}

/* =========================================================
   Ambient background decoration
   ========================================================= */
.bg-decor{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.nodes{
  position: absolute;
  color: var(--border-soft-2);
  opacity: .5;
  width: 380px;
  height: 380px;
}
.nodes--tl{ top: -40px; left: -60px; }
.nodes--br{ bottom: -80px; right: -80px; width: 460px; height: 460px; }

/* =========================================================
   Top bar
   ========================================================= */
.topbar{
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 56px) 8px;
}
.logo{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-img{
  height: 34px;
  width: auto;
  display: block;
}
.logo-tag{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-low);
  padding-left: 12px;
  border-left: 1px solid var(--border-soft-2);
}
html[dir="rtl"] .logo-tag{
  padding-left: 0;
  border-left: 0;
  padding-right: 12px;
  border-right: 1px solid var(--border-soft-2);
}

/* =========================================================
   Theme + language toggle buttons (sit at the end of the topnav)
   ========================================================= */
.util-divider{
  width: 1px;
  height: 20px;
  background: var(--border-soft-2);
  margin: 0 2px;
  flex: none;
}
.util-btn{
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--text-low);
  transition: color .15s ease, background .15s ease;
}
.util-btn:hover{ color: var(--text-hi); background: var(--overlay-mid); }
.util-btn svg{ width: 18px; height: 18px; }
.lang-btn{
  width: auto;
  min-width: 38px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
}

.topnav{
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--overlay-soft);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
}
.nav-icon{
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--text-low);
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.nav-icon svg{ width: 18px; height: 18px; }
.nav-icon:hover{ color: var(--text-hi); background: var(--overlay-mid); }
/* Active section tab: both brand colors together, not flat orange */
.nav-icon.is-active{
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 3px 12px -4px rgba(31,224,234,.55), 0 3px 14px -4px rgba(255,77,61,.5);
}
/* Open settings popover: tinted with the complementary color so it reads
   distinctly from the (orange) active tab even when both are visible at once */
.nav-icon.is-open{ color: var(--accent-2); background: var(--accent-2-dim); }

.nav-popover{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--border-soft-2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-panel);
  padding: 16px;
  z-index: 20;
  animation: popIn .15s ease-out;
}
/* Without this, the popover never actually closes: an author-level rule for
   `display` always wins over the browser's built-in `[hidden]{ display:none }`
   rule regardless of selector specificity, so setting the `hidden` attribute
   from JS had no visual effect and the panel stayed on screen permanently. */
.nav-popover[hidden]{ display: none; }
@keyframes popIn{ from{ opacity: 0; transform: translateY(-4px); } to{ opacity: 1; transform: translateY(0); } }
.popover-head{
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-low);
}
.popover-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-mid);
}
.popover-row strong{
  color: var(--text-hi);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.popover-btn{
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,77,61,.3);
  background: var(--accent-2-dim);
  transition: background .15s ease, border-color .15s ease;
}
.popover-btn:hover{ background: rgba(255,77,61,.24); border-color: rgba(255,77,61,.45); }
.popover-btn:disabled{ opacity: .6; cursor: wait; }
.popover-toggle{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}
.popover-toggle span{
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--text-hi);
}
.popover-toggle small{ font-size: 11px; color: var(--text-low); font-weight: 400; }
.popover-toggle input{
  appearance: none;
  width: 36px;
  height: 21px;
  border-radius: 999px;
  background: var(--overlay-strong);
  border: 1px solid var(--border-soft-2);
  position: relative;
  flex: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.popover-toggle input::before{
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--text-hi);
  transition: transform .15s ease;
}
.popover-toggle input:checked{ background: var(--accent-2-dim); border-color: rgba(255,77,61,.5); }
.popover-toggle input:checked::before{ transform: translateX(15px); background: var(--accent-2); }

html[dir="rtl"] .nav-popover{ right: auto; left: 0; }

@media (max-width: 640px){
  .nav-popover{ right: 50%; transform: translateX(50%); }
  @keyframes popIn{ from{ opacity: 0; transform: translateX(50%) translateY(-4px); } to{ opacity: 1; transform: translateX(50%) translateY(0); } }
  html[dir="rtl"] .nav-popover{ right: 50%; left: auto; transform: translateX(50%); }
}

.topstatus{ display: flex; align-items: center; gap: 10px; }
.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-mid);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-soft);
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill .dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(58,217,139,.18);
}
.pill.is-busy .dot{ background: var(--warn); box-shadow: 0 0 0 3px rgba(255,201,77,.18); }
.pill.is-error .dot{ background: var(--bad); box-shadow: 0 0 0 3px rgba(255,84,112,.18); }

/* =========================================================
   Dashboard grid
   ========================================================= */
.dashboard{
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 56px) 40px;
  display: grid;
  grid-template-columns: 250px minmax(360px, 620px) 280px;
  grid-template-areas:
    "telemetry hero stats"
    "history   hero insights";
  gap: 22px;
  align-items: start;
  justify-content: center;
}
.telemetry{ grid-area: telemetry; }
.hero{ grid-area: hero; }
.stats{ grid-area: stats; display: flex; flex-direction: column; gap: 16px; }
.history{ grid-area: history; }
.insights{ grid-area: insights; }

.panel{
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  padding: 20px;
}
.panel-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.ghost-btn{
  font-size: 12px;
  color: var(--text-low);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  transition: color .15s ease, border-color .15s ease;
}
.ghost-btn:hover{ color: var(--text-hi); border-color: var(--border-soft-2); }

/* =========================================================
   Telemetry panel (left)
   ========================================================= */
.telemetry{ display: flex; flex-direction: column; gap: 20px; }
.tel-item{
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.tel-icon{
  width: 20px; height: 20px;
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}
.tel-item div{ display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tel-item strong{
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-hi);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tel-item span{ font-size: 11px; color: var(--text-low); text-transform: uppercase; letter-spacing: .06em; }

/* =========================================================
   Hero / gauge
   ========================================================= */
.hero{
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 4px;
}
.hero-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: .05em;
  line-height: 1.05;
  color: var(--text-hi);
  margin-bottom: 6px;
}

.gauge-wrap{
  position: relative;
  width: min(88vw, 380px);
  aspect-ratio: 1 / 1;
  margin: 10px 0 6px;
}
.gauge{ width: 100%; height: 100%; overflow: visible; }
.gauge-glow{
  fill: url(#gaugeGlowGradient);
  opacity: .5;
}

.gauge-tick{ stroke: var(--border-soft-2); stroke-width: 2; stroke-linecap: round; }
.gauge-tick--major{ stroke: var(--text-low); stroke-width: 2.5; }
.gauge-tick-label{
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--text-low);
  text-anchor: middle;
  dominant-baseline: middle;
}
.gauge-arc-track{
  fill: none;
  stroke: var(--overlay-mid);
  stroke-width: 10;
  stroke-linecap: round;
}
.gauge-arc-value{
  fill: none;
  stroke: url(#gaugeArcGradient);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset .5s cubic-bezier(.22,.9,.3,1);
}
.gauge-needle{
  transition: transform .5s cubic-bezier(.22,.9,.3,1);
  /* No transform-origin here on purpose: app.js sets transform="rotate(deg cx cy)"
     with its own explicit center, so an extra CSS transform-origin would offset
     that center a second time and fling the needle away from the dial. */
}
.gauge-needle-line{
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(31,224,234,.65));
}
.gauge-needle-hub{ fill: var(--text-hi); }

.gauge-center{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
}
.gauge-icon{
  width: 26px; height: 26px;
  color: var(--accent);
  margin-bottom: 2px;
}
.gauge-icon svg{ width: 100%; height: 100%; }
.gauge-value{
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
}
#gaugeNumber{
  font-size: clamp(38px, 8vw, 52px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-hi);
}
.gauge-unit{ font-size: 15px; color: var(--text-mid); font-family: var(--font-body); }
.gauge-sub{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-low);
  margin-top: 4px;
}
.gauge-ping{
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-mid);
  font-family: var(--font-mono);
}
.gauge-ping strong{ color: var(--accent); font-weight: 600; }

.start-btn{
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(31,224,234,.55), 0 8px 22px -10px rgba(255,77,61,.4);
  transition: transform .15s ease, box-shadow .15s ease;
  margin-top: 6px;
}
.start-btn svg{ width: 22px; height: 22px; }
.start-btn:hover{ transform: translateY(-2px); box-shadow: 0 16px 34px -8px rgba(31,224,234,.65); }
.start-btn:active{ transform: translateY(0); }
.start-btn.is-running #startIcon{ animation: spin 1.1s linear infinite; }
.start-btn.is-running{ background: linear-gradient(160deg, #3a4066, #232847); box-shadow: none; }
.start-btn:disabled{ opacity: .55; cursor: not-allowed; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.status-text{
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-mid);
  min-height: 18px;
}

/* =========================================================
   Stat cards (right)
   ========================================================= */
.stat-card{
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  padding: 18px 20px;
  transition: border-color .2s ease, transform .2s ease;
}
.stat-card.is-updating{ border-color: rgba(31,224,234,.45); }
#cardUpload.is-updating{ border-color: rgba(255,77,61,.45); }
#cardUpload .stat-head svg{ color: var(--accent-2); }
.stat-head{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-mid);
  margin-bottom: 10px;
}
.stat-head svg{ width: 16px; height: 16px; color: var(--accent); }
.stat-value{
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
}
.stat-value span{
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stat-value small{ font-size: 13px; color: var(--text-mid); font-family: var(--font-body); }

/* =========================================================
   History panel
   ========================================================= */
.history-graph{
  width: 100%;
  height: 64px;
  margin-bottom: 10px;
  overflow: visible;
}
.history-graph polyline{
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(31,224,234,.5));
}
.history-list{ display: flex; flex-direction: column; gap: 10px; }
.history-empty{ font-size: 12px; color: var(--text-low); }
.history-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-mid);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.history-row:last-child{ border-bottom: 0; padding-bottom: 0; }
.history-row time{ color: var(--text-low); font-family: var(--font-mono); font-size: 11px; }
.history-row .hr-metrics{ display: flex; gap: 12px; font-family: var(--font-mono); color: var(--text-hi); }
.history-row .hr-metrics b{ color: var(--accent); font-weight: 600; }

/* =========================================================
   Insights panel
   ========================================================= */
.insight-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-mid);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.insight-row strong{ color: var(--text-hi); font-family: var(--font-mono); }
.badges{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge{
  font-size: 11px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-soft-2);
  color: var(--text-mid);
}
.badge--pending{ color: var(--text-low); }
.badge--great{ color: var(--good); border-color: rgba(58,217,139,.35); background: rgba(58,217,139,.08); }
.badge--good{ color: #8fe3b8; border-color: rgba(58,217,139,.25); background: rgba(58,217,139,.05); }
.badge--average{ color: var(--warn); border-color: rgba(255,201,77,.3); background: rgba(255,201,77,.06); }
.badge--poor,.badge--bad{ color: var(--bad); border-color: rgba(255,84,112,.3); background: rgba(255,84,112,.06); }

/* =========================================================
   Leak check panel
   ========================================================= */
.leaks .panel-head{ display: flex; align-items: center; justify-content: space-between; }
.leak-badge{
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft-2);
  color: var(--text-mid);
}
.leak-badge.is-good{ color: var(--good); border-color: rgba(58,217,139,.35); background: rgba(58,217,139,.08); }
.leak-badge.is-warn{ color: var(--warn); border-color: rgba(255,201,77,.3); background: rgba(255,201,77,.06); }
.leak-badge.is-bad{ color: var(--bad); border-color: rgba(255,84,112,.3); background: rgba(255,84,112,.06); }
.leak-detail{
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-low);
  margin: -4px 0 8px;
}
.leak-disclaimer{
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-low);
  margin: 14px 0 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.leak-external{
  display: inline-flex;
  width: fit-content;
}

/* =========================================================
   Footer
   ========================================================= */
.foot{
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 56px) 40px;
}
.foot-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}
.foot-logo{
  height: 30px;
  width: auto;
  display: block;
  opacity: .92;
}
.foot-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.foot-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-mid);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.foot-link svg{ width: 15px; height: 15px; color: var(--accent); flex: none; }
.foot-link:hover{ color: var(--text-hi); border-color: var(--border-soft-2); background: var(--overlay-soft); }
.foot-note{
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-low);
  max-width: 60ch;
  margin: 0;
}
.foot-copy{
  font-size: 11px;
  color: var(--text-low);
  margin: 14px 0 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px){
  .dashboard{
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "stats"
      "telemetry"
      "insights"
      "history";
  }
  .hero{ grid-row: auto; }
  .telemetry{
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px 28px;
  }
  .tel-item{ flex: 1 1 140px; }
}

@media (max-width: 640px){
  .topbar{ flex-wrap: wrap; row-gap: 14px; }
  .topnav{ order: 3; width: 100%; justify-content: center; }
  .stats{ flex-direction: row; flex-wrap: wrap; }
  .stat-card{ flex: 1 1 150px; }
  .logo-img{ height: 28px; }
  .logo-tag{ font-size: 10px; padding-left: 9px; }
  .foot-top{ flex-direction: column; align-items: flex-start; }
  .foot-links{ width: 100%; }
  .foot-link{ flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 380px){
  .logo-tag{ display: none; }
}
