/* Questions: page parts only. Shared top bar, footer, buttons, cards, band and tokens live in sales.css.
   Sizes are measured on the design pictures (final6 questions-390, final5 questions-1440). */

.qa {
  position: relative;
  background: var(--ground);
  overflow: hidden;
}

/* line breaks the design pictures use: bm on a phone, bd on a computer */
.bd { display: none; }

/* ---------- hero ---------- */
.qa-hero {
  position: relative;
  padding-top: 2px;
  text-align: center;
}

.qa-hero h1 {
  font-size: 32px;
}

.qa-lead {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
}

.qa-hero-art {
  position: relative;
  margin: 10px calc(var(--edge) * -1) 0;
  container-type: inline-size;
}

.qa-hero-art img {
  width: 100%;
}

.qa-pin-route { display: none; }

/* the real chip lies over the spot where the picture had its painted chip */
.qa-hero-art .chip {
  position: absolute;
  left: var(--edge);
  top: 82.4%;
  min-width: 25.6%;
  min-height: 14.2%;
  padding: 0 7px;
  gap: 0.3em;
  justify-content: center;
  font-size: 2.85cqw; /* fix round 3: about 100 x 23 px at 390, as the design */
}

.qa-hero-art .chip svg {
  width: 1em;
  min-width: 1em;
  height: 1.25em;
  flex: none;
}

/* ---------- the dotted route on a phone: from the chip down to the band ---------- */
.qa-route {
  position: relative;
}

@media (max-width: 899px) {
  .qa-route::before {
    content: "";
    position: absolute;
    left: 8px;
    width: 5px;
    top: calc(var(--gap-sec) * -1 - 9px);
    bottom: calc(var(--gap-sec) * -1);
    background: radial-gradient(circle, var(--coral) 1.7px, transparent 2.2px) 50% 0 / 5px 7.5px repeat-y;
  }
  /* fix round 4: card corners about 12 px, as the phone design (were 20) */
  .qa-card { border-radius: var(--radius-sm); }
  /* fix round 3: the first card higher, top at about y 343 as the design */
  .qa-route .qa-list { margin-top: calc(var(--gap-sec) - 5px); }
}

/* ---------- the answers ---------- */
.qa-list {
  margin-top: var(--gap-sec);
  display: grid;
  gap: var(--gap-item);
}

.qa-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: var(--pad-card);
}

/* the face: a phone drawing (the design's phone set) or, on a computer, the large drawing */
.qa-pic { display: contents; }
.qa-pic > source { display: none; }

.qa-face {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--coral);
  background: var(--sun-soft);
}

/* phone letter sizes (fix round 2): title about 15 px, answer about 13 px, regular weight, so card 2 wraps in 2 lines */
.qa-card h2 {
  font-size: 15px;
  line-height: 1.15;
}

.qa-card p {
  margin-top: 9px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
}

.qa-wide p {
  max-width: 228px;
}

.qa-card .link-more {
  margin-top: 4px;
  font-size: 15px;
  text-decoration-thickness: 1.5px;
}

/* ---------- the last band ---------- */
.qa-band {
  margin-top: var(--gap-sec);
  overflow: hidden;
}

/* fix round 5, phone: the picture about 15 percent larger, flush on the band's right and foot (cut without its faded
   right side and foot), only its left side fades; the lead breaks after "and", clear of the picture */
.qa-band-in {
  display: grid;
  grid-template-columns: 1fr 180px;
  align-items: stretch;
}

.qa-band-text {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: var(--gap-item) 0;
}

.qa-band h2 {
  font-size: 20px;
}

.qa-band p {
  margin: 10px 0 var(--gap-item);
  font-weight: 400; /* fix round 4: regular, as the phone design (was 500) */
  font-size: 13px; /* fix round 5: 13 px so "Sign in with Google and" ends at least 16 px before the picture */
  line-height: 1.35;
}

.qa-band .btn {
  min-height: 46px;
  min-width: 130px;
  padding: 0 18px;
  font-size: 17px;
}

.qa-band-art {
  display: block;
  align-self: end;
  width: calc(100% + 28px + var(--edge));
  margin-left: -28px;
  margin-right: calc(var(--edge) * -1);
}

.qa-band-art img {
  width: 100%;
}

/* ---------- computer ---------- */
@media (min-width: 900px) {
  .bd { display: inline; }
  .bm { display: none; }

  .qa-hero {
    display: grid;
    grid-template-columns: 28.9% 71.1%;
    align-items: start;
    padding-top: 6px;
    text-align: left;
  }

  .qa-hero-text {
    padding-top: 113px;
  }

  .qa-hero h1 {
    font-size: clamp(56px, 5.4vw, 78px);
  }

  .qa-lead {
    margin-top: 10px;
    font-size: clamp(20px, 1.9vw, 27px);
    font-weight: 600;
  }

  .qa-hero-art {
    margin: 0;
  }

  /* the dashed route from the pin left of the picture to the dashes painted on its rug */
  .qa-pin-route {
    display: block;
    position: absolute;
    right: 100%;
    bottom: calc(6.8% - 10px);
    width: 370px;
    height: 160px;
    max-width: none;
  }

  .qa-hero-art .chip {
    left: 71.6%;
    top: 78.6%;
    min-width: 24.8%;
    min-height: 12.6%;
    padding: 0 12px;
    font-size: 3cqw;
  }

  .qa-hero-art .chip svg {
    display: none;
  }

  .qa-list {
    grid-template-columns: 1fr 1fr;
    gap: var(--pad-card);
  }

  .qa-wide {
    grid-column: 1 / -1;
  }

  .qa-card {
    grid-template-columns: clamp(104px, 11.95vw, 172px) 1fr;
    gap: var(--gap-item);
    align-items: start;
    padding: var(--pad-card);
  }

  .qa-face {
    width: clamp(104px, 11.95vw, 172px);
    height: clamp(104px, 11.95vw, 172px);
    border-width: 2.5px;
  }

  /* computer letter sizes (fix round 2): a little larger, same line breaks as the design;
     the measured sizes at 1440 and up, shrinking with the window below it so 900 is not one word a line */
  .qa-card h2 {
    font-size: clamp(22px, 2.5vw, 36px);
    line-height: 1.12;
    letter-spacing: -0.01em;
  }

  .qa-card p {
    margin-top: 12px;
    max-width: 13.6em;
    font-size: clamp(17px, 1.737vw, 25px);
    font-weight: 500;
    line-height: 1.38;
  }

  /* card 1 keeps the design's three lines: "shared." on its own line */
  .qa-card:first-child p {
    max-width: 12.8em;
  }

  .qa-card p.qa-del {
    max-width: none;
  }

  .qa-wide p {
    max-width: 34em;
  }

  .qa-card .link-more {
    margin-top: 2px;
    font-size: 26px;
    text-decoration-thickness: 2px;
  }

  .qa-band-in {
    grid-template-columns: 1fr 64.7%;
  }

  .qa-band-text {
    padding: var(--gap-head) 0;
  }

  .qa-band h2 {
    font-size: 52px;
  }

  .qa-band p {
    margin: 14px 0 var(--gap-head);
    font-weight: 500; /* the computer keeps its weight */
    font-size: 24px;
    max-width: 14em;
  }

  .qa-band .btn {
    min-width: 250px;
    min-height: 60px;
    font-size: 30px;
  }

  .qa-band-art {
    width: calc(100% + 24px);
    margin-left: 0;
    margin-right: -24px;
  }
}
