/* Lead-leak package cards (site/js/packages.js) and the pricing blocks around them (index.html #pricing,
   services.html #packages). Uses the v3.css tokens. 2026-11-01: Timmy's base, polished by Bella to match the Signal look:
   chrome glass cards, one amber accent (Answered), a sliding toggle, and price blocks that cross-fade in place. */

.pk { display: grid; gap: clamp(22px, 3vw, 34px); }

/* ---- the toggle: two equal buttons and an amber pill that slides under the pressed one ---- */
.pk-toggle { position: relative; isolation: isolate; display: inline-grid; grid-template-columns: 1fr 1fr; justify-self: center; gap: 0; padding: 4px;
  border-radius: 99px; border: 1px solid var(--line-2); background: rgba(10,12,18,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.pk-toggle::before { content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 99px;
  background: var(--signal); box-shadow: 0 8px 30px -10px rgba(255,181,71,.6), inset 0 1px 0 rgba(255,255,255,.45); transition: transform .5s var(--ease); }
.pk[data-mode="upfront"] .pk-toggle::before { transform: translateX(100%); }
.pk-toggle-btn { min-height: 46px; min-width: 9.5em; padding: 0 22px; border: 0; border-radius: 99px; background: transparent; color: var(--pearl-2);
  font: 600 15px/1 var(--f-body); cursor: pointer; transition: color .35s ease; }
.pk-toggle-btn:hover { color: var(--pearl); }
.pk-toggle-btn[aria-pressed="true"] { color: var(--on-signal); }
.pk-toggle-btn:focus-visible { outline: 2px solid var(--pearl); outline-offset: 2px; }

/* ---- cards ---- */
.pk-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 960px) { .pk-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; width: 100%; } }
.pk-card { grid-template-rows: auto auto auto 1fr auto; gap: 14px; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), border-color .35s ease, box-shadow .5s ease; }
.pk-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; opacity: .5;
  background: linear-gradient(115deg, transparent 30%, rgba(237,238,241,.06) 45%, transparent 60%) 0 0 / 250% 100%; transition: background-position 1.1s var(--ease); }
@media (hover: hover) {
  .pk-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
  .pk-card:hover::before { background-position: 100% 0; }
  .pk-card.is-accent:hover { border-color: rgba(255,181,71,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 40px 90px -40px rgba(255,181,71,.35); }
}
.pk-card.is-accent { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 40px 90px -46px rgba(255,181,71,.4); }
@media (min-width: 961px) { .pk-card.is-accent { transform: translateY(-10px); } .pk-card.is-accent:hover { transform: translateY(-14px); } }
.pk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pk-head h3 { font: 400 clamp(24px, 2.2vw, 30px)/1.1 var(--f-display); letter-spacing: -.04em; }
.pk-badge { font: 600 11.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--on-signal); background: var(--signal); padding: 7px 10px; border-radius: 99px; white-space: nowrap; }

/* Both modes share one cell, so switching never changes the card height; they cross-fade in place. */
.pk-price { display: grid; padding: 14px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pk-mode { grid-area: 1 / 1; display: grid; gap: 4px; align-content: start; transition: opacity .35s ease, transform .5s var(--ease), visibility 0s linear 0s; }
.pk-mode[aria-hidden="true"] { visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .5s var(--ease), visibility 0s linear .25s; }
.pk-amount { font: 300 clamp(32px, 3.3vw, 46px)/1.05 var(--f-display); letter-spacing: -.05em; color: var(--pearl); font-variant-numeric: tabular-nums; }
.pk-card.is-accent .pk-amount { color: var(--signal-2); }
.pk-then { color: var(--pearl-2); font-size: 15.5px; }
.pk-year { font: 400 13px/1.4 var(--f-mono); color: var(--haze); margin-top: 4px; }
.pk-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; color: var(--pearl-2); font-size: 15.5px; align-content: start; }
.pk-list li { position: relative; padding-left: 20px; }
.pk-list li::before { content: ""; position: absolute; left: 0; top: .74em; width: 10px; height: 1px; background: var(--signal); }
.pk-list li:first-child:not(:only-child) { color: var(--pearl); }
.pk-cta { margin-top: 8px; width: 100%; }

