/* LOTOW Women's Summer Hockey League
   Temporary palette until brand colours exist: purple leads, teal acts, pink + red mark the rink lines.
   Change the primitives below to rebrand the whole site. */

:root {
  /* Primitive colours */
  --ice: #F6F4FA;          /* page background, a lavender-tinted ice */
  --ice-deep: #ECE7F5;
  --white: #FFFFFF;
  --navy: #22143D;         /* main text + dark bands (deep purple-navy) */
  --navy-soft: #3B2A5C;
  --purple: #5B2D91;       /* lead brand colour */
  --blue-line: #5B2D91;    /* rink "blue line", drawn in purple */
  --red-line: #D2234B;     /* rink centre line, pink-red */
  --teal: #0A7676;         /* buttons: white text = 5.6:1 */
  --teal-dark: #075C5C;
  --teal-bright: #4FD6CC;  /* highlights on dark purple only */
  --sun: #4FD6CC;
  --slate: #5A5070;
  --frost: #DCD4EA;
  --success: #1E7A46;

  /* Semantic tokens */
  --color-bg: var(--ice);
  --color-surface: var(--white);
  --color-surface-muted: var(--ice-deep);
  --color-text: var(--navy);
  --color-text-muted: var(--slate);
  --color-border: var(--frost);
  --color-primary: var(--teal);
  --color-primary-hover: var(--teal-dark);
  --color-on-primary: var(--white);
  --color-link: var(--purple);
  --color-error: #B3123A;
  --color-focus: var(--purple);

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.25rem;
  --step-4: clamp(2.75rem, 6vw, 4rem);
  --step-5: clamp(3.25rem, 9vw, 6.5rem);

  /* Space (8pt rhythm) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --container: 72rem;
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur-fast: 150ms;
  --dur-med: 240ms;

  --z-header: 40;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}

h2 { font-size: var(--step-4); text-transform: uppercase; }
h3 { font-size: var(--step-2); }

p { margin: 0; }
p + p { margin-top: var(--space-3); }

a { color: var(--color-link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -4rem;
  z-index: 100;
  padding: var(--space-2) var(--space-3);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-3); }

.lede {
  font-size: var(--step-1);
  color: var(--color-text-muted);
  max-width: 38rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover { background: var(--color-primary-hover); }

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

.btn-on-dark { background: var(--sun); color: var(--navy); }
.btn-on-dark:hover { background: var(--white); }

.btn[disabled],
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

.btn-sm { min-height: 44px; padding: 0.5rem 1rem; font-size: 1.0625rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.brand-mark { width: auto; height: 52px; flex-shrink: 0; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  text-transform: none;
  letter-spacing: 0;
  color: #D3C8E8;
  margin-top: 3px;
}
@media (max-width: 380px) { .brand span { font-size: 1.125rem; } }

/* Focus rings need a light colour on the dark surfaces */
.site-header :focus-visible,
.hero :focus-visible,
.facts :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.reg-aside :focus-visible { outline-color: var(--teal-bright); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.site-nav a:not(.btn):hover { background: rgba(255, 255, 255, 0.1); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--teal-bright); }
.site-header .btn-primary { background: var(--teal-bright); color: var(--navy); }
.site-header .btn-primary:hover { background: var(--white); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  color: var(--white);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: var(--space-3) 1.25rem var(--space-4);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a:not(.btn) { padding: 0 var(--space-2); }
  .site-nav .btn { width: 100%; margin-top: var(--space-2); }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-7) 0 var(--space-8);
  background: var(--navy);
  color: var(--white);
  isolation: isolate;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
}

/* The logo is framed by rink markings: the blue line (drawn in purple) on one side,
   the red centre line on the other. Lines stay clear of the logo itself. */
.hero-visual {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
}
.logo-frame { position: relative; display: block; width: 100%; max-width: 26rem; }
.logo-frame::before,
.logo-frame::after {
  content: "";
  position: absolute;
  top: -40rem;
  bottom: -40rem;
  z-index: -1;
}
.logo-frame::before { left: -2.5rem; width: 22px; background: #7A45C2; }
.logo-frame::after { right: -2.5rem; width: 14px; background: var(--red-line); }
.hero-visual img { display: block; width: 100%; height: auto; }

.hero-content { grid-column: 1; grid-row: 1; max-width: 40rem; }

.hero h1 {
  font-size: var(--step-5);
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.005em;
}

.hero .lede { margin-top: var(--space-4); color: #E2DAF0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.hero-note {
  margin-top: var(--space-4);
  font-size: var(--step--1);
  color: #D3C8E8;
}

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }

