.hero-copy {
  min-width: 0;
}

/* The product in the first screen: the sample flight's card drawn in the app's own look, as text that stays
   readable at every size, over the brand's radar on a computer. */
.hero-visual {
  position: relative;
  isolation: isolate;
  min-width: 0;
  max-width: 560px;
  margin: 44px 0 0;
}

.hero-card {
  container-type: inline-size;
  display: grid;
  gap: 16px;
  padding: 22px 24px 24px;
  background: #18191e;
  border: 1px solid #34363e;
  border-radius: 16px;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .75), 0 0 80px -16px rgba(233, 185, 73, .2);
  line-height: 1.45;
}

.hero-card p {
  margin: 0;
}

.hero-card strong {
  font-weight: 800;
  letter-spacing: -.02em;
}

.hero-card span {
  color: var(--muted);
  font-size: 13px;
}

.hc-trip {
  display: grid;
  grid-template-columns: auto minmax(40px, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.hc-end {
  display: grid;
  gap: 2px;
}

.hc-end strong {
  font-size: 22px;
  line-height: 1.2;
}

.hc-land {
  text-align: right;
}

.hc-length {
  position: relative;
  height: 27px;
  text-align: center;
}

.hc-length::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 0;
  border-top: 2px solid #3d4049;
}

.hc-length::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 8px;
  background: radial-gradient(circle at 4px 50%, #c9ced6 3.5px, transparent 4px), radial-gradient(circle at calc(100% - 4px) 50%, #c9ced6 3.5px, transparent 4px);
}

.hc-length span {
  font-size: 12px;
  white-space: nowrap;
}

.hc-airline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.hc-airline strong {
  font-size: 15px;
}

.hc-work,
.hc-cash,
.hc-awards {
  border-top: 1px solid #2a2c33;
  padding-top: 15px;
}

.hc-work {
  display: grid;
  gap: 3px;
}

.hc-work strong {
  font-size: 16px;
  line-height: 1.35;
}

.hc-cash {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.hc-cash strong {
  color: var(--gold);
  font-size: 30px;
  line-height: 1.1;
}

.hc-awards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.hc-awards p {
  display: grid;
  gap: 6px;
  align-content: start;
}

.hc-awards strong {
  font-size: 16px;
  line-height: 1.35;
}

.hc-awards small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-card .hc-good {
  color: var(--green);
}

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

.hero-card .hc-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: #2a2c33;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

/* A narrow card puts the two ways to pay with points one under the other. */
@container (max-width: 470px) {
  .hc-awards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A phone's card puts the flight's length across the top, over the two times. */
@container (max-width: 400px) {
  .hc-trip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 10px;
  }
  .hc-length {
    grid-column: 1 / -1;
    order: -1;
  }
  .hc-end strong {
    font-size: 20px;
  }
}

.hero-visual figcaption {
  margin-top: 14px;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.6;
}

.hero-radar,
.hero-sweep {
  display: none;
}

@media (min-width: 961px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
    align-items: center;
    gap: clamp(36px, 4vw, 60px);
  }

  .hero h1 {
    font-size: clamp(44px, 4.3vw, 56px);
    line-height: 1.08;
  }

  .hero-visual {
    max-width: none;
    margin: 0;
  }

  .hero-radar,
  .hero-sweep {
    display: block;
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    width: 112%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
  }

  .hero-radar circle,
  .hero-radar line {
    fill: none;
    stroke: rgba(201, 206, 214, .1);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
  }

  .hero-radar circle:first-child {
    stroke: rgba(233, 185, 73, .32);
  }

  .hero-sweep {
    border-radius: 50%;
    background: conic-gradient(from 40deg, rgba(233, 185, 73, 0) 0deg 270deg, rgba(233, 185, 73, .07) 310deg, rgba(233, 185, 73, .2) 360deg);
  }
}

@media (max-width: 640px) {
  .hero-visual {
    margin-top: 32px;
  }

  .hero-card {
    padding: 18px 18px 20px;
    gap: 14px;
  }
}
