.faq-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(20px, 4.2vw, 53px);
  border: 1px solid #fffaf2;
  border-radius: clamp(22px, 4vw, 42px);
  background: radial-gradient(ellipse at 98% 0, #f3dfc8, transparent 53%),
    linear-gradient(125deg, #f8e9d9, #fbf2e8 54%, #f4e4d1);
  box-shadow: 0 12px 33px #69372a0b, inset 0 0 30px #fffaf470;
}

.faq-panel::before {
  position: absolute;
  z-index: -1;
  inset: -57% -28% auto auto;
  width: 81%;
  height: 117%;
  transform: rotate(-39deg);
  border: 2px solid transparent;
  border-top-color: #d29440;
  border-radius: 50%;
  opacity: .73;
  content: "";
  pointer-events: none;
}

.faq-panel .section-title {
  margin-bottom: clamp(16px, 2.3vw, 27px);
}

.faq-panel .section-title::before {
  display: none;
}

.faq-panel .copy-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #90510d;
}

.faq-panel .copy-kicker::before,
.final-copy::before {
  width: 34px;
  height: 2px;
  background: currentColor;
  content: "";
}

.faq-panel h2,
.final-copy h2 {
  font-size: clamp(31px, 4.7vw, 57px);
  line-height: 1.03;
}

.faq-panel h2 em,
.final-copy h2 em {
  display: block;
}

.faq-panel h2 em {
  color: #945011;
}

.hc-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 9px 14px;
}

.hc-faq details {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ead5bf;
  border-radius: 14px;
  background: linear-gradient(155deg, #fffaf3, #fbf0e3);
  box-shadow: 0 3px 9px #7545200a;
}

.hc-faq summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 10px 17px;
  list-style: none;
  cursor: pointer;
  color: var(--wine);
}

.hc-faq summary::-webkit-details-marker {
  display: none;
}

.hc-faq summary:focus-visible {
  outline: 2px solid #a7651a;
  outline-offset: -3px;
  border-radius: 12px;
}

.hc-faq summary:hover {
  background: #fffaf3;
}

.hc-faq summary h3 {
  font: 650 clamp(14px, 1.48vw, 17px)/1.28 var(--display);
  overflow-wrap: anywhere;
}

.faq-toggle {
  display: grid;
  width: 26px;
  height: 26px;
  flex: none;
  place-items: center;
  border: 1px solid #e8d2b5;
  border-radius: 50%;
  color: #a66115;
}

