/* The Queen of Hearts pages (product, privacy, terms, safety and support), in the style of the
   Queen card: ivory, gilt frames, burgundy type and the brand fonts with their ornaments
   (see assets/fonts/OFL.txt). */

@font-face {
  font-family: "Queen of Hearts Display";
  src: url("fonts/QueenOfHeartsDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Queen of Hearts Text";
  src: url("fonts/QueenOfHeartsText-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Queen of Hearts Text";
  src: url("fonts/QueenOfHeartsText-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Queen of Hearts Text";
  src: url("fonts/QueenOfHeartsText-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

body.qoh-product {
  --qp-burgundy: #790000;
  --qp-heart: #98020e;
  --qp-gold: #c38f38;
  --qp-gilt: #ce993d;
  --qp-antique: #8a5f1c;
  --qp-espresso: #3b1a12;
  --qp-ivory: #fdf7e9;
  --qp-paper: #fffbf3;
  --qp-parchment: #f7ebd3;
  --qp-hairline: rgba(206, 153, 61, 0.5);
  --qp-display: "Queen of Hearts Display", "Cinzel Decorative", Georgia, serif;
  --qp-text: "Queen of Hearts Text", "Cormorant Garamond", Georgia, serif;
  --font-display: var(--qp-display);
  --font-body: var(--qp-text);
  font-family: var(--qp-text);
}

body.qoh-product .nav-product-text strong {
  font-family: var(--qp-display);
}

body.qoh-product main {
  color: var(--qp-espresso);
  background:
    radial-gradient(circle at 8% 4%, rgba(206, 153, 61, 0.12), transparent 26rem),
    radial-gradient(circle at 96% 42%, rgba(152, 2, 14, 0.05), transparent 30rem),
    var(--qp-ivory);
  font-size: 1.25rem;
  line-height: 1.55;
}

.qp-wrap {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.qp-eyebrow {
  margin: 0 0 0.6rem;
  color: var(--qp-antique);
  font-family: var(--qp-text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.qp-eyebrow::before,
.qp-eyebrow::after {
  content: "\2726";
  margin-inline: 0.55em;
  color: var(--qp-gold);
  font-family: var(--qp-display);
  letter-spacing: 0;
}

.qp-heading {
  max-width: 760px;
  margin: 0 auto 2.75rem;
  text-align: center;
}

/* As on the Queen card, the display face is kept for the wordmark and short names. */
body.qoh-product h2 {
  margin: 0;
  color: var(--qp-burgundy);
  font-family: var(--qp-text);
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}

body.qoh-product h3 {
  margin: 0;
  color: var(--qp-burgundy);
  font-family: var(--qp-text);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
}

.qp-heading p,
.qp-feature-copy > p {
  margin: 1rem 0 0;
}

/* Hero: the Queen card */

.qp-hero {
  padding: clamp(20px, 4vw, 48px) 0 clamp(48px, 7vw, 88px);
}

/* All five Queen of Hearts pages share one hero height, sized to fit the tallest of them
   (Safety and Support) at each width, with the content centred inside. */
.qp-hero-card {
  position: relative;
  display: grid;
  min-height: clamp(595px, 33.4vw + 250px, 700px);
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
  align-content: center;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(48px, 6vw, 80px) clamp(28px, 5vw, 72px);
  border: 2px solid var(--qp-gilt);
  background:
    radial-gradient(circle at 74% 46%, rgba(255, 255, 255, 0.9), transparent 26rem),
    var(--qp-ivory);
  box-shadow: 0 30px 70px -40px rgba(59, 26, 18, 0.45);
}

.qp-hero-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--qp-gilt);
  pointer-events: none;
}

.qp-index {
  position: absolute;
  color: var(--qp-heart);
  font-family: var(--qp-text);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
}

.qp-index-tl {
  top: 30px;
  left: 32px;
}

.qp-index-br {
  right: 32px;
  bottom: 30px;
  transform: rotate(180deg);
}

.qp-hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
}

.qp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.4rem;
  padding: 0.35rem 1rem 0.35rem 0.4rem;
  border: 1px solid var(--qp-hairline);
  border-radius: 999px;
  color: var(--qp-antique);
  background: var(--qp-paper);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.qp-kicker img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(59, 26, 18, 0.18);
}

body.qoh-product .qp-wordmark {
  margin: 0;
  color: var(--qp-burgundy);
  font-family: var(--qp-display);
  font-size: clamp(2.3rem, 4.3vw, 3.8rem);
  font-weight: 400;
  line-height: 1.08;
  text-transform: uppercase;
  text-wrap: balance;
}

.qp-rule {
  margin: 0.4rem 0 1.4rem;
  color: var(--qp-gold);
  font-family: var(--qp-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.qp-tagline {
  margin: 0;
  color: var(--qp-burgundy);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

.qp-subline {
  margin: 0.75rem 0 0;
  color: var(--qp-burgundy);
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  text-wrap: balance;
}

.qp-motto {
  margin: 1.2rem 0 0;
  color: var(--qp-antique);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-style: italic;
}

.qp-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.qp-store-pill,
.qp-button-royal,
.qp-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  font-family: var(--qp-text);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.qp-store-pill,
.qp-button-royal {
  color: var(--qp-ivory);
  background: linear-gradient(135deg, var(--qp-burgundy), #a3141c);
  box-shadow: 0 10px 24px -12px rgba(121, 0, 0, 0.7);
}

.qp-store-pill::before,
.qp-button-royal::before {
  content: "\265B";
  color: #e8c27a;
  font-family: var(--qp-display);
}

.qp-button-royal {
  transition: filter 160ms ease, transform 160ms ease;
}

.qp-button-royal:hover,
.qp-button-royal:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

/* The privacy, terms, safety and support heroes carry a paragraph instead of the taglines. */
.qp-hero-lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--qp-espresso);
  font-size: clamp(1.15rem, 1.6vw, 1.32rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.qp-hero-meta {
  max-width: 560px;
  margin: 1.1rem auto 0;
  padding-inline: 16px;
  color: var(--qp-antique);
  font-size: 1rem;
  line-height: 1.45;
  text-align: center;
}

.qp-hero-meta span {
  white-space: nowrap;
}

.qp-button {
  border: 1px solid var(--qp-gilt);
  color: var(--qp-burgundy);
  background: var(--qp-paper);
  transition: background 160ms ease, transform 160ms ease;
}

.qp-button:hover,
.qp-button:focus-visible {
  background: #fff3dc;
  transform: translateY(-1px);
}

.qp-hero-art {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
}

.qp-medallion {
  width: min(100%, 440px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(121, 0, 0, 0.16));
}

.qp-hero-art .qp-phone {
  position: absolute;
  right: -4%;
  bottom: -14%;
  --w: clamp(120px, 14vw, 180px);
  transform: rotate(7deg);
}

.qp-star {
  position: absolute;
  color: var(--qp-gold);
  font-family: var(--qp-display);
  font-size: 2.4rem;
  line-height: 1;
}

.qp-star-a {
  top: 2%;
  right: 6%;
}

.qp-star-b {
  bottom: 8%;
  left: 2%;
  font-size: 1.9rem;
}

/* Phones */

.qp-phone {
  --w: 240px;
  position: relative;
  flex: none;
  width: var(--w);
  margin: 0;
  padding: calc(var(--w) * 0.035);
  border-radius: calc(var(--w) * 0.16);
  background: linear-gradient(150deg, #4a2a1d 0%, #160806 45%, #2c150d 100%);
  box-shadow:
    0 0 0 1px rgba(206, 153, 61, 0.55),
    0 28px 50px -24px rgba(59, 26, 18, 0.6);
}

.qp-phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 1391;
  border-radius: calc(var(--w) * 0.13);
  background: var(--qp-parchment);
}

.qp-phone::after {
  content: "";
  position: absolute;
  top: calc(var(--w) * 0.07);
  left: 50%;
  width: 28%;
  height: calc(var(--w) * 0.075);
  border-radius: 999px;
  background: #0b0503;
  transform: translateX(-50%);
}

.qp-phones {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.qp-phones .qp-phone {
  --w: clamp(112px, 24vw, 236px);
}

.qp-phones .qp-phone + .qp-phone {
  margin-left: calc(var(--w) * -0.2);
}

.qp-phones-two .qp-phone:first-child {
  z-index: 2;
  transform: rotate(-4deg);
}

.qp-phones-two .qp-phone:last-child {
  transform: translateY(12%) rotate(5deg);
}

.qp-phones-three .qp-phone:nth-child(1) {
  transform: translateY(6%) rotate(-7deg);
}

.qp-phones-three .qp-phone:nth-child(2) {
  z-index: 2;
  --w: clamp(128px, 27vw, 262px);
}

.qp-phones-three .qp-phone:nth-child(3) {
  transform: translateY(6%) rotate(7deg);
}

/* Size the fanned phones to their column, so a fan never pushes the page sideways. */
@supports (width: 1cqi) {
  .qp-phones {
    container-type: inline-size;
  }

  .qp-phones-two .qp-phone {
    --w: min(236px, 46cqi);
  }

  .qp-phones-three .qp-phone {
    --w: min(236px, 35cqi);
  }

  .qp-phones-three .qp-phone:nth-child(2) {
    --w: min(262px, 39cqi);
  }
}

/* Sections */

.qp-section {
  padding: clamp(64px, 9vw, 112px) 0;
  overflow-x: clip;
}

.qp-band {
  border-block: 1px solid var(--qp-hairline);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.7), transparent 30rem),
    var(--qp-parchment);
}

.qp-journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.qp-journey li,
.qp-routes article {
  position: relative;
  padding: 30px 26px 28px;
  border: 1px solid var(--qp-hairline);
  border-radius: 20px;
  background: var(--qp-paper);
  box-shadow: 0 18px 40px -32px rgba(59, 26, 18, 0.5);
}

.qp-journey li::after,
.qp-routes article::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(206, 153, 61, 0.22);
  border-radius: 15px;
  pointer-events: none;
}

.qp-step-mark {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--qp-gold);
  font-family: var(--qp-display);
  font-size: 2.6rem;
  line-height: 1;
}

.qp-step-mark span {
  color: var(--qp-burgundy);
  font-size: 1.6rem;
}

.qp-journey p:not(.qp-step-mark),
.qp-routes p:not(.qp-step-mark) {
  margin: 0.6rem 0 0;
  font-size: 1.15rem;
}

.qp-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.qp-feature-reverse .qp-feature-copy {
  order: 2;
}

.qp-feature-copy {
  max-width: 560px;
}

.qp-feature-copy .qp-eyebrow::before {
  margin-left: 0;
}

.qp-rounds,
.qp-points {
  display: grid;
  gap: 14px;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.qp-rounds li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  font-size: 1.15rem;
}

.qp-rounds .qp-numeral {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--qp-gilt);
  border-radius: 50%;
  color: var(--qp-burgundy);
  background: var(--qp-paper);
  font-family: var(--qp-display);
  font-size: 1.3rem;
}

.qp-rounds strong {
  display: block;
  color: var(--qp-burgundy);
  font-size: 1.35rem;
  font-weight: 600;
}

.qp-points li {
  position: relative;
  padding-left: 1.8rem;
  font-size: 1.15rem;
}

.qp-points li::before {
  content: "\2665";
  position: absolute;
  top: 0.05em;
  left: 0;
  color: var(--qp-heart);
  font-family: var(--qp-display);
  font-size: 1.05rem;
}

.qp-note {
  color: var(--qp-antique);
  font-style: italic;
}

.qp-feature-copy .qp-note {
  margin-top: 1.4rem;
}

/* Membership */

.qp-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.qp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 32px;
  border: 1px solid var(--qp-hairline);
  border-radius: 22px;
  background: var(--qp-paper);
}

body.qoh-product .qp-plan h3 {
  font-family: var(--qp-display);
  font-size: 2rem;
  font-weight: 400;
}

.qp-plan-lede {
  margin: 0.3rem 0 1.2rem;
  color: var(--qp-antique);
  font-style: italic;
}

.qp-plan .qp-points {
  margin-top: 0;
  gap: 10px;
}

.qp-plan-gold {
  border: 2px solid var(--qp-gilt);
  box-shadow: 0 24px 50px -34px rgba(138, 95, 28, 0.8);
}

.qp-plan-gold::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, #b07b2a, #e8c27a, #b07b2a);
}

.qp-plan-platinum {
  border-color: #5a0000;
  color: #fbeedd;
  background:
    radial-gradient(circle at 80% 0%, rgba(232, 194, 122, 0.22), transparent 18rem),
    linear-gradient(160deg, #8a0a12 0%, var(--qp-burgundy) 55%, #520000 100%);
  box-shadow: 0 30px 60px -34px rgba(121, 0, 0, 0.9);
}

body.qoh-product .qp-plan-platinum h3 {
  color: #fff4e2;
}

.qp-plan-platinum .qp-plan-lede {
  color: #e8c27a;
}

.qp-plan-platinum .qp-points li::before {
  color: #e8c27a;
}

.qp-fineprint {
  max-width: 860px;
  margin: 2rem auto 0;
  color: var(--qp-espresso);
  font-size: 1.05rem;
  text-align: center;
}

/* Safety */

.qp-safety {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.qp-safety article {
  padding: 28px 24px;
  border-top: 2px solid var(--qp-gilt);
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.95), rgba(255, 251, 243, 0.4));
}

.qp-safety-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 1rem;
  border: 1px solid var(--qp-gilt);
  border-radius: 50%;
  color: var(--qp-burgundy);
  background: var(--qp-paper);
  font-family: var(--qp-display);
  font-size: 1.5rem;
  line-height: 1;
}

.qp-safety p:not(.qp-safety-mark) {
  margin: 0.5rem 0 0;
  font-size: 1.12rem;
}

.qp-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 2.4rem;
}

