/* ============================================================
   SUPER PACK PAGE — super-pack.css
   Same visual language as packs.css: near-black dark sections with
   translucent cards, cream sections with white cards, one orange
   accent. Tokens come from components/base.css (not redeclared).
   Rhythm: dark hero → light value → subtle inside → dark license
   → light how → subtle testimonials → light FAQ → dark final CTA.
   ============================================================ */

/* ============================================================
   SHARED — eyebrow, section header, tag, buttons, grain
   ============================================================ */
.sp-eyebrow {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--primary-on-light);
  margin-bottom: 14px;
}
.sp-eyebrow--dark { color: var(--primary-on-dark); }

.sp-section-header { max-width: 680px; margin-bottom: var(--sp-6); }
.sp-section-header--center { margin-inline: auto; text-align: center; }

.sp-section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: var(--fw-strong);
  letter-spacing: var(--tr-h2);
  line-height: 1.1;
  color: var(--text-primary);
  text-wrap: balance;
  margin-bottom: 16px;
}

.sp-section-sub {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-secondary);
  text-wrap: pretty;
}
.sp-section-sub a { color: var(--primary-on-light); text-decoration: underline; text-underline-offset: 3px; }

.sp-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-solid);
  color: #fff;
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: var(--fw-medium);
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.sp-btn:active { transform: scale(0.98); }
.sp-btn svg { flex-shrink: 0; transition: transform var(--transition); }
@media (hover: hover) and (pointer: fine) { .sp-btn:hover svg { transform: translateX(2px); } }
.sp-btn--lg { min-height: 52px; padding: 0 28px; font-size: var(--fs-body); }

.sp-btn--primary {
  background: var(--primary-solid);
  color: #fff;
  box-shadow: 0 6px 18px rgba(209, 64, 0, 0.22);
}
.sp-btn--primary:hover { background: var(--primary-solid-hover); box-shadow: 0 10px 26px rgba(209, 64, 0, 0.3); }

.sp-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.sp-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }

.sp-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--primary-on-light);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--transition);
}
.sp-text-link:hover { text-decoration-color: currentColor; }

/* Warm-only gradient: every stop is ≥ 4.5:1 on --dark-bg */
.sp-title-gradient {
  background: linear-gradient(118deg, #FFF3EC 0%, #FFB79D 50%, #FF8A5C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (forced-colors: active) {
  .sp-title-gradient { background: none; -webkit-text-fill-color: CanvasText; color: CanvasText; }
}

/* Static film grain for the dark sections */
.sp-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
}

/* ============================================================
   S1 — HERO
   ============================================================ */
.sp-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100svh, 940px);
  overflow: hidden;
  background: var(--dark-bg);
  color: var(--text-on-dark);
  padding: calc(var(--nav-height, 58px) + var(--sp-6)) 0 var(--sp-6);
  isolation: isolate;
}

/* ── Scene: the artwork as a tilted plane ── */
.sp-hero-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  perspective: 1800px;
  perspective-origin: 70% 40%;
}

.sp-hero-plane {
  position: absolute;
  top: 8%;
  right: -12%;
  width: 78%;
  aspect-ratio: 2000 / 1407;
  border-radius: 28px;
  overflow: hidden;
  transform-origin: 85% 50%;
  transform: rotateY(calc(-22deg + var(--ry, 0deg))) rotateX(calc(9deg + var(--rx, 0deg))) rotateZ(2deg);
  box-shadow: -40px 60px 140px rgba(0, 0, 0, 0.6);
  /* The left edge melts into the dark behind the copy */
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%);
  animation: sp-plane-in 1.4s var(--ease-out) both;
  will-change: transform;
}
.sp-hero-plane img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* After the entrance, the pointer tilt drives the transform */
.sp-hero-plane.is-settled { animation: none; }

@keyframes sp-plane-in {
  from {
    opacity: 0;
    transform: rotateY(-38deg) rotateX(14deg) rotateZ(4deg) translate3d(120px, 40px, -160px);
  }
}

