/* Homepage layout polish (marketing site). Header mobile-menu rules live in site.css. */

.lp-problem-inner {
  max-width: 720px;
}

.lp-problem-inner h2 {
  max-width: none;
}

.lp-problem-inner .lp-big {
  max-width: 62ch;
}

.lp-portal-blurb {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.lp-portal-blurb h3 {
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 700;
  margin: 0 0 12px;
}

.lp-ledger {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.lp-ledger h3 {
  font-size: 22px;
  max-width: none;
  margin: 0;
}

.lp-ledger > p {
  margin-top: 10px !important;
  max-width: 62ch;
  color: var(--muted);
}

.lp-ledger-scroll {
  margin-top: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.lp-ledger table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}

.lp-ledger th,
.lp-ledger td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--line);
  vertical-align: top;
}

.lp-ledger thead th {
  background: var(--paper-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.lp-ledger tbody th {
  font-weight: 600;
}

.lp-ledger code {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  background: var(--green-soft);
  color: var(--green-2);
  padding: 2px 6px;
  border-radius: 4px;
}

.lp-ledger-foot {
  margin-top: 16px !important;
  font-size: 15px;
}

.lp-pricing-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.lp-pricing-head h2 {
  max-width: none;
}

.lp-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.lp-plan-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.lp-plan-card--featured {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.lp-plan-card-head h3 {
  font-size: 17px;
  margin: 0 0 12px;
}

.lp-plan-price {
  font-size: clamp(32px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}

.lp-plan-quota {
  margin-top: 8px !important;
  font-size: 14px;
  color: var(--muted);
}

.lp-plan-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  flex: 1;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.lp-plan-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  margin-right: 8px;
}

.lp-plan-spacer {
  flex: 1;
  margin: 20px 0 0;
}

.lp-plan-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.lp-pricing-notes {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  gap: 10px;
  max-width: 72ch;
  font-size: 14px;
  color: var(--muted);
}

.lp-pricing-notes li {
  padding-left: 1.1em;
  position: relative;
}

.lp-pricing-notes li::before {
  content: "·";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--green);
}

@media (max-width: 1100px) {
  .lp-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .lp-ledger {
    padding: 22px 18px;
  }

  .lp-plan-grid {
    grid-template-columns: 1fr;
  }

  .lp-ledger table,
  .lp-ledger thead,
  .lp-ledger tbody,
  .lp-ledger tr,
  .lp-ledger th,
  .lp-ledger td {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .lp-ledger thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .lp-ledger tr {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 8px 0;
  }

  .lp-ledger th,
  .lp-ledger td {
    border: 0;
    padding: 8px 16px;
  }

  .lp-ledger td::before,
  .lp-ledger tbody th::before {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 2px;
  }

  .lp-ledger tbody th[data-label]::before {
    content: attr(data-label);
  }

  .lp-ledger td[data-label]::before {
    content: attr(data-label);
  }
}