/* Closing card */

.qp-closing {
  padding: 0 0 clamp(64px, 9vw, 112px);
}

.qp-closing-card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 28px;
  border: 2px solid var(--qp-gilt);
  background: var(--qp-paper);
  text-align: center;
}

.qp-closing-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--qp-gilt);
  pointer-events: none;
}

.qp-closing-card img {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.2rem;
  border-radius: 22px;
  box-shadow: 0 12px 24px -12px rgba(59, 26, 18, 0.55);
}

body.qoh-product .qp-closing-card .qp-wordmark {
  font-size: clamp(2rem, 5vw, 3rem);
}

.qp-closing-card p {
  margin: 0.8rem 0 0;
}

/* Privacy, terms, safety and support: page tabs, support routes and the document on a sheet */

.qp-doc-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.qp-doc-tabs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.4rem 1.15rem;
  border: 1px solid var(--qp-hairline);
  border-radius: 999px;
  color: var(--qp-burgundy);
  background: var(--qp-paper);
  font-size: 1.12rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease;
}

.qp-doc-tabs a:hover,
.qp-doc-tabs a:focus-visible {
  background: #fff3dc;
}

.qp-doc-tabs a[aria-current="page"] {
  border-color: var(--qp-burgundy);
  color: var(--qp-ivory);
  background: linear-gradient(135deg, var(--qp-burgundy), #a3141c);
}

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

.qp-doc-section {
  padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 112px);
}

