/* Pricing — trust-first, Free + Pro only */

body.is-pricing {
  min-height: 100vh;
}

body.is-pricing > .pricing {
  /* Force true viewport centering (not left-biased column) */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  width: min(880px, calc(100% - 3rem));
  max-width: 880px;
  margin-top: 0;
  margin-bottom: 4rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: clamp(2rem, 5vh, 3.25rem);
  padding-left: 0;
  padding-right: 0;
}

.pricing {
  /* fallback if body class missing */
  box-sizing: border-box;
  width: min(880px, calc(100% - 3rem));
  max-width: 880px;
  margin: 0 auto 4rem;
  padding-top: clamp(2rem, 5vh, 3.25rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.pricing__head {
  text-align: center;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  animation: rise 0.7s var(--ease) both;
}

.pricing__eyebrow {
  margin: 0 0 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.pricing__eyebrow::before,
.pricing__eyebrow::after {
  content: '';
  width: 1.1rem;
  height: 1px;
  background: rgba(15, 118, 110, 0.35);
}

.pricing__head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  letter-spacing: -0.045em;
  line-height: 1.15;
  color: var(--ink);
}

.pricing__lead {
  margin: 0.95rem auto 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 34rem;
}

.trust-strip {
  list-style: none;
  /* Override styles.css .trust-strip max-width:42rem (left-biased) */
  width: 100%;
  max-width: 100%;
  margin: 0 auto 2rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.25rem;
  box-sizing: border-box;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  animation: rise 0.75s 0.04s var(--ease) both;
}

.trust-strip li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  color: var(--ink-soft);
  line-height: 1.35;
}

.trust-strip__icon {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid rgba(15, 118, 110, 0.16);
  margin-top: 0.05rem;
}

.cards {
  display: grid;
  gap: 1.15rem;
  align-items: stretch;
  width: 100%;
  margin: 0;
  justify-items: stretch;
  animation: rise 0.8s 0.06s var(--ease) both;
}

.cards--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.55rem 1.45rem 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card--featured {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow:
    0 0 0 1px rgba(15, 118, 110, 0.06),
    var(--shadow);
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf9 100%);
}

.card--featured::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: calc(var(--radius) + 2px) calc(var(--radius) + 2px) 0 0;
  background: linear-gradient(90deg, var(--teal-bright), var(--teal));
}

.card__head {
  margin-bottom: 0.9rem;
}

.card__title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.card__title-row h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.28rem;
  letter-spacing: -0.04em;
}

.card__desc {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--teal-soft);
  color: var(--teal);
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.card__price {
  margin: 0.15rem 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.card__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.6vw, 2.55rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.card__unit {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.card__bill {
  margin: 0.5rem 0 1.15rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.card__note {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(15, 118, 110, 0.05);
  border: 1px solid rgba(15, 118, 110, 0.1);
}

.card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  width: 100%;
  border-radius: 12px;
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.card__cta:hover {
  transform: translateY(-1px);
}

.card__cta:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.card__cta--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(11, 61, 56, 0.16);
}

.card__cta--ghost:hover {
  border-color: rgba(15, 118, 110, 0.45);
  color: var(--teal-deep);
}

.card__cta--solid {
  background: linear-gradient(165deg, #14998c 0%, var(--teal) 45%, var(--teal-deep) 100%);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.26);
}

.card__cta--solid:hover {
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.32);
}

.card__cta--solid:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.card__features {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.9rem;
  flex: 1;
}

.card__features li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.65rem;
  align-items: start;
}

.card__features svg {
  width: 16px;
  height: 16px;
  margin-top: 0.2rem;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__features strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card__features span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  margin-top: 0.12rem;
}

.trust-panel {
  margin: 2.4rem 0 0;
  width: 100%;
  padding: 1.45rem 1.4rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  animation: rise 0.85s 0.1s var(--ease) both;
}

.trust-panel h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

.trust-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.trust-grid p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

.trust-grid a {
  font-weight: 600;
  white-space: nowrap;
}

.pay-bar {
  margin-top: 1.75rem;
  width: 100%;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  animation: rise 0.9s 0.12s var(--ease) both;
}

.pay-bar__label {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pay-bar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pay-chip {
  appearance: none;
  border: 1px solid rgba(11, 61, 56, 0.14);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 10px;
  padding: 0.48rem 0.95rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.pay-chip.is-active {
  background: var(--teal-soft);
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--teal);
}

.pay-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.status {
  margin: 0.85rem 0 0;
  min-height: 1.35em;
  font-size: 0.9rem;
  color: var(--muted);
}

.status.ok {
  color: var(--teal);
}

.status.err {
  color: #b42318;
}

.status.warn {
  color: #9a6700;
}

.legal-line {
  margin: 1.5rem 0 0;
  width: 100%;
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
}

.legal-line a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}

.legal-line a:hover {
  text-decoration: underline;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  body.is-pricing > .pricing,
  .pricing {
    width: min(440px, calc(100% - 1.5rem));
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .cards--duo {
    grid-template-columns: 1fr;
  }

  .card--featured {
    order: -1;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .trust-strip {
    grid-template-columns: 1fr;
  }
}
