body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 15%, rgba(46, 217, 255, 0.18), transparent 24rem),
    linear-gradient(135deg, var(--white), var(--mist));
  line-height: 1.55;
}

main {
  min-height: calc(100vh - 5.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3rem, 8vw, 8rem);
  flex-wrap: wrap;
}

.intro {
  max-width: 35rem;
  flex: 1 1 28rem;
}

small {
  display: block;
  margin-bottom: 1rem;
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 850;
}

h1 {
  margin-bottom: 1.5rem;
  color: var(--navy);
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.intro p {
  max-width: 31rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.account-card {
  width: min(100%, 31rem);
  flex: 0 1 31rem;
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  background: var(--white);
  box-shadow: 0 1.5rem 5rem rgba(7, 27, 74, 0.12);
}

.account-card h2 {
  margin-bottom: 1.75rem;
  color: var(--navy);
  font-size: 2rem;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.account-card header p {
  margin: -0.75rem 0 1.75rem;
  color: var(--muted);
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 0.4rem;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

input:not([type="checkbox"]) {
  min-height: 3.25rem;
  padding-inline: 0.875rem;
  margin-bottom: 1rem;
  border: 1px solid var(--control-border);
  border-radius: var(--control-radius);
  color: var(--ink);
  font: inherit;
}

button {
  min-height: 2.75rem;
  padding-inline: 1.25rem;
  border: 0;
  border-radius: var(--control-radius);
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;

  &#start-checkout,
  &#manage-billing {
    align-self: center;
  }
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-message {
  min-height: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--danger);
  font-size: 0.875rem;
}

.form-message[data-status="success"] {
  color: var(--success);
}

.switch-view {
  margin: 1.5rem 0 0;
  color: var(--muted);
  text-align: center;
}

.switch-view a {
  padding: 0;
  border-bottom: 0.125rem solid var(--yellow);
  color: var(--navy);
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.secondary-button {
  min-height: 2.75rem;
  border: 1px solid var(--navy);
  background: var(--white);
  color: var(--navy);
}

.full-width-button {
  width: 100%;
}

#passkey-login-button {
  margin-top: 0.75rem;
}

.account-details {
  margin: 0;
}

.account-details > div {
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

.account-details dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-details dd {
  margin: 0.25rem 0 0;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.credentials {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--navy);
}

.credentials small {
  color: var(--accent-text);
}

.credentials h3 {
  margin-bottom: 0.5rem;
}

.credentials p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 48rem) {
  main {
    align-items: flex-start;
  }

  .intro {
    flex-basis: 100%;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
}
