:root {
  --bg: #faf7f7; --surface: #fff; --text: #241517; --muted: #6e5f61; --line: #efe3e4;
  --accent: #d62839; --accent-soft: #fde6e8; --on-accent: #fff; --ok: #2f7d4f; --danger: #a3121f;
  color-scheme: light;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161011; --surface: #221819; --text: #f5ecec; --muted: #ab9a9c; --line: #3a2a2c;
    --accent: #ff5a66; --accent-soft: #3f1c20; --on-accent: #1a0709; --ok: #6cc58f; --danger: #ffb3b8; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 17px; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 7vw, 52px); }
h2 { font-size: clamp(24px, 4.5vw, 32px); }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.nav { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  padding: 12px max(16px, calc((100% - 1040px) / 2)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 18px; }
.brand img { border-radius: 7px; }
.nav nav { display: flex; gap: 16px; align-items: center; font-size: 15px; }
.nav nav a { color: var(--text); text-decoration: none; }
.nav .nav-cta { background: var(--accent); color: var(--on-accent); padding: 6px 14px; border-radius: 99px; font-weight: 600; }
@media (max-width: 520px) { .nav nav a:not(.nav-cta) { display: none; } }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.hero { padding: 56px 0 40px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; }
.lead { font-size: 19px; max-width: 640px; color: var(--muted); }
.lead strong { color: var(--text); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 14px 22px; border-radius: 12px; font-weight: 600; text-decoration: none; font-size: 16px; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: default; }
.facts { display: flex; gap: 24px; list-style: none; padding: 0; margin: 8px 0 0; flex-wrap: wrap; color: var(--muted); }
.facts strong { color: var(--text); font-size: 22px; display: block; }

.block { padding: 40px 0; border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 20px; }
.grid article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.grid article p { color: var(--muted); margin: 0; font-size: 16px; }
.features { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.features li::marker { color: var(--accent); font-weight: 700; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; cursor: pointer; }
.plan input { position: absolute; opacity: 0; }
.plan:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan-name { font-weight: 600; }
.plan-price { font-size: 32px; font-weight: 700; }
.plan-note { color: var(--muted); font-size: 15px; }
.badge { align-self: flex-start; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 99px; }

.checkout form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.checkout label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.checkout input:not([type=radio]):not([type=checkbox]) { font: inherit; font-size: 16px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.checkout label.check, .plan-pick label { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.plan-pick { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.plan-pick legend { font-size: 15px; font-weight: 500; padding: 0 4px; }
.invoice-fields { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: 12px; background: var(--accent-soft); }
.form-error { color: var(--danger); font-size: 15px; margin: 0; }
.fine { font-size: 14px; color: var(--muted); }
.closed-note { display: none; background: var(--accent-soft); padding: 12px 14px; border-radius: 12px; }
body[data-sales=closed] .closed-note { display: block; }
body[data-sales=closed] #order-form { opacity: 0.5; pointer-events: none; }

.pay-grid { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 12px; }
.pay-grid img { background: #fff; border-radius: 12px; padding: 8px; max-width: 100%; height: auto; }
.pay-grid dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 16px; }
.pay-grid dt { color: var(--muted); }
.pay-grid dd { margin: 0; word-break: break-all; }
.copy { font: inherit; font-size: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; padding: 2px 8px; cursor: pointer; margin-left: 6px; }
.waiting { font-weight: 600; color: var(--accent); }
.access-code { font-size: 34px; font-weight: 700; letter-spacing: 0.12em; font-family: ui-monospace, monospace; color: var(--accent); margin: 8px 0; }
#done { max-width: 520px; }

.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

.foot { border-top: 1px solid var(--line); padding: 28px max(16px, calc((100% - 1040px) / 2)) 40px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.foot p { margin: 2px 0; }
.foot strong { color: var(--text); }
.foot nav { display: flex; flex-direction: column; gap: 6px; }

.legal { max-width: 760px; margin: 0 auto; padding: 40px 16px; }
.legal h2 { font-size: 20px; margin-top: 28px; }
.legal li { margin-bottom: 6px; }
