/* Pricing shares the homepage type, surfaces, container and section spacing. */
.pricing-page { overflow-wrap: anywhere; }
.pricing-spark { color: var(--home-orange); font-size: 22px; line-height: 1; }
.pricing-page #plans { scroll-margin-top: var(--site-nav-height); }

.pricing-preview-image { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.8; }
.pricing-preview-image::before {
  content: "";
  position: absolute;
  inset: 0 44% 0 0;
  background: #e9b394;
  border-inline-end: 2px solid #fff8;
}
.pricing-preview-image .pricing-portrait {
  position: absolute;
  top: 0;
  left: -5%;
  width: 135%;
  max-width: none;
  height: auto;
}
.pricing-preview-image::after {
  content: "";
  position: absolute;
  top: 48%;
  left: 30%;
  width: 12%;
  height: 1px;
  background: #40352f;
}
.pricing-hair-detail {
  position: absolute;
  z-index: 1;
  left: 5%;
  top: 48%;
  transform: translateY(-50%);
  width: 26%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid var(--home-ink);
  border-radius: 50%;
  box-shadow: 0 3px 12px #0003;
}
/* Magnify the sunlit curls at the left edge of the same transparent portrait. */
.pricing-hair-detail img {
  position: absolute;
  width: 1040%;
  max-width: none;
  height: auto;
  top: -158%;
  left: -315%;
}

.pricing-page .pricing-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid #4a4e52;
  border-radius: 10px;
  background: var(--home-surface);
  color: var(--home-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms, border-color 180ms;
}
.pricing-page .pricing-action:hover { background: var(--home-raised); border-color: var(--home-muted); }
.pricing-page .pricing-action.primary { background: var(--home-orange); border-color: transparent; color: #201711; }
.pricing-page .pricing-action.primary:hover { background: #f5ad88; }
.pricing-page .pricing-action:disabled { opacity: .65; cursor: progress; }

.pricing-page .billing-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pricing-page .billing-plan-card {
  min-width: 0;
  min-height: 0;
  justify-content: flex-start;
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: var(--home-surface);
  box-shadow: none;
}
.pricing-page .billing-plan-card-featured { border-color: var(--home-orange); background: #25221f; }
.pricing-plan-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.pricing-page .pricing-plan-heading h3 { margin: 0; font-size: 18px; line-height: 1.5; }
.pricing-badge, .pricing-page .billing-plan-discount {
  display: inline-block;
  min-height: 0;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: #28332d;
  color: #bdd3b9;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.billing-plan-card-featured .pricing-badge { background: #453126; color: #ffbf9e; }
.pricing-page .pricing-price { margin: 22px 0 8px; font-size: clamp(32px, 3vw, 42px); font-weight: 650; letter-spacing: -.045em; line-height: 1.1; }
.pricing-page .billing-plan-price-meta { margin: 0 0 10px; }
.pricing-page .billing-plan-original-price { color: var(--home-muted); font-size: 14px; font-weight: 500; }
.pricing-page .billing-muted, .pricing-page .billing-plan-policy, .pricing-page .billing-faq-item p, .pricing-page .billing-flow-grid p { color: var(--home-muted); }
.pricing-page .billing-muted, .pricing-page .billing-flow-grid p { font-size: 14px; line-height: 1.65; }
.pricing-page .billing-plan-card ul { flex: 1; margin: 20px 0; padding-top: 10px; border-top: 1px solid var(--home-line); }
.pricing-page .billing-plan-card li { padding: 0; padding-inline-start: 23px; color: var(--home-ink); font-size: 14px; line-height: 1.5; }
.pricing-page .billing-plan-card li::before {
  left: auto;
  inset-inline-start: 2px;
  top: .34em;
  width: 6px;
  height: 10px;
  border: solid #b0c5a5;
  border-width: 0 1.6px 1.6px 0;
  border-radius: 0;
  background: none;
  transform: rotate(45deg);
}
.pricing-page .billing-plan-policy { margin: 20px auto 0; }
.pricing-page .billing-alert { border-color: #65483a; background: #30251f; color: #ffcca9; }

.pricing-faq { border-block: 1px solid var(--home-line); background: var(--home-surface); }
.pricing-page .billing-faq-list { max-width: 750px; gap: 0; }
.pricing-page .billing-faq-item { border: 0; border-bottom: 1px solid var(--home-line); border-radius: 0; background: transparent; box-shadow: none; }
.pricing-page .billing-faq-item summary { color: var(--home-ink); font-size: 16px; font-weight: 600; padding: 18px 4px; }
.pricing-page .billing-faq-item summary::after { color: var(--home-orange); }
.pricing-page .billing-faq-item summary:focus-visible { outline-color: var(--home-orange); }
.pricing-page .billing-faq-item p { padding: 0 4px 18px; }
.pricing-page .billing-flow-grid > div { border: 0; border-top: 1px solid var(--home-line); border-radius: 0; padding: 18px 0 0; background: transparent; box-shadow: none; }
.pricing-page .billing-flow-grid span { color: var(--home-orange); background: #352922; }
.pricing-page .billing-flow-grid strong { color: var(--home-ink); }
/* Align prices, benefit lists and actions across translations with different line lengths. */
@media (min-width: 768px) {
  @supports (grid-template-rows: subgrid) {
    .pricing-page .billing-plan-card {
      display: grid;
      grid-row: span 4;
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: subgrid;
      row-gap: 0;
    }
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .pricing-page .billing-flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .pricing-page .billing-hero-actions { justify-content: center; }
  .pricing-page .billing-plan-grid, .pricing-page .billing-flow-grid { grid-template-columns: minmax(0, 1fr); }
  .pricing-page .billing-plan-card { padding: 24px; }
}
