/* ==========================================================================
   Section 6 — Pricing · "Pricing that meets you where you are"
   Text only, centred: heading, subheading and one CTA. A quiet pause
   between the dark platform band and the sections after it.
   Prefixed .pc- and scoped to .pricing.
   ========================================================================== */

.pricing {
  --pc-wash: rgba(197,220,247,0.32);

  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 136px) var(--page-px);
  background: var(--surface);
}
:root[data-theme="dark"] .pricing { --pc-wash: rgba(55,138,221,0.12); }

.pricing::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 75% at 50% 50%, var(--pc-wash), transparent 70%);
}

.pc-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
}
.pc-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.pc-title {
  font-size: var(--fs-section-title);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.pc-title em { font-style: normal; color: var(--accent); }

/* ─── Typed phrase ────────────────────────────────────────────────────────
   "Pricing that meets you [where you are]" — the bracketed part is typed.
   Sequence (js/sections/pricing.js, plays once when in view):
     where you are ⌫ → as you move off paper ⌫ → as you add branches ⌫
     → across borders ⌫ → where you are · caret blinks twice, fades
   Each stage has its own colour (teal → sky → violet → brand blue; no
   amber or red, those read as warnings). The slot is held at the widest
   phrase while typing so the centred line never jitters, then eases to
   the final phrase's width as it settles.                               */
.pricing {
  --pc-tone-0: var(--accent);          /* where you are — brand blue */
  --pc-tone-1: #0F8A76;                /* as you move off paper — teal */
  --pc-tone-2: #1F7FD6;                /* as you add branches — sky */
  --pc-tone-3: #6A4BD6;                /* across borders — violet */
}
:root[data-theme="dark"] .pricing {
  --pc-tone-1: #4FD1B0;
  --pc-tone-2: #7DBDF7;
  --pc-tone-3: #A996F5;
}

.pc-type {
  --pc-tone: var(--pc-tone-0);
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  color: var(--pc-tone);
  transition: color 0.2s ease-out, width 0.5s var(--ease-out);
}
.pc-type[data-tone="1"] { --pc-tone: var(--pc-tone-1); }
.pc-type[data-tone="2"] { --pc-tone: var(--pc-tone-2); }
.pc-type[data-tone="3"] { --pc-tone: var(--pc-tone-3); }

/* Zero-width character keeps a baseline when the slot is empty, so the
   line height doesn't jump between delete and type */
.pc-text::after { content: '\200B'; }

.pc-caret {
  display: none;
  align-self: center;
  width: 3px;
  height: 0.92em;
  margin-left: 3px;
  border-radius: 2px;
  background: currentColor;
  transition: opacity 0.4s ease-out;
}
.pc-type.is-live .pc-caret { display: inline-block; }
/* Blinks only while idle; solid while typing or deleting */
.pc-type.is-live:not(.is-busy) .pc-caret { animation: pc-blink 1s step-end infinite; }
.pc-type.is-done .pc-caret { animation: none; opacity: 0; }
@keyframes pc-blink { 50% { opacity: 0; } }

/* Narrow screens: the phrase gets its own line, so typing never
   reflows the start of the heading */
@media (max-width: 760px) {
  .pc-rotate { display: block; }
}

.pc-sub {
  max-width: 680px;
  font-size: var(--fs-section-sub);
  line-height: 1.6;
  color: var(--text-secondary);
  text-wrap: pretty;
}
.pc-actions { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .pc-type { transition: none; }
}
