/* Pricing page layout (docs/specs/pricing-page.md). No colors of its own. */

.lp-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  min-width: 0;
  padding-block: var(--space-32) var(--space-16);
}

.lp-page > * {
  min-width: 0;
}

.lp-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-16);
  margin-bottom: var(--space-16);
}

/* Focused when checkout closes; keep it clear of the sticky header. */
[data-checkout-notice] {
  scroll-margin-top: calc(var(--topbar-height) + var(--space-16));
}

.lp-intro__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  min-width: 0;
  flex: 1 1 16rem;
}

.lp-ladder {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-20);
  overflow: hidden;
  border: var(--border-hairline) solid var(--c-line);
  border-radius: var(--radius-xl);
  background: var(--c-surface);
}

.lp-plan {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  min-width: 0;
  padding: var(--space-16);
}

.lp-plan + .lp-plan {
  border-top: var(--border-hairline) solid var(--c-line);
}

.lp-plan--highlight {
  position: relative;
  background: color-mix(in srgb, var(--c-mark) 7%, var(--c-surface));
}

.lp-plan--highlight::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--c-mark);
}

.lp-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-8);
  margin: 0;
}

.lp-price__amount {
  font-family: var(--font-body);
  font-size: 2.1rem;
  font-weight: var(--weight-heavy);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.lp-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-points li {
  position: relative;
  padding-left: var(--space-14);
  color: var(--c-ink-2);
  font-size: var(--text-s);
  line-height: 1.45;
}

.lp-points li + li {
  margin-top: var(--space-6);
}

.lp-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--c-ink-2);
}

.lp-plan__action {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-top: auto;
}

.lp-plan .c-btn {
  width: 100%;
}

.lp-yours {
  margin: 0;
  font-weight: var(--weight-semibold);
}

.lp-checkout {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  margin-top: var(--space-4);
  padding-top: var(--space-12);
  border-top: var(--border-hairline) solid var(--c-line);
}

.lp-checkout[hidden] {
  display: none;
}

.lp-checkout__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.lp-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-10);
}

.lp-check input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  accent-color: var(--c-action);
  flex: none;
}

.lp-check label {
  font-size: var(--text-s);
  line-height: 1.45;
}

.lp-check a {
  color: var(--c-ink);
  font-weight: var(--weight-medium);
}

.lp-seller h2 {
  font-size: var(--text-title);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
}

.lp-seller p,
.lp-seller li {
  color: var(--c-ink-2);
  font-size: var(--text-s);
  line-height: 1.45;
}

.lp-seller ul {
  margin: var(--space-8) 0 0;
  padding-left: var(--space-20);
}

.lp-seller li + li {
  margin-top: var(--space-6);
}

.lp-seller a {
  color: var(--c-ink);
  font-weight: var(--weight-medium);
}

.lp-seller .note {
  margin-bottom: var(--space-12);
  padding: var(--space-12);
  border: var(--border-hairline) solid var(--c-line);
  border-radius: var(--radius-m);
}

.lp-table {
  max-width: 100%;
  min-width: 0;
  margin-top: var(--space-16);
}

.lp-table table {
  width: 100%;
  border-collapse: collapse;
}

.lp-table th,
.lp-table td {
  padding: var(--space-10) var(--space-12);
  border-bottom: var(--border-hairline) solid var(--c-line);
  text-align: left;
  vertical-align: top;
}

.lp-table thead th {
  font-weight: var(--weight-semibold);
}

.lp-table th[scope="row"] {
  font-weight: var(--weight-semibold);
}

.lp-faq {
  max-width: 66ch;
}

.lp-faq details {
  border-top: var(--border-hairline) solid var(--c-line);
  padding-block: var(--space-12);
}

.lp-faq details:last-child {
  border-bottom: var(--border-hairline) solid var(--c-line);
}

.lp-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  min-height: var(--target-min);
  cursor: pointer;
  list-style: none;
}

.lp-faq summary::-webkit-details-marker {
  display: none;
}

.lp-faq summary::after {
  content: "+";
  flex: none;
  font-weight: var(--weight-bold);
}

.lp-faq details[open] summary::after {
  content: "\2212";
}

.lp-faq details p {
  padding-top: var(--space-8);
  max-width: 66ch;
}

#lp-checkout-dialog {
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
}

.c-dialog .lp-checkout {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 719px) {
  .lp-table {
    overflow-x: auto;
  }

  .lp-table table {
    min-width: 36rem;
  }

  .lp-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--c-bg);
  }
}

@media (min-width: 960px) {
  .lp-ladder {
    flex-direction: row;
    align-items: stretch;
  }

  .lp-plan {
    flex: 1 1 0;
  }

  .lp-plan + .lp-plan {
    border-top: 0;
    border-left: var(--border-hairline) solid var(--c-line);
  }
}


