/* Ultra uses the current Play theme. The membership card is the single colored surface. */
.ultra-editorial {
  --up-border: var(--line);
  --up-panel: var(--surface);
  --up-inset: var(--bg);
  --up-highlight: #adc8ff;
  --up-button: #e1eaff;
  --up-button-ink: #14223d;
  container-type: inline-size;
  max-width: 1220px;
  margin: 0 auto;
  padding-bottom: 30px;
  color: var(--text);
}

html[data-theme="light"] .ultra-editorial {
  --up-highlight: #34598e;
  --up-button: #233e69;
  --up-button-ink: #fff;
}

.up-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(238px, .85fr);
  align-items: center;
  gap: clamp(22px, 5cqw, 64px);
  padding: clamp(24px, 5cqw, 64px);
  border: 1px solid var(--up-border);
  border-radius: 22px;
  background: linear-gradient(130deg, var(--up-panel), var(--up-inset));
}

.up-overline,
.up-pass-top,
.up-pass-bottom,
.up-benefit-top {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .1em;
}

.up-overline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--muted);
}

.up-overline > span { width: 7px; height: 7px; border-radius: 50%; background: var(--up-highlight); }
.up-overline > i,
.up-pass-bottom i { width: 3px; height: 3px; display: inline-block; border-radius: 50%; background: currentColor; vertical-align: middle; }

.up-intro h1 {
  margin: 0;
  font-size: clamp(68px, 10cqw, 128px);
  line-height: .89;
  letter-spacing: -.055em;
  font-weight: 840;
}

.up-lead {
  max-width: 39ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.7cqw, 19px);
  line-height: 1.55;
}

.up-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 25px; }
.up-hero-actions > span { color: var(--muted); white-space: nowrap; font-size: 13px; }
.up-hero-actions strong { color: var(--text); font-variant-numeric: tabular-nums; }

.up-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 15px;
  border-radius: 10px;
  background: var(--up-button);
  color: var(--up-button-ink);
  font-weight: 760;
  font-size: 13px;
  transition: background-color 150ms ease, transform 140ms cubic-bezier(.23, 1, .32, 1);
}

.up-button svg, .up-text-link svg { width: 17px; height: 17px; flex: none; }
.up-button:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .up-button:hover { background: color-mix(in srgb, var(--up-button) 87%, var(--up-button-ink)); }
  .up-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
}

.up-pass-stage {
  width: min(100%, 420px);
  justify-self: end;
  perspective: 940px;
}

.up-pass {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  width: 100%;
  aspect-ratio: 1.68;
  overflow: hidden;
  padding: clamp(15px, 2.7cqw, 29px);
  border: 1px solid #6275a4;
  border-radius: 17px;
  background: radial-gradient(ellipse at 88% 4%, #3d4f7a 0, transparent 70%), linear-gradient(145deg, #1c2b49, #111b2c 68%);
  color: #f0f5ff;
  box-shadow: inset 0 1px rgba(255,255,255,.17), 0 14px 38px rgba(3,10,23,.24);
}

.up-pass::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(119deg, transparent 0 8px, #a9c6ff0d 9px 10px, transparent 11px 18px);
  mask-image: linear-gradient(100deg, transparent 25%, #000 90%);
}

.up-pass::after {
  content: '';
  position: absolute;
  inset: -40% 0;
  background: linear-gradient(112deg, transparent 39%, #d7e5ff09 46%, #e4edff3b 50%, #d7e5ff09 54%, transparent 61%);
  pointer-events: none;
  transform: translateX(-110%);
}

@media (prefers-reduced-motion: no-preference) {
  .up-pass::after { animation: up-pass-reflect 10s cubic-bezier(.45, 0, .55, 1) infinite paused; }
  .up-pass-in-view::after { animation-play-state: running; }
}

@keyframes up-pass-reflect {
  0%, 36% { transform: translateX(-110%); }
  69%, 100% { transform: translateX(110%); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .up-pass { transform: rotateX(calc(5deg + var(--up-pitch, 0deg))) rotateY(calc(-9deg + var(--up-yaw, 0deg))) rotateZ(-3deg); }
}

.up-pass-art {
  position: absolute;
  z-index: -1;
  width: 65%;
  height: auto;
  top: 50%;
  right: -12%;
  transform: translateY(-50%) rotate(-12deg);
  opacity: .38;
  filter: grayscale(1);
  mix-blend-mode: screen;
  pointer-events: none;
}

.up-pass-top, .up-pass-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.up-pass-top svg { width: 22px; height: 22px; color: #bfd0f5; }
.up-pass-word { font-size: clamp(42px, 6.6cqw, 84px); line-height: 1; letter-spacing: -.055em; font-weight: 890; }
.up-pass-bottom { border-top: 1px solid #d0dcff44; padding-top: 11px; color: #cad8f4; font-size: 9px; }
.up-pass-bottom i { margin-inline: 4px; }

.up-section { margin-top: clamp(28px, 4.4cqw, 50px); }
.up-section-head { margin-bottom: 15px; }
.up-section h2 { margin: 0; font-size: clamp(22px, 3cqw, 34px); line-height: 1.12; letter-spacing: -.04em; }
.up-benefits, .up-offer { display: grid; gap: 12px; }
.up-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.up-benefit, .up-price-card, .up-payment-card {
  min-width: 0;
  border: 1px solid var(--up-border);
  border-radius: 16px;
  background: var(--up-panel);
}

.up-benefit { padding: clamp(15px, 2cqw, 25px); }
.up-benefit-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); text-transform: uppercase; }
.up-benefit-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--up-border); border-radius: 9px; background: var(--up-inset); color: var(--up-highlight); }
.up-benefit-icon svg { width: 19px; height: 19px; }
.up-metric { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 16px 0 13px; color: var(--up-highlight); }
.up-metric b { font-size: clamp(28px, 4.3cqw, 49px); font-weight: 800; line-height: .98; letter-spacing: -.06em; }
.up-metric > span { color: var(--muted); font-size: 11px; line-height: 1.2; }
.up-benefit h3 { margin: 0 0 7px; font-size: 16px; letter-spacing: -.015em; }
.up-benefit p, .up-price-card p, .up-answers p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 13px; }

.up-offer { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); scroll-margin-top: calc(var(--topbar, 68px) + 16px); }
.up-price-card, .up-payment-card { padding: clamp(17px, 3cqw, 32px); }
.up-price-card { display: flex; flex-direction: column; align-items: flex-start; }
.up-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 7px; }
.up-price strong { font-size: clamp(40px, 6.5cqw, 74px); font-weight: 840; letter-spacing: -.075em; line-height: 1; font-variant-numeric: tabular-nums; }
.up-price > span { color: var(--muted); font-size: 14px; }
.up-price-card ul { display: grid; gap: 9px; margin: 20px 0; padding: 0; list-style: none; }
.up-price-card li { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.up-price-card li svg { width: 17px; height: 17px; color: var(--up-highlight); }
.up-text-link { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; min-height: 32px; color: var(--up-highlight); font-size: 12px; font-weight: 700; }
.up-payment-card .ultra-checkout { border: 0; border-radius: 0; background: transparent; padding: 0; }
.up-payment-card .ultra-checkout h3 { margin: 0 0 8px; font-size: clamp(18px, 2.4cqw, 25px); line-height: 1.2; }
.up-payment-card .ultra-checkout p { color: var(--muted); line-height: 1.55; }
.up-payment-card .ultra-checkout > p:not(.ultra-status) { margin: 0 0 14px; }
.up-payment-card .ultra-status:empty, .up-payment-card #ultra-paypal-buttons:empty { display: none; }
.up-payment-card .ultra-primary {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--up-button);
  color: var(--up-button-ink);
  box-shadow: none;
  white-space: normal;
  text-align: center;
  justify-content: center;
}
.up-payment-card [data-ultra-promo]:not(:empty) { margin-top: 15px; }
.up-payment-card [data-ultra-promo] a.phnx-offer-button[href="https://play.phnx590.fr/ultra"] { display: none; }
.up-payment-note { margin: 13px 0 0; color: var(--muted); font-size: 11px; }