/* Readability: near-solid dark under the copy, open on the right */
.sp-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--dark-bg) 0%, rgba(22, 18, 13, 0.95) 38%, rgba(22, 18, 13, 0.72) 56%, rgba(22, 18, 13, 0.1) 82%),
    linear-gradient(180deg, rgba(22, 18, 13, 0.6) 0%, transparent 22%, transparent 72%, var(--dark-bg) 100%);
}

.sp-hero-glow {
  position: absolute;
  width: 900px;
  height: 900px;
  top: -420px;
  left: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.18) 0%, transparent 62%);
}

/* ── Copy ── */
.sp-hero-inner { position: relative; width: 100%; }
.sp-hero-copy { max-width: 680px; }

.sp-hero-copy > * { animation: sp-rise 0.8s var(--ease-out) both; }
.sp-hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.sp-hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.sp-hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.sp-hero-copy > :nth-child(5) { animation-delay: 0.24s; }
.sp-hero-copy > :nth-child(6) { animation-delay: 0.3s; }
@keyframes sp-rise { from { opacity: 0; transform: translateY(16px); } }

.sp-hero-badge { display: flex; align-items: center; gap: 12px; margin-bottom: var(--sp-3); }
.sp-hero-badge img { width: 40px; height: 40px; object-fit: contain; }

.sp-hero-title {
  font-size: clamp(40px, 4.6vw, 66px);
  font-weight: var(--fw-book);
  letter-spacing: var(--tr-display);
  line-height: 1.02;
  color: var(--text-on-dark);
  margin-bottom: var(--sp-3);
}
.sp-hero-title .sp-title-gradient { display: block; }

.sp-hero-sub {
  max-width: 46ch;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-muted-on-dark);
  text-wrap: pretty;
  margin-bottom: var(--sp-4);
}

.sp-hero-price { margin-bottom: var(--sp-4); }
.sp-hero-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.sp-hero-price-num {
  font-size: clamp(48px, 5vw, 64px);
  font-weight: var(--fw-book);
  letter-spacing: var(--tr-display);
  line-height: 1;
}
.sp-hero-price-was { font-size: 22px; color: var(--text-muted-on-dark); }
.sp-hero-price-was s,
.sp-cta-was s { text-decoration-thickness: 2px; text-decoration-color: rgba(255, 169, 138, 0.8); }
.sp-hero-save { margin-top: 12px; font-size: 15px; color: var(--text-muted-on-dark); }
.sp-hero-save strong { color: var(--primary-on-dark); font-weight: var(--fw-bold); }

.sp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--sp-5); }

.sp-cta-note span { white-space: nowrap; }

/* ── Everything included: the nine real app icons ── */
.sp-hero-apps { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.sp-hero-apps-label { font-size: var(--fs-meta); color: var(--text-muted-on-dark); }
.sp-hero-apps-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-hero-apps-list img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  transition: transform var(--transition);
}
@media (hover: hover) and (pointer: fine) { .sp-hero-apps-list li:hover img { transform: translateY(-3px); } }

/* ============================================================
   S2 — BEST VALUE
   ============================================================ */
.sp-value {
  padding: var(--sp-8) 0;
  background: var(--surface);
  color: var(--text-primary);
  scroll-margin-top: var(--nav-height, 58px);
}

.sp-value-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
}

/* ── Receipt ── */
.sp-receipt {
  padding: var(--sp-2) var(--sp-4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 2px rgba(33, 26, 20, 0.04), 0 16px 48px rgba(33, 26, 20, 0.06);
}

.sp-receipt-table { width: 100%; border-collapse: collapse; }
.sp-receipt-table th,
.sp-receipt-table td {
  padding: 14px 0;
  border-bottom: 1px dashed var(--border-strong);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  text-align: left;
  vertical-align: middle;
}
.sp-receipt-table td { text-align: right; white-space: nowrap; padding-left: 16px; color: var(--text-secondary); }

.sp-receipt-table thead th {
  padding: 18px 0 12px;
  border-bottom: 1px solid var(--border-strong);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--text-secondary);
}
.sp-receipt-table thead th:last-child { text-align: right; }

