/* ==========================================================================
   marketing-pricing.css

   Direction B "Inspector" pricing page — mono-heavy, tag-dot vocabulary,
   dark schema cards, X12 marquee. All rules are scoped under .pp-root so
   they cannot leak into other public pages. Tediware design tokens declared
   in application.tailwind.css are referenced via local hsl()-wrapped aliases
   (the global tokens are unwrapped HSL triplets).
   ========================================================================== */

.pp-root {
  --pp-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pp-ink: hsl(17 28% 8%);
  --pp-ink-soft: hsl(17 28% 14%);
  --pp-ink-soft-2: hsl(17 18% 22%);
  --pp-ink-text: hsl(35 18% 92%);
  --pp-ink-text-dim: hsl(33 8% 64%);

  --pp-bg: hsl(var(--background));
  --pp-fg: hsl(var(--foreground));
  --pp-primary: hsl(var(--primary));
  --pp-muted-fg: hsl(var(--muted-foreground));
  --pp-border: hsl(var(--border));
  --pp-affirmative: hsl(var(--affirmative));
  --pp-surface-alt: hsl(44 18% 95%);

  font-family: var(--font-sans, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  color: var(--pp-fg);
  background: var(--pp-bg);
}

.pp-root * { box-sizing: border-box; }
.pp-root .pp-mono { font-family: var(--pp-mono); font-size: 0.93em; }

/* Match the site-wide `container mx-auto px-4` (config/tailwind.config.js). */
.pp-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Hero */
.pp-hero { padding: 72px 0 36px; }
.pp-h1 {
  font-size: 52px; font-weight: 800;
  letter-spacing: -0.028em; line-height: 1.05;
  margin: 0; text-wrap: balance; max-width: 840px;
}
.pp-stats {
  display: flex; gap: 36px; margin-top: 36px;
  padding-top: 28px; border-top: 1px dashed var(--pp-border);
}
.pp-stats > div { display: flex; flex-direction: column; gap: 4px; }
.pp-stat-num {
  font-family: var(--pp-mono); font-size: 26px; font-weight: 700;
  color: var(--pp-primary); letter-spacing: -0.02em;
}
.pp-stat-lbl { font-size: 12px; color: var(--pp-muted-fg); letter-spacing: .02em; }

/* X12 marquee */
.pp-x12-strip {
  background: var(--pp-ink); color: hsl(35 18% 75%);
  border-top: 1px solid var(--pp-ink-soft);
  border-bottom: 1px solid var(--pp-ink-soft);
  overflow: hidden; padding: 14px 0;
  position: relative; margin-top: 20px;
}
.pp-x12-strip::before, .pp-x12-strip::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
  pointer-events: none;
}
.pp-x12-strip::before { left: 0; background: linear-gradient(90deg, var(--pp-ink), transparent); }
.pp-x12-strip::after  { right: 0; background: linear-gradient(-90deg, var(--pp-ink), transparent); }
.pp-x12-marquee {
  display: flex; gap: 32px; white-space: nowrap;
  animation: pp-marquee 70s linear infinite;
  font-family: var(--pp-mono); font-size: 13px;
}
.pp-x12-line { display: inline-flex; gap: 32px; }
.pp-x12-seg { color: hsl(35 18% 78%); }
.pp-x12-seg::before { content: "│ "; color: var(--pp-primary); margin-right: 6px; }
@keyframes pp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Bands */
.pp-band { padding: 88px 0; }
.pp-band-cream { background: var(--pp-surface-alt); }
.pp-sec-head { margin: 0 0 40px; max-width: 720px; }
.pp-sec-head-left { text-align: left; }
.pp-eyebrow {
  font-family: var(--pp-mono); color: var(--pp-primary);
  font-size: 12px; font-weight: 600; margin: 0 0 14px;
  letter-spacing: .02em;
}
.pp-h2 {
  font-size: 34px; font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.12;
  margin: 0; text-wrap: balance;
}
.pp-section-lede {
  margin: 14px 0 0; color: var(--pp-muted-fg);
  font-size: 16px; line-height: 1.65; max-width: 640px;
}

