/*
 * deltaloop-marketing/pricing - block stylesheet.
 *
 * Auto-extracted from the monolithic style.css. References
 * design tokens from assets/css/tokens.css. Loaded by
 * WordPress when the block renders (via block.json `style`).
 */

/* ─────────────────────────────────────────────────────────
   Pricing teaser - Section 11
   ───────────────────────────────────────────────────────── */

.pricing-teaser {
  position: relative;
  padding: 140px 48px 160px;
  max-width: none;
}

.pricing-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 980px; height: 620px;
  background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(20,227,156,0.11), transparent 70%);
  pointer-events: none;
}

.pricing-shell {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
}

.pricing-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.pricing-rule {
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.pricing-stamp { color: var(--outline); white-space: nowrap; }

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* LEFT - pitch */

.pricing-pitch {
  padding: 56px 56px 48px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pricing-headline { margin: 0; }

.pricing-sub {
  max-width: 48ch;
  margin: 0;
}

.pricing-includes {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-includes li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--on-surface);
}

.pricing-includes .tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--hairline-accent);
  border-radius: 50%;
  font-size: 10px;
  color: var(--primary);
  flex: 0 0 auto;
}

.pricing-ctas {
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* RIGHT - ledger receipt */

.pricing-ledger {
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%),
    var(--surface-paper);
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}

.ledger-rows {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.ledger-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--hairline);
  font-family: var(--font-sans);
}

.ledger-row:last-child { border-bottom: 0; }

.lr-label {
  font-size: 14.5px;
  color: var(--on-surface-variant);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lr-value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--on-surface);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lr-unit {
  color: var(--outline);
  font-weight: 400;
  margin-left: 2px;
}

.ledger-row--sum {
  padding-top: 20px;
  margin-top: 4px;
  border-top: 1px solid var(--hairline);
  border-bottom: 0;
}

.ledger-row--sum .lr-label { color: var(--outline); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-family: var(--font-mono); }

.lr-strike {
  color: var(--outline);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--outline);
}

.ledger-row--delta {
  padding: 20px 0 8px;
  border-top: 1px solid var(--hairline-accent);
}

.ledger-row--delta .lr-label {
  color: var(--text-heading);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.delta-tick {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  display: inline-block;
}

.lr-delta {
  color: var(--primary);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.ledger-foot {
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-pitch { padding: 0 0 8px; }
}

/* PRICING - ledger rows tally in */

.pricing-includes > li.reveal {
  opacity: 0;
  transform: translate3d(-16px, 0, 0);
}

.pricing-includes > li.reveal.is-in {
  opacity: 1;
  transform: none;
}

.ledger-rows > .ledger-row.reveal {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}

.ledger-rows > .ledger-row.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Pricing glow drifts with scroll */

.pricing-glow {
  transform: translate(-50%, calc(-50% + (var(--scroll-progress, 0) - 0.5) * 60px));
}

@media (prefers-reduced-motion: reduce) {
  .pricing-glow { transform: none !important; opacity: 1 !important; }
}

/* ────────────────── TABLET (< 1024px) ────────────────── */

@media (max-width: 1024px) {
  /* Pricing - already has 900px rule; extend here */
  .pricing-teaser { padding: 100px 32px; }
}

/* ────────────────── PHONE (< 640px) ────────────────── */

@media (max-width: 640px) {
  /* Pricing - ledger rows can't be wider than screen */
  .pricing-teaser { padding: 80px 20px; }
  .pricing-pitch { padding: 0; }
  .pricing-ledger { padding: 24px; }
  .ledger-head { gap: 8px; flex-wrap: wrap; }
  .lr-delta { font-size: 18px; }
  .pricing-ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .pricing-ctas .btn-primary-lg { width: 100%; justify-content: center; }
  .pricing-ctas .btn-ghost-lg { text-align: center; }
}

/* ────────────────── PHONE overrides (refined) ────────────────── */

@media (max-width: 640px) {
  /* Pricing rows are long - allow value to wrap if needed */
  .ledger-row { grid-template-columns: 1fr auto; gap: 12px; }
  .lr-value { white-space: normal; text-align: right; }
}
