:root {
  color-scheme: light;
  --bg: #f4f6fa;
  --panel: #ffffff;
  --border: #e7ebf1;
  --border-hi: #d3dae4;
  --text: #0f172a;
  --body: #3a4557;
  --muted: #6b7688;
  --dim: #97a1b2;
  --accent: #1d4ed8;
  --accent-hover: #1a44bd;
  --accent-soft: #eef3ff;
  --accent-line: #d9e4ff;
  --accent-ring: rgba(29, 78, 216, .16);
  --danger: #b42318;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .005em;
}

main {
  max-width: 760px;
  margin: auto;
  padding: 52px 24px 72px;
}
main.solo { max-width: 540px; }

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 4px 0 16px;
}
.brand img {
  display: block;
  width: auto;
  height: 118px;
  max-width: 90%;
}
.brand-title {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 40px rgba(15, 23, 42, .07);
  animation: reveal .45s cubic-bezier(.25, .46, .45, .94) both;
}

h1 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.02em;
}

h2, legend, .eyebrow {
  margin: 26px 0 10px;
  color: var(--dim);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
}

.sub {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
}

.steps {
  display: flex;
  gap: 7px;
  margin: 0 0 28px;
}
.steps i {
  height: 3px;
  flex: 1;
  border-radius: 99px;
  background: var(--border-hi);
}
.steps .on {
  background: var(--accent);
  animation: grow .6s cubic-bezier(.25, .1, .25, 1) both;
}

label {
  display: block;
  margin: 0 0 15px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 500;
}
label b {
  color: var(--dim);
  font-weight: 400;
}

input, select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 22px 0;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 7px 7px 0;
  padding: 9px 13px;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.choice:hover { border-color: var(--dim); }
.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}
.choice input, .seats-only input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}

.primary, .secondary {
  padding: 11px 18px;
  border-radius: 10px;
  font: 600 13px inherit;
  letter-spacing: .01em;
  cursor: pointer;
  transition: all .15s;
}
.primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px var(--accent-ring);
}
.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--accent-ring);
}
.secondary {
  border: 1px solid var(--border-hi);
  background: #fff;
  color: var(--body);
}
.secondary:hover {
  border-color: var(--dim);
  background: #f8fafc;
  color: var(--text);
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.tier {
  --tint: var(--accent);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid var(--border-hi);
  border-radius: 12px;
  background: #fff;
  color: var(--body);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  animation: reveal .4s cubic-bezier(.25, .46, .45, .94) both;
}
.tier[data-tier="sustaining"] { --tint: #15803d; }
.tier[data-tier="family"]     { --tint: #1d4ed8; }
.tier[data-tier="individual"] { --tint: #0e7490; }
.tier:nth-child(2) { animation-delay: .05s; }
.tier:nth-child(3) { animation-delay: .1s; }
.tier:hover {
  border-color: var(--tint);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .09);
  transform: translateY(-1px);
}
.tier.selected {
  border-color: var(--tint);
  box-shadow: inset 0 0 0 1.5px var(--tint);
}

.tier-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
  padding: 8px 12px;
  background: var(--tint);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tier-badge {
  padding: 1px 7px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 4px;
  background: rgba(255, 255, 255, .2);
  font-size: 9.5px;
  letter-spacing: .06em;
}
.tier-body { padding: 14px 13px 15px; flex: 1; display: flex; flex-direction: column; }
.tier-price {
  font-size: 25px;
  font-weight: 800;
  color: var(--tint);
}
.tier-per {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.tier-inc {
  display: block;
  margin-top: 11px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.tier-perks {
  margin: 9px 0 0;
  padding: 0 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.tier-perks li { margin: 2px 0; }
.tier-extra {
  display: block;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}
.tier-foot {
  display: flex;
  gap: 6px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
  color: var(--tint);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.seats-only-note {
  margin: 6px 0 0 26px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.5;
}

.seat-hint {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.seat-hint strong { color: var(--text); }

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.seats-only {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.notice, .summary {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
}
.notice {
  margin: 0 0 14px;
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: #1e40af;
}
.summary {
  margin: 20px 0;
  background: #f8fafc;
  color: var(--body);
  line-height: 1.8;
  white-space: pre-line;
}

.locked {
  opacity: .4;
  pointer-events: none;
}

.seat {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.seat span {
  margin-right: auto;
  color: #1e293b;
  font-size: 13px;
}
.seat button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-hi);
  border-radius: 9px;
  background: #fff;
  color: var(--body);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all .12s;
}
.seat button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.seat output {
  min-width: 24px;
  color: var(--text);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

#error {
  min-height: 1.4em;
  margin: 0 0 12px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 500;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes grow {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); }
}

@media (max-width: 820px) {
  main { padding: 28px 16px 48px; }
  .brand { margin: 0 0 22px; gap: 11px; }
  .brand img { height: 88px; }
  .brand-title { font-size: 13px; }
  .card { padding: 24px; }
  .tiers, .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
