/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Bitter:wght@700&family=Nunito+Sans:wght@400;600&display=swap');

/* ── Reset & Variables ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #001344;
  --gold:    #B9832D;
  --grey:    #A5ACAF;
  --white:   #FFFFFF;
  --cream:   #F7F7F7;
  --border:  rgba(0, 19, 68, 0.12);
  --shadow:  0 4px 32px rgba(0, 19, 68, 0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  background: var(--cream);
  color: var(--navy);
  min-height: 100vh;
}

h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
}

h2 {
  font-family: 'Bitter', serif;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--gold);
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.header {
  background: var(--navy);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  border-bottom: 3px solid var(--gold);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.header-logo-img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.header-logo-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.header-name {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  line-height: 1.3;
}

.header-help {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-weight: 400;
}
.header-help:hover { color: var(--gold); }

/* ── Hero banner (landing page) ───────────────────────────────────────────── */
.hero-banner { width: 100%; line-height: 0; display: block; }
.hero-banner img { width: 100%; height: auto; display: block; }

/* ── Main content area ────────────────────────────────────────────────────── */
.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 20px 56px;
}

/* ── Section label ────────────────────────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Cards grid ───────────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.card-stripe { height: 4px; background: var(--navy); }
.card.featured .card-stripe {
  background: linear-gradient(90deg, var(--navy), var(--gold));
}
.card.muted .card-stripe { background: #CBD5E0; }

.card-body {
  padding: 22px 22px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(185, 131, 45, 0.1);
  border: 1px solid rgba(185, 131, 45, 0.25);
  border-radius: 20px;
  padding: 2px 10px;
  margin-bottom: 8px;
  align-self: flex-start;
}
.card-badge.muted {
  color: #A0AEC0;
  background: #F7FAFC;
  border-color: #E2E8F0;
}

.card h2 {
  font-family: 'Bitter', serif;
  font-size: 19px;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--gold);
  margin-bottom: 8px;
  line-height: 1.2;
}

.card p {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #4A5568;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }

.tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 9px;
}

.card-footer { padding: 0 22px 22px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: var(--navy);
  color: var(--white);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: #002166; }

.btn.gold { background: var(--navy); }
.btn.gold:hover { background: #002166; }

.btn.outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn.outline:hover { background: var(--cream); }

.btn.disabled {
  background: #E2E8F0;
  color: #A0AEC0;
  cursor: not-allowed;
}

/* ── Info bar ─────────────────────────────────────────────────────────────── */
.info-bar {
  background: rgba(0, 19, 68, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
  margin-top: 28px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.info-bar-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.info-bar-text {
  font-size: 13px;
  font-weight: 300;
  color: #4A5568;
  line-height: 1.65;
}
.info-bar-text strong { color: var(--navy); font-weight: 600; }
.info-bar-text a { color: var(--gold); text-decoration: none; font-weight: 600; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  padding: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--white);
  font-weight: 400;
  line-height: 1.8;
}
.footer a { color: var(--white); text-decoration: underline; }
.footer a:hover { text-decoration: none; }

/* ── Eduroam tip box ──────────────────────────────────────────────────────── */
.eduroam-tip {
  background: #FFF8EC;
  border: 1px solid rgba(185, 131, 45, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.eduroam-tip-icon { font-size: 14px; flex-shrink: 0; }
.eduroam-tip-text {
  font-size: 12px;
  font-weight: 400;
  color: #7A4F00;
  line-height: 1.5;
}
.eduroam-tip-text code {
  font-family: monospace;
  background: rgba(185, 131, 45, 0.12);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ── Instruction warning banner (wizard prerequisites) ────────────────────── */
.instruction-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff8ec;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.instruction-warning-icon { font-size: 22px; flex-shrink: 0; line-height: 1.2; }
.instruction-warning-text { font-size: 14px; color: #3a4255; line-height: 1.5; }
.instruction-warning-text strong { color: var(--navy); }

/* ── Sponsored account steps ──────────────────────────────────────────────── */
.sponsored-steps {
  background: #F0F4FF;
  border: 1px solid rgba(0, 19, 68, 0.15);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.sponsored-steps-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Numbered step list (shared by landing + breakout pages) ──────────────── */
.step-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.sponsored-steps .step-list { gap: 8px; margin-bottom: 0; }

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sponsored-steps .step-number {
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

.step-item > div:last-child,
.step-item > span {
  font-size: 14px;
  font-weight: 300;
  color: #4A5568;
  line-height: 1.5;
  padding-top: 4px;
}
.sponsored-steps .step-item > span {
  font-size: 12px;
  padding-top: 0;
}
.step-item strong { color: var(--navy); }

/* ── Breakout pages (Samsung & macOS Safari) ──────────────────────────────── */
.breakout-hero {
  background: var(--navy);
  padding: 40px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.breakout-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(154, 131, 72, 0.08);
  pointer-events: none;
}

.breakout-eyebrow {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.breakout-hero h1 {
  font-size: clamp(22px, 5vw, 36px);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
}

.breakout-hero p {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.6;
}

.breakout-main { max-width: 500px; }

.breakout-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.breakout-card-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
}
.breakout-card-body { padding: 28px; }

.breakout-btn { margin-bottom: 10px; }

/* ── Wizard: progress bar ──────────────────────────────────────────── */
.wizard-progress { margin-bottom: 16px; }
.wizard-progress__text {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--navy); margin-bottom: 6px;
}
.wizard-progress__bar {
  height: 6px; background: var(--border); border-radius: 3px; overflow: hidden;
}
.wizard-progress__fill {
  height: 100%; width: 0%; background: var(--gold);
  border-radius: 3px; transition: width 0.3s ease;
}

/* ── Wizard: accordion rows ────────────────────────────────────────── */
.wizard-step {
  border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 8px; overflow: hidden;
}
.wizard-step[data-state="active"] { border-color: var(--gold); }
.wizard-step[data-state="done"]   { border-color: var(--navy); }

.wizard-step__header {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: none; border: none;
  cursor: pointer; text-align: left;
}
.wizard-step__header:hover { background: var(--cream); }

.wizard-step__indicator {
  width: 26px; height: 26px; border-radius: 50%;
  background: #d7dbe4; color: #8a93a6;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wizard-step[data-state="active"] .wizard-step__indicator {
  background: var(--gold); color: var(--white);
}
.wizard-step[data-state="done"] .wizard-step__indicator {
  background: var(--navy); color: var(--white);
}

.wizard-step__title { flex: 1; font-size: 15px; font-weight: 600; color: var(--navy); }
.wizard-step__chevron { font-size: 20px; color: #8a93a6; transition: transform 0.2s; }
.wizard-step[data-state="active"] .wizard-step__chevron { transform: rotate(90deg); }

.wizard-step__body { padding: 0 14px 14px 52px; }

.wizard-step__text { font-size: 14px; color: #3a4255; line-height: 1.6; margin: 0 0 10px; }
.wizard-step__tip {
  font-size: 13px; color: #5a6275; line-height: 1.5;
  background: var(--cream); border-radius: 6px; padding: 8px 10px; margin: 8px 0;
}
.wizard-step__comeback {
  font-size: 13px; color: #3a4255; line-height: 1.5;
  background: #fff8ec; border: 1px solid var(--gold);
  border-radius: 6px; padding: 10px 12px; margin-bottom: 12px;
}
.wizard-step__comeback strong { color: var(--navy); }
.wizard-step__img { max-width: 260px; width: 100%; border-radius: 6px; margin: 10px auto; display: block; }

/* ── Wizard: buttons ───────────────────────────────────────────────── */
.wizard-btn {
  display: block; width: 100%; padding: 10px 16px;
  border-radius: 6px; font-size: 14px; font-weight: 700;
  text-align: center; cursor: pointer; border: none; margin-top: 10px;
}
.wizard-btn--primary  { background: var(--navy); color: var(--white); }
.wizard-btn--advance  { background: var(--navy); color: var(--white); }
.wizard-btn--complete { background: var(--navy); color: var(--white); }
.wizard-btn:disabled  { opacity: 0.6; cursor: default; }

/* ── Reference card modal ──────────────────────────────────────────── */
.wizard-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 100; display: flex; align-items: flex-end;
}
.wizard-modal[hidden] { display: none; }
.wizard-modal__card {
  background: var(--white); border-radius: 14px 14px 0 0;
  padding: 20px; width: 100%; max-width: 480px; margin: 0 auto;
}
.wizard-modal__title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.wizard-modal__steps { list-style: none; padding: 0; margin: 0 0 12px; }
.wizard-modal__steps li {
  font-size: 14px; color: #3a4255; padding: 6px 0;
  border-bottom: 1px solid #f0f1f4; line-height: 1.4;
}
.wizard-modal__return { font-size: 13px; color: #5a6275; margin: 10px 0 14px; }
.wizard-modal__return strong { color: var(--navy); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .header-logo-divider,
  .header-name { display: none; }
  .header-logo-img { height: 34px; }
}