.qp-doc-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 48px);
}

.qp-toc {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 20px 14px 16px;
  border: 1px solid var(--qp-hairline);
  border-radius: 20px;
  background: var(--qp-paper);
}

.qp-toc summary {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0 8px;
  color: var(--qp-antique);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.qp-toc summary::-webkit-details-marker {
  display: none;
}

.qp-toc summary::before {
  content: "\2726";
  color: var(--qp-gold);
  font-family: var(--qp-display);
  letter-spacing: 0;
}

.qp-toc summary::after {
  content: "+";
  margin-left: auto;
  color: var(--qp-gold);
  font-size: 1.3rem;
  letter-spacing: 0;
}

.qp-toc[open] summary::after {
  content: "\2212";
}

.qp-toc ol {
  display: grid;
  gap: 2px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.qp-toc a {
  display: grid;
  grid-template-columns: 1.7em minmax(0, 1fr);
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--qp-espresso);
  font-size: 1.06rem;
  line-height: 1.25;
  text-decoration: none;
}

.qp-toc a span {
  color: var(--qp-antique);
  font-variant-numeric: lining-nums;
  font-weight: 600;
}

.qp-toc a:hover,
.qp-toc a:focus-visible {
  color: var(--qp-burgundy);
  background: #fff3dc;
}

.qp-doc-sheet {
  position: relative;
  padding: clamp(36px, 6vw, 72px) clamp(24px, 6vw, 76px);
  border: 1px solid var(--qp-gilt);
  background: var(--qp-paper);
  box-shadow: 0 30px 70px -48px rgba(59, 26, 18, 0.5);
}

.qp-doc-sheet::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(206, 153, 61, 0.35);
  pointer-events: none;
}

