.pricing-page {
  --paper: #fff;
  --rule: #ebe7eb;
  --pricing-accent-surface: #fff6f8;
  background: var(--paper);
}

.pricing-page .site-header { --header-background: #fff; --header-translucent: #fffffff5; }
.pricing-page .site-nav [aria-current="page"] { color: var(--accent); }

.pricing-main {
  width: min(calc(100% - 64px), 960px);
  margin-inline: auto;
  padding-bottom: clamp(60px, 8vw, 108px);
}

.pricing-intro { padding-block: clamp(44px, 5.2vw, 76px) clamp(28px, 3vw, 44px); }
.pricing-intro h1 { font-size: clamp(36px, 5.3vw, 72px); }
.pricing-intro h1 span { display: inline-block; color: var(--accent); }

.pricing-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pricing-tier {
  --tier-amount-size: clamp(36px, 4.5vw, 60px);
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--rule);
  border-radius: 24px;
}

.pricing-tier-free {
  border-color: #ecd0d9;
  background: var(--pricing-accent-surface);
}

.pricing-tier h2 { margin: 0; font-size: clamp(19px, 2.1vw, 25px); }
.pricing-tier-free h2 { color: var(--accent); }
.pricing-tier .primary-link { background: var(--accent); }
.pricing-tier .primary-link:hover { background: #98213f; }
.pricing-tier :is(.pricing-amount, .pricing-tier-tagline) {
  display: flex;
  align-items: center;
  min-height: calc(var(--tier-amount-size) * 1.1);
  margin-block: 8px 16px;
}
.pricing-tier .pricing-amount strong { font-size: var(--tier-amount-size); }
.pricing-tier-tagline { font-size: clamp(25px, 3vw, 38px); font-weight: 650; }
.pricing-tier ul {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 18px 0 0 1.1em;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.55;
}
.pricing-tier li::marker { color: var(--accent); }

.pricing-section {
  margin-top: clamp(52px, 6vw, 84px);
  scroll-margin-top: 16px;
}
.pricing-section h2 {
  margin: 0 0 clamp(18px, 2.5vw, 30px);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 670;
  letter-spacing: -.045em;
  text-align: center;
}

.pricing-comparison table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: clamp(13px, 1.6vw, 16px);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.pricing-feature-column { width: 40%; }
.pricing-comparison th, .pricing-comparison td {
  padding: 13px clamp(8px, 2.2vw, 22px);
  border-bottom: 1px solid var(--rule);
  text-align: center;
  overflow-wrap: anywhere;
}
.pricing-comparison th:first-child { text-align: start; }
.pricing-comparison thead th {
  padding-block: 16px;
  border-block: 1px solid var(--rule);
  background: var(--paper);
  font-size: 1.1em;
}
.pricing-comparison thead th:last-child,
.pricing-comparison tbody td:last-child {
  background: var(--pricing-accent-surface);
}
.pricing-comparison thead th:last-child,
.pricing-comparison tbody td:last-child .pricing-check {
  color: var(--accent);
}
.pricing-comparison .pricing-group th {
  padding-block: 10px;
  background: #f8f6f8;
  font-size: .92em;
}
.pricing-comparison tbody th[scope="row"] { font-weight: 550; }
.pricing-comparison tbody th small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: max(12px, .83em);
  font-weight: 400;
}
.pricing-comparison tbody td:last-child { font-weight: 600; }
.pricing-check {
  display: inline-block;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1;
}
.pricing-comparison-notes {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.pricing-comparison-notes p { margin: 4px 0 0; }

@media (min-height: 500px) {
  .pricing-comparison thead th {
    position: sticky;
    top: var(--header-height);
  }
}

.pricing-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing-plan {
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--rule);
  border-radius: 20px;
}

.pricing-plan-yearly {
  border-color: #e2bfc9;
  box-shadow: 0 10px 26px #b9294e0b;
}

.pricing-plan h3 { margin: 0; font-size: 17px; font-weight: 670; }
.pricing-plan-yearly h3 { color: var(--accent); }
.pricing-plan p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.pricing-plan .pricing-amount { margin-block: 16px 10px; }
.pricing-amount strong {
  color: var(--ink);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.065em;
  font-variant-numeric: lining-nums tabular-nums;
}

.pricing-note {
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
  text-wrap: pretty;
}

.pricing-details {
  max-width: 720px;
  margin-inline: auto;
  margin-top: clamp(24px, 4vw, 44px);
  border-top: 1px solid var(--rule);
}

.pricing-details details { border-bottom: 1px solid var(--rule); }
.pricing-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-block: 12px;
  list-style: none;
  font-size: 15px;
  font-weight: 630;
  cursor: pointer;
}
.pricing-details summary::-webkit-details-marker { display: none; }
.pricing-details summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-inline: 4px 6px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-2px) rotate(45deg);
  flex: none;
}
.pricing-details details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.pricing-details summary:hover { color: var(--accent); }

.pricing-detail-body {
  padding-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.pricing-detail-body p { margin: 0; }
.pricing-detail-body p + p { margin-top: 8px; }
.pricing-detail-body a { color: var(--accent); text-underline-offset: 3px; }

.info-section {
  max-width: 720px;
  margin-inline: auto;
  padding-block: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.info-section h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -.035em;
}
.info-section h2 span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
}
.info-section p { margin: 0 0 10px; }
.info-section :is(p, ol):last-child { margin-bottom: 0; }
.info-section ol { padding-inline-start: 1.5em; }
.info-section li + li { margin-top: 12px; }
.info-section [lang="en"] { font-size: 13px; }
.info-section a { color: var(--accent); text-underline-offset: 3px; }

.pricing-other-plans article + article { margin-top: 14px; }
.pricing-other-plans h3 { margin: 0; color: var(--ink); font-size: 14px; font-weight: 630; }
.pricing-other-plans h3 span { margin-inline-start: 8px; }

.pricing-page .site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

@media (max-width: 760px) {
  .pricing-main { width: calc(100% - 36px); }
}
@media (max-width: 600px) {
  .pricing-overview { grid-template-columns: 1fr; gap: 12px; }
  .pricing-tier { border-radius: 18px; }
  .pricing-comparison th, .pricing-comparison td { padding-block: 10px; }
  .pricing-plans { grid-template-columns: 1fr; gap: 10px; }
  .pricing-plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    border-radius: 16px;
  }
  .pricing-plan .pricing-amount { margin: 0; }
  .pricing-plan > p:last-child { grid-column: 1 / -1; margin-top: 4px; }
}
