/* ============================================================
   Sampoll /pricing 2026 — extends the home-2026 design system.
   Loaded AFTER home-2026.css (+ blog-2026.css via BaseLayout);
   uses its :root tokens (--ink, --blue, --yellow, --paper, --line,
   --font-*, --radius…). Only pricing-specific sp-price-* classes
   live here — never restyle sp-* classes owned elsewhere.
   ============================================================ */

/* ---------- hero: the per-outcome claim ---------- */

.sp-price-hero {
  padding: 64px 0 72px;
}

.sp-price-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  gap: 24px 56px;
  align-items: center;
}

.sp-price-hero__copy h1 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.9rem, 7.2vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0.004em;
  max-width: 16ch;
  text-wrap: balance;
}

.sp-price-hero__copy h1 em {
  font-style: normal;
  color: var(--blue);
}

.sp-price-hero__sub {
  margin-top: 22px;
  font-size: 1.14rem;
  color: var(--text-soft);
  max-width: 54ch;
}

.sp-price-hero__sub strong {
  color: var(--ink);
  font-weight: 700;
}

.sp-price-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 12px;
}

.sp-price-hero__channels {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}

/* ---------- hero scene: the oversized shelf tag ---------- */

.sp-price-scene {
  display: grid;
  justify-items: center;
}

/* the shelf-rail stub the hero tag clips to */
.sp-price-hero__rail {
  width: min(380px, 92vw);
  height: 14px;
  background: var(--steel-rail);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(22, 23, 26, 0.3);
}

.sp-price-hero__tag {
  width: min(340px, 88vw);
  margin-top: 20px;
  position: relative;
}

.sp-price-hero__clip {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 26px;
  background: var(--steel-rail);
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(22, 23, 26, 0.35);
  z-index: -1;
}

.sp-price-hero__tag .sp-price-tag__fig {
  font-size: 3.6rem;
}

/* ---------- shelf-edge price tag (shared: hero + rail) ---------- */

.sp-price-tag {
  position: relative;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 18px 18px 14px;
  transform: rotate(var(--tilt, 0deg));
  box-shadow: 0 12px 28px rgba(22, 23, 26, 0.14);
}

.sp-price-tag--pop {
  background: var(--yellow);
}

.sp-price-tag__name {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin: 0;
}

.sp-price-tag__fig {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.8rem;
  line-height: 1;
  margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}

.sp-price-tag__per {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0;
}

.sp-price-tag__rule {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: 14px 0 12px;
}

.sp-price-tag__unit {
  display: block;
  background: var(--ink);
  color: #f4f4ee;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  border-radius: 4px;
}

.sp-price-tag__note {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 10px 0 0;
}

.sp-price-tag__offers {
  font-size: 0.9rem;
  margin: 10px 0 0;
}

.sp-price-tag__bar {
  display: block;
  height: 16px;
  margin-top: 14px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 5px,
    var(--ink) 5px 6px,
    transparent 6px 10px
  );
  opacity: 0.75;
}

/* Shelf tags land into their tilt like the world's price signs: hung
   straight and 16px low until scrolled into view, then the spring. */
.has-anim .sp-price-tag {
  transform: translateY(16px) rotate(0deg);
  transition: transform 0.8s cubic-bezier(0.34, 1.3, 0.5, 1);
}

.has-anim .sp-price-tag.sp-in {
  transform: translateY(0) rotate(var(--tilt, 0deg));
}

/* On yellow card stock, secondary lettering is Yellow Ink (#6d5806 — the
   dark ochre DESIGN.md prints on yellow objects), never gray. */
.sp-price-tag--pop .sp-price-tag__per,
.sp-price-tag--pop .sp-price-tag__note {
  color: #6d5806;
}

/* ---------- hero credit tally (receipt voice) ---------- */

.sp-price-tally {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.sp-price-tally__row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: space-between;
}

.sp-price-tally__row + .sp-price-tally__row {
  margin-top: 5px;
}

.sp-price-tally__row--total {
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 9px;
}

.sp-price-tally__dots {
  flex: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-3px);
}

.sp-price-tally__num {
  white-space: nowrap;
}

/* ---------- authored moment ---------- */

