/* ==========================================================================
   /pricing only. Loaded after styles.css, which it does not modify.
   Same visual language as the rest of the site: existing tokens throughout.
   ========================================================================== */

.pricing__title {
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--ink-deep);
  margin: 0 0 clamp(22px, 3vw, 30px);
  text-align: center;
}

/* ── billing toggle ────────────────────────────────────────────────────── */

.seg {
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto clamp(30px, 4vw, 46px);
  padding: 4px;
  background: var(--accent-100);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.seg__opt {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--muted);
  padding: 9px 010px;
  padding-inline: 22px;
  border-radius: 999px;
  transition: background .16s ease, color .16s ease;
}
.seg__opt[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(46, 31, 20,.10); }

/* ── plan cards ────────────────────────────────────────────────────────── */

.pcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  /* start, not stretch: expanding one card must not pad the others out with
     empty space. Equal collapsed heights are applied as a min-height in
     pricing.js instead. */
  align-items: start;
}

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
}
.pcard--accent { border: 1.5px solid var(--accent-700); }

.pcard__namerow { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.pcard__name { font-size: clamp(20px, 2vw, 25px); font-weight: 600; letter-spacing: -.03em; color: var(--ink-deep); }
.pcard__tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-900);
  border: 1px solid var(--accent-200);
  background: var(--accent-100);
  border-radius: 999px;
  padding: 4px 10px;
}

.pcard__desc { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0 0 22px; max-width: 40ch; }

.pcard__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -.035em;
  color: var(--ink-deep);
  line-height: 1.05;
  margin: 0;
}
.pcard__unit { font-size: 13.5px; font-weight: 400; letter-spacing: -.01em; color: var(--muted); }
.pcard__under { font-size: 13px; color: var(--muted-2); margin: 9px 0 0; }

.pcard__visible { margin-top: clamp(22px, 2.6vw, 30px); }

/* the upsell ladder: what this plan carries over from the one before it */
.pcard__inherits {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 14px;
}

/* applies to every plan, so it sits under the row rather than in a card */
.pricing__platforms {
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
  margin: clamp(20px, 2.4vw, 26px) auto 0;
  max-width: 60ch;
}

.poutcomes { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.poutcomes li { font-size: 14px; line-height: 1.5; color: var(--muted); }
.poutcomes strong { font-weight: 600; color: var(--ink); }

/* pushed to the bottom so the button and the disclosure line up across all
   three cards however much content sits above them */
.pcard__foot { margin-top: auto; padding-top: clamp(22px, 2.6vw, 28px); }
.pcard__cta { width: 100%; }

/* ── status badge, driven by the data's `status` field ─────────────────── */

.pbadge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: var(--tint-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 5px;
  white-space: nowrap;
  vertical-align: 1px;
}

/* ── disclosure ────────────────────────────────────────────────────────── */

.disclose {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  width: auto;
  margin-top: 12px;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--muted);
  transition: color .16s ease;
}
.disclose:hover { color: var(--ink); }
.disclose__chev { width: 13px; height: 13px; transition: transform .22s ease; }
.disclose[aria-expanded="true"] .disclose__chev { transform: rotate(90deg); }

.disclose__panel { margin-top: 18px; display: grid; gap: 24px; }
/* display:grid above outranks the UA rule for [hidden], so restate it */
.disclose__panel[hidden] { display: none; }

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

/* ── grouped feature lists ─────────────────────────────────────────────── */

.pgroup__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 13px;
}

.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plist li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.plist__check { width: 14px; height: 14px; margin-top: .3em; color: var(--accent-700); }
.plist__lock  { width: 14px; height: 14px; margin-top: .3em; color: var(--muted-2); }

/* ── comparison table ─────────────────────────────────────────────────── */

.cmp { margin-top: clamp(38px, 5vw, 62px); }
.cmp__head {
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink-deep);
  margin: 0 0 16px;
}

/* the heading itself is the control; styling stays identical to the FAQ heading */
.cmp__toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
.cmp__chev {
  width: 18px;
  height: 18px;
  color: var(--muted-2);
  transition: transform .22s ease;
}
.cmp__toggle[aria-expanded="true"] .cmp__chev { transform: rotate(180deg); }

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

/* horizontal scroll on narrow screens rather than a restructured table.
   position:relative matters: the visually hidden cell labels are absolutely
   positioned, and without a containing block here they escape the scroll box
   and widen the whole document. */
.cmp__scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.cmp__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: left;
}

.cmp__plan {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink-deep);
  padding: 0 14px 12px;
  width: 17%;
}
.cmp__corner { width: 49%; padding: 0 0 12px; }

.cmp__section {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 400;
  padding: 26px 0 10px;
}
.cmp__sectionrow:first-child .cmp__section { padding-top: 8px; }

.cmp__table tbody tr:not(.cmp__sectionrow) { border-bottom: 1px solid var(--line); }

.cmp__feature {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  padding: 13px 20px 13px 0;
}
.cmp__table td { padding: 13px 14px; vertical-align: middle; }

.cmp__check { width: 14px; height: 14px; color: var(--ink); }
.cmp__no { color: var(--muted-2); }
.cmp__note { font-size: 13px; line-height: 1.45; color: var(--muted); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── free POS panel, deliberately quieter than the paid cards ──────────── */

.freepos {
  margin-top: clamp(24px, 3vw, 34px);
  background: var(--accent-50);        /* page-level panel, so 50 not 100 */
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
}
.freepos__head { font-size: clamp(17px, 1.8vw, 21px); font-weight: 600; letter-spacing: -.025em; color: var(--ink-deep); margin: 0 0 7px; }
.freepos__sub { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 64ch; }
.freepos__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.freepos__cta { margin-top: 24px; align-self: flex-start; }

/* ── faq ───────────────────────────────────────────────────────────────── */

.faq { margin-top: clamp(38px, 5vw, 62px); }
.faq__head {
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink-deep);
  margin: 0 0 16px;
}
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item h3 { margin: 0; font-size: inherit; font-weight: inherit; }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
  padding: 18px 2px;
}
.faq__q:hover { color: var(--ink-deep); }

/* plus that becomes a minus */
.faq__mark { position: relative; width: 13px; height: 13px; flex: none; }
.faq__mark::before,
.faq__mark::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: var(--muted-2);
  transform: translateY(-50%);
  transition: transform .22s ease, opacity .22s ease;
}
.faq__mark::after { transform: translateY(-50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__mark::after { transform: translateY(-50%) rotate(0deg); opacity: 0; }

.faq__a { padding: 0 2px 20px; }
.faq__a p { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0; max-width: 78ch; }

@media (prefers-reduced-motion: reduce) {
  .faq__mark::before, .faq__mark::after { transition: none; }
}

/* ── footnote, unchanged in position and treatment ─────────────────────── */

.pricing__note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-2);
  margin: clamp(30px, 4vw, 46px) auto 0;
  max-width: 74ch;
  text-align: center;
}

/* ── mobile ────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .pcards { grid-template-columns: 1fr; }   /* Free, Pro, Enterprise in order */
  .freepos__cols { grid-template-columns: 1fr; }
  .seg { width: 100%; }
  .seg__opt { flex: 1 1 0; padding-inline: 12px; }
}
