/* ==========================================================================
   iPhone launch — /iphone-launch
   ==========================================================================
   Page-specific styles for the interactive "which iPhone fits you" piece.

   Design direction: Apple-inspired, not Apple-copied. A cinematic graphite
   hero, an off-white editorial scene, a graphite product-spotlight scene,
   a glass quiz card, a white editorial close. Very large clean type, one
   cold-blue accent used only as glow, hairlines instead of boxes wherever
   a box would read as "dashboard". Motion is slow and soft.

   Rules this file follows (see CLAUDE.md):
     - Spacing / radius / weight tokens come from css/style.css. The page
       adds its own restrained palette under `.ipl` because the site's
       marketing blue would fight the cinematic scenes.
     - RTL logical properties everywhere. The page is dir="rtl".
     - Mobile-first. Two breakpoints (768px, 1024px) scale up.
     - Every animation is disabled under prefers-reduced-motion and under
       the accessibility widget's body.reduce-motion (style.css already
       zeroes durations; the rules at the bottom also remove the
       pre-reveal offsets so nothing stays invisible).
   ========================================================================== */

/* ── Palette + scene tokens ─────────────────────────────────────────── */

.ipl {
  --ipl-black: #0a0a0c;
  --ipl-graphite: #131316;
  --ipl-charcoal: #1c1c21;
  --ipl-off-white: #f5f5f7;
  --ipl-white: #ffffff;
  --ipl-ink: #1d1d1f;
  --ipl-ink-2: #48484a;
  --ipl-ink-3: #6e6e73;
  --ipl-on-dark: #f5f5f7;
  --ipl-on-dark-2: #a1a1a6;
  --ipl-line-dark: rgba(255, 255, 255, 0.12);
  --ipl-line-light: rgba(0, 0, 0, 0.09);
  --ipl-glass: rgba(255, 255, 255, 0.05);
  --ipl-accent: #6e9fff; /* cold blue — glow + tiny emphasis only */
  --ipl-accent-deep: #2f6bff;
  --ipl-silver: #c9ccd4;
  --ipl-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ipl-dur: 0.8s;

  /* Per-scene button colours. Dark scenes flip these. */
  --ipl-btn-bg: var(--ipl-ink);
  --ipl-btn-fg: var(--ipl-white);
  --ipl-btn-ghost-line: rgba(0, 0, 0, 0.22);

  font-family: var(--font);
  color: var(--ipl-ink);
  background: var(--ipl-off-white);
  overflow-x: clip;
}

.ipl-section-dark,
.ipl-hero,
.ipl-section-quiz {
  --ipl-btn-bg: var(--ipl-off-white);
  --ipl-btn-fg: var(--ipl-black);
  --ipl-btn-ghost-line: rgba(255, 255, 255, 0.28);
}

/* ── Layout ─────────────────────────────────────────────────────────── */

.ipl-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.ipl-wrap-narrow {
  max-width: 800px;
}

.ipl-section {
  position: relative;
  padding-block: clamp(72px, 11vw, 144px);
  scroll-margin-top: 84px;
}

.ipl-section-light {
  background: var(--ipl-off-white);
  color: var(--ipl-ink);
}

.ipl-section-white {
  background: var(--ipl-white);
  color: var(--ipl-ink);
}

.ipl-section-dark {
  background: var(--ipl-black);
  color: var(--ipl-on-dark);
}

/* White focus ring on dark scenes — the site default blue is hard to see
   against graphite. */
.ipl-section-dark :focus-visible,
.ipl-hero :focus-visible,
.ipl-section-quiz :focus-visible {
  outline-color: var(--ipl-white);
}

/* ── Typography ─────────────────────────────────────────────────────── */

.ipl-kicker,
.ipl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  color: var(--ipl-ink-3);
  margin-bottom: var(--space-4);
}

.ipl-section-dark .ipl-kicker,
.ipl-hero .ipl-eyebrow,
.ipl-section-quiz .ipl-kicker,
.ipl-section-quiz .ipl-eyebrow {
  color: var(--ipl-on-dark-2);
}

.ipl-hero .ipl-eyebrow {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ipl-line-dark);
  background: var(--ipl-glass);
}

.ipl-h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: var(--fw-black);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-4);
  max-width: 20ch;
  text-wrap: balance;
}

.ipl-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ipl-ink-2);
  max-width: 56ch;
  margin: 0 0 var(--space-7);
  text-wrap: pretty;
}

.ipl-section-dark .ipl-lead,
.ipl-section-quiz .ipl-lead {
  color: var(--ipl-on-dark-2);
}

.ipl p {
  line-height: var(--lh-normal);
}

.ipl a:not(.ipl-btn) {
  text-underline-offset: 0.18em;
}

/* Small caps-ish label above a paragraph (spotlights). */
.ipl-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  color: var(--ipl-on-dark-2);
  margin-bottom: var(--space-1);
}

/* ── Buttons + links ────────────────────────────────────────────────── */

