/* =====================================================================
   Shop Pilot pricing card (services/pricing_card.py, behaviour in pricing.js).
   One component for the landing's #pricing section and /pricing. Everything is
   scoped to .spc and reads the site kit's tokens (site.css) with fallbacks, so
   the card looks the same wherever it is dropped.
   ===================================================================== */
.spc {
  --spc-ink: var(--ink, #0C0C0E);
  --spc-ink-2: var(--ink-2, #36363C);
  --spc-ink-3: var(--ink-3, #64646C);
  --spc-ink-4: var(--ink-4, #8D8D95);
  --spc-line: var(--line-2, rgba(12, 12, 20, 0.13));
  --spc-accent: var(--accent, #F1641E);
  --spc-accent-hover: var(--accent-hover, #E65A17);
  --spc-accent-press: var(--accent-press, #D85510);
  --spc-green: var(--green-text, #1C7C43);
  --spc-font: var(--font, "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  --spc-display: var(--display, "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  --spc-fill: 0%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  max-width: 1080px;
  margin: 56px auto 0;
  padding: 10px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-lift, 0 0 0 1px rgba(12, 12, 20, 0.06), 0 2px 4px rgba(12, 12, 20, 0.04), 0 56px 110px -48px rgba(74, 36, 8, 0.42));
  color: var(--spc-ink);
  font: 400 16px/1.5 var(--spc-font);
  text-align: left;
}
.spc *, .spc *::before, .spc *::after { box-sizing: border-box; }
.spc [hidden] { display: none !important; }
/* Resets at zero specificity, so every .spc-* rule below wins over them. */
:where(.spc) :where(p, h2, h3) { margin: 0; }
:where(.spc) :where(button, input) { font: inherit; color: inherit; }

/* ---------- left: how many shops ---------- */
.spc-configure { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 36px 38px 34px; }
.spc-title { font: 600 24px/1.2 var(--spc-display); letter-spacing: -0.016em; color: var(--spc-ink); }
.spc-desc { margin-top: 10px; max-width: 46ch; font-size: 15.5px; line-height: 1.55; color: var(--spc-ink-3); }
.spc-count { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; }
.spc-count label { font: 600 15px/1.2 var(--spc-font); color: var(--spc-ink); }
.spc-count-field {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px 0 4px;
  border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--spc-line);
  transition: box-shadow 0.15s ease;
}
.spc-count-field:focus-within { box-shadow: 0 0 0 2px var(--spc-accent); }
.spc-count-field input {
  width: 58px; height: 40px; padding: 0 8px; border: 0; background: transparent;
  font: 600 20px/1 var(--spc-display); font-variant-numeric: tabular-nums; color: var(--spc-ink);
  text-align: right; outline: none; -moz-appearance: textfield; appearance: textfield;
}
.spc-count-field input::-webkit-outer-spin-button,
.spc-count-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.spc-count-field span { font-size: 14px; color: var(--spc-ink-3); }

.spc-range {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 26px; margin: 22px 0 0;
  background: transparent; cursor: pointer;
}
.spc-range:focus-visible { outline: none; }
.spc-range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--spc-accent) 0, var(--spc-accent) var(--spc-fill), rgba(118, 118, 128, 0.2) var(--spc-fill));
}
.spc-range::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(118, 118, 128, 0.2); }
.spc-range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--spc-accent); }
.spc-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 1px rgba(12, 12, 20, 0.14), 0 2px 6px rgba(12, 12, 20, 0.22);
}
.spc-range::-moz-range-thumb {
  width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 1px rgba(12, 12, 20, 0.14), 0 2px 6px rgba(12, 12, 20, 0.22);
}
.spc-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(241, 100, 30, 0.45), 0 2px 6px rgba(12, 12, 20, 0.22); }
.spc-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px rgba(241, 100, 30, 0.45), 0 2px 6px rgba(12, 12, 20, 0.22); }

