:root {
  /* Official palette (Hesperia Circle - Colors.pdf): black #000000, gray #f2f2f2,
     champagne gold #eddfc0 -> #b5a165. Supporting tones are tints of those. */
  --black: #000000;
  --gray: #f2f2f2;
  --champagne-1: #eddfc0;
  --champagne-2: #b5a165;
  --champagne: linear-gradient(135deg, #eddfc0 0%, #b5a165 100%);
  --ink: #000000;
  --navy: #0b0b0b;
  --navy-2: #141414;
  --line: #2a2620;
  --gold: #b5a165;
  --gold-soft: #eddfc0;
  --paper: #f2f2f2;
  --text: #f2f2f2;
  --muted: #a8a399;
  --ok: #8fc9a3;
  --warn: #e2c27a;
  --bad: #e58b8b;
  /* Brand fonts (Canela / GT Walsheim Pro / NORD) were not supplied as licensed
     webfonts. Intentional fallbacks: an elegant system serif for display and a
     geometric-leaning system sans for UI. The logo/wordmark is the supplied art. */
  --serif: "Canela", "Cormorant Garamond", "Playfair Display", Didot, Georgia, "Times New Roman", serif;
  --sans: "GT Walsheim Pro", "Avenir Next", Avenir, "Montserrat", "Helvetica Neue", Arial, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.5; }
a { color: var(--gold-soft); }
[hidden] { display: none !important; }

.demo-banner { background: repeating-linear-gradient(135deg, #3a2a0c 0 12px, #2f220a 12px 24px); color: var(--gold-soft);
  text-align: center; font-size: 12.5px; letter-spacing: .04em; padding: 6px 12px; border-bottom: 1px solid #5a4418; }
.demo-banner strong { color: #fff3d0; letter-spacing: .14em; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line); background: var(--navy); flex-wrap: wrap; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand-mark { font-family: var(--serif); font-size: 26px; letter-spacing: .32em; color: #fff; }
.brand-sub { font-size: 11px; letter-spacing: .62em; color: var(--gold); margin-top: 6px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nav a, .nav button { color: var(--text); background: none; border: 1px solid transparent; padding: 7px 12px; border-radius: 999px;
  font: inherit; font-size: 13.5px; text-decoration: none; cursor: pointer; }
.nav a.active { border-color: var(--gold); color: var(--gold-soft); }
.nav .who { color: var(--muted); font-size: 12.5px; padding: 0 6px; }

.app { max-width: 1180px; margin: 0 auto; padding: 28px clamp(14px, 4vw, 40px) 60px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: #fff; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: .02em; line-height: 1.1; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
.eyebrow { font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.lead { color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.gold { color: var(--gold-soft); }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5; margin: 28px 0; border: 0; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.panel { background: var(--navy); border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-width: 0; }
.panel h3 { margin-bottom: 14px; }

.tier { position: relative; background: linear-gradient(160deg, var(--navy-2), var(--navy)); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.tier.BLACK { background: linear-gradient(160deg, #191919, #070707); }
.tier.LEGACY { border-color: var(--gold); }
.tier .name { font-family: var(--serif); font-size: 26px; color: #fff; }
.tier .price { font-size: 13px; color: var(--muted); }
.tier .price b { font-family: var(--serif); font-size: 30px; color: var(--gold-soft); font-weight: 500; }
.tier .circles { font-size: 13px; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.tier .disc { font-size: 13.5px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; padding: 9px 18px;
  font: inherit; font-size: 14px; cursor: pointer; border: 1px solid var(--gold); background: var(--gold); color: #1a1406; font-weight: 600; }
.btn.ghost { background: transparent; color: var(--gold-soft); }
.btn.quiet { background: transparent; border-color: var(--line); color: var(--text); font-weight: 500; }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn.sm { padding: 5px 12px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Digital card */
.ccard { aspect-ratio: 1.586; width: 100%; max-width: 440px; border-radius: 18px; padding: 22px 24px; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #2b3d5c 0%, #0f1b2e 45%, #070b14 100%); border: 1px solid #3a4b68;
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.ccard.BLACK { background: radial-gradient(120% 140% at 100% 0%, #2e2e2e 0%, #121212 45%, #000 100%); border-color: #444; }
.ccard.LEGACY { background: radial-gradient(120% 140% at 100% 0%, #4a3b1d 0%, #16130c 50%, #050505 100%); border-color: var(--gold); }
.ccard::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(200,169,106,.35); }
.ccard .top { display: flex; justify-content: space-between; align-items: flex-start; }
.ccard .lbl { font-size: 10.5px; letter-spacing: .3em; color: var(--gold); }
.ccard .holder { font-family: var(--serif); font-size: 22px; color: #fff; }
.ccard .tiername { font-size: 12px; letter-spacing: .26em; color: var(--gold-soft); text-transform: uppercase; }
.ccard .no { font-size: 13px; letter-spacing: .18em; color: var(--text); }
.ccard .demo-tag { font-size: 10px; letter-spacing: .2em; border: 1px solid var(--warn); color: var(--warn); padding: 2px 8px; border-radius: 999px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--navy-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.stat .k { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-family: var(--serif); font-size: 26px; color: #fff; overflow-wrap: anywhere; }
.stat .v small { display: block; font-family: var(--sans); font-size: 11px; color: var(--gold); letter-spacing: .14em; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.list li:last-child { border-bottom: 0; }
.list .meta { font-size: 12.5px; color: var(--muted); }
.amt { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.amt.pos { color: var(--ok); }
.amt.neg { color: var(--text); }

.pill { display: inline-block; font-size: 11px; letter-spacing: .06em; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.applied, .pill.active, .pill.captured, .pill.completed, .pill.available { border-color: var(--ok); color: var(--ok); }
.pill.entitlement, .pill.held, .pill.in_progress, .pill.pending, .pill.pending_payment { border-color: var(--warn); color: var(--warn); }
.pill.on_request { border-color: #7f9bd0; color: #a9c0ea; }
.pill.pending-config { border-color: #6b7489; color: #aab3c5; border-style: dashed; }
.pill.reversed, .pill.released, .pill.cancelled, .pill.declined, .pill.fulfilled { border-color: #6b7489; color: #aab3c5; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--navy-2); }
.table-wrap { overflow-x: auto; }

form.f { display: grid; gap: 12px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
label { display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
input, select, textarea { font: inherit; color: var(--text); background: #0a1322; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--text); }
.check input { width: auto; }
.quote { background: #0a1322; border: 1px dashed var(--gold); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.quote .line { display: flex; justify-content: space-between; gap: 10px; }
.quote .line.total { font-weight: 600; color: var(--gold-soft); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }

.notice { border-left: 3px solid var(--warn); background: rgba(224,180,94,.08); padding: 10px 14px; border-radius: 8px; font-size: 13.5px; color: #f1dfb6; }
.notice.info { border-color: #7f9bd0; background: rgba(127,155,208,.08); color: #cfdcf3; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; }
.tabs a.active { border-color: var(--gold); color: var(--gold-soft); background: rgba(200,169,106,.08); }

.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: #1d2a41; border: 1px solid var(--gold);
  color: #fff; padding: 10px 18px; border-radius: 12px; z-index: 50; max-width: calc(100vw - 24px); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast.err { border-color: var(--bad); }

.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 24px 16px 36px; border-top: 1px solid var(--line); letter-spacing: .04em; }
.hero { padding: 18px 0 8px; }
.persona { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

td .actions { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 640px) {
  .list li { flex-wrap: wrap; }
  .list li > .pill, .list li > .actions { margin-left: auto; }
  .app { padding-top: 18px; }
  .brand-mark { font-size: 21px; }
  .topbar { padding: 14px 16px; }
  .panel { padding: 16px; }
  .hide-sm { display: none; }
  td, th { padding: 8px 6px; }
  .ccard .holder { font-size: 19px; }
}

/* ---- Hesperia Circle official brand layer ---- */
body { background: radial-gradient(1200px 600px at 85% -10%, rgba(181,161,101,.10), transparent 60%), #000; }
.demo-banner { background: #0d0c0a; border-bottom: 1px solid rgba(181,161,101,.45); color: var(--gold-soft); }
.demo-banner strong { color: #fff; }
.topbar { background: #000; border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, transparent, #b5a165, #eddfc0, #b5a165, transparent) 1; }
.brand { flex-direction: row; align-items: center; gap: 12px; }
.brand-logo { display: block; height: 58px; width: auto; aspect-ratio: 1024 / 786; }
.brand-tag { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--gold-soft); max-width: 220px; line-height: 1.25; border-left: 1px solid rgba(181,161,101,.5); padding-left: 12px; }
.nav a.active, .tabs a.active { border-color: var(--gold); color: var(--gold-soft); background: rgba(181,161,101,.10); }
h1, h2, h3 { color: #fff; }
.eyebrow { color: var(--gold); }
.rule { background: linear-gradient(90deg, transparent, #b5a165, #eddfc0, #b5a165, transparent); opacity: .7; height: 1px; }
.btn { background: var(--champagne); border-color: #c9b783; color: #000; }
.btn.ghost { background: transparent; color: var(--gold-soft); border-color: var(--gold); }
.btn:hover:not(:disabled) { filter: brightness(1.06); }
.btn.ghost:hover:not(:disabled), .btn.quiet:hover:not(:disabled) { background: rgba(181,161,101,.12); }
.panel { background: #0b0b0b; border-color: var(--line); border-radius: 18px; }
.stat { background: #121110; }
input, select, textarea { background: #0e0d0c; }

/* Compare: plan rings */
.hero { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 4vw, 44px); align-items: center; padding: 26px 0 14px; }
.hero-logo { width: clamp(150px, 20vw, 230px); height: auto; aspect-ratio: 1024 / 786; display: block; }
.hero .welcome { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold-soft); margin: 0 0 6px; }
.tier { background: linear-gradient(170deg, #121110, #050505); border-color: #2c2820; border-radius: 22px; overflow: hidden; padding-top: 26px; }
.tier::before { content: ""; position: absolute; right: -54px; top: -54px; width: 150px; height: 150px; border-radius: 50%;
  border: 1px solid rgba(181,161,101,.45); box-shadow: 0 0 0 14px rgba(181,161,101,.05); pointer-events: none; }
.tier .ring { width: 34px; height: 34px; border-radius: 50%; padding: 2px; background: var(--champagne); margin-bottom: 6px; }
.tier .ring::after { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: #000; }
.tier.BLACK { background: linear-gradient(170deg, #1a1a1a, #000); border-color: #3a3a3a; }
.tier.LEGACY { border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(237,223,192,.15); }
.tier .price b { color: var(--gold-soft); }

/* Inspect: the digital card */
.ccard { background: radial-gradient(130% 150% at 100% 0%, #26221a 0%, #0a0a0a 48%, #000 100%); border: 1px solid rgba(181,161,101,.55); }
.ccard.BLACK { background: radial-gradient(130% 150% at 100% 0%, #2a2a2a 0%, #0d0d0d 48%, #000 100%); border-color: #555; }
.ccard.LEGACY { background: radial-gradient(130% 150% at 100% 0%, #4a3f24 0%, #15120b 50%, #000 100%); border-color: var(--gold-soft); }
.ccard::after { border-color: rgba(237,223,192,.30); width: 260px; height: 260px; right: -80px; top: -80px; box-shadow: 0 0 0 18px rgba(181,161,101,.05); }
.ccard .card-logo { height: 54px; width: auto; aspect-ratio: 1024 / 786; display: block; }
.ccard .top { position: relative; z-index: 1; }
.ccard .tiername { color: var(--gold-soft); }

/* Gate-matching footer */
.foot { border-top: 0; border-image: none; position: relative; }
.foot::before { content: ""; display: block; height: 1px; margin: 0 auto 20px; max-width: 520px; background: linear-gradient(90deg, transparent, #b5a165, transparent); }
.foot .slogan { font-family: var(--serif); font-style: italic; color: var(--gold-soft); font-size: 15px; display: block; margin-bottom: 6px; }

@media (max-width: 640px) {
  .brand-logo { height: 46px; }
  .brand-tag { display: none; }
  .hero { grid-template-columns: 1fr; justify-items: start; }
  .hero-logo { width: 140px; }
  .ccard .card-logo { height: 42px; }
}
