/* ==========================================================================
   NeTrakr
   1. Tokens   2. Base      3. Layout    4. Header & buttons
   5. Hero     6. Map       7. Form card 8. Features & how-it-works
   9. Footer  10. Motion   11. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ink: #10243c;
  --ink-soft: #2e4c68;
  --body: #526a84;
  --muted: #61758d;
  --subtle: #7d8fa2;
  --blue: #087cf0;
  --green: #16c9a0;
  --error: #c0392b;
  --line: #e1ebf4;

  --gradient: linear-gradient(105deg, #087cf0, #04c7a0);
  --shadow-soft: 0 24px 70px rgba(37, 91, 139, .12);
  --shadow-card: 0 17px 50px rgba(37, 91, 139, .10);

  --font-body: "DM Sans", Arial, sans-serif;
  --font-display: Manrope, "DM Sans", Arial, sans-serif;

  --wrap: min(1240px, calc(100% - 56px));
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* 2. Base ------------------------------------------------------------------ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 79% 13%, rgba(180, 231, 255, .34), transparent 27rem),
    linear-gradient(180deg, #fbfdff 0%, #f5faff 60%, #fff 100%);
  font-family: var(--font-body);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: -1.8px;
  line-height: 1.12;
}

:focus-visible {
  outline: 3px solid rgba(8, 124, 240, .45);
  outline-offset: 3px;
  border-radius: 8px;
}

[id] {
  scroll-margin-top: 24px;
}

/* 3. Layout ---------------------------------------------------------------- */
.site-header,
.section-wrap,
.site-footer {
  width: var(--wrap);
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: #087dd8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.35px;
}

.pulse-dot,
.caption-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(22, 201, 160, .12);
}

/* 4. Header & buttons ------------------------------------------------------ */
.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 13px;
  box-shadow: 0 5px 16px rgba(22, 123, 207, .12);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1.2px;
}

.brand-name span {
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  color: #506781;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--blue);
}

.nav-cta,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(4, 150, 204, .18);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.nav-cta {
  padding: 12px 20px;
  font-size: 14px;
  white-space: nowrap;
}

.primary-button {
  min-height: 49px;
  padding: 13px 22px;
  font-size: 15px;
}

.nav-cta:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(4, 150, 204, .25);
}

.primary-button:disabled {
  opacity: .7;
  cursor: progress;
  transform: none;
}

/* 5. Hero ------------------------------------------------------------------ */
.hero {
  padding: 46px 0 82px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 52px;
  align-items: center;
}

.hero-copy {
  max-width: 570px;
  padding-top: 10px;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(39px, 4.1vw, 58px);
  font-weight: 800;
}

h1 span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: .78em;
  font-weight: 600;
  letter-spacing: -1.3px;
  line-height: 1.25;
}

.hero-description {
  max-width: 555px;
  margin-bottom: 13px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.75;
}

.hero-emphasis {
  margin-bottom: 23px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 19px;
}

.text-link {
  color: #486680;
  font-size: 14px;
  font-weight: 700;
  transition: color .2s;
}

.microcopy {
  margin: 17px 0 0;
  color: var(--subtle);
  font-size: 13px;
}

.tiny-check {
  margin-right: 5px;
  color: var(--green);
  font-weight: 900;
}

.hero-side {
  min-width: 0;
  display: grid;
  gap: 18px;
}

/* 6. Example campus map ---------------------------------------------------- */
.zone-map {
  --q-excellent: #19b97a;
  --q-good: #e2b800;
  --q-fair: #ee8a2b;
  --q-poor: #dc414a;
  --q-nodata: #8797a8;
  overflow: hidden;
  border: 1px solid rgba(199, 221, 239, .8);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.zm-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 16px 10px;
}

.zm-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #35536e;
  font-size: 13px;
  font-weight: 700;
}

.zm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.zm-chip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #dce7f1;
  border-radius: 999px;
  background: #fbfdff;
  color: #35536e;
  font: 600 13px var(--font-body);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.zm-chip[aria-pressed="true"] {
  border-color: transparent;
  background: var(--gradient);
  color: #fff;
}

.zm-canvas svg {
  display: block;
  width: 100%;
  height: auto;
  background: #dcefd6;
}

.zone {
  --zc: var(--q-nodata);
  cursor: pointer;
  outline: none;
}

.zone[data-q="excellent"] {
  --zc: var(--q-excellent);
}

.zone[data-q="good"] {
  --zc: var(--q-good);
}

.zone[data-q="fair"] {
  --zc: var(--q-fair);
}

.zone[data-q="poor"] {
  --zc: var(--q-poor);
}

