/* ==========================================================================
   10 Pricing — billing toggle, 3 plans in a hairline grid, enterprise row
   ========================================================================== */
#pricing { overflow: clip; --pr-lbl: var(--text-3); /* ~5:1 on --bg, AA for 11-14px labels */ }
#pricing .sec-body { position: relative; }
#pricing .sec-body::before {
  content: ""; position: absolute; left: 50%; top: 34%; width: 900px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.035), transparent 65%);
  pointer-events: none; filter: blur(20px);
}

/* ---------- billing toggle ---------- */
#pricing .pr-toggle {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 6px;
  height: 44px; padding: 0 7px 0 16px; border-radius: var(--r-pill);
  background: #0a0a0a; box-shadow: 0 0 0 1px #2e2e2e;
}
#pricing .pr-opt { font-size: 14px; color: var(--pr-lbl); transition: color .3s; letter-spacing: -0.01em; cursor: pointer; user-select: none; }
#pricing .pr-opt.is-on { color: var(--text); }
#pricing .pr-opt:hover { color: var(--text-2); }
#pricing .pr-opt.is-on:hover { color: var(--text); }
#pricing .pr-switch {
  position: relative; width: 44px; height: 24px; border-radius: var(--r-pill); flex: none;
  background: #1f1f1f; box-shadow: inset 0 0 0 1px #2e2e2e;
  transition: background .3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .3s cubic-bezier(0.4, 0, 0.2, 1);
}
#pricing .pr-switch i {
  position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #ededed; box-shadow: 0 1px 3px rgba(0,0,0,.5);
  transition: transform .4s var(--ease-out), background .3s;
}
#pricing .pr-switch:hover { box-shadow: inset 0 0 0 1px #454545; }
#pricing .pr-switch[aria-checked="true"] { background: #ededed; box-shadow: inset 0 0 0 1px #ededed; }
#pricing .pr-switch[aria-checked="true"] i { transform: translateX(20px); background: #0a0a0a; box-shadow: none; }
#pricing .pr-save { transition: background .3s, color .3s, box-shadow .3s; }
#pricing.is-annual .pr-save { background: #ededed; color: #0a0a0a; box-shadow: none; }

/* ---------- plans ---------- */
#pricing .pr-plans { position: relative; z-index: 1; }
#pricing .pr-plan {
  display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 38px) var(--pad) var(--pad);
  isolation: isolate;
}
/* pointer spotlight (set by pricing.js) */
#pricing .pr-plan::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.045), transparent 60%);
}
#pricing .pr-plan:hover::before { opacity: 1; }

#pricing .pr-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
#pricing .pr-idx { color: var(--text-3); }
#pricing .pr-name { margin-bottom: 8px; }
#pricing .pr-aud { color: var(--text-2); font-size: 14.5px; min-height: 2.9em; text-wrap: pretty; }

#pricing .pr-price { display: flex; align-items: flex-start; gap: 2px; margin-top: 30px; position: relative; }
#pricing .pr-cur { font-size: 26px; line-height: 1; letter-spacing: -0.03em; color: var(--text-2); padding-top: 9px; }
#pricing .pr-amt {
  font-size: clamp(56px, 5.2vw, 76px); line-height: .9; letter-spacing: -0.06em; font-weight: 450;
  display: inline-block;
  background: linear-gradient(180deg, #fff 30%, rgba(237,237,237,.6));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .04em;
}
#pricing .pr-per { align-self: flex-end; margin-left: 8px; padding-bottom: 6px; font-size: 14px; color: var(--pr-lbl); }
#pricing .pr-was {
  position: absolute; left: 0; top: -22px; font-size: 13px; color: var(--text-3); text-decoration-color: var(--text-3);
  opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
#pricing.is-annual .pr-was { opacity: 1; transform: none; }
#pricing .pr-bill { color: var(--pr-lbl); margin: 14px 0 26px; min-height: 14px; white-space: nowrap; }

#pricing .pr-inc { margin: 30px calc(var(--pad) * -1) 0; padding: 26px var(--pad) 0; border-top: 1px solid var(--line); flex: 1; }
#pricing .pr-inc-h { display: block; color: var(--pr-lbl); margin-bottom: 18px; }
#pricing .pr-list { display: grid; gap: 13px; }
#pricing .pr-list li {
  position: relative; padding-left: 28px; font-size: 14.5px; color: var(--text-2); line-height: 1.45; text-wrap: pretty;
}
#pricing .pr-list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: var(--r-xs);
  background: rgba(255,255,255,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23ededed' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 9.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line);
}
#pricing .pr-list b { color: var(--text); font-weight: 500; }

/* popular plan: neutral raised cell + brighter hairline ring + corner marks + faint glass backdrop.
   Its only red signal is the live dot in the badge. */