.faq-toggle::before,
.faq-toggle::after {
  grid-area: 1 / 1;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.faq-toggle::after {
  transform: rotate(90deg);
}

.hc-faq details[open] .faq-toggle::after {
  transform: none;
}

.hc-faq details p {
  margin: 0 17px 15px;
  color: var(--muted);
  font-size: 14px;
}

.final-banner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  isolation: isolate;
  overflow: clip;
  min-height: clamp(330px, 37vw, 455px);
  margin-top: clamp(24px, 4vw, 50px);
  padding: clamp(27px, 3vw, 39px) clamp(29px, 5vw, 63px);
  border: 1px solid #d9945b;
  border-radius: clamp(22px, 5vw, 58px) clamp(22px, 6vw, 70px) clamp(21px, 3.8vw, 45px) clamp(21px, 3.8vw, 45px);
  background: radial-gradient(ellipse at 69% 0, #a12a45 0, transparent 49%),
    radial-gradient(ellipse at 90% 100%, #a8324d 0, transparent 64%),
    linear-gradient(140deg, #570b26, #2a0618 72%, #70132c);
  color: #fff4e7;
  box-shadow: 0 20px 35px #49142319, inset 0 1px 2px #ffe1aa4d;
}

.final-banner::before,
.final-banner::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.final-banner::before {
  z-index: -1;
  inset: 11% -24% -56% 40%;
  transform: rotate(-28deg);
  border: 1px solid #f6bb6f;
  border-top: 6px solid #ffd89c;
  border-radius: 56%;
  background: linear-gradient(160deg, #af284c 2%, #63122a 42%, #340618 72%);
  box-shadow: 0 -1px 7px #ffc36b, inset 0 7px 14px #ed9d494d;
}

.final-banner::after {
  z-index: -1;
  inset: auto -7% -16% 23%;
  height: 42%;
  transform: rotate(-8deg);
  background: url("outcomes-ribbon.svg") center / 100% 100% no-repeat;
  filter: drop-shadow(0 -2px 9px #f3a34d45);
}

.final-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.final-copy::before {
  display: block;
  margin-bottom: 15px;
  color: #ffc75e;
}

.final-copy h2 {
  font-size: clamp(31px, 4.2vw, 50px);
}

.final-copy h2 em {
  color: #ffc35c;
}

.final-copy p {
  max-width: 34ch;
  margin-top: 16px;
  color: #fff1e6;
  font-size: clamp(15px, 1.65vw, 19px);
  line-height: 1.5;
}

.final-copy .cta {
  min-height: 52px;
  margin-top: 23px;
  padding-inline: clamp(15px, 3vw, 32px);
  background: linear-gradient(135deg, #ffe6a2, #ffca66 58%, #efa43f);
  color: #461023;
  box-shadow: 0 5px 15px #21071066, inset 0 1px 1px #fff9dc;
}

.final-copy .cta:hover {
  background: #ffdf91;
}

.final-device {
  container-type: inline-size;
  position: relative;
  width: 96%;
  min-width: 0;
  margin-inline-start: -2%;
  margin-block: 3% -5%;
  filter: drop-shadow(0 14px 15px #23051080);
}

.final-screen {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2.4cqw;
  width: 79%;
  aspect-ratio: 1.42;
  margin-inline: 19% 2%;
  padding: 3.4cqw;
  transform: perspective(780px) rotateY(-8deg) rotateZ(5deg) skewX(-7deg);
  transform-origin: center bottom;
  border: clamp(4px, 1.4cqw, 8px) solid #321019;
  border-radius: 3cqw;
  background: radial-gradient(ellipse at 5% 15%, #fff9ee, transparent 60%), linear-gradient(#fae5d8, #fff4e5);
  color: #4c1028;
  box-shadow: 0 0 0 1px #ca8c74, inset 0 0 9px #e6ae7a48;
}

.final-screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2cqw;
  border-bottom: 1px solid #e9cab7;
  padding-bottom: 1.5cqw;
  font: 700 3.45cqw/1.1 var(--display);
}

.final-screen-head small {
  color: #834322;
  font: 750 1.65cqw/1.1 Onest, sans-serif;
  text-transform: uppercase;
}

.final-screen-data {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 3cqw;
}

.final-score {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.1cqw;
  text-align: center;
  font-size: 2.2cqw;
  font-weight: 700;
  line-height: 1.16;
}

.final-score strong {
  display: grid;
  width: 100%;
  max-width: 23cqw;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6e7 0 58%, transparent 59%),
    conic-gradient(from 12deg, #ffdb87, #e58b23 72%, #f1dac0 72%);
  font-size: 7.5cqw;
  letter-spacing: -.07em;
}

.final-meters {
  display: grid;
  gap: 1.45cqw;
}

.final-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .42cqw 1cqw;
  font-size: 2.05cqw;
  font-weight: 750;
  line-height: 1.25;
}

.final-meter::after {
  grid-column: 1 / -1;
  height: .95cqw;
  border-radius: 10px;
  background: linear-gradient(to right, #ffce6d, #d98824) left / var(--score) 100% no-repeat, #efdbca;
  content: "";
}

.final-screen-footer {
  display: flex;
  justify-content: space-between;
  gap: 1cqw;
  border-top: 1px solid #e9cab7;
  padding-top: 1.25cqw;
  font-size: 1.85cqw;
  font-weight: 700;
}

.final-keyboard {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -6%;
  overflow: visible;
}

@media (max-width: 860px) {
  .final-banner {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .final-device {
    width: min(100%, 510px);
    margin: 0 auto -11px;
  }

  .final-banner::before {
    inset: 48% -34% -47% 15%;
  }
}

@media (max-width: 580px) {
  .hc-faq {
    grid-template-columns: 1fr;
  }

  .final-copy .cta {
    width: fit-content;
    max-width: 100%;
  }
}