body.qoh-product .qp-doc-sheet h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  text-align: center;
}

body.qoh-product .qp-doc-sheet h2::after {
  content: "\E001";
  display: block;
  margin: 0.4rem 0 1.8rem;
  color: var(--qp-gold);
  font-family: var(--qp-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 400;
  line-height: 1;
}

body.qoh-product .qp-doc-sheet h3 {
  margin: 2.2rem 0 0.7rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(206, 153, 61, 0.35);
  font-size: clamp(1.45rem, 2.2vw, 1.7rem);
  scroll-margin-top: 24px;
}

body.qoh-product .qp-doc-sheet h2 + h3 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.qp-doc-sheet p {
  font-size: 1.22rem;
  line-height: 1.65;
}

.qp-doc-sheet p + p {
  margin-top: 1rem;
}

.qp-doc-sheet a,
.qp-feature-copy a {
  color: var(--qp-burgundy);
  text-decoration-color: var(--qp-gilt);
  text-underline-offset: 0.18em;
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .qp-hero-copy > *,
  .qp-hero-art {
    animation: qp-rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .qp-hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .qp-hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .qp-hero-copy > :nth-child(4) { animation-delay: 240ms; }
  .qp-hero-copy > :nth-child(5) { animation-delay: 300ms; }
  .qp-hero-copy > :nth-child(6) { animation-delay: 360ms; }
  .qp-hero-copy > :nth-child(7) { animation-delay: 420ms; }
  .qp-hero-art { animation-delay: 200ms; }

  .qp-star {
    animation: qp-twinkle 4.8s ease-in-out infinite;
  }

  .qp-star-b {
    animation-delay: 2.4s;
  }
}

@keyframes qp-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes qp-twinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.55; transform: scale(0.82) rotate(22deg); }
}

