/* Noctave Plus (task 4.4): the page that presents it, in the look of the home page (styles.css,
   then ecrin.css first; task 7.0f: the night sky, Écrin keys and panels). It sells nothing:
   Noctave Plus is bought in the app, through Google Play (task « Google Play Billing »). */

.plus-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px var(--gutter) 104px;
  text-align: center;
}

.plus-hero .hero-inner {
  display: block;
  max-width: 880px;
  margin: 0 auto;
}

.plus-hero h1 {
  margin: 12px 0 0;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.05;
}

.plus-hero h1 .word {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 1.25em;
  text-shadow: 0 0 48px rgba(92, 225, 255, 0.35);
}

.plus-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), #FFE2B0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.plus-hero .hands-line {
  margin: 20px auto 24px;
  width: 140px;
}

.plus-hero .hero-lead {
  margin: 0 auto 28px;
  max-width: 640px;
}

.price-tag {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 12px;
  margin: 0 0 32px;
  padding: 14px 28px;
  border: 1px solid rgba(255, 196, 107, 0.45);
  border-radius: 999px;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    var(--lacquer, rgba(255, 196, 107, 0.08));
  box-shadow: 0 0 48px rgba(255, 196, 107, 0.18), inset 0 0 0 4px rgba(10, 10, 18, 0.5), inset 0 0 0 5px rgba(255, 196, 107, 0.16);
}

.price-tag strong {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
}

.price-tag span {
  color: var(--text-secondary);
}

.plus-hero .hero-actions {
  justify-content: center;
  gap: 20px 28px;
}

/* Free or Plus: two cards side by side. */
.tiers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: stretch;
}

.tier {
  padding: 28px;
}

.tier h3 {
  margin: 0 0 10px;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tier h3 small {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-secondary);
}

.tier ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tier li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 30px;
  color: var(--text-secondary);
}

.tier li strong {
  font-weight: 500;
}

.tier li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--good);
  border-bottom: 2px solid var(--good);
  transform: rotate(-45deg);
}

/* The Plus tier: an ornate panel (ecrin.css); its text clear of the inner frame. */
.tier.plus {
  padding: 34px;
}

.tier.plus li::before {
  border-color: var(--accent);
}

/* The rest of the path, chapter by chapter, up to the final boss. */
.chapters {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: chapter 3;
}

.chapters::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 32px;
  bottom: 80px;
  width: 2px;
  background: linear-gradient(to bottom, var(--right-hand), var(--left-hand), var(--accent));
  opacity: 0.4;
}

.chapters li {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  counter-increment: chapter;
}

/* Each chapter in a ringed medallion, as on the journey map. */
.chapters li::before {
  content: counter(chapter);
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 3px solid transparent;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 30%, var(--step-light, #C9F5FF), var(--step, var(--right-hand)) 75%) padding-box,
    linear-gradient(to bottom, #FFE7B5, #FFC46B 50%, #C98A3C) border-box;
  box-shadow:
    inset 0 0 0 2px #14131F,
    0 0 28px color-mix(in srgb, var(--step, var(--right-hand)) 45%, transparent);
  color: #14131F;
  font-family: var(--font-title);
  font-size: 26px;
}

.chapters li:nth-child(2) { --step: var(--left-hand); --step-light: #E3D6FF; }
.chapters li:nth-child(3) { --step: var(--good); --step-light: #CFFBE6; }
.chapters li:nth-child(4) { --step: var(--ok); --step-light: #DCE8FF; }

.chapters .card {
  padding: 20px 24px;
}

.chapters h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.chapters .card p {
  margin: 0;
}

.chapters .levels {
  display: block;
  margin: 0 0 6px;
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* The final boss: the Fantaisie-Impromptu. */
.chapters li.boss {
  --step: var(--accent);
  --step-light: #FFEBC9;
}

.chapters li.boss::before {
  width: 64px;
  height: 64px;
  border-width: 3px;
  box-shadow:
    inset 0 0 0 2px #14131F,
    0 0 36px rgba(255, 196, 107, 0.55),
    0 0 90px rgba(178, 141, 255, 0.3);
  animation: boss-glow 3.2s ease-in-out infinite;
}

.chapters li.boss .card {
  padding: 28px;
  border-color: rgba(255, 196, 107, 0.45);
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(178, 141, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(255, 196, 107, 0.14), transparent 70%),
    var(--lacquer, var(--bg-elevated));
  box-shadow:
    0 0 0 1px rgba(255, 196, 107, 0.2),
    0 0 80px rgba(255, 196, 107, 0.16),
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.chapters li.boss h3 {
  font-size: clamp(26px, 3.4vw, 34px);
}

.boss-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--left-hand));
  color: #1A1206;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes boss-glow {
  0%, 100% { box-shadow: inset 0 0 0 2px #14131F, 0 0 36px rgba(255, 196, 107, 0.55), 0 0 90px rgba(178, 141, 255, 0.3); }
  50% { box-shadow: inset 0 0 0 2px #14131F, 0 0 52px rgba(255, 196, 107, 0.8), 0 0 120px rgba(178, 141, 255, 0.45); }
}

/* What else comes with Plus. */
.extras {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.extras .card {
  padding: 24px;
}

.extras .medal {
  margin-bottom: 16px;
}

.extras h3 {
  font-size: 21px;
}

.extras .card p {
  font-size: 15px;
}

/* Where to get it: an ornate panel with its medallion (ecrin.css), the steps in the app and the
   Google Play badge. */
.buy {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 60px 40px 40px;
}

.buy h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.5vw, 36px);
  text-align: center;
}

.buy > p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  text-align: center;
}

.buy .get-steps {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.buy .get-steps li {
  position: relative;
  min-height: 32px;
  padding: 4px 0 0 48px;
  color: var(--text-primary);
  counter-increment: step;
}

.buy .get-steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 196, 107, 0.45);
  border-radius: 50%;
  background: rgba(10, 10, 18, 0.6);
  color: var(--accent);
  font-family: var(--font-title);
}

.buy .stores {
  margin: 8px 0 20px;
}

.buy .hint {
  margin: 0;
  text-align: center;
}

.hint {
  color: var(--text-secondary);
  font-size: 14px;
}

.secure {
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}

.secure svg {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -3px;
  color: var(--good);
}

/* Questions. */
.faq {
  display: grid;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq details {
  border: 1px solid rgba(255, 196, 107, 0.16);
  border-radius: 16px;
  background: var(--lacquer, var(--bg-elevated));
}

.faq details[open] {
  border-color: rgba(255, 196, 107, 0.32);
}

.faq summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 500;
  list-style-position: inside;
}

.faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 16px;
}

.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-secondary);
}

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

@media (max-width: 760px) {
  .tiers,
  .extras {
    grid-template-columns: minmax(0, 1fr);
  }

  .chapters li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }

  .chapters li::before,
  .chapters li.boss::before {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .chapters::before {
    left: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chapters li.boss::before {
    animation: none;
  }
}

@media (max-width: 600px) {
  .buy {
    padding: 56px 20px 24px;
  }

  .tier.plus {
    padding: 26px 22px;
  }
}
