/* ============================================================
   PMC 2026 Registration
   Self-contained stylesheet (no framework, no external fonts)
   ============================================================ */

:root {
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --accent: #06b6d4;
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;

  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-soft: #f8fafc;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .28);

  --ring: 0 0 0 4px rgba(79, 70, 229, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(79, 70, 229, .10), transparent 60%),
    radial-gradient(800px 460px at 100% 0, rgba(6, 182, 212, .12), transparent 55%),
    var(--surface-soft);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.main { flex: 1 0 auto; padding: 2rem 0 4rem; }
.stack { display: grid; gap: 1.25rem; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.between { justify-content: space-between; }
.center { text-align: center; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); font-weight: 700; }
.brand:hover { color: var(--ink); }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .02em;
}
.brand small { display: block; font-weight: 500; color: var(--ink-muted); font-size: .72rem; }
.nav { display: flex; align-items: center; gap: 1.25rem; font-size: .9rem; }
.nav a { color: var(--ink-soft); font-weight: 500; }
.nav a:hover { color: var(--brand); }
.nav .btn { padding: .5rem .9rem; }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* ---------- phase banner ---------- */
.phase {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem;
  align-items: center; justify-content: space-between;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.phase.is-early { border-color: #a5f3fc; background: linear-gradient(135deg, #ecfeff, #eef2ff); }
.phase.is-standard { border-color: #fde68a; background: linear-gradient(135deg, #fffbeb, #fff7ed); }
.phase .title { font-weight: 700; }
.phase .sub { color: var(--ink-muted); font-size: .85rem; }

.countdown { display: flex; gap: .5rem; }
.countdown .unit {
  min-width: 54px; text-align: center; padding: .4rem .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.countdown .num { font-weight: 800; font-size: 1.15rem; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown .lbl { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }

/* ---------- hero ---------- */
.hero { text-align: center; margin-bottom: 2rem; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .8rem; border-radius: 999px;
  background: #eef2ff; color: var(--brand-dark); font-size: .78rem; font-weight: 600;
  margin-bottom: .9rem;
}
.hero .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.hero p { color: var(--ink-soft); max-width: 620px; margin: .35rem auto 0; }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.card + .card { margin-top: 1.25rem; }
.card-head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; }
.card-head h2 { font-size: 1.25rem; margin: 0; }
.card-head .hint { color: var(--ink-muted); font-size: .85rem; }
@media (max-width: 640px) { .card { padding: 1.15rem; border-radius: var(--radius); } }

/* ---------- price options ---------- */
.price-grid { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.price-option { position: relative; display: block; cursor: pointer; }
.price-option input { position: absolute; opacity: 0; pointer-events: none; }
.price-option .box {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.price-option .box:hover { border-color: #c7d2fe; transform: translateY(-1px); }
.price-option .label { display: block; font-weight: 700; }
.price-option .group { display: block; font-size: .78rem; color: var(--ink-muted); }
.price-option .amount { display: block; margin-top: auto; padding-top: .75rem; font-size: 1.45rem; font-weight: 800; color: var(--brand-dark); line-height: 1.2; }
.price-option .was { display: inline; font-size: .8rem; color: var(--ink-muted); text-decoration: line-through; margin-left: .4rem; font-weight: 500; }
.price-option .save { display: block; margin-top: .4rem; font-size: .72rem; font-weight: 700; color: var(--success); }
.price-option input:checked + .box {
  border-color: var(--brand);
  box-shadow: var(--ring), var(--shadow);
  background: linear-gradient(180deg, #fff, #f5f7ff);
}
.price-option input:focus-visible + .box { outline: none; box-shadow: var(--ring); }

/* ---------- forms ---------- */
.field { display: block; }
.field > span { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .35rem; }
.input, select.input, textarea.input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .78rem .9rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: #94a3b8; }
.input:focus, select.input:focus, textarea.input:focus {
  outline: none; border-color: var(--brand); box-shadow: var(--ring);
}
.input[readonly] { background: var(--surface-soft); color: var(--ink-soft); }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.span-2 { grid-column: 1 / -1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: .78rem 1.25rem; border-radius: 999px;
  border: 1.5px solid transparent; background: var(--brand); color: #fff;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--brand-dark); border-color: var(--line); }
.btn.ghost:hover { background: #eef2ff; border-color: #c7d2fe; color: var(--brand-dark); }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: #1e293b; }
.btn.sm { padding: .5rem .9rem; font-size: .85rem; }
.btn.link { background: none; color: var(--danger); padding: .25rem .4rem; }
.btn.link:hover { background: none; color: #991b1b; box-shadow: none; transform: none; }

/* ---------- misc ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .65rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.pill.early { background: #cffafe; color: #0e7490; }
.pill.standard { background: #fef3c7; color: #92400e; }
.pill.ok { background: #d1fae5; color: #047857; }
.pill.muted { background: #f1f5f9; color: var(--ink-soft); }

.muted { color: var(--ink-muted); }
.small { font-size: .82rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }

.divider { border: 0; border-top: 1px dashed var(--line); margin: 1.25rem 0; }

/* ---------- cart ---------- */
.cart { background: var(--surface-soft); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1rem; }
.cart-items { display: grid; gap: .6rem; }
.cart-item {
  display: flex; align-items: center; gap: .75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .7rem .85rem; animation: pop .22s ease-out;
}
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .name { font-weight: 600; font-size: .92rem; }
.cart-item .meta { font-size: .78rem; color: var(--ink-muted); }
.cart-item .line-total { font-weight: 700; color: var(--brand-dark); white-space: nowrap; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 700; font-size: 1.1rem; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.empty { color: var(--ink-muted); font-size: .88rem; padding: .5rem 0; }

/* ---------- alerts ---------- */
.alert { border-left: 4px solid var(--brand); background: #eef2ff; color: #3730a3; padding: 1rem 1.1rem; border-radius: var(--radius); }
.alert.success { border-color: var(--success); background: #ecfdf5; color: #065f46; }
.alert.error { border-color: var(--danger); background: #fef2f2; color: #991b1b; }
.alert.warning { border-color: var(--warning); background: #fffbeb; color: #92400e; }
.alert.info { border-color: var(--accent); background: #ecfeff; color: #155e75; }
.alert h3 { margin-top: 0; }

/* ---------- tickets ---------- */
.tickets { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.ticket {
  display: block; text-align: center; text-decoration: none;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .85rem .5rem; background: var(--surface);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ticket:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.ticket .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: .05em; }
.ticket .state { font-size: .72rem; margin-top: .25rem; }
.ticket .state.used { color: var(--ink-muted); }
.ticket .state.free { color: var(--success); font-weight: 600; }
.ticket.used { opacity: .6; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: rgba(255, 255, 255, .7); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: center; padding-top: 1.25rem; padding-bottom: 1.25rem; color: var(--ink-muted); font-size: .85rem; }

/* ---------- stepper ---------- */
.steps { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.steps .step { display: flex; align-items: center; gap: .5rem; color: var(--ink-muted); font-size: .82rem; font-weight: 600; }
.steps .step .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink-soft); font-size: .78rem; }
.steps .step.active { color: var(--brand-dark); }
.steps .step.active .n { background: var(--brand); color: #fff; }
.steps .sep { color: var(--line); }

/* ---------- id card ---------- */
.idcard-wrap { display: block; text-align: center; margin: 1.75rem 0 1.25rem; }
.idcard {
  display: inline-block;
  width: 380px;
  max-width: 100%;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.idcard-top {
  position: relative;
  padding: 18px 20px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #ffffff;
}
.idcard-logo {
  display: inline-block;
  vertical-align: middle;
  width: 42px; height: 42px;
  margin-right: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  text-align: center;
  font-weight: 800;
  font-size: .8rem;
  line-height: 42px;
}
.idcard-brand { display: inline-block; vertical-align: middle; }
.idcard-brand b { display: block; font-size: 1.05rem; line-height: 1.2; }
.idcard-brand small { display: block; font-size: .68rem; opacity: .9; }
.idcard-year { display: block; margin-top: 10px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.idcard-body { padding: 24px 22px 10px; text-align: center; }
.idcard-avatar {
  width: 74px; height: 74px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 74px;
  text-align: center;
}
.idcard-name { font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.idcard-sub { color: var(--ink-muted); font-size: .78rem; margin-top: 4px; }
.idcard-grid { text-align: left; margin: 18px 0 8px; }
.idcard-grid .cell { display: inline-block; width: 49%; vertical-align: top; margin-bottom: 14px; }
.idcard-grid .cell span { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-muted); font-weight: 700; }
.idcard-grid .cell strong { display: block; font-size: .98rem; color: var(--ink); text-transform: capitalize; }
.idcard-foot { padding: 12px 20px; background: #0f172a; color: #cbd5e1; font-size: .68rem; text-align: center; }
.idcard-motto { display: block; margin-top: 3px; color: #94a3b8; font-style: italic; }
.idcard-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1rem; }

@media print {
  .site-head, .site-foot, .idcard-actions, .phase, .hero .eyebrow, .hero p { display: none !important; }
  .idcard { box-shadow: none; border-color: #cbd5e1; }
  .idcard-wrap { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