/* Layout */

@media (max-width: 1020px) {
  .qp-journey,
  .qp-safety {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qp-plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin-inline: auto;
  }

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

  .qp-doc-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
}

@media (max-width: 880px) {
  .qp-hero-card {
    min-height: clamp(905px, 1310px - 63.3vw, 965px);
    grid-template-columns: minmax(0, 1fr);
    padding-top: 64px;
  }

  .qp-hero-art {
    order: -1;
    min-height: 0;
    padding-bottom: 12px;
  }

  .qp-medallion {
    width: min(78%, 340px);
  }

  .qp-hero-art .qp-phone {
    right: 0;
    bottom: -4%;
    --w: clamp(84px, 22vw, 130px);
  }

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

  .qp-feature-reverse .qp-feature-copy {
    order: 0;
  }

  .qp-feature-copy {
    max-width: none;
  }

  .qp-doc-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .qp-toc {
    position: static;
    max-height: none;
  }
}

@media (max-width: 560px) {
  body.qoh-product main {
    font-size: 1.15rem;
  }

  .qp-hero-card {
    min-height: 1005px;
    padding: 64px 20px 44px;
  }

  .qp-index {
    font-size: 2rem;
  }

  .qp-index-tl {
    top: 22px;
    left: 22px;
  }

  .qp-index-br {
    right: 22px;
    bottom: 22px;
  }

  .qp-journey,
  .qp-safety,
  .qp-routes {
    grid-template-columns: minmax(0, 1fr);
  }

  .qp-plan {
    padding: 30px 22px 28px;
  }

  .qp-doc-sheet {
    padding: 32px 22px;
  }

  .qp-doc-sheet::before {
    inset: 6px;
  }
}