.sp-receipt-item { display: flex; align-items: center; gap: 14px; line-height: 1.35; }
.sp-receipt-item img { display: block; flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }

.sp-receipt-glyph {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-primary);
}
.sp-receipt-stack { display: flex; flex-shrink: 0; }
.sp-receipt-stack img { border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.sp-receipt-stack img + img { margin-left: -9px; }
.sp-receipt-incl { font-size: var(--fs-small) !important; }

.sp-receipt-total th,
.sp-receipt-total td { border-bottom: 0; padding-top: 18px; color: var(--text-secondary); }
.sp-receipt-total s { text-decoration-thickness: 2px; text-decoration-color: rgba(189, 50, 0, 0.6); }

.sp-receipt-final th,
.sp-receipt-final td {
  border-top: 1px solid var(--border-strong);
  border-bottom: 0;
  padding: 16px 0 20px;
  font-size: 22px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-h3);
  color: var(--text-primary);
}
.sp-receipt-final td { color: var(--primary-on-light); }

/* ── Price panel ── */
.sp-panel {
  position: sticky;
  top: calc(var(--nav-height, 58px) + var(--sp-3));
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  background: var(--dark-bg);
  color: var(--text-on-dark);
  border: 1px solid rgba(255, 169, 138, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(33, 26, 20, 0.22);
}

.sp-panel-title {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--primary-on-dark);
  margin-bottom: 10px;
}
.sp-panel-price {
  font-size: 72px;
  font-weight: var(--fw-book);
  letter-spacing: var(--tr-display);
  line-height: 1;
}
.sp-panel-period { margin-top: 8px; font-size: var(--fs-small); color: var(--text-muted-on-dark); }

.sp-panel-save {
  margin: var(--sp-4) 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.sp-panel-save-row { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-small); color: var(--text-muted-on-dark); }
.sp-panel-save-row strong { font-size: 24px; font-weight: var(--fw-bold); letter-spacing: var(--tr-h3); color: var(--primary-on-dark); }
.sp-panel-bar { height: 6px; margin: 12px 0 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.sp-panel-bar-fill { display: block; width: var(--fill, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary-solid), #FF8A5C); }
.sp-panel-save-pct { font-size: var(--fs-meta); color: var(--text-muted-on-dark); }

.sp-panel-cta { width: 100%; }

.sp-panel-list { display: flex; flex-direction: column; gap: 10px; margin-top: var(--sp-3); }
.sp-panel-list li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--text-muted-on-dark); }
.sp-panel-list svg { color: var(--primary-on-dark); flex-shrink: 0; }

/* ── Pack maths ── */
.sp-math {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  background: var(--surface-subtle);
  border-radius: var(--radius-xl);
}
.sp-math-copy { max-width: 46ch; }
.sp-math-title { font-size: 22px; font-weight: var(--fw-bold); letter-spacing: var(--tr-h3); line-height: 1.25; margin-bottom: 8px; }
.sp-math-sub { font-size: 15px; line-height: 1.6; color: var(--text-secondary); }

.sp-math-eq {
  grid-row: 2;
  grid-column: 1 / -1;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
}
.sp-math-chip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 128px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.sp-math-chip span { font-size: var(--fs-meta); color: var(--text-secondary); white-space: nowrap; }
.sp-math-chip strong { font-size: 22px; font-weight: var(--fw-bold); letter-spacing: var(--tr-h3); line-height: 1.2; }
.sp-math-chip--total { background: transparent; border-style: dashed; border-color: var(--border-strong); }
.sp-math-chip--total strong { color: var(--text-secondary); }
.sp-math-chip--total s { text-decoration-thickness: 2px; text-decoration-color: rgba(189, 50, 0, 0.6); }
.sp-math-chip--super {
  background: var(--dark-bg);
  border-color: rgba(255, 169, 138, 0.3);
  box-shadow: 0 10px 30px rgba(33, 26, 20, 0.18);
}
.sp-math-chip--super span { color: var(--primary-on-dark); }
.sp-math-chip--super strong { color: var(--text-on-dark); }
.sp-math-op { align-self: center; font-size: 20px; font-weight: var(--fw-medium); color: var(--text-secondary); }
.sp-math-op--arrow { padding: 0 6px; color: var(--primary-on-light); }

