/* Megacenter USA — Gate Code Portal
   Brand: Yellow #FDD600 · Blue #004FFF · Black #212529 · White · Light #E6E6E6 · Gray #999999
   Type: Inter as geometric-sans stand-in for Agrandir; tabular numerals for DIN feel. */

:root {
  --mc-yellow: #FDD600;
  --mc-blue: #004FFF;
  --mc-black: #212529;
  --mc-white: #FFFFFF;
  --mc-light: #E6E6E6;
  --mc-gray: #999999;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  background: var(--mc-white);
  color: var(--mc-black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--mc-light);
  background: var(--mc-white);
}
.site-header img { height: 44px; width: auto; display: block; }

/* Accent bar: signature yellow + blue */
.accent-bar { height: 4px; display: flex; }
.accent-bar .y { flex: 2; background: var(--mc-yellow); }
.accent-bar .b { flex: 1; background: var(--mc-blue); }

/* ── Layout ── */
main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px 64px;
}
.card {
  width: 100%;
  max-width: 460px;
  background: var(--mc-white);
  border: 1px solid var(--mc-light);
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: 0 2px 12px rgba(33, 37, 41, 0.06);
}

.step-badge {
  display: inline-block;
  background: var(--mc-yellow);
  color: var(--mc-black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.subtitle { color: var(--mc-gray); font-size: 15px; line-height: 1.55; margin-bottom: 28px; }

/* ── Form ── */
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}
input[type='email'],
input[type='tel'] {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 13px 14px;
  border: 1.5px solid var(--mc-light);
  border-radius: 10px;
  margin-bottom: 20px;
  color: var(--mc-black);
  outline: none;
  transition: border-color 0.15s;
}
input:focus { border-color: var(--mc-blue); }
input::placeholder { color: var(--mc-gray); }

.btn-primary {
  width: 100%;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  background: var(--mc-yellow);
  color: var(--mc-black);
  border: none;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  transition: transform 0.05s, filter 0.15s;
}
.btn-primary:hover { filter: brightness(0.96); }
.btn-primary:active { transform: scale(0.99); }

.help-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--mc-light);
  font-size: 13px;
  color: var(--mc-gray);
  line-height: 1.6;
}
a { color: var(--mc-blue); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Unit quiz ── */
.unit-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.unit-option {
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 18px;
  background: var(--mc-white);
  border: 2px solid var(--mc-light);
  border-radius: 10px;
  cursor: pointer;
  color: var(--mc-black);
  transition: border-color 0.15s, background 0.15s;
}
.unit-option:hover { border-color: var(--mc-gray); }
.unit-option.selected {
  border-color: var(--mc-blue);
  background: rgba(0, 79, 255, 0.05);
}

/* ── Confirmation ── */
.confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--mc-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 22px;
}
.center { text-align: center; }
.confirm-text { font-size: 16px; line-height: 1.6; margin-bottom: 26px; }

/* ── Footer ── */
.site-footer {
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--mc-gray);
  border-top: 1px solid var(--mc-light);
}

/* ── Preview-only ribbon (removed in production) ── */
.preview-bar {
  background: var(--mc-black);
  color: var(--mc-white);
  font-size: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.preview-bar strong { color: var(--mc-yellow); letter-spacing: 0.08em; }
.preview-bar button, .preview-bar a {
  font: inherit;
  font-size: 12px;
  background: transparent;
  color: var(--mc-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 400;
}
.preview-bar button:hover, .preview-bar a:hover { border-color: var(--mc-yellow); color: var(--mc-yellow); }

.hidden { display: none; }