.ipl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 50px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: var(--fw-medium);
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ipl-ease),
    background-color 0.25s var(--ipl-ease),
    border-color 0.25s var(--ipl-ease),
    opacity 0.25s var(--ipl-ease),
    filter 0.25s var(--ipl-ease);
}

.ipl-btn-lg {
  min-height: 56px;
  padding: 0 34px;
  font-size: 1.05rem;
}

.ipl-btn-primary {
  background: var(--ipl-btn-bg);
  color: var(--ipl-btn-fg);
}

.ipl-btn-ghost {
  background: transparent;
  color: inherit;
  border-color: var(--ipl-btn-ghost-line);
}

.ipl-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.ipl-btn-primary:hover:not(:disabled) {
  filter: brightness(0.92);
}

.ipl-btn-ghost:hover:not(:disabled) {
  border-color: currentColor;
}

.ipl-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.ipl-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ipl-btn .ui-icon-sm {
  width: 16px;
  height: 16px;
}

/* A quiet text link that sits beside the primary CTA. */
.ipl-textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 8px;
  color: var(--ipl-on-dark-2);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: color 0.25s var(--ipl-ease);
}

.ipl-textlink:hover {
  color: var(--ipl-on-dark);
}

.ipl-textlink svg {
  transition: transform 0.3s var(--ipl-ease);
}

.ipl-textlink:hover svg {
  transform: translateY(2px);
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.ipl-hero {
  position: relative;
  overflow: hidden;
  background: var(--ipl-black);
  color: var(--ipl-on-dark);
  min-height: clamp(600px, 90vh, 940px);
  padding: 112px 0 0;
  text-align: center;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.ipl-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(110, 159, 255, 0.16), transparent 70%),
    linear-gradient(180deg, #0f1017 0%, var(--ipl-black) 45%, var(--ipl-black) 100%);
}

.ipl-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}

.ipl-glow-a {
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  inset-inline-start: -10vw;
  top: 10%;
  background: radial-gradient(circle, rgba(110, 159, 255, 0.35), transparent 65%);
  animation: ipl-drift 22s var(--ipl-ease) infinite alternate;
}

.ipl-glow-b {
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  inset-inline-end: -12vw;
  bottom: -10%;
  background: radial-gradient(circle, rgba(201, 204, 212, 0.22), transparent 65%);
  animation: ipl-drift 28s var(--ipl-ease) infinite alternate-reverse;
}

@keyframes ipl-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-4%, 6%, 0) scale(1.08);
  }
}

.ipl-hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ipl-hero-title {
  font-size: clamp(2.3rem, 6.4vw, 4.4rem);
  font-weight: var(--fw-black);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 15ch;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

.ipl-hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--ipl-on-dark-2);
  max-width: 42ch;
  margin: 0 0 var(--space-5);
  text-wrap: balance;
}

.ipl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3) var(--space-5);
  margin-bottom: var(--space-5);
}

/* Product at the centre: two outline drawings on a soft floor glow. */
.ipl-hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: 760px;
  margin-top: auto;
  padding: var(--space-6) 0 0;
  perspective: 2200px;
  /* The phones sink slightly below the fold so the scene feels grounded. */
  margin-bottom: -3%;
}

.ipl-hero-visual::after {
  content: '';
  position: absolute;
  inset-inline: 12%;
  bottom: 4%;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(110, 159, 255, 0.45), transparent 70%);
  filter: blur(26px);
  pointer-events: none;
}

/* The fanned line-up. Each phone is turned slightly in 3D and lifted a
   little more than the one before it, so the group reads as one product
   shot instead of four separate icons. --i is set inline per phone. */
.ipl-hero-phone {
  position: relative;
  z-index: 1;
  flex: none;
  width: clamp(84px, min(14vw, 12.5vh), 150px);
  margin-inline-start: clamp(-44px, -6.5vw, -24px);
  transform: rotateY(-15deg) rotateZ(calc(var(--i) * -1.3deg)) translateY(calc(var(--i) * -3.2%));
  transform-style: preserve-3d;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.72));
}

.ipl-hero-phone:first-child {
  margin-inline-start: 0;
}

/* When a real product photo is configured it replaces the whole line-up, so
   the fan rules do not apply and the image just sits centred. */
.ipl-hero-visual.is-photo {
  perspective: none;
}

/* The photo is landscape (4:3) while the drawn phones are tall and narrow,
   so sizing it on width alone drops it entirely below the fold on a short
   screen. Cap BOTH axes and let the intrinsic ratio pick the smaller: width
   governs on a narrow window, height on a 768p laptop. */
.ipl-hero-visual.is-photo img {
  width: auto;
  max-width: min(100%, 860px);
  max-height: min(46vh, 520px);
  height: auto;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6));
}

.ipl-hero-phone svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Staggered hero entrance (JS adds .is-ready on the first frame). */
.ipl-js .ipl-hero .ipl-enter {
  opacity: 0;
}