.sp-math .sp-text-link { grid-row: 1; grid-column: 2; }

/* ============================================================
   S3 — WHAT'S INSIDE
   ============================================================ */
.sp-inside {
  padding: var(--sp-8) 0;
  background: var(--surface-subtle);
  color: var(--text-primary);
  scroll-margin-top: var(--nav-height, 58px);
}

.sp-apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
}

.sp-app {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: var(--sp-4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 2px rgba(33, 26, 20, 0.04), 0 16px 48px rgba(33, 26, 20, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .sp-app:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: 0 1px 2px rgba(33, 26, 20, 0.04), 0 24px 56px rgba(33, 26, 20, 0.1);
  }
}

.sp-app-head { display: flex; align-items: center; gap: 14px; }
.sp-app-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; object-fit: contain; }
.sp-app-title { font-size: 20px; font-weight: var(--fw-bold); letter-spacing: var(--tr-h3); line-height: 1.2; }
.sp-app-meta { margin-top: 2px; font-size: var(--fs-meta); color: var(--text-secondary); }
.sp-app-desc { font-size: 15px; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }

.sp-app-list { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sp-app-list li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--text-primary); }
.sp-app-list svg { color: var(--primary-on-light); flex-shrink: 0; }

.sp-app-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color var(--transition);
}
.sp-app-link:hover { text-decoration-color: currentColor; }

/* ── Utilities + components ── */
.sp-extras {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.sp-utils {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: var(--sp-2) var(--sp-4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.sp-util { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.sp-util + .sp-util { border-top: 1px solid var(--border); }
.sp-util img { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; object-fit: contain; }
.sp-util-title { font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: 1.3; }
.sp-util-title a { display: inline-block; padding: 12px 0; margin: -12px 0; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--transition); }
.sp-util-title a:hover { text-decoration-color: currentColor; }
.sp-util-desc { margin-top: 2px; font-size: var(--fs-small); color: var(--text-secondary); line-height: 1.45; }

.sp-components {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.sp-components-media { background: var(--surface); }
.sp-components-media img { width: 100%; height: 100%; object-fit: cover; }
.sp-components-body { display: flex; flex-direction: column; justify-content: center; padding: var(--sp-4); }
.sp-components-num {
  font-size: 56px;
  font-weight: var(--fw-book);
  letter-spacing: var(--tr-display);
  line-height: 1;
  color: var(--primary-on-light);
  margin-bottom: 10px;
}
.sp-components-title { font-size: 20px; font-weight: var(--fw-bold); letter-spacing: var(--tr-h3); margin-bottom: 8px; }
.sp-components-desc { font-size: 15px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 16px; }
.sp-components-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-components-tags li {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: var(--fs-meta);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

/* ============================================================
   S4 — NO SUBSCRIPTION
   ============================================================ */
.sp-own {
  position: relative;
  overflow: hidden;
  padding: var(--sp-8) 0;
  background: var(--dark-bg);
  color: var(--text-on-dark);
}
.sp-own-bg { position: absolute; inset: 0; pointer-events: none; }
.sp-own-glow {
  position: absolute;
  right: -200px;
  bottom: -320px;
  width: 900px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 90, 31, 0.14) 0%, transparent 65%);
}

.sp-own-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-6);
}

.sp-own-title {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tr-h1);
  line-height: 1.08;
  text-wrap: balance;
  margin-bottom: var(--sp-3);
}
.sp-own-desc { max-width: 46ch; font-size: var(--fs-lead); line-height: 1.6; color: var(--text-muted-on-dark); margin-bottom: var(--sp-4); }