.spc-anchors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.spc-anchor {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 0; min-height: 76px; padding: 10px 4px; border: 0; border-radius: 12px;
  background: #F4F4F7; cursor: pointer; transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.spc-anchor:hover { background: #EDEDF1; }
.spc-anchor:focus-visible { outline: 2px solid var(--spc-accent); outline-offset: 2px; }
.spc-anchor span { font-size: 12.5px; line-height: 1.2; color: var(--spc-ink-3); }
.spc-anchor b {
  margin-top: 3px; font: 600 14px/1.15 var(--spc-font); font-variant-numeric: tabular-nums;
  color: var(--spc-ink); text-align: center; white-space: nowrap;
}
.spc-anchor em { font-style: normal; font-size: 11.5px; line-height: 1.2; color: var(--spc-ink-4); }
.spc-anchor.is-active { background: #fff; box-shadow: 0 0 0 2px var(--spc-ink); }

/* ---------- right: the price ---------- */
.spc-summary {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 34px 34px 28px; border-radius: 22px; background: #F6F6F9;
}
.spc-label {
  min-height: 12px; padding-right: 96px;
  font: 600 12px/1 var(--spc-font); letter-spacing: 0.07em; text-transform: uppercase; color: var(--spc-ink-4);
}
.spc-was {
  position: absolute; top: 28px; right: 34px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 5px; pointer-events: none;
}
.spc-was s {
  font: 600 25px/1 var(--spc-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
  color: rgba(12, 12, 20, 0.36); text-decoration-thickness: 2px; text-decoration-color: rgba(12, 12, 20, 0.42);
}
.spc-was span { font: 600 10.5px/1 var(--spc-font); letter-spacing: 0.07em; text-transform: uppercase; color: var(--spc-ink-4); }
.spc-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 14px; }
.spc-price {
  font: 600 clamp(48px, 5vw, 66px)/0.95 var(--spc-display); letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums; color: var(--spc-ink);
}
.spc-period { font-size: 15px; color: var(--spc-ink-3); }
.spc-total { margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--spc-ink-3); }
.spc-total b { color: var(--spc-ink); font-weight: 600; }
.spc-save {
  display: flex; flex-direction: column; gap: 4px; margin: 22px 0 24px; padding: 14px 16px;
  border-radius: 14px; background: #EAF7EE; box-shadow: inset 0 0 0 1px rgba(28, 124, 67, 0.14);
}
.spc-save strong { font: 600 15px/1.35 var(--spc-font); color: var(--spc-green); }
.spc-save span { font-size: 13.5px; line-height: 1.45; color: #3F6B50; }
.spc-pay {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; margin-top: auto;
  border-radius: 13px; background: var(--spc-accent); color: #fff; font: 600 16px/1 var(--spc-font);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgba(120, 40, 0, 0.28), 0 12px 26px -12px rgba(241, 100, 30, 0.75);
  transition: background-color 0.15s ease;
}
.spc-pay svg { width: 18px; height: 18px; flex: none; }
.spc-pay:hover { background: var(--spc-accent-hover); }
.spc-pay:active { background: var(--spc-accent-press); }
.spc-pay:focus-visible { outline: 2px solid var(--spc-accent); outline-offset: 3px; }
.spc-note { margin-top: 14px; text-align: center; font-size: 14px; line-height: 1.45; color: var(--spc-ink-3); }
.spc-note a { color: var(--spc-ink); font-weight: 600; text-underline-offset: 3px; }
.spc-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .spc { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
}
@media (max-width: 640px) {
  .spc { margin-top: 36px; padding: 6px; border-radius: 24px; }
  .spc-configure { padding: 24px 18px 22px; }
  .spc-title { font-size: 21px; }
  .spc-count { gap: 12px; margin-top: 24px; }
  .spc-anchors { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .spc-anchor { grid-column: span 2; min-height: 72px; }
  .spc-anchor:nth-child(n+4) { grid-column: span 3; }
  .spc-summary { padding: 24px 20px 20px; border-radius: 19px; }
  .spc-was { top: 20px; right: 20px; }
  .spc-was s { font-size: 22px; }
  .spc-pay { height: 54px; }
}
/* the regular total, struck, when an offer lowers the first month */
[data-spc-total] s { margin-right: 2px; color: var(--ink-4); font-weight: 500; text-decoration-thickness: 1.5px; }