#pricing .pr-plan.is-pop { background: linear-gradient(180deg, var(--bg-3), var(--bg-2) 55%); z-index: 2; }
#pricing .pr-plan.is-pop::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none; z-index: 3;
  box-shadow: inset 0 0 0 1px var(--line-3), 0 40px 100px -50px rgba(0,0,0,.9);
}
#pricing .pr-plan.is-pop .cm::before, #pricing .pr-plan.is-pop .cm::after { background: var(--text); }
#pricing .pr-plan.is-pop .cm.tl { left: -5px; top: -5px; }
/* backdrop: ascending columns (the Growth "stairs") under concentric D-arcs and a tick quadrant, all neutral and
   anchored to the bottom-right corner, clear of the copy. pricing.js raises the columns on enter. */
#pricing .pr-pop-bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 100% 62% at 100% 100%, #000 30%, rgba(0,0,0,.4) 62%, transparent 92%);
          mask-image: radial-gradient(ellipse 100% 62% at 100% 100%, #000 30%, rgba(0,0,0,.4) 62%, transparent 92%);
}
/* 76% wide keeps the filled columns to the right of the longest checklist lines at every width */
#pricing .pr-pop-art { position: absolute; right: 0; bottom: 0; width: 76%; height: auto; max-height: 64%; overflow: visible; }
#pricing .pr-pop-art * { transform-box: fill-box; }
#pricing .pp-col { transform-origin: 50% 100%; }
#pricing .pp-lvl { transform-origin: 50% 100%; animation: pp-lvl 8s var(--ease-in-out) infinite alternate; animation-delay: calc(var(--i) * -1.4s); }
@keyframes pp-lvl { from { transform: scaleY(1); } to { transform: scaleY(.86); } }
#pricing .pp-cap { fill: none; stroke: #fff; stroke-opacity: .34; vector-effect: non-scaling-stroke; }
#pricing .pp-col:last-child .pp-cap { stroke-opacity: .6; }
#pricing .pp-sep { fill: none; stroke: #fff; stroke-opacity: .1; vector-effect: non-scaling-stroke; }
/* gradient strokes scale with the art (no non-scaling-stroke, which Chrome paints stale under gradients) */
#pricing .pp-arc { fill: none; stroke-width: 1.3; }
#pricing .pp-arc-hi { vector-effect: non-scaling-stroke; }
#pricing .pp-arc-hi { stroke: #fff; stroke-opacity: .7; stroke-linecap: round; stroke-dasharray: 8 192; stroke-dashoffset: 108; animation: pp-run 9s var(--ease-in-out) infinite; }
@keyframes pp-run { from { stroke-dashoffset: 108; } to { stroke-dashoffset: -8; } }
#pricing .pp-ticks path { stroke: #fff; stroke-opacity: .16; vector-effect: non-scaling-stroke; }
#pricing .pr-plan.is-pop .pr-top::before {
  content: ""; position: absolute; left: 30%; right: 12%; top: -1px; height: 1px; z-index: 4;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
}
#pricing .pr-badge { gap: 8px; color: var(--text); background: rgba(255,255,255,.04); }
#pricing .pr-plan.is-pop .pr-inc { border-top-color: var(--line-2); }
#pricing .pr-plan.is-pop .pr-list li::before { background-color: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- enterprise row ---------- */
#pricing .pr-ent { margin-top: -1px; position: relative; z-index: 1; }
#pricing .pr-ent-cell {
  display: flex; align-items: center; gap: 28px; padding: 22px var(--pad);
  background: linear-gradient(90deg, var(--bg-2), var(--bg) 60%);
}
#pricing .pr-ent-main { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
#pricing .pr-ent-main .h4 { margin-bottom: 2px; }
#pricing .pr-ent-main p { font-size: 14.5px; }
#pricing .pr-ent-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

#pricing .pr-note { text-align: center; color: var(--pr-lbl); margin-top: 26px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  #pricing .pr-ent-tags { display: none; }
}
@media (max-width: 991px) {
  #pricing .pr-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #pricing .pr-plan { padding-inline: 22px; }
  #pricing .pr-inc { margin-inline: -22px; padding-inline: 22px; }
  #pricing .pr-aud { min-height: 4.4em; }
}
@media (max-width: 767px) {
  #pricing .pr-plans { grid-template-columns: 1fr; }
  #pricing .pr-plan { padding: 28px 22px 26px; }
  #pricing .pr-aud { min-height: 0; }
  #pricing .pp-arc { stroke-width: 1.5; }
  #pricing .pr-price { margin-top: 34px; }
  #pricing .pr-ent-cell { flex-direction: column; align-items: stretch; gap: 20px; padding: 24px 22px; }
  #pricing .pr-ent-main { align-items: flex-start; }
  #pricing .pr-ent-cell .btn { width: 100%; }
  #pricing .pr-toggle { padding: 0 6px 0 14px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #pricing .pr-switch i, #pricing .pr-was { transition: none; }
  #pricing .pp-lvl, #pricing .pp-arc-hi { animation: none; }
  #pricing .pp-arc-hi { display: none; }
}
