:root {
  --navy: #0f3d5e;
  --navy-dark: #0a2a42;
  --teal: #1a8a8a;
  --ink: #1a1f2b;
  --muted: #6b7280;
  --line: #e3e6eb;
  --bg: #f4f5f7;
  --card: #ffffff;
  --ok: #157347;
  --ok-bg: #e7f6ee;
  --warn: #b45309;
  --warn-bg: #fff4e5;
  --err: #b42318;
  --err-bg: #fdecea;
  --platinum: #5b6b7a;
  --gold: #b7891f;
  --bronze: #9a5b2c;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 16px; }
a { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 2rem; letter-spacing: -.01em; }
h2 { font-size: 1.5rem; margin-top: .5em; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; margin-top: 1.5em; }
h4 .opt { font-weight: 400; }
p { margin: 0 0 1em; }
code { background: #eef1f4; padding: 2px 6px; border-radius: 4px; font-size: .95em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 48px 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.big { font-size: 1.15rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--teal); font-weight: 700; margin-bottom: .5em; }
.lead { font-size: 1.15rem; color: #3b4453; max-width: 720px; }
.nowrap { white-space: nowrap; }

/* header/footer */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.1; }
.brand-mark { font-weight: 800; letter-spacing: .08em; color: var(--navy); font-size: 1.1rem; }
.brand-sub { font-size: .75rem; color: var(--muted); }
.site-header nav { display: flex; gap: 18px; align-items: center; }
.site-header nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.site-header nav a.btn { color: #fff; }
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: .875rem; background: var(--card); margin-top: 40px; }
.site-footer p { margin-bottom: .4em; }

/* buttons */
.btn { display: inline-block; background: var(--navy); color: #fff; border: 2px solid var(--navy); padding: 10px 18px; border-radius: 8px; font-weight: 600; text-decoration: none; cursor: pointer; font-size: 1rem; font-family: inherit; line-height: 1.2; }
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-sm { padding: 6px 12px; font-size: .875rem; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: #e9eef3; }
.btn-danger { background: var(--err); border-color: var(--err); }
.btn-disabled { background: #c9cfd6; border-color: #c9cfd6; color: #fff; cursor: not-allowed; }

/* hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #164e75 60%, var(--teal) 100%); color: #fff; padding: 72px 0; }
.hero .eyebrow { color: #a7e3e3; }
.hero h1 { font-size: 2.6rem; max-width: 800px; }
.hero .lead { color: #dbe6ee; }
.hero-cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn { background: #fff; color: var(--navy); border-color: #fff; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
@media (max-width: 640px) { .hero h1 { font-size: 1.9rem; } .hero { padding: 48px 0; } }

/* tiers */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 24px 0; }
.tier { background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--navy); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.tier-platinum { border-top-color: var(--platinum); }
.tier-gold { border-top-color: var(--gold); }
.tier-bronze { border-top-color: var(--bronze); }
.tier-soldout { opacity: .7; }
.tier h3 { font-size: 1.3rem; margin-bottom: 0; }
.tier .price { font-size: 2rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.tier .scarcity { color: var(--warn); font-weight: 600; font-size: .875rem; margin: 0; }
.tier .tagline { color: var(--muted); margin-top: .5em; }
.tier ul { padding-left: 20px; margin: 12px 0 20px; flex: 1; }
.tier li { margin-bottom: 6px; font-size: .95rem; }
.tier footer p { margin: 8px 0 0; }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 10px; }
.notice { background: #eef4f8; border-left: 4px solid var(--navy); padding: 14px 18px; border-radius: 6px; margin: 20px 0; }
.notice p:last-child { margin-bottom: 0; }
.notice.small { font-size: .875rem; }

/* forms */
.form-section { max-width: 820px; }
.progress { list-style: none; display: flex; gap: 6px; padding: 0; margin: 20px 0 28px; counter-reset: step; }
.progress li { flex: 1; text-align: center; font-size: .8rem; color: var(--muted); padding: 8px 4px; border-bottom: 3px solid var(--line); }
.progress li::before { counter-increment: step; content: counter(step) ". "; }
.progress li.active { color: var(--navy); border-color: var(--navy); font-weight: 700; }
.progress li.done { color: var(--ok); border-color: var(--ok); }
.progress li.skipped { text-decoration: line-through; opacity: .5; }
fieldset.step { border: 0; padding: 0; margin: 0; }
legend { font-size: 1.4rem; font-weight: 700; margin-bottom: 16px; padding: 0; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #c9cfd6; border-radius: 6px; font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink);
}
input + input { margin-top: 8px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
textarea { resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.field.check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.field.check input { margin-top: 4px; flex-shrink: 0; }
.error { color: var(--err); font-size: .875rem; margin: 6px 0 0; min-height: 0; }
.error:empty { display: none; }
.has-error input, .has-error select, .has-error textarea, .has-error .radio-card { border-color: var(--err); }
.counter { font-size: .8rem; color: var(--muted); margin: 4px 0 0; text-align: right; }
.counter.over { color: var(--err); font-weight: 600; }
.hp { position: absolute; left: -9999px; top: -9999px; }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: start; border: 2px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; background: #fff; }
.radio-card input { grid-row: 1 / span 2; margin-top: 4px; }
.radio-card:has(input:checked) { border-color: var(--navy); background: #f2f7fb; }
.radio-card.disabled { opacity: .55; cursor: not-allowed; }
.rc-title { font-weight: 700; }
.rc-sub { font-size: .875rem; color: var(--muted); }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-nav #next, .form-nav #submit { margin-left: auto; }
.submit-note { background: var(--ok-bg); color: var(--ok); padding: 12px 14px; border-radius: 6px; margin-top: 16px; font-weight: 500; display: none; }
.submit-note.on { display: block; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin-bottom: 18px; font-size: .95rem; }
.summary strong { display: block; font-size: 1.1rem; }
.terms-box { max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; margin-bottom: 18px; font-size: .9rem; }
.terms-box h3 { font-size: 1rem; }
.terms { padding-left: 20px; }
.terms li { margin-bottom: 10px; }
.terms ul { padding-left: 18px; margin: 6px 0; }
.terms-page { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 24px; }
.sigpad { border: 1px solid #c9cfd6; border-radius: 6px; background: #fff; position: relative; margin-bottom: 8px; }
.sigpad canvas { width: 100%; height: 180px; display: block; touch-action: none; border-radius: 6px; }
.sigpad button { position: absolute; right: 8px; top: 8px; }
.sigpad::after { content: "Sign here"; position: absolute; left: 12px; bottom: 8px; color: #b8bec7; font-size: .8rem; pointer-events: none; }
.sig-img { max-width: 260px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
input[type=file] { width: 100%; padding: 10px; border: 1px dashed #c9cfd6; border-radius: 6px; background: #fff; font-family: inherit; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.file { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: .85rem; }
.file img { width: 100%; height: 110px; object-fit: contain; background: #f4f5f7; border-radius: 4px; display: block; }
.file-icon { height: 110px; display: flex; align-items: center; justify-content: center; background: #eef1f4; border-radius: 4px; font-weight: 700; color: var(--muted); }
.file-meta { margin-top: 6px; word-break: break-all; }
.staff-row { margin-bottom: 0; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; }
.alert-error { background: var(--err-bg); color: var(--err); border: 1px solid #f3c1bb; }
.alert-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid #f5d9a8; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #b9e2c8; }

/* cards / status */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.card h3 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.stack .btn { width: auto; }
.status { border-radius: var(--radius); padding: 22px 24px; margin-bottom: 24px; }
.status p:last-child { margin-bottom: 0; }
.status-ok { background: var(--ok-bg); border: 1px solid #b9e2c8; }
.status-hold { background: var(--warn-bg); border: 1px solid #f5d9a8; }
.kv { border-collapse: collapse; width: 100%; font-size: .95rem; }
.kv th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 12px 6px 0; vertical-align: top; white-space: nowrap; width: 150px; }
.kv td { padding: 6px 0; vertical-align: top; word-break: break-word; }

/* admin */
.admin h2 { margin-top: 1.5em; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.admin-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-cols h3 { margin-top: 1.5em; }
.admin-cols h3:first-child { margin-top: 0; }
.table-wrap { overflow-x: auto; }
.table { border-collapse: collapse; width: 100%; background: #fff; font-size: .9rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: #eef1f4; font-weight: 600; white-space: nowrap; }
.row-warn td { background: #fff8ec; }
.inline { display: inline; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; background: #e5e7eb; color: #374151; }
.pill-green, .pill-confirmed { background: var(--ok-bg); color: var(--ok); }
.pill-red { background: var(--err-bg); color: var(--err); }
.pill-held, .pill-processing { background: var(--warn-bg); color: var(--warn); }
.pill-pending { background: #e0ecff; color: #1d4ed8; }
.pill-lead { background: #ede9fe; color: #6d28d9; }
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 18px; min-width: 150px; }
.stat-n { display: block; font-size: 1.4rem; font-weight: 800; }
.stat-l { font-size: .8rem; color: var(--muted); }
.stat-warn { border-color: var(--warn); }
.filters a { display: inline-block; padding: 4px 10px; border-radius: 999px; text-decoration: none; margin: 0 4px 6px 0; background: #fff; border: 1px solid var(--line); font-size: .875rem; }
.filters a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