@media (max-width: 860px) {
  .hero { padding: var(--space-5) 0 var(--space-7); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero-visual { grid-column: 1; justify-items: start; }
  .logo-frame { max-width: 14rem; }
  .logo-frame::before,
  .logo-frame::after { display: none; }
  .hero-content { grid-row: 2; }
}

/* ---------- Facts strip ---------- */
.facts {
  background: var(--purple);
  color: var(--white);
}
.facts dl {
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: space-between;
  margin: 0;
}
.facts div {
  padding: var(--space-4) var(--space-3);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts dt {
  font-size: var(--step--1);
  color: #D3C8E8;
  font-weight: 500;
}
.facts dd {
  margin: var(--space-1) 0 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.1;
}

@media (max-width: 760px) {
  .facts dl { grid-template-columns: repeat(2, 1fr); }
  .facts div { padding: var(--space-3); border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .facts div:nth-child(-n+2) { border-top: 0; }
  .facts div:first-child { padding-left: var(--space-3); }
  .facts div:nth-child(odd) { padding-left: 0; }
}

/* ---------- Sections ---------- */
.section { padding: var(--space-8) 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--color-border); }

.section-head {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  max-width: 44rem;
}

@media (max-width: 760px) {
  .section { padding: var(--space-7) 0; }
  .section-head { margin-bottom: var(--space-5); }
}

/* ---------- Ways to join ---------- */
.join-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.join-option {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
}
.join-option.is-team { border-color: var(--navy); }

.join-option h3 { display: flex; align-items: center; gap: var(--space-2); }
.join-option h3 svg { width: 28px; height: 28px; color: var(--blue-line); flex-shrink: 0; }

.price {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price span {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--color-text-muted);
}

.join-option > p { margin-top: var(--space-3); color: var(--color-text-muted); }

.check-list {
  list-style: none;
  margin: var(--space-4) 0 var(--space-5);
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.check-list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.check-list svg { width: 20px; height: 20px; margin-top: 0.2em; color: var(--success); flex-shrink: 0; }

.join-option .btn { margin-top: auto; align-self: flex-start; }

.fine-print {
  margin-top: var(--space-4);
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

@media (max-width: 760px) {
  .join-grid { grid-template-columns: 1fr; }
  .join-option { padding: var(--space-4); }
}

/* ---------- Payment steps ---------- */
.pay-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  counter-reset: pay;
}
.pay-steps li {
  counter-increment: pay;
  position: relative;
  padding: var(--space-4);
  padding-top: calc(var(--space-4) + 3.25rem);
  background: var(--ice);
  border-radius: var(--radius-md);
}
.pay-steps li::before {
  content: counter(pay);
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
}
.pay-steps h3 { font-size: var(--step-2); }
.pay-steps p { margin-top: var(--space-2); color: var(--color-text-muted); }
.pay-email { font-weight: 700; overflow-wrap: anywhere; }

@media (max-width: 860px) { .pay-steps { grid-template-columns: 1fr; } }

/* e-Transfer details card (registration confirmation) */
.etransfer {
  margin-top: var(--space-5);
  border: 2px solid var(--purple);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.etransfer h3 {
  padding: var(--space-3) var(--space-4);
  background: var(--purple);
  color: var(--white);
  font-size: var(--step-2);
}
.etransfer dl { margin: 0; padding: var(--space-2) var(--space-4) var(--space-3); }
.etransfer dl div {
  display: grid;
  grid-template-columns: 10rem 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}
.etransfer dl div:last-child { border-bottom: 0; }
.etransfer dt { color: var(--color-text-muted); }
.etransfer dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.copy-btn {
  min-height: 40px;
  padding: 0 var(--space-3);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--purple);
  background: var(--white);
  border: 2px solid var(--frost);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--purple); }
@media (max-width: 560px) {
  .etransfer dl div { grid-template-columns: 1fr auto; }
  .etransfer dt { grid-column: 1 / -1; }
}

/* ---------- Teams ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-card {
  --team: var(--navy);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  border-top: 6px solid var(--team);
}

.team-badge { width: 64px; height: 72px; color: var(--team); }

.team-card h3 { font-size: var(--step-2); }
.team-card .hood { font-size: var(--step--1); color: var(--color-text-muted); margin-top: 2px; }

.team-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-2);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--success);
}
.team-status svg { width: 16px; height: 16px; }

.team-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.team-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- Season timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 4px;
  background: var(--blue-line);
  border-radius: 2px;
}

.timeline li { position: relative; padding: var(--space-5) var(--space-3) 0 0; }

.timeline li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--blue-line);
}
.timeline li.is-key::before { background: var(--red-line); border-color: var(--red-line); }

.timeline time {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.1;
}
.timeline h3 {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  margin-top: var(--space-1);
  line-height: 1.35;
}
.timeline p { font-size: var(--step--1); color: var(--color-text-muted); margin-top: var(--space-1); }

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; padding-left: var(--space-5); }
  .timeline::before { top: 0; bottom: 0; left: 8px; right: auto; width: 4px; height: auto; }
  .timeline li { padding: 0 0 var(--space-5); }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { left: calc(-1 * var(--space-5)); top: 4px; }
}

/* ---------- Location ---------- */
.venue-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--space-4);
  align-items: stretch;
}
.venue-card {
  padding: var(--space-5);
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
}
.venue-card h3 { font-size: var(--step-3); text-transform: uppercase; }
.venue-card address {
  margin-top: var(--space-3);
  font-style: normal;
  font-size: var(--step-1);
  line-height: 1.5;
  color: #E2DAF0;
}
.venue-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  margin-top: var(--space-5);
}
.venue-actions a:not(.btn) { color: var(--white); font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }
.venue-card .btn-primary { background: var(--teal-bright); color: var(--navy); }
.venue-card .btn-primary:hover { background: var(--white); }
.venue-card :focus-visible { outline-color: var(--teal-bright); }