/* ── Cost per year ── */
.sp-years {
  padding: var(--sp-4);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
}
.sp-years-title {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--text-muted-on-dark);
  margin-bottom: var(--sp-4);
}

/* Five nodes on one line: the first is the only payment */
.sp-years-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: var(--sp-4);
}
.sp-years-list::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-solid) 0 20%, rgba(255, 255, 255, 0.14) 20% 100%);
}
.sp-year {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.sp-year::before {
  content: '';
  width: 20px;
  height: 20px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--dark-bg);
  border: 2px solid rgba(255, 255, 255, 0.28);
}
.sp-year--paid::before { background: var(--primary-solid); border-color: var(--primary-solid); box-shadow: 0 0 0 6px rgba(255, 90, 31, 0.16); }
.sp-year-label { font-size: var(--fs-meta); color: var(--text-muted-on-dark); }
.sp-year-val { font-size: 28px; font-weight: var(--fw-strong); letter-spacing: var(--tr-h2); line-height: 1.1; color: var(--text-on-dark); }
.sp-year--paid .sp-year-val { color: var(--primary-on-dark); }

.sp-years-note { font-size: var(--fs-meta); line-height: 1.5; color: var(--text-muted-on-dark); }

/* ============================================================
   S5 — HOW IT WORKS
   ============================================================ */
.sp-how {
  padding: var(--sp-8) 0;
  background: var(--surface);
  color: var(--text-primary);
}

.sp-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
  counter-reset: none;
}
.sp-step {
  position: relative;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-strong);
}
.sp-step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: var(--sp-2);
  border-radius: 50%;
  background: var(--dark-bg);
  color: var(--text-on-dark);
  font-size: 15px;
  font-weight: var(--fw-bold);
}
.sp-step:last-child .sp-step-num { background: var(--primary-solid); color: #fff; }
.sp-step-title { font-size: 20px; font-weight: var(--fw-bold); letter-spacing: var(--tr-h3); margin-bottom: 8px; }
.sp-step-desc { font-size: 15px; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }

/* ============================================================
   S6 — TESTIMONIALS (shared .tst component)
   ============================================================ */
.sp-tst { background: var(--surface-subtle); }
.sp-tst .tst-story:not(.tst-story--feature) { background: #fff; }

/* ============================================================
   S7 — FAQ
   ============================================================ */
.sp-faq {
  padding: var(--sp-8) 0;
  background: var(--surface);
  color: var(--text-primary);
}

.sp-faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: var(--sp-6);
  align-items: start;
}
.sp-faq-header { position: sticky; top: calc(var(--nav-height, 58px) + var(--sp-4)); }

/* Collapsed answers are out of the focus order and the accessibility tree */

/* ============================================================
   S8 — FINAL CTA
   Layers: glow → floating icons → copy. Each icon nests three
   boxes so each transform has one job:
   .sp-float-icon  (position + pointer parallax, set by JS)
   └ .sp-float-burst (entrance from the Super Pack icon)
     └ .sp-float-tile (endless float; paused by .motion-toggle)
   ============================================================ */
.sp-cta {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 760px;
  overflow: hidden;
  padding: var(--sp-8) 0;
  background: var(--dark-bg);
  color: var(--text-on-dark);
  text-align: center;
  isolation: isolate;
}
.sp-cta-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.sp-cta-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1100px;
  height: 760px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 90, 31, 0.2) 0%, rgba(255, 90, 31, 0.06) 40%, transparent 68%);
}

