@import url("brand.css?v=bedroom-jam");

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); }
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
header.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
header.brand img { width: 44px; height: 44px; }
header.brand span, h1, h2 { font-family: var(--display); letter-spacing: -0.01em; }
.wordmark { font-family: var(--editorial); letter-spacing: -.055em; white-space: nowrap; }
.wordmark > span { font-style: italic; letter-spacing: -.06em; }
header.brand > span { font-weight: 700; font-size: 20px; }
h1 { font-size: clamp(28px, 6vw, 38px); line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 22px; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); font-size: 15px; }
a { color: var(--accent); }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 28px 0 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px; box-shadow: var(--lift); }
.card.pro { border-color: var(--accent); }
.card ul { padding-left: 20px; margin: 0 0 18px; }
.price { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0 0 6px; }
.price + .price { margin-bottom: 14px; }
button {
  font: inherit; font-weight: 600; cursor: pointer; width: 100%; padding: 12px 16px; margin-top: 8px;
  border-radius: var(--radius-button); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
}
button.secondary { background: transparent; color: var(--accent); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
button[aria-busy="true"] { opacity: 1; cursor: progress; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; flex: none; }
.checkout-overlay { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(3px); animation: overlay-in 160ms ease-out; }
.checkout-overlay[hidden] { display: none; }
.checkout-overlay-card { display: grid; justify-items: center; gap: 4px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px 32px; box-shadow: var(--lift); }
.checkout-overlay-card .spinner { width: 28px; height: 28px; border-width: 3px; color: var(--accent); margin-bottom: 10px; }
.checkout-overlay-card p { margin: 0; font-weight: 600; }
.checkout-overlay-card p.muted { font-weight: 400; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes overlay-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } .checkout-overlay { animation: none; } }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
button:focus-visible { border-radius: 12px; }
a.skip, .landing a.skip { position: absolute; left: 12px; top: -64px; z-index: 20; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 650; text-decoration: none; }
a.skip:focus, .landing a.skip:focus { top: 12px; }
.page-foot { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }
.notice { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.error { color: var(--accent); font-weight: 600; min-height: 1.5em; }
.key {
  display: block; font: 700 clamp(20px, 5.5vw, 30px)/1.3 ui-monospace, Menlo, monospace; letter-spacing: 0.04em;
  background: var(--surface); border: 2px dashed var(--accent); border-radius: 14px; padding: 18px;
  text-align: center; user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; margin: 16px 0 8px;
}
.key-actions { max-width: 280px; }
a.open-app {
  display: block; box-sizing: border-box; text-align: center; text-decoration: none; font-weight: 600; padding: 12px 16px; margin-top: 8px;
  border-radius: var(--radius-button); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
}
a.open-app:focus-visible { border-radius: 12px; }
ol.steps { padding-left: 22px; }
ol.steps li { margin-bottom: 8px; }
[hidden] { display: none !important; }
