/* Perks storefront — original employee-facing identity, built for phone and desktop. */
:root {
  --ink: #0a0f2c;
  --ink-soft: #3b4264;
  --muted: #6d7490;
  --line: #e2e5ef;
  --paper: #ffffff;
  --shell: #f5f6fb;
  --blue: #1b47d6;
  --blue-deep: #0b1a52;
  --blue-wash: #eef1fe;
  --gold: #f5a524;
  --gold-wash: #fff6e5;
  --green: #0f7a52;
  --red: #b3261e;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(10, 15, 44, .06), 0 12px 32px rgba(10, 15, 44, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.55 var(--font);
  color: var(--ink);
  background: var(--shell);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: .6rem 1rem; z-index: 50;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 1.2rem; letter-spacing: .14em; text-transform: uppercase; }
.brand-text small { font-size: .66rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.topnav { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.topnav a, .topnav button {
  font: inherit; font-size: .9rem; font-weight: 600;
  border: 0; background: none; color: var(--ink-soft); cursor: pointer;
  padding: .5rem .75rem; border-radius: 999px; text-decoration: none;
}
.topnav a:hover, .topnav button:hover { background: var(--blue-wash); color: var(--blue); }
.topnav a.on { background: var(--ink); color: #fff; }
.topnav .count {
  display: inline-block; min-width: 1.3rem; margin-left: .35rem; padding: 0 .35rem;
  background: var(--gold); color: #3a2600; border-radius: 999px;
  font-size: .72rem; font-weight: 700; text-align: center;
}
.who { font-size: .82rem; color: var(--muted); padding-left: .5rem; }

/* ------------------------------------------------------------------ layout */
.shell { max-width: 1140px; margin: 0 auto; padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 2.5rem) 4rem; }
.loading { padding: 4rem 0; color: var(--muted); text-align: center; }
.footer {
  border-top: 1px solid var(--line); background: var(--paper);
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem); color: var(--muted); font-size: .8rem;
}
.footer p { margin: .2rem 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 700;
  color: var(--muted); margin-bottom: .5rem;
}
.section { margin-top: 2.5rem; }
.section > header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section h2 { font-size: 1.3rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; color: #fff;
  padding: clamp(1.6rem, 5vw, 3.2rem);
  background: radial-gradient(120% 140% at 85% 0%, #2b5bff 0%, #12246d 45%, #070c28 100%);
  box-shadow: var(--shadow);
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% 55%; height: 120%;
  background: radial-gradient(closest-side, rgba(245, 165, 36, .35), transparent 70%);
}
.hero h1 { font-size: clamp(1.7rem, 4.4vw, 2.8rem); max-width: 22ch; }
.hero p { position: relative; max-width: 50ch; color: #c9d2ff; margin: .9rem 0 0; }
.hero .eyebrow { color: #8ba3ff; }
.quota-strip {
  position: relative; display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.8rem;
  padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .18);
}
.quota-strip div { min-width: 7rem; }
.quota-strip dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #8ba3ff; }
.quota-strip dd { margin: .2rem 0 0; font-size: 1.5rem; font-weight: 700; }
.quota-strip dd small { font-size: .9rem; font-weight: 500; color: #c9d2ff; }

/* ------------------------------------------------------------------- cards */
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.dest {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.dest:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(10, 15, 44, .14); }
.plate {
  display: flex; align-items: center; justify-content: center; min-height: 128px;
  padding: 1.4rem 1.2rem; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--accent, #1b47d6), #060a22 140%);
}
.plate span {
  font-size: 1.02rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  line-height: 1.35; text-wrap: balance;
}
.plate img { max-width: 72%; max-height: 72px; }
.dest .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.dest .body h3 { font-size: 1.05rem; }
.dest .body p { margin: 0; font-size: .88rem; color: var(--muted); }
.dest .meta { margin-top: auto; display: flex; gap: .4rem; flex-wrap: wrap; }

.chip {
  display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem;
  border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  background: var(--blue-wash); color: var(--blue); text-transform: uppercase;
}
.chip.gold { background: var(--gold-wash); color: #8a5200; }
.chip.grey { background: #eef0f5; color: var(--muted); }
.chip.green { background: #e6f5ee; color: var(--green); }
.chip.red { background: #fdeceb; color: var(--red); }

/* ---------------------------------------------------------------- products */
.offer {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem 1.4rem; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; margin-bottom: .85rem;
}
.offer h3 { font-size: 1.05rem; }
.offer .desc { margin: .45rem 0 .6rem; font-size: .9rem; color: var(--ink-soft); }
.offer dl { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 0; font-size: .82rem; }
.offer dl > div { display: flex; flex-direction: column; }
.offer dt { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.offer dd { margin: 0; font-weight: 600; }
.offer .buy { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.price { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.price .gate { display: block; font-size: .76rem; font-weight: 500; color: var(--muted); text-decoration: line-through; }
.free-flag { font-size: .76rem; font-weight: 700; color: var(--green); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button {
  width: 2.1rem; height: 2.1rem; border: 0; background: var(--paper); color: var(--ink);
  font-size: 1.1rem; cursor: pointer;
}
.stepper button:hover:not(:disabled) { background: var(--blue-wash); color: var(--blue); }
.stepper button:disabled { color: #c3c7d4; cursor: not-allowed; }
.stepper output { min-width: 2rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer;
  padding: .66rem 1.2rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--blue); color: #fff; text-decoration: none;
}
.btn:hover { background: #1639ad; }
.btn:disabled { background: #b7bed6; cursor: not-allowed; }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--blue-wash); color: var(--blue); border-color: var(--blue-wash); }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: #040720; }
.btn.small { font-size: .82rem; padding: .45rem .9rem; }
.btn.link { background: none; color: var(--blue); padding: .2rem; border: 0; text-decoration: underline; }

/* ------------------------------------------------------------------ panels */
.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 1rem; }
.panel h2 { font-size: 1.1rem; margin-bottom: .8rem; }
.split { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
.sticky { position: sticky; top: 5.2rem; }
.rows { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rows th, .rows td { text-align: left; padding: .6rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.rows th { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.rows td.num, .rows th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals { display: flex; justify-content: space-between; padding: .4rem 0; font-size: .9rem; }
.totals.big { font-size: 1.2rem; font-weight: 700; border-top: 2px solid var(--ink); margin-top: .5rem; padding-top: .7rem; }
.note {
  background: var(--blue-wash); border-radius: 12px; padding: .8rem .95rem;
  font-size: .85rem; color: #17317f;
}
.note.gold { background: var(--gold-wash); color: #7a4b00; }
.alert {
  background: #fdeceb; border: 1px solid #f3c9c5; color: #8d1f18; border-radius: 12px;
  padding: .75rem .95rem; font-size: .88rem; margin-bottom: 1rem;
}
.ok { background: #e6f5ee; border-color: #bfe3d2; color: #0b5c3e; }

/* ------------------------------------------------------------------- forms */
label.field { display: block; margin-bottom: .9rem; font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
label.field span { display: block; margin-bottom: .3rem; }
input, select {
  font: inherit; font-size: .95rem; width: 100%; padding: .6rem .7rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.inline { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; }
.inline label.field { flex: 1; min-width: 9rem; margin-bottom: 0; }

/* ----------------------------------------------------------------- tickets */
.ticket-card {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  padding: 1rem 1.1rem; margin-bottom: .7rem;
}
.ticket-card .ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem;
  font-weight: 700; letter-spacing: .06em;
}
.ticket-card .ref small { display: block; font-family: var(--font); font-size: .7rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.order-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .6rem; margin-bottom: .9rem;
}
.order-head h3 { font-size: 1.05rem; }
.order-head .ref { font-family: ui-monospace, Menlo, monospace; color: var(--muted); font-size: .85rem; }

/* ------------------------------------------------------------------ gates */
.gate { max-width: 34rem; margin: clamp(1rem, 6vh, 4rem) auto; text-align: center; }
.gate .panel { padding: 2.2rem 1.8rem; }
.gate h1 { font-size: 1.6rem; margin-bottom: .8rem; }
.gate p { color: var(--ink-soft); }
.gate .mark { width: 54px; height: 54px; margin: 0 auto 1.2rem; display: block; }
.steps { text-align: left; margin: 1.4rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: .5rem 0 .5rem 2.2rem;
  font-size: .9rem; color: var(--ink-soft); border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: .55rem;
  width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--blue-wash); color: var(--blue);
  font-size: .76rem; font-weight: 700; display: grid; place-items: center;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .offer { grid-template-columns: 1fr; }
  .offer .buy { align-items: flex-start; text-align: left; }
}
@media (max-width: 520px) {
  .brand-text small { display: none; }
  .who { display: none; }
  .hero { border-radius: 16px; }
}