.ipl-js .ipl-hero.is-ready .ipl-enter {
  animation: ipl-rise 0.95s var(--ipl-ease) both;
  animation-delay: calc(var(--i, 0) * 130ms + 60ms);
}

@keyframes ipl-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ── Device artwork (SVG from js/iphone-launch/iphone-device.js) ────── */

.ipl-phone {
  width: 100%;
  max-width: 190px;
  filter: drop-shadow(0 34px 44px rgba(0, 0, 0, 0.6));
}

.ipl-phone svg {
  display: block;
  width: 100%;
  height: auto;
}

/* The foldable is drawn open, so it is wider than it is tall. */
.ipl-phone-duo {
  max-width: 330px;
}

/* ── Verification notice ────────────────────────────────────────────── */

.ipl-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-5) 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ipl-ink-2);
}

.ipl-notice p {
  margin: 0;
}

.ipl-notice-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--ipl-accent-deep);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.15);
}

/* ── Tags ───────────────────────────────────────────────────────────── */

.ipl-tag {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--ipl-ink-2);
  background: rgba(0, 0, 0, 0.06);
  margin-inline-start: var(--space-2);
}

.ipl-section-dark .ipl-tag,
.ipl-section-quiz .ipl-tag {
  color: var(--ipl-on-dark-2);
  background: rgba(255, 255, 255, 0.1);
}

/* ── At-a-glance strip (editorial, hairlines) ───────────────────────── */

.ipl-glance-scene {
  padding-block: clamp(40px, 6vw, 72px);
}

.ipl-glance {
  display: grid;
  gap: 0;
  margin: 0;
}

.ipl-glance-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--ipl-line-light);
}

.ipl-glance-item dt {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  color: var(--ipl-ink-3);
}

.ipl-glance-item dd {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ipl-ink);
  text-wrap: balance;
}

/* ── "What's new" editorial rows ────────────────────────────────────── */

.ipl-rows {
  border-bottom: 1px solid var(--ipl-line-light);
}

.ipl-row {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--ipl-line-light);
}

.ipl-row-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
}

.ipl-row-index {
  font-family: var(--font-sub);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--ipl-ink-3);
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
}

.ipl-row-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.ipl-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--ipl-off-white);
  color: var(--ipl-ink);
  flex: none;
}

.ipl-row-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.ipl-row-what {
  margin: 0;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--ipl-ink-2);
  max-width: 62ch;
  text-wrap: pretty;
}

.ipl-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin: var(--space-1) 0 0;
  padding: 0;
}

.ipl-swatches li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--ipl-ink);
}

.ipl-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c, #888);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.12),
    inset 0 -4px 8px rgba(0, 0, 0, 0.18),
    inset 0 3px 6px rgba(255, 255, 255, 0.35);
}

.ipl-row-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  align-self: flex-start;
  padding: 10px 0;
  min-height: 44px;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--ipl-ink);
  cursor: pointer;
}

.ipl-row-toggle .ui-icon-sm {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ipl-ease);
}

.ipl-row-toggle[aria-expanded='true'] .ui-icon-sm {
  transform: rotate(180deg);
}

/* Expand via grid rows — animates without measuring heights. */
.ipl-row-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ipl-ease);
}

.ipl-row-panel.is-open {
  grid-template-rows: 1fr;
}

.ipl-row-panel-inner {
  overflow: hidden;
}

.ipl-row-panel p {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  border-inline-start: 2px solid var(--ipl-ink);
  color: var(--ipl-ink);
  font-size: var(--fs-md);
  line-height: 1.6;
  max-width: 62ch;
}

/* Quiet editorial note (unverified items). */
.ipl-note {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  max-width: 62ch;
}

.ipl-note p {
  margin: 0;
  font-size: var(--fs-base);
  color: var(--ipl-ink-2);
}

.ipl-note-title {
  font-weight: var(--fw-bold);
  color: var(--ipl-ink);
  margin-bottom: var(--space-1);
}

.ipl-note a {
  color: var(--ipl-ink);
  text-decoration: underline;
}

/* ── Model spotlights ───────────────────────────────────────────────── */

.ipl-spotlights {
  border-bottom: 1px solid var(--ipl-line-dark);
}

.ipl-spot {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-7) 0;
  border-top: 1px solid var(--ipl-line-dark);
  scroll-margin-top: 96px;
  transition: box-shadow 0.45s var(--ipl-ease);
}

.ipl-spot.is-highlighted .ipl-spot-visual {
  box-shadow:
    0 0 0 1px rgba(110, 159, 255, 0.5),
    0 40px 90px -50px rgba(110, 159, 255, 0.7);
}

.ipl-spot-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border-radius: var(--radius);
  background:
    radial-gradient(60% 70% at 50% 100%, rgba(110, 159, 255, 0.22), transparent 70%),
    linear-gradient(180deg, #16161a 0%, #0d0d10 100%);
  border: 1px solid var(--ipl-line-dark);
  transition: box-shadow 0.45s var(--ipl-ease);
}

