/* =============================================================
   NDP Athletics branding
   Official colors ONLY: Saints Purple #532C6C, Vegas Gold #D2C780
   (plus white). Font: Open Sans (approved sans-serif).
   ============================================================= */
:root {
  --purple: #532C6C;
  --gold: #D2C780;
  --white: #ffffff;
  --purple-80: rgba(83, 44, 108, .80);   /* tints of Saints Purple */
  --purple-60: rgba(83, 44, 108, .60);
  --purple-25: rgba(83, 44, 108, .25);
  --purple-08: rgba(83, 44, 108, .06);
  --gold-35: rgba(210, 199, 128, .35);   /* tint of Vegas Gold */
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--white);
  color: var(--purple);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .rule-num, .btn { font-family: "Open Sans", Arial, sans-serif; }
a { color: var(--purple); }

/* ===== Top bar ===== */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px;
  background: var(--purple);
  color: var(--white);
  border-bottom: 4px solid var(--gold);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-transform: uppercase; white-space: nowrap; letter-spacing: .03em; }
.brand img { height: 38px; width: auto; background: var(--white); border-radius: 8px; padding: 3px 5px; }
.brand span { color: var(--gold); }
.progress { flex: 1; height: 8px; background: rgba(255,255,255,.2); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--gold); transition: width .4s ease; }
.step-count { color: var(--white); opacity: .85; font-size: 13px; font-weight: 600; white-space: nowrap; min-width: 56px; text-align: right; }

.restart {
  background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.45);
  border-radius: 8px; padding: 5px 10px; font: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.restart:hover { border-color: var(--gold); color: var(--gold); }

main { max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; }
.loading { color: var(--purple-60); padding: 60px 0; text-align: center; }

/* ===== Slide card ===== */
.slide {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  overflow: clip; /* (not "hidden") so the photo can stay pinned while scrolling */
  box-shadow: 0 10px 30px var(--purple-08);
  animation: rise .35s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  .slide.has-photo { grid-template-columns: 1fr 1fr; min-height: 620px; }
}

/* Photos always show the WHOLE image (full body + implement); a blurred
   copy of the same photo fills any empty space behind it. */
.photo { position: relative; min-height: 420px; overflow: hidden; background: var(--purple); }
.photo::before {
  content: ""; position: absolute; inset: -30px;
  background: var(--img) center / cover no-repeat;
  filter: blur(22px) brightness(.55) saturate(.8);
}
.photo-img { position: absolute; inset: 0; z-index: 1; background: var(--img) center / contain no-repeat; }
.photo .credit { z-index: 3; }
@media (min-width: 900px) {
  .photo { position: sticky; top: 70px; align-self: start; height: calc(100vh - 100px); min-height: 520px; max-height: 760px; }
}
.photo::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(83,44,108,0) 55%, rgba(83,44,108,.75) 100%);
}
.photo.fallback { background: var(--purple); }
.credit { position: absolute; left: 10px; bottom: 8px; right: 10px; z-index: 1; font-size: 11px; color: rgba(255,255,255,.85); }
.credit a { color: var(--white); }

.content { padding: 32px 28px 36px; display: flex; flex-direction: column; }
@media (min-width: 900px) { .content { padding: 48px 48px 44px; } }

/* Purple "feature" slides (welcome + finish) */
.slide.purple { background: var(--purple); }
.slide.purple .content { color: var(--white); }
.slide.purple h1, .slide.purple p, .slide.purple li, .slide.purple label { color: var(--white); }
.slide.purple .rule-num, .slide.purple h1 span, .slide.purple h3 { color: var(--gold); }
.slide.purple .lead, .slide.purple .fineprint { color: rgba(255,255,255,.85) !important; }
.slide.purple input, .slide.purple select { border-color: var(--gold); }
.slide.purple .error { color: var(--gold); }
.slide.purple .btn { background: var(--gold); color: var(--purple); }
.slide.purple .linkbtn { color: rgba(255,255,255,.85); }

.rule-num {
  display: inline-block; align-self: flex-start;
  background: var(--gold); color: var(--purple);
  font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .14em;
  padding: 4px 12px; border-radius: 6px; margin-bottom: 14px;
}
.slide.purple .rule-num { background: transparent; padding: 0; }
.slide h1 { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.1; margin: 0 0 18px; text-transform: uppercase; font-weight: 800; letter-spacing: -.01em; }
.slide h3 { font-size: 16px; margin: 26px 0 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--purple); border-bottom: 3px solid var(--gold); padding-bottom: 4px; }
.slide p { margin: 0 0 14px; }
.slide ul { margin: 0 0 14px; padding-left: 20px; }
.slide li { margin-bottom: 8px; }
.slide li::marker { color: var(--gold); }
/* Long bullet lists: two columns, thin gold line just left of the 2nd column's bullets */
/* col 1 is only as wide as its longest line; the line sits halfway between
   that text and the col 2 bullets (18px gap on each side) */
.slide .cols { display: grid; grid-template-columns: max-content 1fr; column-gap: 0; margin: 0 0 14px; }
.slide .cols ul:first-child { padding-right: 18px; }
.slide .cols ul { margin: 0; }
.slide .cols li { margin-bottom: 4px; }
.slide .cols ul.col-2 { border-left: 1px solid var(--gold); padding-left: 32px; }
@media (max-width: 420px) {
  .slide .cols { grid-template-columns: 1fr; }
  .slide .cols ul.col-2 { border-left: 0; padding-left: 20px; }
}
.lead { font-size: 19px; color: var(--purple-80) !important; }

.hero-logo { width: 180px; max-width: 50%; background: var(--white); border-radius: 12px; padding: 12px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 7vw, 64px); }

