/* Inner pages (checkout, thank-you, 404, legal) on top of lp.css. */
.muted {
  color: var(--muted);
}

.page-main {
  min-height: calc(100vh - 360px);
}

.topbar--simple .pill-nav {
  display: flex;
}

/* ---------- Checkout (/assinar) ---------- */
.checkout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  padding: 56px 0 96px;
}

.checkout__summary,
.checkout__form {
  display: grid;
  gap: 18px;
  padding: 36px;
  border-radius: 24px;
}

.checkout__summary {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(196 181 253 / 0.3);
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(255 255 255 / 0.18), transparent 60%),
    var(--grad);
  box-shadow: 0 30px 80px -30px rgb(139 92 246 / 0.7);
}

.checkout__eyebrow {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
}

.checkout__summary h1 {
  font-size: clamp(30px, 4vw, 40px);
}

.checkout__summary .cycle {
  justify-self: start;
  margin: 0;
  border-color: rgb(255 255 255 / 0.25);
  background: rgb(255 255 255 / 0.14);
}

.checkout__summary .cycle button {
  color: #fff;
}

.checkout__summary .cycle button[aria-checked='true'] {
  background: #fff;
  color: #5b21b6;
}

.checkout__summary .save {
  background: rgb(255 255 255 / 0.22);
  color: #fff;
}

.checkout__summary .cycle button[aria-checked='true'] .save {
  background: #ede9fe;
  color: #6d28d9;
}

.checkout__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.checkout__price strong {
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.checkout__billing {
  margin-top: -12px;
  opacity: 0.85;
}

.checkout__features {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.checkout__features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout__features svg {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.2);
}

.checkout__switch {
  font-size: 14px;
  opacity: 0.9;
}

.checkout__switch a {
  font-weight: 600;
  text-decoration: underline;
}

.checkout__secure {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgb(0 0 0 / 0.18);
  font-size: 14px;
}

.checkout__secure svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.checkout__form {
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px);
}

.checkout__form h2 {
  font-size: 26px;
}

.checkout__form .muted {
  margin-top: -10px;
  font-size: 14px;
}

.checkout__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.03);
}

.checkout__tabs button {
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.checkout__tabs button[aria-selected='true'] {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.checkout form {
  display: grid;
  gap: 14px;
}

.checkout label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.checkout label[hidden] {
  display: none;
}

.checkout input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.04);
  color: var(--fg);
  font: inherit;
  font-weight: 400;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout input::placeholder {
  color: rgb(255 255 255 / 0.3);
}

.checkout input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(139 92 246 / 0.2);
}

.checkout__error {
  padding: 12px 14px;
  border: 1px solid rgb(248 113 113 / 0.35);
  border-radius: 12px;
  background: rgb(127 29 29 / 0.3);
  color: #fecaca;
  font-size: 14px;
  font-weight: 500;
}

.checkout__submit {
  width: 100%;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.checkout__submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.checkout__legal {
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}

.checkout__legal a {
  text-decoration: underline;
}

/* ---------- Thank-you and 404 ---------- */
.thanks {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(680px, 100% - 40px);
  padding: 80px 0 110px;
  text-align: center;
}

.thanks__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 0 10px rgb(139 92 246 / 0.12), 0 20px 50px -12px rgb(139 92 246 / 0.8);
}

.thanks__icon svg {
  width: 34px;
  height: 34px;
}

.thanks h1 {
  font-size: clamp(32px, 5vw, 48px);
}

.thanks__lead {
  color: var(--muted);
  font-size: 18px;
}

.thanks__steps {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 8px 0;
  padding: 26px 30px 26px 52px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--glass);
  color: rgb(255 255 255 / 0.82);
  text-align: left;
}

.thanks__steps strong {
  color: #fff;
}

.thanks__help {
  font-size: 14px;
}

.thanks__help a {
  color: var(--accent-soft);
}

.thanks__code {
  font-size: clamp(72px, 14vw, 140px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(120deg, #c4b5fd, #8b5cf6 60%, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 64px 0 100px;
}

.legal h1 {
  font-size: clamp(34px, 5vw, 52px);
}

.legal .updated {
  margin: 12px 0 36px;
  color: var(--faint);
  font-size: 14px;
}

.legal h2 {
  margin: 44px 0 14px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: rgb(255 255 255 / 0.75);
}

.legal p + p {
  margin-top: 14px;
}

.legal ul {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding-left: 22px;
}

.legal a {
  color: var(--accent-soft);
  text-decoration: underline;
}

.legal strong {
  color: #fff;
}

.legal table {
  width: 100%;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  font-size: 14px;
}

.legal th,
.legal td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: rgb(255 255 255 / 0.75);
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: rgb(255 255 255 / 0.05);
  color: #fff;
  font-weight: 600;
}

.legal tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 860px) {
  .checkout {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .checkout__summary,
  .checkout__form {
    padding: 26px;
  }

  .legal table {
    display: block;
    overflow-x: auto;
  }
}