.ipl-spot-visual img {
  width: auto;
  max-height: 80%;
  object-fit: contain;
}

.ipl-spot-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.ipl-spot-index {
  margin: 0;
  font-family: var(--font-sub);
  font-size: var(--fs-sm);
  color: var(--ipl-on-dark-2);
  font-variant-numeric: tabular-nums;
}

.ipl-spot-name {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: var(--fw-black);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  color: var(--ipl-on-dark);
}

.ipl-spot-tagline {
  margin: calc(-1 * var(--space-2)) 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ipl-on-dark-2);
}

.ipl-spot-fit,
.ipl-spot-consider {
  margin: 0;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ipl-on-dark);
  max-width: 58ch;
}

.ipl-spot-list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}

.ipl-spot-list li {
  position: relative;
  padding-inline-start: var(--space-5);
  color: var(--ipl-on-dark);
  font-size: var(--fs-md);
  line-height: 1.5;
}

.ipl-spot-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ipl-accent);
  box-shadow: 0 0 10px rgba(110, 159, 255, 0.7);
}

.ipl-spot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: var(--space-2) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--ipl-line-dark);
  font-size: var(--fs-sm);
  color: var(--ipl-on-dark-2);
}

.ipl-spot-meta strong {
  color: var(--ipl-on-dark);
  font-weight: var(--fw-medium);
}

.ipl-spot-source {
  color: var(--ipl-on-dark-2);
  text-decoration: underline;
}

.ipl-spot-source:hover {
  color: var(--ipl-on-dark);
}

/* ── Quiz scene ─────────────────────────────────────────────────────── */

.ipl-section-quiz {
  background:
    radial-gradient(55% 45% at 50% 0%, rgba(110, 159, 255, 0.16), transparent 70%),
    linear-gradient(180deg, #0e0f15 0%, var(--ipl-black) 60%);
  color: var(--ipl-on-dark);
  border-top: 1px solid var(--ipl-line-dark);
}

.ipl-section-quiz .ipl-wrap-narrow {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ipl-section-quiz .ipl-h2,
.ipl-section-quiz .ipl-lead {
  margin-inline: auto;
}

.ipl-quiz-card {
  width: 100%;
  text-align: start;
  border-radius: 32px;
  padding: clamp(24px, 4vw, 48px);
  /* No backdrop-filter here on purpose: over the scene gradient Chromium
     paints a faint rectangular halo behind the blurred backdrop, which
     reads as a rendering glitch. A translucent fill gives the same depth. */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 50px 120px -60px rgba(0, 0, 0, 0.9);
  scroll-margin-top: 96px;
  transition: padding 0.4s var(--ipl-ease);
}

.ipl-quiz-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
  padding: var(--space-5) 0;
}

.ipl-quiz-intro-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

.ipl-quiz-intro-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  color: var(--ipl-on-dark-2);
  font-size: var(--fs-md);
}

.ipl-quiz-intro-list li::before {
  content: '·';
  margin-inline-end: var(--space-2);
  color: var(--ipl-accent);
}

.ipl-quiz-noscript {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ipl-on-dark);
}

/* Progress */
.ipl-quiz-progress {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.ipl-quiz-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
}

.ipl-quiz-step,
.ipl-quiz-topic {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  color: var(--ipl-on-dark-2);
}

.ipl-quiz-topic {
  color: var(--ipl-on-dark);
}

.ipl-quiz-track {
  position: relative;
  height: 3px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.ipl-quiz-fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--ipl-accent), var(--ipl-off-white));
  box-shadow: 0 0 14px rgba(110, 159, 255, 0.8);
  transition: width 0.5s var(--ipl-ease);
}

/* Question stage + transitions. Forward = toward the inline end (left in
   RTL), back = toward the inline start. */
.ipl-q-stage {
  transition:
    opacity 0.28s var(--ipl-ease),
    transform 0.28s var(--ipl-ease),
    filter 0.28s var(--ipl-ease);
}

.ipl-q-stage.is-leaving {
  opacity: 0;
  transform: translateX(-16px);
  filter: blur(4px);
}

.ipl-q-stage.is-leaving-back {
  opacity: 0;
  transform: translateX(16px);
  filter: blur(4px);
}

.ipl-q-stage.is-entering {
  opacity: 0;
  transform: translateX(16px);
  filter: blur(4px);
}

.ipl-q-stage.is-entering-back {
  opacity: 0;
  transform: translateX(-16px);
  filter: blur(4px);
}

.ipl-q {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.ipl-q-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding: 0;
  margin: 0 0 var(--space-2);
  color: var(--ipl-on-dark);
  text-wrap: balance;
}

.ipl-q-title:focus {
  outline: none;
}

.ipl-q-hint {
  margin: 0 0 var(--space-5);
  color: var(--ipl-on-dark-2);
  font-size: var(--fs-base);
}