.venue-map {
  min-height: 20rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--ice-deep);
}
.venue-map iframe { display: block; width: 100%; height: 100%; min-height: 20rem; border: 0; }

.venue-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.venue-photos figure { margin: 0; }
.venue-photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--ice-deep);
}
.venue-photos figcaption {
  margin-top: var(--space-2);
  font-size: var(--step--1);
  color: var(--color-text-muted);
}

@media (max-width: 860px) {
  .venue-grid,
  .venue-photos { grid-template-columns: 1fr; }
  .venue-card { padding: var(--space-4); }
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: var(--space-2); max-width: 48rem; }

.faq-list details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  font-size: var(--step-1);
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg {
  width: 22px; height: 22px; flex-shrink: 0;
  color: var(--blue-line);
  transition: transform var(--dur-med) var(--ease-out);
}
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list details > div { padding: 0 var(--space-4) var(--space-4); color: var(--color-text-muted); max-width: 40rem; }

/* ---------- Closing band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding: var(--space-7) 0;
}
.cta-band::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  right: 12%;
  width: 10px;
  background: var(--red-line);
}
.cta-band h2 { color: var(--white); max-width: 34rem; }
.cta-band p { color: #E2DAF0; margin-top: var(--space-3); max-width: 34rem; font-size: var(--step-1); }
.cta-band .btn { margin-top: var(--space-5); }

@media (max-width: 760px) { .cta-band::after { right: 1.25rem; width: 6px; } }

/* ---------- Footer ---------- */
.site-footer {
  background: #170C2B;
  color: #D3C8E8;
  padding: var(--space-6) 0 var(--space-5);
  font-size: var(--step--1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-5);
}
.site-footer h2 {
  font-size: var(--step-1);
  color: var(--white);
  margin-bottom: var(--space-2);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.site-footer a { color: var(--white); display: inline-flex; min-height: 32px; align-items: center; }
.footer-logo { width: 120px; height: auto; }
.footer-base {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ======================================================
   Registration page
   ====================================================== */
.reg-hero { padding: var(--space-6) 0 var(--space-5); }
.reg-hero h1 { font-size: var(--step-4); text-transform: uppercase; }
.reg-hero .lede { margin-top: var(--space-3); }

.reg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: var(--space-6);
  align-items: start;
  padding-bottom: var(--space-8);
}

@media (max-width: 960px) {
  .reg-layout { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* Step indicator */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: var(--space-2);
  border-top: 4px solid var(--color-border);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--color-text-muted);
}
.steps li::before {
  content: counter(step) ". ";
}
.steps li.is-done { border-top-color: var(--blue-line); color: var(--color-text); }
.steps li.is-current { border-top-color: var(--red-line); color: var(--color-text); }

@media (max-width: 560px) {
  .steps li span { display: none; }
  .steps li.is-current span { display: inline; }
}

.reg-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

@media (max-width: 560px) { .reg-form { padding: var(--space-4) var(--space-3); } }

.form-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-step + .form-step { margin-top: var(--space-6); }
.js .form-step + .form-step { margin-top: 0; }

.form-step > legend {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.1;
  padding: 0;
  margin-bottom: var(--space-2);
}
.step-intro { color: var(--color-text-muted); margin-bottom: var(--space-5); }

.field-group { border: 0; margin: 0 0 var(--space-5); padding: 0; min-width: 0; }
.field-group > legend {
  font-weight: 700;
  font-size: var(--step-1);
  padding: 0;
  margin-bottom: var(--space-3);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: var(--space-1); margin-bottom: var(--space-4); align-content: start; }
.field-row .field { margin-bottom: 0; }
.field-row + .field,
.field-row + .field-row { margin-top: var(--space-4); }

.field label,
.field .label {
  font-weight: 600;
}
.req { color: var(--color-error); }
.optional { font-weight: 400; color: var(--color-text-muted); }

.hint { font-size: var(--step--1); color: var(--color-text-muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: var(--color-text);
  background: var(--white);
  border: 2px solid #968AB0;
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--navy-soft); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; border-color: var(--blue-line); }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--color-error); }