.zone-shape {
  fill: var(--zc);
  fill-opacity: .6;
  stroke: var(--zc);
  stroke-width: 2.5;
  stroke-linejoin: round;
  transition: fill .6s, stroke .6s, stroke-width .25s;
}

.zone:hover .zone-shape,
.zone.is-selected .zone-shape,
.zone:focus-visible .zone-shape {
  stroke-width: 5;
}

.zone-dot {
  fill: #fff;
  stroke: var(--zc);
  stroke-width: 3;
  transition: stroke .6s;
  transform-box: fill-box;
  transform-origin: center;
}

.zone-ring {
  fill: none;
  stroke: var(--zc);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.zone.is-selected .zone-ring {
  opacity: 1;
}

.zone-label {
  fill: #1b3550;
  font: 700 14px var(--font-body);
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.zm-ping {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  pointer-events: none;
}

.zm-info {
  margin: 12px 16px 0;
  padding: 14px 16px;
  border: 1px solid #e0ebf5;
  border-radius: 18px;
  background: #fbfdff;
}

.zm-info-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.zm-name {
  margin: 0;
  font: 800 18px/1.25 var(--font-display);
  letter-spacing: -.4px;
}

.zm-cat {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.zm-quality {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef3f7;
  color: #35536e;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.zm-quality::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, var(--q-nodata));
}

.zm-quality[data-q="excellent"] {
  --c: var(--q-excellent);
}

.zm-quality[data-q="good"] {
  --c: var(--q-good);
}

.zm-quality[data-q="fair"] {
  --c: var(--q-fair);
}

.zm-quality[data-q="poor"] {
  --c: var(--q-poor);
}

.zm-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.zm-stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.zm-stats dd {
  margin: 0;
  font: 800 26px/1.15 var(--font-display);
  letter-spacing: -.8px;
}

.zm-stats small {
  color: var(--subtle);
  font: 600 12px var(--font-body);
  letter-spacing: 0;
}

.zm-foot {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.zm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 12px 16px 0;
  list-style: none;
  color: #47627c;
  font-size: 12px;
  font-weight: 600;
}

.zm-legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.zm-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
}

.zm-note {
  margin: 0;
  padding: 8px 16px 14px;
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.5;
}

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

/* The map draws itself in, then zones recolour smoothly when the network changes. */
@media (prefers-reduced-motion: no-preference) {
  .js .zone-shape {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    fill-opacity: 0;
  }

  .zone-map.is-visible .zone-shape {
    animation: zm-draw 1.2s var(--ease) forwards;
    animation-delay: calc(var(--i) * 150ms + 300ms);
  }

  .zone-map.is-visible .zone-dot {
    animation: zm-pop .5s var(--ease) backwards;
    animation-delay: calc(var(--i) * 150ms + 1000ms);
  }

  .zone.is-selected .zone-ring {
    animation: zm-ring 1.8s ease-out infinite;
  }

  .zm-ping {
    animation: zm-ping 1.6s ease-out forwards;
  }
}

@keyframes zm-draw {
  0% {
    stroke-dashoffset: 1;
    fill-opacity: 0;
  }

  60% {
    stroke-dashoffset: 0;
    fill-opacity: 0;
  }

  100% {
    stroke-dashoffset: 0;
    fill-opacity: .6;
  }
}

@keyframes zm-pop {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes zm-ring {
  from {
    transform: scale(.7);
    opacity: .8;
  }

  to {
    transform: scale(2.1);
    opacity: 0;
  }
}

@keyframes zm-ping {
  from {
    transform: scale(.4);
    opacity: .8;
  }

  to {
    transform: scale(5);
    opacity: 0;
  }
}

/* 7. Form card ------------------------------------------------------------- */
.waitlist-card {
  padding: 25px 27px 20px;
  border: 1px solid #e0ebf5;
  border-radius: 25px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-card);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-kicker {
  margin-bottom: 4px;
  color: #0788d9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.35px;
}

.card-heading h2 {
  margin-bottom: 0;
  font-size: 25px;
  letter-spacing: -.8px;
}

.card-spark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 12px;
  background: #e8f6ff;
  color: #058fe8;
  font-size: 20px;
}

.card-description {
  margin: 8px 0 15px;
  color: var(--muted);
  font-size: 14px;
}

label {
  display: block;
  margin: 11px 0 6px;
  color: #304a64;
  font-size: 13px;
  font-weight: 700;
}

/* 16px inputs stop iOS Safari from zooming the page on focus. */
input[type="email"],
input[type="tel"],
input[type="text"] {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #dce7f1;
  border-radius: 11px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

input[type="email"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus {
  border-color: #56b8f3;
  box-shadow: 0 0 0 3px rgba(8, 124, 240, .10);
}

input::placeholder {
  color: #a0afbe;
}

.field-hint {
  margin: 5px 0 9px;
  color: var(--subtle);
  font-size: 12px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 13px 0 15px;
  color: #64788d;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.consent-row input {
  flex-shrink: 0;
  margin: 3px 0 0;
  accent-color: var(--blue);
}

.submit-button {
  width: 100%;
  min-height: 46px;
}

.form-status {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.form-status[data-state="error"] {
  color: var(--error);
}

/* 8. Features & how-it-works ---------------------------------------------- */
.feature-section {
  padding: 76px 0 86px;
  border-top: 1px solid #edf3f8;
  background: #fff;
}

.feature-section h2,
.how-section h2 {
  margin-bottom: 11px;
  font-size: clamp(29px, 3vw, 39px);
}

.section-intro {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.feature-card {
  padding: 24px 21px;
  border: 1px solid #e5eef6;
  border-radius: 19px;
  background: linear-gradient(155deg, #fff, #fbfdff);
  transition: transform .2s, box-shadow .2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(36, 94, 142, .08);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 20px;
}

.feature-icon svg {
  width: 44px;
  height: 44px;
  overflow: visible;
}

.feature-icon.blue {
  background: #e7f4ff;
  color: var(--blue);
}

.feature-icon.mint {
  background: #e2faf4;
  color: #0dbd9a;
}

.feature-card h3 {
  margin-bottom: 9px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -.3px;
  line-height: 1.4;
}

.feature-card p {
  margin-bottom: 0;
  color: #6b7f93;
  font-size: 14px;
  line-height: 1.7;
}

.how-section {
  padding: 62px 0;
  border-top: 1px solid #e9f2f8;
  background: linear-gradient(115deg, #f1f9ff, #f4fffb);
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 45px;
}

.how-grid .eyebrow {
  margin-bottom: 12px;
}

.how-grid h2 {
  margin-bottom: 0;
}

.how-grid>p {
  margin: 0;
  color: #5d7187;
  font-size: 16px;
  line-height: 1.75;
}

/* 9. Footer ---------------------------------------------------------------- */
.site-footer {
  padding: 25px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #7a8b9c;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.footer-brand .brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.footer-brand .brand-name {
  font-size: 20px;
}

/* 10. Motion --------------------------------------------------------------- */
/* All animation is opt-in, so visitors who prefer reduced motion get a still page. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* Fade-in: hidden only while JS is running (see the <head> script). */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity .8s var(--ease) var(--reveal-delay, 0ms),
      transform .8s var(--ease) var(--reveal-delay, 0ms);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .waitlist-card.is-highlighted {
    animation: ring-pulse 1.2s ease-out;
  }
}

@keyframes ring-pulse {
  from {
    box-shadow: 0 0 0 0 rgba(8, 124, 240, .35), var(--shadow-card);
  }

  to {
    box-shadow: 0 0 0 16px rgba(8, 124, 240, 0), var(--shadow-card);
  }
}

/* 11. Responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 35px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-links {
    gap: 18px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {

  .site-header,
  .section-wrap,
  .site-footer {
    width: min(100% - 34px, 560px);
  }

  .site-header {
    min-height: 75px;
    gap: 10px;
  }

  .brand-logo {
    width: 37px;
    height: 37px;
  }

  .brand-name {
    font-size: 22px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    padding: 10px 14px;
    font-size: 13px;
  }

  .hero {
    padding: 31px 0 55px;
    gap: 25px;
  }

  h1 {
    font-size: clamp(36px, 10vw, 48px);
    letter-spacing: -1.5px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .hero-side {
    display: flex;
    flex-direction: column;
  }

  .zone-map {
    border-radius: 23px;
  }

  .zone-label {
    display: none;
  }

  .zm-stats dd {
    font-size: 22px;
  }

  .waitlist-card {
    padding: 21px 18px 17px;
    border-radius: 20px;
  }

  .feature-section {
    padding: 57px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 20px;
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .site-footer {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .site-footer p {
    width: 100%;
    order: 3;
  }
}

/* 12. Success page ---------------------------------------------------------- */
.success {
  width: min(640px, calc(100% - 34px));
  margin: 0 auto;
  padding: 40px 0 70px;
  text-align: center;
}

.tick-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 26px;
}

.tick {
  display: block;
  width: 100%;
  height: 100%;
}

.tick-check {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 3px 3px rgba(0, 60, 120, .3));
}

.success h1 {
  margin-bottom: 12px;
  font-size: clamp(32px, 6vw, 46px);
}

.success-note {
  max-width: 480px;
  margin: 0 auto;
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
}

.survey-card {
  margin-top: 30px;
  padding: 26px 24px;
  border: 1px solid #e0ebf5;
  border-radius: 25px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-card);
}

.survey-card p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
}

.back-link {
  display: inline-block;
  margin-top: 22px;
}

@media (prefers-reduced-motion: no-preference) {
  .tick {
    animation: tick-pop .7s var(--ease) both;
  }

  .tick-check {
    stroke-dashoffset: 1;
    animation: tick-draw .6s .45s ease forwards;
  }

  .tick-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(8, 124, 240, .35);
    animation: tick-ring 2.4s 1s ease-out infinite;
  }
}

@keyframes tick-pop {
  from {
    transform: scale(.5);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes tick-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes tick-ring {
  from {
    transform: scale(1);
    opacity: .7;
  }

  to {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Feature illustrations and the history card ------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .wifi {
    animation: wifi-pulse 2.4s ease-in-out infinite;
  }

  .wifi2 {
    animation-delay: .3s;
  }

  .sig {
    transform-box: fill-box;
    transform-origin: bottom;
    animation: sig-rise 2.6s var(--ease) infinite;
  }

  .sig2 {
    animation-delay: .15s;
  }

  .sig3 {
    animation-delay: .3s;
  }

  .clock-hand {
    transform-box: view-box;
    transform-origin: 22px 31px;
    animation: clock-turn 8s linear infinite;
  }

  .cmp {
    transform-box: fill-box;
    transform-origin: bottom;
    animation: sig-rise 3.2s var(--ease) infinite;
  }

  .cmp2 {
    animation-delay: .2s;
  }

  .cmp3 {
    animation-delay: .4s;
  }

  .cmp4 {
    animation-delay: .6s;
  }
}

@keyframes wifi-pulse {

  0%,
  100% {
    opacity: .35;
  }

  50% {
    opacity: 1;
  }
}

@keyframes sig-rise {
  0% {
    transform: scaleY(.35);
  }

  40%,
  100% {
    transform: scaleY(1);
  }
}

@keyframes clock-turn {
  to {
    transform: rotate(360deg);
  }
}

.history-card {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
  margin-top: 22px;
  padding: 34px 34px 28px;
  border: 1px solid #e0ebf5;
  border-radius: 28px;
  background: linear-gradient(155deg, #fff, #f6fbff);
  box-shadow: var(--shadow-card);
}

.hc-copy .eyebrow {
  margin-bottom: 12px;
}

.hc-copy h3 {
  margin-bottom: 12px;
  font: 800 clamp(23px, 2.4vw, 29px)/1.2 var(--font-display);
  letter-spacing: -.8px;
}

.hc-copy>p {
  margin: 0 0 16px;
  color: #5d7187;
  font-size: 15px;
  line-height: 1.75;
}

.hc-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.hc-points li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.hc-points li::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
}

.hc-chart {
  min-width: 0;
}

.hc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
}

.hc-place {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.hc-flag {
  padding: 3px 11px;
  border-radius: 999px;
  background: #fdecd6;
  color: #b4600a;
  font-size: 12px;
  font-weight: 700;
}

.hc-flag[hidden] {
  display: none;
}

.hc-time {
  margin: 2px 0 8px;
  font: 800 28px/1.1 var(--font-display);
  letter-spacing: -.8px;
  font-variant-numeric: tabular-nums;
}

.hc-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}

.hc-values li {
  display: grid;
  gap: 1px;
  padding: 8px 10px;
  border: 1px solid #e3edf6;
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.hc-values i {
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: var(--c);
}

.hc-values b {
  color: var(--ink);
  font: 800 15px var(--font-display);
  font-variant-numeric: tabular-nums;
}

#hc-svg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: pan-y;
  cursor: col-resize;
}

.hc-gridline {
  stroke: #e3edf6;
  stroke-width: 1;
}

.hc-axis {
  fill: #7d8fa2;
  font: 600 11px var(--font-body);
}

.hc-axis-unit {
  fill: #9aabbb;
}

#hc-band {
  fill: #ee8a2b;
  fill-opacity: .1;
}

#hc-band-label {
  fill: #b4600a;
  font: 700 11px var(--font-body);
  text-anchor: middle;
}

#hc-scrub {
  stroke: #35536e;
  stroke-opacity: .35;
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
}

#hc-svg.hc-hidden #hc-scrub,
#hc-svg.hc-hidden #hc-dots {
  opacity: 0;
}

.hc-note {
  margin: 4px 0 0;
  color: var(--subtle);
  font-size: 12px;
}

@media (max-width: 980px) {
  .history-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 22px 22px;
  }
}

@media (max-width: 700px) {
  .hc-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hc-axis {
    font-size: 12px;
  }
}