/* Selection tiles */
.ipl-tiles {
  display: grid;
  gap: var(--space-2);
}

.ipl-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 58px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ipl-on-dark);
  cursor: pointer;
  transition:
    background-color 0.25s var(--ipl-ease),
    border-color 0.25s var(--ipl-ease),
    transform 0.25s var(--ipl-ease),
    opacity 0.25s var(--ipl-ease),
    box-shadow 0.25s var(--ipl-ease);
  animation: ipl-tile-in 0.5s var(--ipl-ease) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}

@keyframes ipl-tile-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ipl-tile:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* Set by iphone-quiz.js when the hidden input has keyboard focus. */
.ipl-tile.is-focus-visible {
  outline: 2px solid var(--ipl-white);
  outline-offset: 2px;
}

.ipl-tile.is-checked {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 10px 30px -20px rgba(110, 159, 255, 0.8);
}

.ipl-tile.is-pop {
  animation: ipl-pop 0.35s var(--ipl-ease);
}

@keyframes ipl-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.015);
  }
  100% {
    transform: scale(1);
  }
}

.ipl-tile.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
}

.ipl-tile-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.ipl-tile-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.ipl-tile-label {
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  line-height: 1.3;
}

.ipl-tile-hint {
  font-size: var(--fs-sm);
  color: var(--ipl-on-dark-2);
}

.ipl-tile-mark {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ipl-black);
  transition:
    background-color 0.25s var(--ipl-ease),
    border-color 0.25s var(--ipl-ease);
}

.ipl-tile-mark .ui-icon-sm {
  width: 13px;
  height: 13px;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.2s var(--ipl-ease),
    transform 0.3s var(--ipl-ease);
}

.ipl-tile.is-checked .ipl-tile-mark {
  background: var(--ipl-off-white);
  border-color: var(--ipl-off-white);
}

.ipl-tile.is-checked .ipl-tile-mark .ui-icon-sm {
  opacity: 1;
  transform: scale(1);
}

.ipl-tiles-multi .ipl-tile-mark {
  border-radius: 7px;
}

.ipl-q-counter {
  margin: var(--space-3) 0 0;
  font-size: var(--fs-sm);
  color: var(--ipl-on-dark-2);
}

/* Slider */
.ipl-slider {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) 0;
}

.ipl-slider-value {
  align-self: center;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: var(--fw-bold);
  color: var(--ipl-on-dark);
  min-height: 1.6em;
  margin-bottom: var(--space-3);
}

.ipl-slider-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
}

.ipl-slider-tick {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition:
    background-color 0.25s var(--ipl-ease),
    box-shadow 0.25s var(--ipl-ease);
}

.ipl-slider-tick.is-on {
  background: var(--ipl-off-white);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.ipl-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --ipl-range-pct: 50%;
}

.ipl-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    to left,
    var(--ipl-off-white) var(--ipl-range-pct),
    rgba(255, 255, 255, 0.18) var(--ipl-range-pct)
  );
}

.ipl-range::-moz-range-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
}

.ipl-range::-moz-range-progress {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--ipl-off-white);
}

.ipl-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -11px;
  border-radius: 50%;
  border: 0;
  background: var(--ipl-white);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.45),
    0 0 0 6px rgba(255, 255, 255, 0.08);
}

.ipl-range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--ipl-white);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.45),
    0 0 0 6px rgba(255, 255, 255, 0.08);
}

.ipl-range:focus-visible {
  outline: none;
}

.ipl-range:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 3px var(--ipl-black),
    0 0 0 6px var(--ipl-white);
}

.ipl-range:focus-visible::-moz-range-thumb {
  box-shadow:
    0 0 0 3px var(--ipl-black),
    0 0 0 6px var(--ipl-white);
}

.ipl-slider-ends {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--ipl-on-dark-2);
}

.ipl-slider-ends span:last-child {
  text-align: end;
}

/* Nav */
.ipl-quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ipl-quiz-nav .ipl-btn-primary {
  flex: 1 1 auto;
}

.ipl-quiz-nav .ipl-btn-primary.is-ready {
  animation: ipl-ready 0.45s var(--ipl-ease);
}

@keyframes ipl-ready {
  0% {
    transform: scale(0.98);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

/* ── Result ─────────────────────────────────────────────────────────── */

.ipl-result {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  animation: ipl-rise 0.8s var(--ipl-ease) both;
}

.ipl-result-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
}

.ipl-result-head .ipl-eyebrow {
  margin-bottom: 0;
}

.ipl-result-name {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: var(--fw-black);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  color: var(--ipl-on-dark);
  text-wrap: balance;
}

.ipl-result-stay .ipl-result-name {
  font-size: clamp(1.8rem, 4.4vw, 2.8rem);
  max-width: 18ch;
}

.ipl-result-tagline {
  margin: 0;
  color: var(--ipl-on-dark-2);
  font-size: var(--fs-md);
}

.ipl-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
  padding: 0;
}

