/* ============================================================
   sbTix — design system
   Tokens, base, components. Reused across every sbTix page.
   ============================================================ */
:root {
  /* Brand */
  --c-ink:        #0a2540;
  --c-ink-2:      #1a4480;
  --c-gold:       #d4af37;
  --c-gold-2:     #f0c948;
  --c-coral:      #ff5757;
  --c-success:    #10a957;
  --c-warn:       #d4a017;
  --c-danger:     #c0392b;

  /* Neutrals */
  --c-bg:         #ffffff;
  --c-bg-soft:    #fafbfc;
  --c-bg-section: #f4f6f9;
  --c-bg-dark:    #0a1a2e;
  --c-ink-soft:   #424a57;
  --c-ink-mute:   #6b7280;
  --c-line:       #e2e7ee;
  --c-line-soft:  #eef0f3;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-2xl: 32px;

  --sh-sm: 0 1px 2px rgba(10,37,64,.06);
  --sh-md: 0 4px 14px rgba(10,37,64,.08);
  --sh-lg: 0 14px 36px rgba(10,37,64,.12);
  --sh-xl: 0 28px 70px rgba(10,37,64,.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }

a { color: var(--c-ink); text-decoration: none; }
a:hover { color: var(--c-ink-2); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.container.tight  { max-width: 580px; }

/* ---------- Top nav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.topnav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand-mark { font-family: var(--font-sans); font-weight: 800; font-size: 22px; letter-spacing: -0.5px; color: var(--c-ink); display: inline-flex; align-items: center; gap: 1px; }
.brand-mark .dot { color: var(--c-gold); margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--c-ink-soft); }
.nav-links a:hover { color: var(--c-ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; font-family: inherit; font-size: 14px; font-weight: 700; border: 0; border-radius: var(--r-md); cursor: pointer; transition: transform .12s ease, box-shadow .15s, background .15s, color .15s; text-decoration: none; white-space: nowrap; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--c-ink); color: #fff; }
.btn-primary:hover { background: var(--c-ink-2); color: #fff; box-shadow: var(--sh-md); }
.btn-gold { background: var(--c-gold); color: var(--c-ink); }
.btn-gold:hover { background: var(--c-gold-2); color: var(--c-ink); box-shadow: 0 6px 18px rgba(212,175,55,.32); }
.btn-ghost { background: transparent; color: var(--c-ink); border: 1.5px solid var(--c-line); }
.btn-ghost:hover { border-color: var(--c-ink); }
.btn-text { background: transparent; color: var(--c-ink-soft); padding: 9px 12px; }
.btn-text:hover { color: var(--c-ink); }
.btn-lg { padding: 15px 28px; font-size: 15px; border-radius: 12px; }
.btn-xl { padding: 18px 34px; font-size: 16px; border-radius: 14px; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.btn-icon { padding: 11px 13px; }

/* ---------- Type system ---------- */
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--c-gold); }
.h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -1.5px; font-weight: 800; color: var(--c-ink); }
.h2 { font-size: clamp(28px, 3.5vw, 44px); line-height: 1.1; letter-spacing: -1px; font-weight: 800; color: var(--c-ink); }
.h3 { font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--c-ink); letter-spacing: -0.3px; }
.h4 { font-size: 17px; line-height: 1.35; font-weight: 700; color: var(--c-ink); }
.lede { font-size: 18px; line-height: 1.6; color: var(--c-ink-soft); }
.muted { color: var(--c-ink-mute); }
.kicker { font-size: 11.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--c-ink-mute); }

/* ---------- Cards & sections ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.dark { background: var(--c-bg-dark); color: #fff; }
.section.dark .h1, .section.dark .h2, .section.dark .h3, .section.dark .h4 { color: #fff; }
.section.dark .lede { color: rgba(255,255,255,.78); }
.section.dark .muted { color: rgba(255,255,255,.65); }
.section.dark .eyebrow { color: var(--c-gold-2); }
.section.soft { background: var(--c-bg-soft); }

.card { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-sm); }
.card.elev { box-shadow: var(--sh-lg); border: 0; }
.card.dark { background: var(--c-bg-dark); color: #fff; border: 0; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--c-ink); margin-bottom: 6px; letter-spacing: 0.2px; }
.field .hint { display: block; font-size: 12.5px; color: var(--c-ink-mute); margin-top: 5px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=tel], .field input[type=date], .field input[type=time], .field input[type=url], .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: 14.5px;
  background: #fff; color: var(--c-ink); border: 1.5px solid var(--c-line); border-radius: var(--r-md);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-ink); box-shadow: 0 0 0 3px rgba(10,37,64,.08); }
.field .split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1.5px solid var(--c-line); border-radius: var(--r-md); cursor: pointer; transition: border-color .15s, background .15s; }
.checkbox-row:hover { border-color: var(--c-ink-2); background: var(--c-bg-soft); }
.checkbox-row input[type=checkbox] { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px; }
.checkbox-row .lbl { font-weight: 700; font-size: 14px; color: var(--c-ink); }
.checkbox-row .sub { font-size: 12.5px; color: var(--c-ink-mute); margin-top: 2px; }

/* ---------- Pill & badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; background: var(--c-bg-section); color: var(--c-ink); }
.pill.dark { background: rgba(255,255,255,.10); color: #fff; }
.pill.gold { background: rgba(212,175,55,.16); color: #8a6d10; }
.pill.success { background: rgba(16,169,87,.14); color: #0a6d3a; }
.pill.danger { background: rgba(192,57,43,.12); color: #8a1f14; }

/* ---------- Layout helpers ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 12px; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.center { display: flex; justify-content: center; align-items: center; }

/* ---------- Footer ---------- */
.foot { background: var(--c-bg-dark); color: rgba(255,255,255,.7); padding: 56px 0 32px; }
.foot a { color: rgba(255,255,255,.85); }
.foot a:hover { color: #fff; }
.foot .brand-mark { color: #fff; }
.foot .grid { gap: 32px; }
.foot h5 { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 14px; font-weight: 700; }
.foot ul { list-style: none; padding: 0; }
.foot li { padding: 4px 0; font-size: 14px; }
.foot .copy { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.10); font-size: 12.5px; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.gold { color: var(--c-gold); }
.coral { color: var(--c-coral); }
.success { color: var(--c-success); }

.divider { height: 1px; background: var(--c-line); margin: 24px 0; }
.fade-in { animation: fadeIn .4s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Step indicator (for multi-step wizards) */
.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.steps .step { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--c-bg-section); font-size: 13px; font-weight: 700; color: var(--c-ink-mute); }
.steps .step .num { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1.5px solid var(--c-line); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.steps .step.active { background: var(--c-ink); color: #fff; }
.steps .step.active .num { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-ink); }
.steps .step.done .num { background: var(--c-success); border-color: var(--c-success); color: #fff; }
.steps .sep { color: var(--c-line); font-size: 14px; }