/* ── Floating icons ── */
.sp-float { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.sp-float-icon {
  position: absolute;
  left: var(--x);
  top: var(--y);
  /* Parallax: nearer layers (depth 1) travel further */
  transform: translate(-50%, -50%)
             translate3d(calc(var(--mx, 0) * (4 - var(--depth)) * 9px),
                         calc(var(--my, 0) * (4 - var(--depth)) * 9px), 0);
  transition: transform 0.6s var(--ease-out);
}

/* Depth of field: far layers are smaller, softer and dimmer */
.sp-float-icon[style*="--depth:2"] { opacity: 0.85; }
.sp-float-icon[style*="--depth:3"] { opacity: 0.6; filter: blur(1.5px); }

.sp-float-burst {
  display: block;
  transition: transform 1.3s var(--ease-out) var(--stagger, 0s),
              opacity 0.6s ease var(--stagger, 0s);
}
/* Armed by JS before the section is seen: every icon waits, folded
   into the Super Pack icon (--fx/--fy = offset to that icon) */
.sp-float.is-armed:not(.is-in) .sp-float-burst {
  opacity: 0;
  transform: translate3d(var(--fx, 0px), var(--fy, 0px), 0) scale(0.2);
}

.sp-float-tile {
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  border-radius: 28%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: rotate(var(--r));
}
.sp-float-tile img { width: 64%; height: 64%; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35)); }

/* The float itself starts only once JS is ready (so without JS, or
   paused, the icons simply rest at their place) */
.sp-float.is-live .sp-float-tile { animation: sp-float var(--d) ease-in-out var(--delay) infinite; }
@keyframes sp-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--r)); }
  50%      { transform: translate3d(0, -16px, 0) rotate(calc(var(--r) * -1)); }
}
/* Off screen: no work */
.sp-float.is-offscreen .sp-float-tile { animation-play-state: paused; }

/* ── Copy ── */
.sp-cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; }

.sp-cta-core { position: relative; margin-bottom: var(--sp-3); }
/* Soft halo behind the Super Pack icon */
.sp-cta-core::before {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 92, 0.45) 0%, transparent 70%);
  filter: blur(6px);
}
.sp-float.is-live ~ .sp-cta-inner .sp-cta-core::before { animation: sp-halo 3.2s ease-in-out infinite; }
@keyframes sp-halo { 50% { transform: scale(1.18); opacity: 0.65; } }
.sp-cta-icon { position: relative; width: 72px; height: 72px; object-fit: contain; }

.sp-cta-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tr-h1);
  line-height: 1.08;
  text-wrap: balance;
  margin-bottom: var(--sp-3);
  text-shadow: 0 2px 30px rgba(22, 18, 13, 0.8);
}
.sp-cta-sub { font-size: var(--fs-lead); line-height: 1.6; color: var(--text-muted-on-dark); margin-bottom: var(--sp-5); }
.sp-cta-sub strong { color: var(--text-on-dark); font-weight: var(--fw-bold); }
.sp-cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: var(--sp-3); }
.sp-cta-note { font-size: var(--fs-meta); line-height: 1.7; color: var(--text-muted-on-dark); }

/* Nothing moves here with reduced motion: hide the pause button too */
@media (prefers-reduced-motion: reduce) {
  .sp-float-icon, .sp-float-burst { transition: none; }
  .sp-float.is-armed:not(.is-in) .sp-float-burst { opacity: 1; transform: none; }
  .sp-float.is-live .sp-float-tile,
  .sp-float.is-live ~ .sp-cta-inner .sp-cta-core::before { animation: none; }
  .sp-cta .motion-toggle { display: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) and (min-width: 1024px) {
  .sp-hero-plane { right: -26%; width: 74%; }
}

/* Tablet: mid-layer icons move out to the edges, clear of the buttons */
@media (max-width: 1180px) and (min-width: 721px) {
  .sp-float-icon { left: var(--xt, var(--x)); top: var(--yt, var(--y)); }
}

@media (max-width: 1100px) {
  .sp-math { grid-template-columns: 1fr; }
  .sp-math .sp-text-link { grid-row: auto; grid-column: auto; }
  .sp-math-eq { grid-row: auto; }
  .sp-extras { grid-template-columns: 1fr; }
}

@media (max-width: 1023px) {
  /* The plane moves above the copy and fades out at the bottom */
  .sp-hero { align-items: flex-end; min-height: 0; padding-top: calc(var(--nav-height, 58px) + 34vw); }
  .sp-hero-plane {
    top: calc(var(--nav-height, 58px) + 12px);
    right: -18%;
    width: 112%;
    transform: rotateY(-16deg) rotateX(10deg) rotateZ(2deg);
    mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
  }
  .sp-hero-shade {
    background: linear-gradient(180deg, rgba(22, 18, 13, 0.35) 0%, rgba(22, 18, 13, 0.2) 18%, rgba(22, 18, 13, 0.9) 42%, var(--dark-bg) 56%);
  }
  .sp-hero-copy { max-width: 640px; }

  .sp-value-layout { grid-template-columns: 1fr; }
  .sp-panel { position: static; }

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

  .sp-own-inner { grid-template-columns: 1fr; gap: var(--sp-5); }

  .sp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-3); }

  .sp-faq-inner { grid-template-columns: 1fr; gap: var(--sp-4); }
  .sp-faq-header { position: static; }
}

