/* ==========================================================================
   D04 Pricing — page styles (demo/pricing.html)
   ========================================================================== */

/* Shared headings / buttons on this page --------------------------------- */
.pricing-h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.035em;
}

.pricing-h2--faq {
  margin-bottom: 16px;
}

.pricing-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -.03em;
}

.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-actions .btn {
  line-height: 1.55;
}

/* Filled primary has no border in the original */
.pricing-actions .btn--primary {
  border: 0;
}

/* Hero ------------------------------------------------------------------- */
.pricing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.pricing-hero .annotation {
  text-align: left;
}

.pricing-hero__title {
  max-width: 14ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 96px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.pricing-hero__lead {
  max-width: 52ch;
  margin: 0;
  font-size: 18px;
  color: var(--ink-2);
}

.pricing-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

/* Pill toggle groups (billing period, currency, VAT) */
.toggle {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
}

.toggle__option {
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.toggle__option--tight {
  padding-left: 14px;
  padding-right: 14px;
}

.toggle__option[aria-pressed="true"] {
  background: var(--ink);
  color: var(--canvas);
}

/* Plans ------------------------------------------------------------------ */
.pricing-plans {
  padding-top: 48px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  align-items: stretch;
  gap: 14px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.plan--recommended {
  border: 2px solid var(--ink);
}

.plan--muted {
  background: var(--surface-2);
}

.plan__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}

.plan__name {
  font-size: 18px;
}

.plan__rec {
  font-size: 11px;
}

.plan__for {
  min-height: 42px;
  font-size: 14px;
  color: var(--ink-2);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-height: 64px;
}

.plan__unit {
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-2);
}

/* Rolling price: a 56px window over a two-value track */
.price-roll {
  display: inline-block;
  height: 56px;
  overflow: hidden;
}

.price-roll__track {
  display: flex;
  flex-direction: column;
  transition: transform 360ms cubic-bezier(.2, .8, .2, 1);
}

.price-roll.is-annual .price-roll__track {
  transform: translateY(-56px);
}

.price-roll__value {
  display: block;
  height: 56px;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}

.plan__note {
  min-height: 36px;
  font-size: 13px;
  color: var(--ink-3);
}

.plan__save {
  align-self: flex-start;
}

.plan__cta {
  min-height: 48px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.plan__cta--primary {
  border-color: var(--action);
  background: var(--action);
  color: var(--on-action);
}

.plan__cta--primary:hover {
  color: var(--on-action);
}

.plan__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  font-size: 14px;
  list-style: none;
}

.plan__features li {
  display: flex;
  gap: 10px;
}

.plan__features li::before {
  content: "✓";
  color: var(--pos);
}

.pricing-plans__foot {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
}

/* Calculator + Enterprise ------------------------------------------------ */
.pricing-duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  align-items: stretch;
  gap: 16px;
}

.calc {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.calc__title {
  margin-top: 6px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-field__head {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}

.calc-field__range {
  accent-color: var(--ink);
}

.calc-field__steps {
  display: flex;
  gap: 6px;
}

.calc-field__step {
  width: 44px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.calc-field__hint {
  align-self: center;
  font-size: 13px;
  color: var(--ink-3);
}

.calc__summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.calc__line {
  display: flex;
  justify-content: space-between;
}

.calc__line--total {
  align-items: baseline;
  font-size: 18px;
}

.calc__total {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.calc__note {
  font-size: 13px;
  color: var(--ink-3);
}

.enterprise-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--inverse);
  color: var(--on-inverse);
}

.enterprise-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: .8;
}

.enterprise-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 15px;
  list-style: none;
}

.enterprise-card__actions {
  margin-top: auto;
}

/* Comparison table ------------------------------------------------------- */
.compare {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.compare__table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

/* Feature column is twice as wide as each plan column */
.compare__col-feature {
  width: 33.333%;
}

.compare__table th,
.compare__table td {
  padding: 11px 18px;
  font-weight: 400;
  text-align: center;
}

.compare__table thead th {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
  font-size: 16px;
  font-weight: 700;
}

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

.compare__table tbody th {
  text-align: left;
}

.compare__table td {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
}

.compare__table td.is-yes {
  color: var(--pos);
}

.compare__table td.is-no {
  color: var(--ink-3);
}

/* Group label rows (COLLECT, DECIDE …) */
.compare__table tbody tr.compare__group {
  border-bottom: 0;
}

.compare__table .compare__group th {
  padding: 18px 18px 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}

/* FAQ -------------------------------------------------------------------- */
.pricing-faq {
  max-width: 960px;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__question {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 44px;
  padding: 20px 0;
  border: 0;
  background: none;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq__icon {
  font-family: var(--font-mono);
}

.faq__answer {
  max-width: 68ch;
  margin: 0 0 20px;
  color: var(--ink-2);
}

/* Closing CTA card */
.deciding {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.deciding__title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -.02em;
}