.ipl-chips li {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--ipl-on-dark);
}

.ipl-result-visual {
  display: flex;
  justify-content: center;
  padding: var(--space-2) 0;
}

.ipl-result-visual .ipl-phone {
  max-width: 150px;
}

.ipl-result-visual .ipl-phone-duo {
  max-width: 280px;
}

.ipl-result-summary {
  margin: 0;
  text-align: center;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--ipl-on-dark);
  max-width: 52ch;
  margin-inline: auto;
}

/* The personal narrative: label / statement rows with hairlines. */
.ipl-narrative {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ipl-narrative > div {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ipl-narrative dt {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  color: var(--ipl-on-dark-2);
}

.ipl-narrative dd {
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ipl-on-dark);
}

.ipl-narrative dd ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}

.ipl-narrative dd li,
.ipl-result-block li {
  position: relative;
  padding-inline-start: var(--space-4);
  color: var(--ipl-on-dark);
  font-size: var(--fs-base);
  line-height: 1.55;
}

.ipl-narrative dd li::before,
.ipl-result-block li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ipl-silver);
}

.ipl-result-grid {
  display: grid;
  gap: var(--space-4);
}

.ipl-result-block {
  padding: var(--space-4) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ipl-result-block h4 {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  color: var(--ipl-on-dark-2);
}

.ipl-result-block ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}

.ipl-verdict {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  margin-inline-end: var(--space-2);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  line-height: 1.4;
  vertical-align: middle;
}

.ipl-verdict-yes {
  background: rgba(0, 184, 148, 0.18);
  color: #7ff0d2;
}

.ipl-verdict-maybe {
  background: rgba(245, 215, 110, 0.16);
  color: #f7e39a;
}

.ipl-verdict-no {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ipl-on-dark);
}

.ipl-result-alts {
  display: grid;
  gap: var(--space-3);
}

.ipl-alt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ipl-on-dark);
  text-decoration: none;
  transition:
    border-color 0.25s var(--ipl-ease),
    background-color 0.25s var(--ipl-ease),
    transform 0.25s var(--ipl-ease);
}

.ipl-alt:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.ipl-alt-kicker {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.05em;
  color: var(--ipl-on-dark-2);
}

.ipl-alt strong {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
}

.ipl-alt span:last-child {
  font-size: var(--fs-sm);
  color: var(--ipl-on-dark-2);
}

.ipl-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  padding-top: var(--space-2);
}

/* Transparent breakdown */
.ipl-breakdown {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-3);
}

.ipl-breakdown summary {
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--ipl-on-dark-2);
  padding: var(--space-2) 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.ipl-breakdown summary::-webkit-details-marker {
  display: none;
}

.ipl-breakdown summary::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 12px;
  line-height: 1;
}

.ipl-breakdown[open] summary::before {
  content: '−';
}

.ipl-breakdown-note {
  margin: var(--space-2) 0 var(--space-3);
  font-size: var(--fs-sm);
  color: var(--ipl-on-dark-2);
}

.ipl-breakdown-wrap {
  overflow-x: auto;
}

.ipl-breakdown table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  color: var(--ipl-on-dark);
}

.ipl-breakdown th,
.ipl-breakdown td {
  text-align: start;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.ipl-breakdown th {
  font-weight: var(--fw-medium);
  color: var(--ipl-on-dark-2);
  white-space: nowrap;
}

.ipl-breakdown td.num {
  font-family: var(--font-sub);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ipl-breakdown .ipl-adj {
  display: block;
  color: var(--ipl-on-dark-2);
}

/* ── Personal take (editorial) ──────────────────────────────────────── */

.ipl-take-card {
  position: relative;
  margin: 0;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius);
  background: var(--ipl-white);
  border: 1px solid var(--ipl-line-light);
}

.ipl-take-card::before {
  content: '”';
  position: absolute;
  top: 6px;
  inset-inline-start: 22px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 7rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.ipl-take-card.is-placeholder {
  border: 1px dashed rgba(0, 0, 0, 0.25);
}

.ipl-take-card p {
  position: relative;
  margin: 0 0 var(--space-4);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.6;
  color: var(--ipl-ink);
  letter-spacing: -0.005em;
}

.ipl-take-card.is-placeholder p {
  color: var(--ipl-ink-3);
  font-style: italic;
}

.ipl-take-card footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  font-size: var(--fs-sm);
  color: var(--ipl-ink-3);
}

.ipl-take-card footer strong {
  color: var(--ipl-ink);
  font-weight: var(--fw-medium);
}

.ipl-take-card footer::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--ipl-ink-3);
}

/* ── Sources ────────────────────────────────────────────────────────── */

.ipl-sources {
  padding-block: var(--space-6);
  border-top: 1px solid var(--ipl-line-light);
}

.ipl-sources h2 {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.05em;
  color: var(--ipl-ink-3);
  margin: 0 0 var(--space-3);
}