/* Tag-dot pill — shared component vocabulary */
.pp-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--pp-border); background: var(--pp-bg);
  font-family: var(--pp-mono); font-size: 11px; font-weight: 500;
  color: var(--pp-muted-fg);
  white-space: nowrap;
}
.pp-tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 999px; background: hsl(33 8% 60%);
}
.pp-tag-modern { color: #3b82f6; border-color: #3b82f6; background: rgba(59,130,246,.06); }
.pp-tag-modern::before { background: #3b82f6; }
.pp-tag-tested { color: hsl(104 49% 30%); border-color: hsla(104,49%,50%,.5); background: hsla(104,49%,50%,.08); }
.pp-tag-tested::before { background: var(--pp-affirmative); }
.pp-tag-prod { color: var(--pp-primary); border-color: var(--pp-primary); background: hsla(27,91%,51%,.06); }
.pp-tag-prod::before { background: var(--pp-primary); }
.pp-tag-staging { color: #a855f7; border-color: #a855f7; background: rgba(168,85,247,.06); }
.pp-tag-staging::before { background: #a855f7; }

/* Plan cards */
.pp-plans-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pp-plan {
  border: 1px solid var(--pp-border); border-radius: 12px;
  background: var(--pp-bg); padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.pp-plan-pop { border-color: var(--pp-primary); box-shadow: 0 0 0 3px hsla(27,91%,51%,.08); }
.pp-plan-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
  border-bottom: 1px dashed var(--pp-border); padding-bottom: 14px;
}
.pp-plan-titles { display: flex; flex-direction: column; gap: 2px; }
.pp-plan-key {
  font-family: var(--pp-mono); font-size: 11px;
  color: var(--pp-muted-fg);
}
.pp-plan h3 { margin: 0; font-size: 18px; font-weight: 700; }
.pp-plan-price { display: flex; align-items: baseline; gap: 6px; }
.pp-plan-num {
  font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: var(--pp-fg);
}
.pp-plan-sub { font-family: var(--pp-mono); font-size: 13px; color: var(--pp-muted-fg); }
.pp-plan-blurb {
  margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--pp-muted-fg);
}
.pp-plan-bullets {
  list-style: none; margin: 0; padding: 14px 0 0;
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px dashed var(--pp-border);
}
.pp-plan-bullets li {
  display: flex; flex-direction: column; gap: 2px;
}
.pp-bull-k {
  font-family: var(--pp-mono); font-size: 10.5px;
  color: var(--pp-primary); font-weight: 600; letter-spacing: .02em;
}
.pp-bull-v { font-size: 13.5px; line-height: 1.45; }

/* Calculator (React island styles + no-JS fallback) */
.pp-calc {
  border: 1px solid var(--pp-border); border-radius: 12px;
  background: var(--pp-bg); overflow: hidden;
  box-shadow: var(--tedi-shadow-sm, 0 1px 2px rgb(0 0 0 / 0.05));
}
.pp-calc-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid var(--pp-border);
  background: var(--pp-surface-alt);
}
.pp-calc-tab {
  font-family: var(--pp-mono); font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 4px;
  color: var(--pp-muted-fg);
}
.pp-calc-tab-active {
  background: var(--pp-bg); color: var(--pp-primary);
  border: 1px solid var(--pp-border);
}
.pp-calc-meta {
  font-family: var(--pp-mono); font-size: 11.5px; color: var(--pp-muted-fg);
  display: inline-flex; align-items: center; gap: 8px;
}
.pp-pulse {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--pp-affirmative);
  box-shadow: 0 0 0 0 hsla(104,49%,50%,.55);
  animation: pp-pulse 1.8s ease-out infinite;
}
@keyframes pp-pulse {
  0%   { box-shadow: 0 0 0 0 hsla(104,49%,50%,.55); }
  70%  { box-shadow: 0 0 0 8px hsla(104,49%,50%,0); }
  100% { box-shadow: 0 0 0 0 hsla(104,49%,50%,0); }
}
.pp-calc-inputs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-bottom: 1px solid var(--pp-border);
}
.pp-input {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 22px; border-right: 1px solid var(--pp-border);
  transition: background 120ms var(--tedi-ease-out, ease);
}
.pp-input:last-child { border-right: 0; }
.pp-input:focus-within {
  background: hsla(27, 91%, 51%, 0.04);
  box-shadow: inset 0 -2px 0 0 var(--pp-primary);
}
.pp-input-k {
  font-family: var(--pp-mono); font-size: 11px;
  color: var(--pp-primary); font-weight: 600; letter-spacing: .02em;
}
.pp-input input {
  font-family: var(--pp-mono); font-size: 22px; font-weight: 700;
  border: none; background: transparent; padding: 4px 0; width: 100%;
  color: var(--pp-fg); outline: none;
}
.pp-input input:focus-visible { color: var(--pp-primary); }
.pp-input-hint {
  font-family: var(--pp-mono); font-size: 11.5px; color: var(--pp-primary);
}
.pp-calc-out { padding: 18px 22px 22px; }
.pp-calc-lanes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.pp-lane {
  position: relative;
  border: 1px solid var(--pp-border); border-radius: 10px;
  padding: 22px 16px 16px; text-align: center;
  background: var(--pp-bg);
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.pp-lane-active {
  border-color: var(--pp-primary); border-width: 2px;
  background: hsla(27,91%,51%,.04);
  padding: 21px 15px 15px;
}
.pp-lane-flag {
  position: absolute; top: -10px;
  font-family: var(--pp-mono); font-size: 10.5px; font-weight: 700;
  background: var(--pp-primary); color: #fff;
  padding: 3px 10px; border-radius: 999px; letter-spacing: .04em;
}
.pp-lane-name { font-size: 13px; color: var(--pp-muted-fg); font-weight: 600; }
.pp-lane-active .pp-lane-name { color: var(--pp-primary); }
.pp-lane-price {
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em;
  font-family: var(--pp-mono);
}
.pp-lane-hint { font-family: var(--pp-mono); font-size: 11px; color: var(--pp-muted-fg); }

.pp-calc-foot {
  padding: 12px 18px; border-top: 1px solid var(--pp-border);
  background: var(--pp-ink); color: hsl(35 18% 80%);
  font-family: var(--pp-mono); font-size: 12.5px;
  overflow-x: auto; white-space: nowrap;
}
.pp-calc-foot .pp-mono { color: hsl(35 18% 88%); }

.pp-calc-note {
  margin: 22px 0 0; font-size: 13.5px;
  color: var(--pp-muted-fg); display: flex; align-items: flex-start; gap: 8px;
}
.pp-check { color: var(--pp-affirmative); font-weight: 700; flex-shrink: 0; }

/* Reason cards ("Sounds too good to be true?") */
.pp-tgttb {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.pp-tgttb-card {
  border: 1px solid var(--pp-border); border-radius: 12px;
  background: var(--pp-bg); padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.pp-tgttb-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px; gap: 8px;
}
.pp-tgttb-key {
  font-family: var(--pp-mono); font-size: 11px;
  color: var(--pp-muted-fg); font-weight: 600; letter-spacing: .02em;
}
.pp-tgttb-card h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.pp-tgttb-card p {
  margin: 0; color: var(--pp-muted-fg);
  font-size: 14px; line-height: 1.65;
}

/* Receipt */
.pp-receipt {
  margin-top: 28px; background: var(--pp-ink); color: var(--pp-ink-text);
  border-radius: 12px; padding: 22px 26px;
  font-family: var(--pp-mono); font-size: 13.5px; line-height: 1.85;
  border: 1px solid var(--pp-ink-soft);
  box-shadow: var(--tedi-shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.10));
}
.pp-receipt-head {
  color: hsl(35 18% 92%); padding-bottom: 12px;
  border-bottom: 1px dashed var(--pp-ink-soft-2); margin-bottom: 10px;
}
.pp-receipt-head::before { content: "▸ "; color: var(--pp-primary); }
.pp-c-flag { color: #88c0d0; }
.pp-receipt-row {
  display: flex; justify-content: space-between; gap: 12px;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px dashed hsl(17 18% 18%);
  padding: 6px 0;
}
.pp-receipt-row:last-child { border-bottom: 0; }
.pp-receipt-row > span:last-child { white-space: nowrap; }
.pp-receipt-strike { color: hsl(33 8% 50%); text-decoration: line-through; text-decoration-color: hsla(104,49%,50%,.6); }
.pp-receipt-strike span:last-child { color: var(--pp-affirmative); text-decoration: none; font-weight: 600; }
.pp-receipt-total {
  margin-top: 8px; padding-top: 10px;
  border-top: 1px dashed var(--pp-ink-soft-2);
  color: var(--pp-primary); font-weight: 700; font-size: 15px;
}

/* AS2 add-on */
.pp-as2 {
  border: 1px solid var(--pp-border); border-radius: 12px;
  background: var(--pp-bg);
  display: grid; grid-template-columns: 1fr 280px;
  gap: 0;
}
.pp-as2-main { padding: 28px; }
.pp-as2-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.pp-as2-key {
  font-family: var(--pp-mono); font-size: 12px;
  color: var(--pp-primary); font-weight: 600;
}
.pp-as2-blurb { margin: 0 0 18px; color: var(--pp-muted-fg); font-size: 14.5px; line-height: 1.6; max-width: 560px; }
.pp-as2-bullets {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px;
}
.pp-as2-bullets li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; }
.pp-as2-price {
  border-left: 1px solid var(--pp-border); padding: 28px;
  display: flex; flex-direction: column; gap: 6px;
  align-items: flex-start; justify-content: center;
  background: var(--pp-surface-alt);
}
.pp-as2-num {
  font-family: var(--pp-mono); font-size: 36px; font-weight: 800;
  color: var(--pp-fg); letter-spacing: -0.02em;
}
.pp-as2-sub { font-family: var(--pp-mono); font-size: 14px; color: var(--pp-muted-fg); margin-top: -8px; }
.pp-as2-fine { font-size: 12.5px; color: var(--pp-muted-fg); line-height: 1.5; margin-top: 8px; }

/* Includes grid */
.pp-includes {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border: 1px solid var(--pp-border); border-radius: 12px; overflow: hidden;
  background: var(--pp-bg);
}
.pp-incl {
  padding: 16px 20px;
  border-right: 1px solid var(--pp-border);
  border-bottom: 1px solid var(--pp-border);
  display: flex; flex-direction: column; gap: 4px;
}
.pp-incl:nth-child(3n) { border-right: 0; }
.pp-incl:nth-last-child(-n+3) { border-bottom: 0; }
.pp-incl-k {
  font-family: var(--pp-mono); font-size: 11px;
  color: var(--pp-primary); font-weight: 600; letter-spacing: .02em;
}
.pp-incl-v { font-size: 14px; line-height: 1.5; }

/* Final CTA — dark band; .tedi-button is restyled inside this scope */
.pp-final-cta {
  background: var(--pp-ink); color: var(--pp-ink-text);
  padding: 80px 0; text-align: center;
}
.pp-final-cta .pp-h2 {
  font-size: 32px; margin: 0 auto 14px; max-width: 720px;
  color: hsl(35 18% 96%); letter-spacing: -0.02em; font-weight: 800;
}
.pp-final-cta p { color: var(--pp-ink-text-dim); margin: 0 0 24px; font-size: 14.5px; }
.pp-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .pp-plans-grid { grid-template-columns: repeat(2, 1fr); }
  .pp-includes { grid-template-columns: repeat(2, 1fr); }
  .pp-incl { border-right: 1px solid var(--pp-border); }
  .pp-incl:nth-child(2n) { border-right: 0; }
  .pp-incl:nth-last-child(-n+2) { border-bottom: 0; }
  .pp-incl:nth-last-child(3) { border-bottom: 1px solid var(--pp-border); }
}
@media (max-width: 760px) {
  .pp-h1 { font-size: 36px; }
  .pp-h2 { font-size: 26px; }
  .pp-plans-grid, .pp-tgttb, .pp-includes { grid-template-columns: 1fr; }
  .pp-incl { border-right: 0 !important; }
  .pp-incl:not(:last-child) { border-bottom: 1px solid var(--pp-border); }
  .pp-incl:last-child { border-bottom: 0; }
  .pp-as2 { grid-template-columns: 1fr; }
  .pp-as2-price { border-left: 0; border-top: 1px solid var(--pp-border); }
  .pp-calc-inputs { grid-template-columns: 1fr; }
  .pp-input { border-right: 0; border-bottom: 1px solid var(--pp-border); }
  .pp-input:last-child { border-bottom: 0; }
  .pp-calc-lanes { grid-template-columns: 1fr; }
  .pp-stats { flex-wrap: wrap; gap: 22px; }
}