@media (max-width: 720px) {
  /* Icons move to two bands above and below the copy */
  .sp-cta { min-height: 0; padding: 150px 0 170px; }
  .sp-float-icon { left: var(--xm, var(--x)); top: var(--ym, var(--y)); }
  .sp-float-icon--wide { display: none; }
  .sp-float-tile { width: calc(var(--s) * 0.68); height: calc(var(--s) * 0.68); }

  .sp-hero { padding: calc(var(--nav-height, 58px) + 40vw) 0 var(--sp-6); }
  .sp-value, .sp-inside, .sp-own, .sp-how, .sp-faq { padding: var(--sp-7) 0; }
  .sp-section-header { margin-bottom: var(--sp-5); }

  .sp-apps { grid-template-columns: 1fr; }
  .sp-app { padding: var(--sp-3); }

  .sp-components { grid-template-columns: 1fr; }
  .sp-components-media { aspect-ratio: 16 / 9; }

  .sp-math-chip { min-width: 0; flex: 1 1 40%; }
  .sp-math-op { display: none; }
  .sp-math-chip--super { flex-basis: 100%; }

}

@media (max-width: 560px) {
  .sp-hero-actions { flex-direction: column; }
  /* Scales with the width so "Every CoffeeCup app." stays on one line */
  .sp-hero-title { font-size: max(27px, 8.6vw); }
  .sp-hero-actions .sp-btn, .sp-cta-actions .sp-btn { width: 100%; }
  .sp-cta-actions { align-self: stretch; flex-direction: column; }
  .sp-hero-plane { border-radius: var(--radius-lg); }
  /* The nine icons share one row: a flex row of 32px icons left the
     ninth alone on a second line (and a 320px phone fits only seven) */
  .sp-hero-apps-list { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 360px; }
  .sp-hero-apps-list img { width: 100%; max-width: 36px; height: auto; aspect-ratio: 1; }

  .sp-receipt { padding: var(--sp-1) var(--sp-2); }
  .sp-receipt-table th, .sp-receipt-table td { font-size: 15px; }
  .sp-receipt-item { gap: 10px; }
  .sp-panel { padding: var(--sp-4) var(--sp-3) var(--sp-3); }
  .sp-panel-price { font-size: 60px; }
  .sp-math { padding: var(--sp-3); }

  .sp-utils { padding: var(--sp-1) var(--sp-3); }
  .sp-steps { grid-template-columns: 1fr; }
  .sp-years { padding: var(--sp-3) var(--sp-2); }
  .sp-year-val { font-size: 20px; }
}

@media (max-width: 380px) {
  .sp-receipt-table th, .sp-receipt-table td { font-size: var(--fs-small); }
  .sp-cta-actions .sp-btn { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-hero-plane, .sp-hero-copy > * { animation: none; }
  .sp-app, .sp-btn { transition: none; }
  @media (hover: hover) and (pointer: fine) { .sp-app:hover { transform: none; } }
}