.ipl-sources ul {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  font-size: var(--fs-sm);
  color: var(--ipl-ink-2);
}

.ipl-sources a {
  color: var(--ipl-ink);
  text-decoration: underline;
}

.ipl-sources-used {
  display: block;
  margin-top: 2px;
  color: var(--ipl-ink-3);
  font-size: var(--fs-xs);
}

.ipl-sources-note {
  margin: var(--space-4) 0 0;
  font-size: var(--fs-xs);
  color: var(--ipl-ink-3);
}

/* ── Glance detail line ─────────────────────────────────────────────── */

.ipl-glance-detail {
  margin: var(--space-1) 0 0;
  font-size: var(--fs-sm);
  color: var(--ipl-ink-3);
}

/* ── Jargon-buster block inside a "what changed" row ────────────────── */

.ipl-plain {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--ipl-off-white);
  border-inline-start: 3px solid var(--ipl-accent-deep);
  max-width: 62ch;
}

.ipl-plain-term {
  margin: 0 0 var(--space-1);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  color: var(--ipl-accent-deep);
}

.ipl-plain p:last-child {
  margin: 0;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ipl-ink);
}

/* ── Comparison table ───────────────────────────────────────────────── */

.ipl-h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 var(--space-5);
}

.ipl-table-block {
  margin-top: var(--space-7);
  padding-top: var(--space-7);
  border-top: 1px solid var(--ipl-line-light);
}

/* Only the table itself scrolls sideways; the page never does. */
.ipl-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
}

.ipl-compare {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: var(--fs-base);
}

.ipl-compare th,
.ipl-compare td {
  text-align: start;
  padding: var(--space-3);
  border-bottom: 1px solid var(--ipl-line-light);
  vertical-align: top;
  line-height: 1.5;
}

.ipl-compare thead th {
  font-size: var(--fs-md);
  font-weight: var(--fw-black);
  letter-spacing: -0.01em;
  color: var(--ipl-ink);
  border-bottom: 2px solid var(--ipl-ink);
  white-space: nowrap;
}

.ipl-compare tbody th {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--ipl-ink-3);
  white-space: nowrap;
}

/* The label column stays put while the model columns scroll sideways, so a
   phone-width reader always knows which attribute a cell belongs to. */
.ipl-compare th[scope='row'],
.ipl-compare thead th:first-child {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: var(--ipl-white);
  box-shadow: 1px 0 0 var(--ipl-line-light);
}

.ipl-compare tbody td {
  color: var(--ipl-ink);
}

.ipl-compare tbody tr:last-child th,
.ipl-compare tbody tr:last-child td {
  border-bottom: 0;
}

.ipl-cell-tag {
  display: inline-block;
  margin-inline-start: var(--space-2);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.06);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--ipl-ink-3);
  white-space: nowrap;
}

.ipl-table-note {
  margin: var(--space-4) 0 0;
  font-size: var(--fs-sm);
  color: var(--ipl-ink-3);
  max-width: 62ch;
}

/* ── Also announced ─────────────────────────────────────────────────── */

.ipl-alsos {
  display: grid;
  gap: var(--space-4);
}

.ipl-also {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5) 0 0;
  border-top: 1px solid var(--ipl-line-light);
}

.ipl-also-name {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}

.ipl-also-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: var(--radius-md);
  background: var(--ipl-white);
  color: var(--ipl-ink);
}

.ipl-also-what {
  margin: 0;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ipl-ink-2);
}

.ipl-also-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: auto 0 0;
  font-size: var(--fs-sm);
  color: var(--ipl-ink-3);
}

.ipl-also-price {
  font-weight: var(--fw-bold);
  color: var(--ipl-ink);
}

/* ── Personal take scene ────────────────────────────────────────────── */

.ipl-section-take {
  background: var(--ipl-white);
  color: var(--ipl-ink);
}

/* ── Price block on the result card ─────────────────────────────────── */

.ipl-price {
  padding: var(--space-5);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ipl-price h4 {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  color: var(--ipl-on-dark-2);
}

.ipl-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-3);
  margin: 0;
}

.ipl-price-size {
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--ipl-on-dark-2);
}

.ipl-price-main {
  font-family: var(--font-sub);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
  color: var(--ipl-on-dark);
  font-variant-numeric: tabular-nums;
}

.ipl-price-tag {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(110, 159, 255, 0.18);
  border: 1px solid rgba(110, 159, 255, 0.4);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: #b9d0ff;
}

.ipl-price-note {
  margin: var(--space-2) 0 0;
  font-size: var(--fs-base);
  color: var(--ipl-on-dark);
}

.ipl-price-fine {
  margin: var(--space-2) 0 0;
  font-size: var(--fs-sm);
  color: var(--ipl-on-dark-2);
}

/* ── Reveal on scroll ───────────────────────────────────────────────── */

.ipl-js .ipl-reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(8px);
  transition:
    opacity var(--ipl-dur) var(--ipl-ease),
    transform var(--ipl-dur) var(--ipl-ease),
    filter var(--ipl-dur) var(--ipl-ease);
}

