:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --card: #fffefa;
  --ink: #263f4d;
  --muted: #738087;
  --line: #dce3e1;
  --blue: #315e73;
  --on-blue: #fff;
  --tint: #eaf0ee;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171e25;
  --card: #202a34;
  --ink: #e0e9ef;
  --muted: #a8b7c3;
  --line: #394a59;
  --blue: #a0c7df;
  --on-blue: #172c39;
  --tint: #24343d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.7 system-ui,
    sans-serif;
}
main {
  max-width: 920px;
  margin: auto;
  padding: 28px 28px 50px;
}
nav,
.heading,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
nav {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
a {
  color: var(--blue);
  text-decoration: none;
}
nav > a:first-child {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.nav-caption {
  color: var(--muted);
  font-size: 13px;
}
header {
  padding: 44px 0 24px;
}
.eyebrow {
  color: var(--blue);
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
}
h1 {
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.3;
  margin: 14px 0;
  letter-spacing: -0.03em;
}
h2 {
  font-size: 21px;
  margin: 0 0 12px;
}
header > p:last-child,
.hint,
footer {
  color: var(--muted);
}
.hint,
footer {
  font-size: 13px;
  line-height: 1.85;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  cursor: pointer;
  font:
    500 14px/1.5 system-ui,
    sans-serif;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 18px;
  background: var(--tint);
  color: var(--ink);
  text-decoration: none;
}
button:hover,
a.button:hover {
  filter: brightness(0.95);
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
.plan {
  display: block;
  text-align: left;
  padding: 24px;
  min-height: 180px;
  background: var(--card);
  border-color: var(--line);
  border-radius: 12px;
}
.plan span {
  display: block;
}
.plan .price {
  font-size: 34px;
  font-weight: 650;
  margin: 14px 0;
  letter-spacing: -0.04em;
}
.plan .detail {
  font-size: 12px;
  color: var(--muted);
}
.plan.recommended {
  border-color: var(--blue);
  background: var(--tint);
}
.plan.recommended .detail {
  color: var(--blue);
}
.panel {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  margin: 28px 0 0;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin: 16px 0 8px;
}
input:not([type="checkbox"]),
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--card);
  font:
    13px/1.8 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
textarea.credential {
  display: block;
  height: 86px;
  resize: none;
  border: 0;
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: var(--tint);
  padding: 18px;
}
.actions {
  justify-content: flex-start;
  gap: 10px 18px;
}
.primary {
  background: var(--blue);
  color: var(--on-blue);
  padding: 13px 26px;
  font-weight: 600;
  box-shadow: 0 3px 8px #18344614;
}
.secondary {
  background: var(--tint);
  color: var(--blue);
}
.text-button {
  background: transparent;
  color: var(--muted);
  padding: 9px 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 13px;
}
.text-button:hover {
  color: var(--blue);
  filter: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.confirm {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 22px 0 16px;
  color: var(--muted);
  font-weight: 400;
}
.confirm input {
  margin: 5px 0 0;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--blue);
}
#notice {
  color: var(--blue);
  font-size: 13px;
  margin: 22px 0;
}
#order {
  scroll-margin-top: 20px;
}
#order.is-paid {
  border-top: 0;
  padding-top: 8px;
  margin-top: 16px;
}
#order-title {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.4;
  margin: 0;
  letter-spacing: -0.03em;
}
#order-summary {
  margin: 14px 0 2px;
  font-size: 15px;
}
#order-number {
  margin: 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}
#delivery {
  margin-top: 30px;
}
#delivery .actions {
  margin: 22px 0 14px;
}
#delivery .hint {
  max-width: 580px;
}
#expires {
  margin: 10px 0 0;
  color: var(--blue);
  font-size: 13px;
}
#receipt-section {
  margin-top: 30px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
#receipt-section summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
#receipt-section summary::marker {
  color: var(--muted);
}
#receipt-section summary small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 14px;
}
.receipt-content {
  padding-top: 12px;
}
#receipt.credential {
  border-left-color: var(--line);
}
.is-paid .checkout-actions {
  display: none;
}
#recover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: center;
}
#recover label {
  grid-column: 1 / -1;
}
#recover input {
  min-width: 0;
}
footer {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
}
.local-order {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  overflow-wrap: anywhere;
}
#local-orders + h2 {
  margin-top: 38px;
}
#payment-method {
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 20px;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
@media (max-width: 580px) {
  main {
    padding: 20px 20px 32px;
  }
  nav {
    padding-bottom: 16px;
  }
  .nav-caption {
    font-size: 11px;
  }
  header {
    padding-top: 30px;
  }
  .plans {
    gap: 8px;
  }
  .plan {
    padding: 16px 10px;
    min-height: 158px;
  }
  .plan .price {
    font-size: 27px;
  }
  .plan .duration,
  .plan .detail {
    font-size: 11px;
  }
  .panel {
    padding: 26px 0;
  }
  .heading {
    align-items: flex-start;
    gap: 6px;
  }
  #new-order {
    min-height: 32px;
  }
  #receipt-section summary small {
    display: block;
    margin: 5px 0 0 18px;
  }
  textarea.credential {
    height: 116px;
    font-size: 12px;
    padding: 14px;
  }
  #delivery .primary {
    width: 100%;
  }
  #recover {
    grid-template-columns: minmax(0, 1fr);
  }
  #recover button {
    justify-self: start;
    margin-top: 12px;
  }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #171e25;
    --card: #202a34;
    --ink: #e0e9ef;
    --muted: #a8b7c3;
    --line: #394a59;
    --blue: #a0c7df;
    --on-blue: #172c39;
    --tint: #24343d;
  }
}

.payment-methods {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
  min-width: 0;
}
.payment-methods legend {
  font-size: 14px;
  font-weight: 600;
  padding: 0 0 12px;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.method-option {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
  min-width: 0;
}
.method-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.method-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.method-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 7px;
  background: var(--tint);
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
}
.method-copy {
  flex: 1;
  min-width: 0;
}
.method-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.method-copy small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 3px;
}
.method-check {
  color: var(--blue);
  opacity: 0;
  flex: none;
}
.method-option input:checked + .method-card {
  border-color: var(--blue);
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.method-option input:checked + .method-card .method-check {
  opacity: 1;
}
.method-option input:focus-visible + .method-card {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.method-option input:disabled + .method-card {
  opacity: 0.5;
  cursor: default;
}
@media (max-width: 580px) {
  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .method-card {
    padding: 12px 10px;
    gap: 8px;
    min-height: 82px;
  }
  .method-mark {
    width: 25px;
    height: 28px;
  }
  .method-check {
    font-size: 12px;
  }
  .method-copy strong {
    font-size: 13px;
  }
  .method-copy small {
    font-size: 10px;
  }
}