.up-faq { display: grid; grid-template-columns: minmax(180px, .75fr) minmax(0, 1.25fr); gap: 16px 28px; }
.up-answers { border-top: 1px solid var(--up-border); }
.up-answers details { border-bottom: 1px solid var(--up-border); }
.up-answers summary { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; cursor: pointer; list-style: none; font-size: 14px; font-weight: 680; }
.up-answers summary::-webkit-details-marker { display: none; }
.up-answers summary span { width: 8px; height: 8px; flex: none; margin: 0 4px 4px; border-right: 1.5px solid var(--up-highlight); border-bottom: 1.5px solid var(--up-highlight); transform: rotate(45deg); }
.up-answers details[open] summary span { transform: rotate(225deg); margin-top: 4px; }
.up-answers p { padding: 0 20px 14px 0; }
.ultra-editorial :is(a, button, summary, input):focus-visible { outline: 2px solid var(--up-highlight); outline-offset: 3px; }

.up-season-trim { display: none; }

html[data-season="winter"] :is(.up-benefit, .up-price-card, .up-payment-card) { position: relative; }

html[data-season="winter"] .up-season-trim {
  display: block;
  position: absolute;
  inset: 0 10px auto;
  height: 17px;
  z-index: 2;
  pointer-events: none;
}

html[data-season="winter"][data-snow="on"] .up-season-trim::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 7px;
  border-radius: 3px 3px 0 0;
  background: var(--winter-snow) no-repeat top left / 100% 7px;
  transform-origin: top;
}

@media (prefers-reduced-motion: no-preference) {
  html[data-season="winter"][data-snow="on"] .up-season-trim::before {
    animation: phnx-snow-settle 16s ease-out both;
  }
}

@media print { .up-season-trim { display: none !important; } }

@container (max-width: 875px) {
  .up-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container (max-width: 620px) {
  .up-hero, .up-offer, .up-faq { grid-template-columns: minmax(0, 1fr); }
  .up-hero { padding: 20px; }
  .up-intro h1 { font-size: clamp(60px, 14cqw, 82px); }
  .up-pass-stage { justify-self: start; width: min(100%, 335px); }
  .up-pass-word { font-size: clamp(40px, 15cqw, 60px); }
}

@container (max-width: 380px) {
  .up-benefit { padding: 13px; }
  .up-benefit-top { font-size: 9px; letter-spacing: .055em; }
  .up-benefit-icon { width: 28px; height: 28px; }
  .up-benefit-icon svg { width: 16px; height: 16px; }
  .up-benefit h3 { font-size: 14px; }
  .up-benefit p { font-size: 12px; }
  .up-hero { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .up-button { transition: none; }
  .up-button:active { transform: none; }
}