.has-anim .sp-price-tick {
  animation: sp-price-tick 0.32s ease-out;
}

@keyframes sp-price-tick {
  from {
    opacity: 0.3;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.has-anim .sp-price-resolve {
  animation: sp-price-resolve 0.45s cubic-bezier(0.34, 1.3, 0.5, 1);
}

@keyframes sp-price-resolve {
  from {
    transform: scale(0.94);
  }
  to {
    transform: none;
  }
}

/* ---------- free until you go public ---------- */

.sp-price-free {
  padding: 96px 0 88px;
}

/* copy left, object right — the hero grid's rhythm carried down the page */
.sp-price-free__grid,
.sp-price-credits__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: center;
}

.sp-price-free__points {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 640px;
}

.sp-price-free__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
}

.sp-price-free__points svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.sp-price-free__points span {
  color: var(--text-soft);
}

.sp-price-free__points strong {
  color: var(--ink);
}

.sp-price-samrow {
  display: flex;
  justify-content: center;
}

/* ---------- how credits work ---------- */

.sp-price-credits {
  padding: 0 0 96px;
}

/* The credit ledger is the world's receipt object (base recipe in
   home-2026.css: torn bottom edge, mono voice, dashed rules) — this class
   only widens the paper and sets its bold sum row. */
.sp-price-ledger {
  width: min(420px, 92vw);
  transform: rotate(1.2deg);
}

.sp-price-credits__proof {
  display: flex;
  justify-content: center;
}

.sp-price-ledger .sp-receipt__row--sum {
  font-weight: 700;
  font-size: 0.9rem;
}

.sp-price-credits__body {
  margin-top: 22px;
  font-size: 1.06rem;
  color: var(--text-soft);
  max-width: 58ch;
}

.sp-price-credits__body strong {
  color: var(--ink);
}

/* ---------- the shelf rail: three tags ---------- */

.sp-price-plans {
  padding: 0 0 96px;
}

.sp-price-rail {
  position: relative;
  padding-top: 26px;
}

.sp-price-rail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: var(--steel-rail);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(22, 23, 26, 0.3);
}

.sp-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

/* each rail tag hangs from the shelf edge by a steel clip stub */
.sp-price-grid > .sp-price-tag::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 20px;
  background: var(--steel-rail);
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(22, 23, 26, 0.35);
  z-index: -1;
}

/* ---------- included block + dated line ---------- */

.sp-price-included {
  margin-top: 34px;
}

.sp-price-included h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.35rem;
  line-height: 1.1;
  margin: 0;
}

.sp-price-included ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 26px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.sp-price-included li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sp-price-included li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.sp-price-included li span {
  color: var(--text-soft);
}

.sp-price-included__note {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.sp-price-asof {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-top: 22px;
}

.sp-price-asof a {
  color: var(--blue);
}

/* ---------- faq ---------- */

.sp-price-faq {
  padding: 0 0 96px;
}

/* ---------- responsive ---------- */

@media (max-width: 1060px) {
  .sp-price-hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sp-price-free__grid,
  .sp-price-credits__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .sp-price-scene {
    justify-self: center;
  }
}

@media (max-width: 820px) {
  .sp-price-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* a vertical stack has no shelf edge — drop the rail and the clip stubs */
  .sp-price-rail {
    padding-top: 0;
  }

  .sp-price-rail::before {
    display: none;
  }

  .sp-price-grid > .sp-price-tag::before {
    display: none;
  }

  .sp-price-tag {
    max-width: 420px;
  }
}

@media (max-width: 560px) {
  .sp-price-hero {
    padding: 48px 0 64px;
  }

  .sp-price-free {
    padding: 72px 0 64px;
  }

  .sp-price-credits,
  .sp-price-plans,
  .sp-price-faq {
    padding: 0 0 72px;
  }

  .sp-price-hero__actions .sp-btn {
    width: 100%;
    justify-content: center;
  }

  .sp-price-included ul {
    grid-template-columns: 1fr;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .has-anim .sp-price-tick,
  .has-anim .sp-price-resolve {
    animation: none;
  }

  .has-anim .sp-price-tag {
    transition: none;
    transform: rotate(var(--tilt, 0deg));
  }
}