.error-msg {
  display: none;
  align-items: flex-start;
  gap: 6px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--color-error);
}
.error-msg svg { width: 16px; height: 16px; margin-top: 0.2em; flex-shrink: 0; }
.has-error > .error-msg { display: flex; }

/* Choice cards (radio) */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.choice-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 620px) {
  .choice-grid,
  .choice-grid.three { grid-template-columns: 1fr; }
}

.choice {
  position: relative;
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.choice:hover { border-color: #968AB0; }
.choice input {
  width: 22px;
  height: 22px;
  margin: 0.15em 0 0;
  flex-shrink: 0;
  accent-color: var(--red-line);
  cursor: pointer;
}
.choice strong { display: block; font-size: var(--step-1); line-height: 1.25; }
.choice span.desc { display: block; font-size: var(--step--1); color: var(--color-text-muted); margin-top: 2px; }
.choice:has(input:checked) { border-color: var(--navy); background: #F8F5FD; box-shadow: inset 0 0 0 1px var(--navy); }
.choice:has(input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }

.choice .swatch { width: 14px; height: 14px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: 1px; }

.has-error .choice-grid .choice { border-color: var(--color-error); }

/* Checkbox rows */
.check-field {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) 0;
}
.check-field input {
  width: 22px; height: 22px; margin: 0.15em 0 0; flex-shrink: 0;
  accent-color: var(--red-line);
  cursor: pointer;
}
.check-field label { cursor: pointer; }
.check-wrap { margin-bottom: var(--space-2); }

/* Step nav */
.step-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.step-actions .btn-next,
.step-actions .btn-submit { margin-left: auto; }

/* Error summary */
.error-summary {
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border: 3px solid var(--color-error);
  border-radius: var(--radius-md);
  background: #FFF5F6;
}
.error-summary h2 {
  font-family: var(--font-body);
  font-size: var(--step-1);
  text-transform: none;
  font-weight: 700;
  color: var(--color-error);
}
.error-summary ul { margin: var(--space-2) 0 0; padding-left: 1.25rem; }
.error-summary a { color: var(--color-error); font-weight: 600; }
.error-summary:focus { outline: 3px solid var(--color-focus); outline-offset: 3px; }

/* Review list */
.review-list { margin: 0 0 var(--space-5); display: grid; gap: 0; }
.review-list div {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}
.review-list dt { color: var(--color-text-muted); }
.review-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) { .review-list div { grid-template-columns: 1fr; gap: 0; } }

.waiver-box {
  max-height: 12rem;
  overflow-y: auto;
  padding: var(--space-3) var(--space-4);
  background: var(--ice);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

/* Sidebar summary */
.reg-aside {
  position: sticky;
  top: 6rem;
  padding: var(--space-4);
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
}
@media (max-width: 960px) { .reg-aside { position: static; } }
.reg-aside h2 { font-size: var(--step-2); }
.reg-aside dl { margin: var(--space-3) 0 0; display: grid; gap: var(--space-3); }
.reg-aside dt { font-size: var(--step--1); color: #D3C8E8; }
.reg-aside dd { margin: 2px 0 0; font-weight: 600; }
.reg-aside .total {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.reg-aside .total dd {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--sun);
}
.reg-aside p { font-size: var(--step--1); color: #E2DAF0; margin-top: var(--space-3); }
.reg-aside a { color: var(--white); }

/* Confirmation */
.confirmation { text-align: left; }
.confirmation .confirm-icon { width: 56px; height: 56px; color: var(--success); margin-bottom: var(--space-3); }
.confirmation h2 { font-size: var(--step-4); }
.confirmation p { margin-top: var(--space-3); max-width: 36rem; }
.notice {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: #E8F6F5;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
}

.spinner {
  width: 18px; height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* [hidden] must win over display rules above */
[hidden] { display: none !important; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