/* ✱ = not live for clients yet: packages.js adds <a class="soon-mark pk-soon"> from T.leak features[].soon (Timmy 2026-11-01). */
.pk-line { color: var(--pearl-2); }

.pk-founding { text-align: center; color: var(--pearl-2); font: 400 14px/1.5 var(--f-mono); }

/* ---- around the cards ---- */
.pk-host { margin-top: clamp(32px, 4vw, 52px); }
.pk-fallback { display: grid; gap: 12px; padding: 0; list-style: none; max-width: 760px; }
.pk-fallback li { padding: 18px 22px; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--panel); color: var(--pearl-2); }
.pk-fallback b { color: var(--pearl); }
.pk-under { margin-top: clamp(28px, 3.4vw, 44px); display: grid; gap: 14px; justify-items: start; max-width: 74ch; }
.pk-under .body { max-width: none; }
.soon-note { color: var(--haze); padding-left: 14px; border-left: 2px solid rgba(255,181,71,.55); }
.soon-note span { color: var(--signal); }
.soon-mark { color: var(--signal); text-decoration: none; font-size: .78em; vertical-align: .32em; margin-left: 2px; padding: 0 2px; border-radius: 4px; }
.soon-mark:hover { color: var(--signal-2); }
.pk-which { padding: 16px 18px; border-radius: var(--r-inner); background: rgba(237,238,241,.04); border: 1px solid var(--line); }

/* year one and founding: two panels side by side on wide screens */
.pk-more { margin-top: clamp(56px, 7vw, 96px); display: grid; gap: 18px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1180px) { .pk-more { grid-template-columns: 1fr; } }
.pk-yr, .pk-fd { display: grid; gap: 16px; padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--panel); }
.pk-fd { border-color: rgba(255,181,71,.3); background: radial-gradient(120% 80% at 100% 0%, rgba(255,181,71,.12), transparent 55%), var(--panel); }
.pk-yr .h3, .pk-fd .h3 { font: 400 clamp(22px, 2vw, 28px)/1.2 var(--f-display); letter-spacing: -.035em; }
.pk-yr .body, .pk-fd .body { max-width: 60ch; }
.pk-table { font-size: 14.5px; }
.pk-table th { padding: 10px 12px; }
.pk-table td { padding: 12px; }
.pk-table td b { color: var(--pearl); font-weight: 600; }
.pk-spots b { display: inline-flex; align-items: center; gap: 10px; font: 400 14px/1 var(--f-mono); letter-spacing: .04em; color: var(--signal); padding: 10px 14px;
  border: 1px solid rgba(255,181,71,.45); border-radius: 99px; }
.pk-spots b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(255,181,71,.18); }