/* ===== Agree box ===== */
.agree { margin-top: auto; padding-top: 24px; }
.agree-box { background: var(--gold-35); border: 2px solid var(--gold); border-radius: 12px; padding: 18px; }
.agree-box label.small { display: block; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.agree-row { display: flex; gap: 10px; flex-wrap: wrap; }
.agree-row input { width: 120px; text-transform: uppercase; text-align: center; font-weight: 800; letter-spacing: .15em; }
.agreed-note { font-weight: 700; font-size: 14px; margin-top: 10px; }

/* ===== Forms ===== */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--purple-60); font-size: 13px; }
input[type=text], input[type=email], select, textarea {
  width: 100%;
  font: inherit; font-size: 16px;
  color: var(--purple);
  background: var(--white);
  border: 2px solid var(--purple-25);
  border-radius: 10px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--gold-35); }
.grid-2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 2px solid var(--purple-25); border-radius: 10px;
  background: var(--white); cursor: pointer; font-weight: 600;
}
.choice input { accent-color: var(--purple); width: 18px; height: 18px; margin: 0; }
.choice:has(input:checked) { border-color: var(--purple); background: var(--gold-35); }

.sub-options { margin: 10px 0 0; padding: 14px; border-left: 4px solid var(--gold); background: var(--purple-08); border-radius: 0 10px 10px 0; }
.lift-row { display: grid; grid-template-columns: 1fr 90px; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 15px; }
.lift-row select { padding: 8px 10px; }

.error { color: var(--purple); font-weight: 700; font-size: 14px; margin-top: 8px; min-height: 1em; }
.error:not(:empty)::before { content: "⚠ "; }

/* ===== Buttons ===== */
.btn {
  appearance: none; border: 0; cursor: pointer;
  font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  padding: 13px 26px; border-radius: 10px;
  background: var(--purple); color: var(--white);
  transition: transform .08s, opacity .15s;
}
.btn:hover { opacity: .9; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--purple); border: 2px solid var(--purple-25); }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }

/* ===== Info cards ===== */
.cards { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 6px 0 10px; }
@media (min-width: 720px) { .cards.two { grid-template-columns: 1fr 1fr; } }
.card { background: var(--white); border: 2px solid var(--gold); border-radius: 12px; padding: 16px 18px; }
.card h4 { margin: 0 0 6px; text-transform: uppercase; font-size: 16px; font-weight: 800; letter-spacing: .05em; }
.card p { margin: 0 0 6px; font-size: 15px; }
.card.gold { background: var(--gold); border-color: var(--gold); }
.yes, .no { font-weight: 800; }
.no { opacity: .6; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }
.tag.p { background: var(--purple); color: var(--white); }
.tag.o { background: var(--gold); color: var(--purple); }

/* ===== Review ===== */
.review-list { list-style: none; padding: 0 !important; margin: 0 0 18px; }
.review-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--purple-25); }
.review-list.answers .ans { text-align: right; font-weight: 600; max-width: 60%; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-list .ini { font-weight: 800; white-space: nowrap; background: var(--gold); padding: 0 10px; border-radius: 6px; align-self: flex-start; }

/* ===== Done ===== */
.done-logos { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.done-logos img { height: 84px; width: auto; }
.done-logos .fleur { background: var(--white); border-radius: 12px; padding: 8px 12px; }
.follow-group { border-bottom: 1px solid rgba(210,199,128,.5); }
.follow-group summary {
  cursor: pointer; list-style: none; padding: 12px 2px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  display: flex; justify-content: space-between; align-items: center; color: var(--white);
}
.follow-group summary::-webkit-details-marker { display: none; }
.follow-group summary::after { content: "+"; font-size: 22px; color: var(--gold); line-height: 1; }
.follow-group[open] summary::after { content: "–"; }
.follow-group .count { margin-left: auto; margin-right: 12px; background: var(--gold); color: var(--purple); font-size: 12px; padding: 1px 9px; border-radius: 99px; }
.follow-group .socials { margin: 0 0 14px; grid-template-columns: 1fr !important; gap: 6px; }
.follow-group .socials a { padding: 10px 14px; }
.socials .note { text-align: right; white-space: nowrap; }
.socials li { margin: 0 !important; }
.socials { list-style: none; padding: 0 !important; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .socials { grid-template-columns: 1fr 1fr; } }
.socials a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 16px; background: var(--white); border-radius: 12px;
  color: var(--purple); text-decoration: none; border: 2px solid var(--gold);
}
.socials a:hover { background: var(--gold); }
.socials .handle { font-weight: 800; }
.socials .note { opacity: .7; font-size: 13px; }
.equip-link {
  display: block; text-align: center; margin: 24px 0 8px;
  padding: 16px 12px; border-radius: 12px; text-decoration: none;
  background: var(--gold); color: var(--purple) !important;
  /* Text shrinks with the column so each line stays on one line. */
  font-size: clamp(10px, 3.75cqi, 18px); line-height: 1.35;
  text-transform: uppercase; font-weight: 800; letter-spacing: .02em;
}
.slide.purple .content { container-type: inline-size; }
.equip-link:hover { opacity: .92; }
.testmode { background: var(--gold); color: var(--purple); font-weight: 600; padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.fineprint { font-size: 13px; color: var(--purple-60) !important; }
.linkbtn { background: none; border: 0; color: var(--purple-80); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; padding: 0; }

@media (max-width: 520px) {
  .topbar { gap: 10px; padding: 8px 12px; }
  .brand { font-size: 14px; }
  .brand img { height: 32px; }
  .content { padding: 24px 18px 28px; }
}
