/* =========================================================================
   The plans page, after the reference: tinted panels meeting edge to edge,
   each centred -- a tracked label, one large price, one line, the button,
   and a ruled list of round ticks. Standard is mint, Pro plain, Ultra blush.
   Loaded by /pricing only; the shared primitives live in style.css.
   ========================================================================= */

.pricing-page > section { padding: 0; }

/* ------------------------------------------------------------------ head */

.pr-head { padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(3rem, 6vw, 4.5rem) !important; text-align: center; }
.pr-head .shell { display: flex; flex-direction: column; align-items: center; }
.pr-head h1 {
  margin-top: 1.4rem;
  font-size: clamp(3rem, 7.4vw, 6.4rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}
.pr-head h1 .mx-w:nth-last-child(-n+2) { color: var(--ink-faint); }
.pr-lede { margin-top: 1.4rem; font-size: 1.1rem; color: var(--ink-soft); }

/* The reference's toggle, word for word: "Annual discount" and a pink switch. */
.pr-cycle { display: inline-flex; align-items: center; gap: 0.8rem; margin-top: 2.4rem; font-size: 0.98rem; }
.pr-toggle {
  position: relative;
  width: 42px; height: 24px;
  padding: 0;
  border: 0; border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: background 0.35s var(--ease);
}
.pr-toggle i {
  position: absolute; top: 4px; left: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s var(--ease);
}
.pr-toggle[aria-checked="true"] { background: var(--blush-dot); }
.pr-toggle[aria-checked="true"] i { transform: translateX(18px); }
.pr-save { font-size: 0.86rem; color: var(--blush-ink); }
.pr-save:empty { display: none; }
.pr-toggle[aria-checked="false"] + .pr-save { color: var(--ink-faint); }

.pricing-current { margin-top: 1.4rem; font-size: 0.88rem; color: var(--ink-soft); }
.pricing-current a { text-decoration: underline; text-underline-offset: 3px; }

.plan-pick {
  display: inline-flex; align-items: baseline; gap: 0.6rem;
  max-width: 60ch; margin-top: 1rem;
  font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5;
  text-align: left;
}
.plan-pick[hidden] { display: none; }
.plan-pick-tag { flex: none; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

/* ---------------------------------------------------------------- panels */

.pricing-page .plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(100% - 3rem, var(--shell));
  margin: 0 auto;
}
.pricing-page .plan-card {
  --tick: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: clamp(3rem, 6vw, 4.6rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 6vw, 4.2rem);
  border: 0;
  border-radius: 28px;
  background: var(--paper-raised);
  box-shadow: none;
  text-align: center;
  animation: none;
  transform: none;
  transition: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.pricing-page .plan-card:hover { transform: none; box-shadow: none; }
/* Direction B: white cards; the tint lives only in the label and the ticks. */
.pricing-page .plan-card { --rule-on-tint: var(--line); }
.pricing-page .plan-card--mint { --accent: var(--mint-ink); --tick: var(--mint-dot); }
.pricing-page .plan-card--blush { --accent: var(--blush-ink); --tick: var(--blush-dot); }
.pricing-page .plan-card--plain { --accent: var(--ink-soft); }

.plan-label {
  position: relative;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
/* Under the label, in the gap above the price, so every panel lines up. */
.pricing-page .plan-flag {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0;
  background: none;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}
.pricing-page .plan-price {
  display: block;
  margin-top: 1.9rem;
  font-family: var(--display);
  font-size: clamp(3rem, 5.4vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pricing-page .plan-price b { font: inherit; letter-spacing: inherit; }
.pricing-page .plan-saving {
  margin-top: 1rem;
  min-height: 0;
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.pricing-page .plan-blurb { margin-top: 1.6rem; min-height: 2.8em; max-width: 30ch; font-size: 1.06rem; line-height: 1.4; color: var(--ink); }
.plan-cta { width: min(100%, 300px); margin-top: 2rem; }
.pricing-page .plan-card .btn { margin: 0; }
.pricing-page .plan-features {
  display: block;
  width: min(100%, 400px);
  margin: 2.6rem 0 0;
  gap: 0;
}
.pricing-page .plan-features li {
  padding-left: 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.pricing-page .plan-features li::before {
  position: static;
  width: auto;
  height: 34px;
  flex-basis: 34px;
  border: 0;
  transform: none;
  background-size: 19px;
}
[data-theme="dark"] .pricing-page .plan-card--plain { --tick: #3b423d; }

@media (max-width: 900px) {
  .pricing-page .plan-grid { grid-template-columns: 1fr; }
}

/* The button, with a chevron that steps forward on hover. */
.btn--chev { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; }
.btn-chev { width: 0.8rem; height: 0.8rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }
.btn--chev:hover .btn-chev { transform: translateX(3px); }
.plan-assure { margin-top: 0.7rem; font-size: 0.74rem; color: var(--ink-faint); text-align: center; }

/* ------------------------------------------------------------------ free */

.pricing-page .free-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 1.6rem;
  width: min(100% - 3rem, var(--shell));
  margin: 20px auto 0;
  padding: 1.5rem 1.5rem;
  border-radius: 20px;
  background: var(--paper-raised);
  text-align: center;
}
.free-row[hidden] { display: none !important; }
.free-row-name { display: flex; align-items: baseline; gap: 0.45rem; }
.free-row-name b { font-family: var(--display); font-size: 1.05rem; font-weight: 500; letter-spacing: -0.02em; }
.free-row-name span { font-size: 0.8rem; color: var(--ink-faint); }
.free-row p { max-width: 70ch; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }
.free-row-on { font-size: 0.8rem; color: var(--ink-faint); }

/* --------------------------------------------------------------- compare */

.pricing-page .plan-compare { padding: clamp(4.5rem, 9vw, 7rem) 0 0; margin: 0; }
.pricing-page .plan-compare h2 { margin-bottom: 0; }
.table-wrap { overflow-x: auto; }
.table-wrap { padding: 1rem 1.6rem 1.4rem; border-radius: 24px; background: var(--paper-raised); }
.pricing-page .compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; table-layout: fixed; }
.pricing-page .compare-table th,
.pricing-page .compare-table td { padding: 0.95rem 1rem; text-align: center; border-bottom: 1px solid var(--line); }
.pricing-page .compare-table thead th { background: none; padding-bottom: 1.1rem; }
.pricing-page .compare-table tbody th,
.pricing-page .compare-table thead th:first-child {
  width: 34%;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
}
.pricing-page .compare-table td { color: var(--ink-soft); }
.pricing-page .compare-col {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.compare-table tfoot th,
.compare-table tfoot td { border-bottom: 0 !important; padding-top: 1.2rem; }
.compare-table tfoot .btn { margin: 0; width: 100%; }
@media (max-width: 700px) {
  .pricing-page .compare-table { min-width: 620px; }
}

/* ------------------------------------------------------------------- faq */

.pr-faq { padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(5rem, 10vw, 8rem) !important; }
.pr-faq-list { max-width: 760px; margin: 0 auto; padding: 0.4rem 2rem; border-radius: 24px; background: var(--paper-raised); }
.pr-faq details:last-child { border-bottom: 0; }
.pr-faq details { border-bottom: 1px solid var(--line); }
.pr-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0;
  font-size: 1.04rem;
  cursor: pointer;
  list-style: none;
}
.pr-faq summary::-webkit-details-marker { display: none; }
.pr-faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.3rem; font-weight: 300; line-height: 1;
  color: var(--ink-faint);
  transition: transform 0.35s var(--ease);
}
.pr-faq details[open] summary::after { transform: rotate(45deg); }
.pr-faq details p { padding: 0 3rem 1.4rem 0; color: var(--ink-soft); line-height: 1.6; }
.pr-faq-more { margin-top: 2rem; text-align: center; font-size: 0.92rem; color: var(--ink-soft); }
.pr-faq-more a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* --------------------------------------------------------------- exit sheet */

.exit-sheet { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.exit-sheet[hidden] { display: none; }
.exit-sheet-scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 11, 0.36);
  opacity: 0;
  transition: opacity 0.26s var(--ease-soft, ease);
}
.exit-sheet-card {
  position: relative;
  width: min(400px, 100%);
  padding: 2.2rem 1.8rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  box-shadow: var(--shadow-lg);
  text-align: center;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.26s var(--ease-soft, ease), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.exit-sheet.is-open .exit-sheet-scrim { opacity: 1; }
.exit-sheet.is-open .exit-sheet-card { opacity: 1; transform: none; }
.exit-sheet-card h2 { font-size: 1.6rem; letter-spacing: -0.03em; margin: 0.8rem 0 0.6rem; }
.exit-sheet-body { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; margin-bottom: 1.4rem; }
.exit-sheet-x {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
}
.exit-sheet-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.exit-sheet-later {
  display: block;
  margin: 0.7rem auto 0;
  padding: 0.4rem 0.8rem;
  border: 0;
  background: none;
  color: var(--ink-faint);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}
.exit-sheet-later:hover { color: var(--ink); }

/* ------------------------------------------- restored motion sections */

.pr-bn > section, .pr-fq > section { padding: clamp(4.5rem, 9vw, 7rem) 0 0; }
.pr-fq > section { padding-bottom: clamp(5rem, 10vw, 8rem); }
.pr-bn h2, .pr-fq h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.pricing-page .plan-card { overflow: hidden; }
