/* Payment checkout. White page, gray type, near-black actions.
   The warm paper palette read as yellow next to the white bank page. */

:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #5f5f5f;
  --line: #e7e7e7;
  --soft: #f6f6f6;
  --danger: #9b2c2c;
  --danger-bg: #fff6f6;
  --radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: #fff;
  color: var(--ink);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 26rem;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 3.5rem;
}

.mast {
  margin-bottom: 1.25rem;
}

.mark {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.mark svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

h1 {
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.45rem;
}

.lede,
.note {
  margin: 0;
  line-height: 1.5;
  color: var(--muted);
}

.lede {
  font-size: 1rem;
}

.note {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  font-size: 0.9rem;
  background: var(--soft);
  border-radius: 12px;
}

.card,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.05rem 1.05rem;
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.04);
}

.panel + .panel,
form + form,
.actions {
  margin-top: 0.85rem;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.78rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  margin-bottom: 0.85rem;
}

input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: transparent;
}

button,
.button {
  display: block;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.82rem 0.95rem;
  font: inherit;
  font-weight: 600;
  background: var(--ink);
  color: #fff;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: #2a2a2a;
}

button.secondary,
.button.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

button.secondary:hover,
.button.secondary:hover {
  background: var(--soft);
}

button.quiet {
  width: auto;
  margin: 0.55rem 0 0;
  padding: 0.35rem 0;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
}

button.quiet:hover {
  background: transparent;
  color: var(--ink);
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

.actions {
  display: grid;
  gap: 0.55rem;
}

.plans {
  margin-bottom: 1rem;
}

.plans h2 {
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

button.plan {
  display: block;
  width: 100%;
  margin: 0 0 0.55rem;
  padding: 0.9rem 1rem;
  text-align: left;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.04);
}

button.plan:hover {
  background: var(--soft);
}

button.plan-featured {
  border-color: var(--ink);
  background: var(--soft);
}

button.plan-featured:hover {
  background: #efefef;
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.plan-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.plan-price {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.plan-eq {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.plan-save {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

#status:empty {
  display: none;
}

#status {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

#status.error {
  background: var(--danger-bg);
  color: var(--danger);
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f1f1;
}

.row:last-child {
  border-bottom: 0;
}

.row span:last-child {
  text-align: right;
  overflow-wrap: anywhere;
}

.muted {
  color: var(--muted);
}

.operator {
  margin: 2rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (min-width: 720px) {
  .wrap {
    padding-top: 4.5rem;
  }
}