.ipl-js .ipl-reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Stagger children marked as a group */
.ipl-js .ipl-reveal-group > * {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s var(--ipl-ease),
    transform 0.6s var(--ipl-ease);
}

.ipl-js .ipl-reveal-group.is-in > * {
  opacity: 1;
  transform: none;
}

.ipl-js .ipl-reveal-group.is-in > :nth-child(2) {
  transition-delay: 0.08s;
}
.ipl-js .ipl-reveal-group.is-in > :nth-child(3) {
  transition-delay: 0.16s;
}
.ipl-js .ipl-reveal-group.is-in > :nth-child(4) {
  transition-delay: 0.24s;
}
.ipl-js .ipl-reveal-group.is-in > :nth-child(5) {
  transition-delay: 0.32s;
}

/* ── Tablet and up ──────────────────────────────────────────────────── */

@media (min-width: 768px) {
  .ipl-wrap {
    padding: 0 var(--space-6);
  }

  .ipl-hero {
    padding-top: 124px;
  }

  .ipl-hero-visual {
    margin-bottom: -4%;
  }

  .ipl-phone {
    --ipl-phone-w: 150px;
  }
  .ipl-phone-pro {
    --ipl-phone-w: 150px;
  }
  .ipl-phone-pro-max {
    --ipl-phone-w: 172px;
  }
  .ipl-phone-previous {
    --ipl-phone-w: 136px;
  }
  .ipl-phone-duo {
    --ipl-phone-w: 260px;
  }

  .ipl-glance {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ipl-glance-item {
    padding: var(--space-3) var(--space-5);
    border-top: 0;
    border-inline-start: 1px solid var(--ipl-line-light);
  }

  .ipl-glance-item:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .ipl-row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-6);
    padding: var(--space-7) 0;
  }

  .ipl-spot {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: var(--space-7);
    padding: clamp(56px, 7vw, 96px) 0;
  }

  .ipl-spot:nth-child(even) .ipl-spot-visual {
    order: 2;
  }

  .ipl-spot-visual {
    min-height: 420px;
  }

  .ipl-alsos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .ipl-compare {
    min-width: 0;
  }

  .ipl-compare th,
  .ipl-compare td {
    padding: var(--space-4);
  }

  .ipl-tiles-multi,
  .ipl-tiles-many {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ipl-narrative > div {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: var(--space-5);
    align-items: baseline;
  }

  .ipl-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .ipl-result-alts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ipl-quiz-nav .ipl-btn-primary {
    flex: 0 0 auto;
    min-width: 180px;
  }
}

@media (min-width: 1024px) {
  .ipl-hero-title {
    max-width: 18ch;
  }

  .ipl-phone {
    max-width: 220px;
  }

  .ipl-phone-duo {
    max-width: 400px;
  }
}

/* ── Short viewports (a 768p laptop) ────────────────────────────────── */

/* The hero budget is headline + sub + CTAs + product. On a 720-800px tall
   window the copy alone eats the fold and the product never gets seen. Trim
   the copy — not the product — so the phones still greet you. Width-gated to
   768px so phones, which are short AND narrow, keep the mobile sizing. */
@media (min-width: 768px) and (max-height: 820px) {
  .ipl-hero {
    padding-top: 84px;
  }

  .ipl-hero-title {
    font-size: clamp(2.1rem, 5vw, 3.2rem);
  }

  .ipl-hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    margin-bottom: var(--space-4);
  }

  .ipl-hero-visual {
    padding-top: var(--space-4);
  }
}

/* ── Reduced motion ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .ipl-glow {
    animation: none;
  }

  .ipl-hero-phone {
    transform: none;
  }

  .ipl-js .ipl-hero .ipl-enter,
  .ipl-js .ipl-hero.is-ready .ipl-enter {
    opacity: 1;
    animation: none;
  }

  .ipl-js .ipl-reveal,
  .ipl-js .ipl-reveal-group > * {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .ipl-q-stage,
  .ipl-q-stage.is-leaving,
  .ipl-q-stage.is-leaving-back,
  .ipl-q-stage.is-entering,
  .ipl-q-stage.is-entering-back {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .ipl-tile,
  .ipl-result,
  .ipl-quiz-nav .ipl-btn-primary.is-ready,
  .ipl-tile.is-pop {
    animation: none;
  }

  .ipl-spot,
  .ipl-btn,
  .ipl-tile,
  .ipl-alt {
    transition: none;
  }
}

body.reduce-motion .ipl-glow {
  animation: none;
}

body.reduce-motion .ipl-js .ipl-hero .ipl-enter,
body.reduce-motion .ipl-js .ipl-reveal,
body.reduce-motion .ipl-js .ipl-reveal-group > *,
body.reduce-motion .ipl-q-stage,
body.reduce-motion .ipl-tile,
body.reduce-motion .ipl-result {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
}
