.pricing h1 {
  font-size: clamp(36px, 5vw, 60px);
}
.plan {
  max-width: 440px;
  margin: 40px auto 0;
  padding: 32px;
  border: 1px solid #ddd;
  text-align: left;
}
.plan h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 20px;
}
.plan .price {
  font-size: 48px;
  line-height: 1;
  margin: 0 0 24px;
  letter-spacing: -2px;
}
.price span {
  font-size: 16px;
  letter-spacing: 0;
  color: #666;
}
.plan p,
.pricing-notes p {
  font-size: 15px;
}
.plan ul {
  padding-left: 20px;
  margin: 24px 0;
  line-height: 1.8;
  font-size: 15px;
}
.plan .primary {
  display: block;
  text-align: center;
  background: #111;
  color: white;
}
.plan .fine {
  font-size: 12px;
  color: #666;
  margin: 18px 0 0;
  text-align: center;
}
.pricing-notes {
  max-width: 480px;
  margin: 48px auto 0;
  text-align: left;
}
.pricing-notes h2 {
  font-size: 20px;
  font-weight: 500;
}
.pricing-notes p + p {
  margin-top: 16px;
}
.startup {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  text-align: left;
}
.startup h1 {
  font-size: 40px;
  letter-spacing: -1.5px;
}
.startup h2 {
  font-size: 20px;
  font-weight: 500;
}
.startup p {
  font-size: 15px;
  max-width: none;
  margin: 12px 0;
}
.startup section {
  padding: 24px 0;
  border-bottom: 1px solid #ddd;
}
.startup button {
  font: inherit;
  font-size: 15px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #111;
  background: white;
  cursor: pointer;
}
.startup button.primary {
  background: #111;
  color: white;
}
.startup button:disabled {
  opacity: 0.5;
  cursor: default;
}
.startup input {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #aaa;
  margin: 12px 0;
  font: inherit;
  min-height: 44px;
}
.startup .buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.startup [role='alert'] {
  color: #984c32;
}
.startup .muted {
  color: #666;
}
.startup label {
  font-size: 14px;
}
.startup .balance {
  font-size: 28px;
  letter-spacing: -0.5px;
}
.startup small {
  font-size: 12px;
  line-height: 1.6;
  display: block;
  color: #666;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .plan {
    padding: 24px;
  }
  .startup h1 {
    font-size: 32px;
  }
}

#setupProgress {
  margin: 20px 0 24px;
}
#setupStep {
  font-size: 14px;
  color: #666;
}
.startup progress {
  display: block;
  appearance: none;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 0;
  background: #e6e6e6;
  margin: 10px 0 12px;
  accent-color: #171717;
}
.startup progress::-webkit-progress-bar {
  background: #e6e6e6;
}
.startup progress::-webkit-progress-value {
  background: #171717;
}
.startup progress::-moz-progress-bar {
  background: #171717;
}

/* Shared pricing and account layout, isolated from the landing page. */
.billing-page {
  grid-template-rows: auto 1fr auto;
}
.billing-page header > a:first-child {
  font-size: 24px;
}
.billing-page main {
  width: 100%;
  max-width: 580px;
  padding: 48px 24px;
  align-self: start;
  margin: 24px auto 0;
  text-align: left;
}
.billing-page h1 {
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}
.billing-page .plan {
  max-width: none;
  margin: 32px 0 0;
  padding: 28px;
}
.billing-page .plan .primary {
  margin-top: 28px;
  min-height: 44px;
}
.billing-page .pricing-notes {
  max-width: none;
  margin: 28px 0 0;
}
.billing-page .pricing-notes h2 {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 8px;
}
.billing-page .pricing-notes p {
  font-size: 14px;
  color: #666;
  max-width: none;
}
.startup #account {
  margin: 0 0 28px;
  overflow-wrap: anywhere;
}
.startup section {
  padding: 0 0 24px;
  border: 0;
}
.startup .price {
  font-size: 40px;
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin: 0 0 20px;
}
.startup #plan .primary {
  margin: 12px 0 14px;
}
.startup .buttons {
  align-items: center;
  margin-top: 20px;
  gap: 12px 24px;
}
.startup .text-action {
  border: 0;
  background: transparent;
  color: #666;
  padding: 10px 12px;
  margin-left: -12px;
  min-height: 44px;
}
.startup .text-action:hover {
  color: #111;
  text-decoration: none;
}
.startup .account-actions {
  border-top: 1px solid #ddd;
  padding-top: 12px;
}
.startup #error:empty {
  display: none;
}
.startup #error:not(:empty) {
  padding: 12px;
  background: #fbf2ef;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .billing-page main {
    margin-top: 12px;
    padding-top: 24px;
  }
  .billing-page .plan {
    padding: 24px;
  }
  .startup .primary {
    width: 100%;
  }
  .startup .buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .billing-page footer {
    padding: 24px;
  }
}

.start-page > header, .start-page > footer {width:100%;max-width:580px;margin-inline:auto;padding-inline:24px;text-align:left;}
.startup .plan-benefits {padding-left:20px;margin:20px 0;font-size:15px;line-height:1.6;}
.startup .plan-benefits li + li {margin-top:8px;}

.billing-page .pricing-notes h2:not(:first-child) { margin-top:28px; }
.plan-limits { margin:12px 0 16px;font-size:14px; }
.plan-limits > div { display:grid;grid-template-columns:110px 1fr;gap:16px;padding:12px 0;border-bottom:1px solid #e5e5e5; }
.plan-limits dt { font-weight:500; }
.plan-limits dd { margin:0;color:#666;line-height:1.5; }
.confirmation .buttons .action { margin:0;min-height:44px;background:#111;color:white;text-align:center; }
.confirmation .buttons { gap:12px; }
@media(max-width:600px) { .confirmation .buttons {align-items:stretch;} }

.billing-page .pricing-details { margin-top:24px; text-align:left; border-top:1px solid #e5e5e5; padding-top:16px; }
.billing-page .pricing-details > summary { cursor:pointer; font-size:14px; font-weight:500; }
.billing-page .pricing-details .pricing-notes { margin:20px 0 0; padding:0; }

/* Standard and Enterprise share a comparison grid; account flows stay narrow. */
.billing-page.pricing-page main { max-width:1040px; }
.pricing-plans { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:32px;align-items:stretch; }
.billing-page .pricing-plans .plan { margin:0;min-width:0; }
.enterprise-plan { display:flex;flex-direction:column; }
.enterprise-plan ul { flex:1; }
.enterprise-plan .enterprise-price { font-size:40px;line-height:48px;letter-spacing:-1.5px; }
.enterprise-plan .action { display:block;text-align:center;margin-top:28px;min-height:44px; }
@media(max-width:700px) { .pricing-plans {grid-template-columns:minmax(0,1fr);} }

.pricing-page .pricing > h1 { text-align:center; }

.pricing-plans .plan > p:not(.fine) { margin-left:0;margin-right:0; }

.startup .buttons { display:flex; flex-wrap:wrap; gap:8px; }
