* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root {
  --ink: #252b37;
  --muted: #556174;
  --line: #dce0e9;
  --accent: #4659bb;
  --accent-light: #eff1fc;
  --green: #1b6746;
  --green-light: #e9f6ef;
  color: var(--ink);
  background: #f5f6fa;
  font: 16px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body { margin: 0; }
header { background: white; border-bottom: 1px solid var(--line); }
nav, main, footer { max-width: 1080px; margin: auto; padding-inline: clamp(16px, 4vw, 40px); }
nav, footer { display: flex; align-items: center; gap: 20px; }
nav { min-height: 66px; font-size: .9rem; }
nav a, footer a { text-decoration: none; }
a { color: var(--accent); }
a:hover { text-decoration: underline; }
.brand { color: var(--ink); margin-right: auto; font-size: 1.2rem; font-weight: 750; letter-spacing: -.04em; white-space: nowrap; }
nav .brand { display: inline-flex; align-items: center; gap: 12px; }
nav .brand img { display: block; flex: none; }
.open { font-weight: 650; }
main { padding-block: clamp(32px, 6vw, 64px) 36px; }
.title, .card-heading, .actions, .purchase-quote {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.title { align-items: end; justify-content: space-between; margin-bottom: 24px; }
.title p { margin: 4px 0 0; overflow-wrap: anywhere; }
.overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.card { padding: clamp(18px, 3vw, 28px); min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 10px 35px #24375b0d; }
.card-heading { justify-content: space-between; margin-bottom: 18px; }
h1, h2, h3 { line-height: 1.18; margin: 0; }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); letter-spacing: -.05em; }
h2 { font-size: 1.35rem; letter-spacing: -.03em; }
h3 { font-size: 1.05rem; }
p { margin: 12px 0; }
.muted { color: var(--muted); font-size: .9rem; }
.amount { margin: 0; font-size: clamp(1.35rem, 4vw, 1.9rem); line-height: 1.2; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.amount + .muted { margin-top: 4px; }
.status { background: #f0f2f6; color: var(--muted); padding: 3px 10px; border-radius: 20px; font-size: .82rem; font-weight: 650; }
.status.active { background: var(--green-light); color: var(--green); }
.features { padding-left: 1.25rem; }
.features li + li { margin-top: 6px; }
.features li::marker { color: var(--accent); }
.actions { margin-top: 20px; }
button, input { font: inherit; }
button { min-height: 42px; padding: 8px 13px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; color: var(--ink); font-weight: 650; }
button.primary { background: var(--accent); color: white; }
button.primary:hover:not(:disabled) { background: #384ba8; }
button.secondary { border-color: var(--line); background: white; }
button.secondary:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
button.compact { font-size: .9rem; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 3px solid #6678d4; outline-offset: 3px; }
.notice, .checkout-notice { border: 1px solid var(--line); border-radius: 9px; background: var(--accent-light); padding: 12px 14px; }
.notice { margin: 0 0 16px; }
.notice.sandbox { color: #724a15; border-color: #ead9a9; background: #fff7dc; }
.notice.error { color: #8d2530; border-color: #f0cbd0; background: #fff1f3; margin-top: 16px; }
.checkout-notice { margin-top: 18px; }
.checkout-notice p { margin: 6px 0 0; }
.checkout-notice .actions { margin-top: 12px; }
.balance { background: var(--green-light); color: var(--green); border-radius: 10px; padding: 14px 16px; }
.balance .muted { color: var(--green); margin: 0 0 4px; }
details { font-size: .9rem; margin-top: 14px; }
summary { color: var(--accent); cursor: pointer; font-weight: 650; }
#credit-lots { margin: 8px 0 0; padding-left: 1.15rem; }
#credit-lots li + li { margin-top: 6px; }
.purchase { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.purchase-quote { justify-content: space-between; align-items: end; margin-top: 12px; }
.quantity { border: 0; margin: 0; padding: 0; min-width: 0; }
.quantity label, .total p:first-child { display: block; margin: 0 0 5px; font-size: .9rem; }
.stepper { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; width: fit-content; }
.stepper button { min-width: 42px; padding: 0; background: transparent; color: var(--accent); }
.stepper button:hover:not(:disabled) { background: var(--accent-light); }
.stepper input { appearance: textfield; border: 0; border-inline: 1px solid var(--line); border-radius: 0; width: 3.4rem; text-align: center; color: var(--ink); }
.stepper input::-webkit-inner-spin-button { appearance: none; }
.total { flex: 1; min-width: 8rem; text-align: right; }
.total .amount { font-size: clamp(1.15rem, 3vw, 1.6rem); }
footer { flex-wrap: wrap; padding-bottom: 28px; font-size: .88rem; }
@media (max-width: 730px) {
  nav, footer { gap: 14px; }
  .overview { grid-template-columns: 1fr; gap: 14px; }
  .title { align-items: start; }
}