@media (max-width: 767px) {
  .pk-toggle { width: 100%; }
  .pk-toggle-btn { min-width: 0; padding: 0 10px; }
  .pk-table { font-size: 13.5px; }
  .pk-table th, .pk-table td { padding: 10px 8px; }
  .pk-table td { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .pk-card, .pk-card:hover, .pk-card.is-accent, .pk-card.is-accent:hover { transform: none; }
  .pk-mode, .pk-mode[aria-hidden="true"] { transform: none; }
}

/* ---- services.html: compare table, add-ons, included grid (2026-11-01, Bella) ---- */
.cmp-wrap { margin-top: clamp(40px, 5vw, 64px); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp { min-width: 640px; }
.cmp-cap { caption-side: bottom; text-align: left; padding: 14px 18px 4px; color: var(--haze); font-size: 13.5px; line-height: 1.5; }
.cmp thead th { text-align: center; color: var(--pearl); }
.cmp thead th.cmp-rec { color: var(--signal); }
.cmp tbody th { text-align: left; font: 400 15px/1.4 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--pearl-2); padding: 13px 18px; border-bottom: 1px solid var(--line); }
.cmp td { text-align: center; }
.cmp td:nth-child(3) { background: rgba(255,181,71,.04); }
.cmp td.ck { color: var(--signal); font-weight: 600; }
.cmp td.no { color: var(--haze); opacity: .6; }
.cmp tbody tr:nth-last-child(-n+3) th, .cmp tbody tr:nth-last-child(-n+3) td { font-variant-numeric: tabular-nums; color: var(--pearl); }
.cmp tbody tr:nth-last-child(3) th, .cmp tbody tr:nth-last-child(3) td { border-top: 1px solid var(--line-2); }
#included .incl .card:nth-child(n+3) { grid-column: span 2; }
@media (max-width: 960px) { #included .incl .card, #included .incl .card.wide { grid-column: 1 / -1; } }
.addons-grid { display: grid; gap: clamp(20px, 4vw, 64px); grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
@media (max-width: 900px) { .addons-grid { grid-template-columns: 1fr; } }
.addons { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.addons li { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 16px 2px; border-bottom: 1px solid var(--line); color: var(--pearl-2); transition: background-color .25s ease, padding .35s var(--ease); }
.addons li b { font: 400 clamp(20px, 1.8vw, 24px)/1.1 var(--f-display); letter-spacing: -.03em; color: var(--pearl); white-space: nowrap; }
.addons li small { color: var(--haze); font-size: 13.5px; }
@media (hover: hover) { .addons li:hover { background: rgba(255,181,71,.04); padding-inline: 10px; } }
@media (prefers-reduced-motion: reduce) { .addons li, .addons li:hover { transition: none; padding-inline: 2px; } }

/* CRO Task 7 (2026-11-06): the 12-month line under every monthly price. */
.pk-term { margin-top: 4px; color: var(--haze, #A4AAB5); font-size: 13.5px; line-height: 1.45; }
/* Blake 2 (2026-11-06): the ✱ note now sits under the table, not inside it (it was clipped in the phone table scroller) */
p.cmp-cap { padding: 12px 4px 0; max-width: 72ch; }
/* Blake re-check: a dark panel so the moving background never crosses the note */
p.cmp-cap#soon-note { background: rgba(6,7,10,.82); border-radius: 12px; padding: 12px 14px; margin-top: 12px; }

/* ---------- Phones: the comparison as one card per package (Bella, 2026-11-14, Tess P2-1) ----------
   Under 640px the table needed a sideways swipe to see Answered and Booked. The cards carry the same rows. */
.cmp tbody th a { display: inline-block; padding: 12px 0; margin: -12px 0; } /* "Hosting & care": 44px tall tap area, row height unchanged */
.cmp-cards { display: none; }
@media (max-width: 639px) {
  .cmp-wrap { display: none; }
  .cmp-cards { display: grid; gap: 14px; margin-top: 36px; }
}
.cmp-card { display: grid; gap: 12px; padding: 20px 18px; border-radius: var(--r-panel, 20px); border: 1px solid var(--line); background: rgba(12,15,22,.92); }
.cmp-card--rec { border-color: rgba(255,181,71,.45); background: linear-gradient(160deg, rgba(255,181,71,.11), rgba(12,15,22,.94) 48%); }
.cmp-card-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font: 400 23px/1.2 var(--f-display); letter-spacing: -.03em; color: var(--pearl); }
.cmp-card-fix { margin-left: auto; font: 400 14px/1.3 var(--f-mono); letter-spacing: .02em; color: var(--haze); }
.cmp-card-rec { padding: 6px 9px; border-radius: 99px; background: var(--signal); color: var(--on-signal); font: 600 13px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.cmp-card-pay { margin: 0; padding: 4px 14px; border-radius: 12px; background: rgba(237,238,241,.04); }
.cmp-card-pay div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; }
.cmp-card-pay div + div { border-top: 1px solid var(--line); }
.cmp-card-pay dt { color: var(--pearl-2); font-size: 16px; line-height: 1.35; }
.cmp-card-pay dd { margin: 0; color: var(--pearl); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.cmp-card-k { margin-top: 2px; font: 400 13px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--haze); }
.cmp-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 16px; line-height: 1.45; }
.cmp-card ul li { position: relative; padding-left: 24px; }
.cmp-card-in li { color: var(--pearl); }
.cmp-card-in li::before { content: "\2713"; content: "\2713" / ""; position: absolute; left: 0; top: 0; color: var(--signal); font-weight: 600; }
.cmp-card-out li { color: var(--haze); }
.cmp-card-out li::before { content: ""; position: absolute; left: 3px; top: .74em; width: 10px; height: 1px; background: var(--haze); }
.cmp-card a { display: inline-block; padding: 11px 0; margin: -11px 0; color: inherit; text-decoration: underline; text-decoration-color: rgba(255,181,71,.6); text-underline-offset: 3px; }
