/* ============================================================
 * RinkScore — site.css
 *
 * Steelmorphism palette (Kinetic Lab Narrative / Power Play
 * Redesign, applied 2026-06): Ice White + Deep Navy + Electric
 * Orange. High-contrast, orthogonal, sharp 0px corners, no soft
 * shadows (tonal layering only), uppercase Anton headlines,
 * Archivo Narrow body, JetBrains Mono labels/data.
 *
 * Vanilla CSS, no preprocessor, no Tailwind. Section-padding
 * rhythm and page-header proportions inherited from the parent
 * thebiohub structure; brand+aesthetic is RinkScore-specific.
 * ============================================================ */

:root {
  --ink:        #1a1c1c;       /* on-surface — near-black for body text */
  --ink-soft:   #5e3f38;       /* on-surface-variant — muted warm gray */
  --ink-mute:   #926f66;       /* outline — labels, hints, captions */
  --line:       #e2e2e2;       /* surface-container-highest — Steel Gray hairlines */
  --line-soft:  #f3f3f4;       /* surface-container-low — subtle dividers */
  --bg:         #f9f9f9;       /* surface — Ice White */
  --bg-soft:    #f3f3f4;       /* surface-container-low */
  --bg-warm:    #eeeeee;       /* surface-container — alt section bg */
  --bg-card:    #ffffff;       /* surface-container-lowest — elevated cards */
  --secondary:     #515f78;    /* Deep Navy — card headers, structural weight */
  --secondary-ink: #ffffff;    /* on-secondary */
  --accent:        #b02700;    /* Electric Orange — primary action color */
  --accent-soft:   #ffdad2;    /* primary-fixed — soft orange tint */
  --accent-ink:    #dc3300;    /* primary-container — hover/active orange */
  --warn:          #ba1a1a;    /* error */
  --warn-soft:     #ffdad6;    /* error-container */
  --radius:        0;          /* Steelmorphism = sharp 0px corners */
  --radius-sm:     0;
  --shadow-sm:     none;       /* No shadows — tonal layering only (Steelmorphism) */
  --shadow-md:     none;
  --font-sans:     "Archivo Narrow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display:  "Anton", "Archivo Narrow", -apple-system, sans-serif;
  --font-mono:     "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

/* Parent layout standard (thebiohub.ca about/events/publications/legal):
 *   Outer container = 1280px (parent's max-w-7xl)
 *   Long-form prose body = 896px (parent's max-w-4xl)
 *   Page-header / hero lede = 768px (parent's max-w-3xl) */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
@media (max-width: 720px) { .wrap { padding: 0 1.25rem; } }

/* ============================================================ */
/* Site header — two-tone brand mark, sticky                    */
/* ============================================================ */
/* Steelmorphism header — solid Ice White bar with a 2px Navy bottom rule
   (DESIGN.md "Components: Cards" applies the same Navy structural treatment). */
.site-header {
  border-bottom: 2px solid var(--secondary);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}
.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  font-size: 1.6rem;
  line-height: 1;
}
.brand-mark { color: var(--secondary); }     /* "Rink" in Deep Navy */
.brand-sub  { color: var(--accent); }         /* "Score" in Electric Orange */
.brand:hover .brand-sub { color: var(--accent-ink); }

/* Inline brand mark — body / prose use. Carries the menubar's two-tone
   signature without forcing the display font or uppercase on body prose. */
.rs-mark {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.rs-mark > span:first-child { color: var(--secondary); }   /* Rink — Deep Navy */
.rs-mark > span:last-child  { color: var(--accent); }      /* Score — Electric Orange */
/* In display-cased contexts (h1/h2/h3), inherit the parent's uppercase */
.prose .rs-mark,
.page-header .rs-mark { font-family: var(--font-display); }

/* Nav — Mono uppercase labels for the "Lab" technical voice. */
.site-nav { display: flex; gap: 1.8rem; }
.site-nav a {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================ */
/* Main + sections — parent-style padding rhythm                */
/* ============================================================ */
.site-main { padding: 0; }
.site-main > section { padding: 5rem 0; }
.site-main > section + section { border-top: 0; }
.site-main > section.alt { background: var(--bg-warm); }

/* Steelmorphism headlines — Anton, uppercase, tight tracking (DESIGN.md "Typography").
   Headlines are the broadcast-arena signage of the page. */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;        /* Anton is single-weight; 400 is its default */
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.0;
  color: var(--ink);
}
h1 { font-size: 3rem;   margin: 0 0 1rem; }
h2 { font-size: 2.25rem; margin: 0 0 0.9rem; }
h3 { font-size: 1.3rem; margin: 0 0 0.5rem; letter-spacing: 0; }

/* Eyebrows — JetBrains Mono, uppercase, wide tracking. Mimics the data-chip
   labels in the Steelmorphism system (DESIGN.md "Components"). */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0 0 1.4rem;
}

/* ============================================================ */
/* Hero — larger proportions borrowed from parent navheader     */
/* ============================================================ */
.hero {
  background: var(--bg-soft);
  padding: 6rem 0 5rem !important;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-bottom: 1.2rem;
}
.hero h1 .accent-tail { color: var(--ink-mute); }
.hero .lede { font-size: 1.2rem; max-width: 768px; }
.hero .cta {
  margin-top: 2rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ============================================================ */
/* Buttons                                                       */
/* ============================================================ */
/* Steelmorphism buttons — sharp rectangles, JetBrains Mono uppercase text,
   no shadow, hover inverts intensity instead of lifting (DESIGN.md "Components"). */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  font-size: 0.85rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.btn-primary { background: var(--accent); color: var(--secondary-ink); }
.btn-primary:hover { background: var(--accent-ink); color: var(--secondary-ink); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--secondary-ink); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ============================================================ */
/* Sub-page header (intake / acknowledgement)                   */
/* ============================================================ */
.page-header {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
  padding: 5rem 0 4rem !important;
}
.page-header.tight { padding: 3rem 0 2.5rem !important; }
.page-header h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.page-header h1 .accent-tail { color: var(--ink-mute); }
.page-header .lede { font-size: 1.1rem; max-width: 768px; }

/* ============================================================ */
/* Section header (eyebrow + h2)                                */
/* ============================================================ */
.section-header { margin-bottom: 2.5rem; }
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 0.8rem;
}
.section-header .lede { max-width: 768px; }

/* ============================================================ */
/* Feature grid                                                  */
/* ============================================================ */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature {
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.feature h3 { color: var(--accent-ink); }
.feature p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

/* ============================================================ */
/* Pillars (4-up grid — Lab Branding "What's covered")          */
/* ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 1024px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .pillars { grid-template-columns: 1fr; } }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
.pillars .feature em { color: var(--accent-ink); font-style: italic; }

/* ============================================================ */
/* Steps (numbered timeline — Lab Branding "How it works")      */
/* ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (max-width: 1024px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .steps { grid-template-columns: 1fr; } }
.steps > li {
  counter-increment: step;
  padding: 1.3rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.steps > li h3 { color: var(--ink); }
.steps > li p  { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.steps > li a  { color: var(--accent-ink); }

/* ============================================================ */
/* Checklist (Lab Branding "Ready when you are")                */
/* ============================================================ */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 1.5rem;
  display: grid;
  gap: 0.5rem;
  max-width: 600px;
}
/* When a section-header introduces a checklist directly, kill the heavy
   section-header bottom margin so the lede + checklist read as one block. */
.section-header:has(+ .checklist) { margin-bottom: 0; }
.checklist > li {
  padding-left: 2rem;
  position: relative;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}
.checklist > li::before {
  content: "☐";
  position: absolute;
  left: 0.2rem;
  top: -0.15rem;
  font-size: 1.3rem;
  color: var(--accent);
  line-height: 1;
}
.checklist > li em {
  color: var(--ink-mute);
  font-style: italic;
  margin-right: 0.3rem;
}

/* ============================================================ */
/* Steps — vertical timeline (Lab Branding "How it works")      */
/* ============================================================ */
.steps-vertical {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 896px;
}
.steps-vertical > li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.4rem;
  align-items: start;
  padding: 1.2rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps-vertical .step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 0.25rem;
}
/* Post-launch step (08 maintenance) — visually distinct from the
   linear build sequence: muted number colour + extra top margin to
   signal "after the project is delivered". */
.steps-vertical > li.post-launch { margin-top: 0.8rem; }
.steps-vertical > li.post-launch .step-num { color: var(--ink-mute); }
.steps-vertical .step-body h3 {
  color: var(--ink);
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}
.steps-vertical .step-body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 0.55rem;
}
.steps-vertical .step-body p:last-child { margin-bottom: 0; }
.steps-vertical .step-body em {
  color: var(--ink);
  font-style: italic;
}
.steps-vertical .step-body a { color: var(--accent-ink); }
.steps-vertical .step-body a:hover { color: var(--accent); }
.step-note {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  font-weight: 600;
  vertical-align: middle;
}
@media (max-width: 600px) {
  .steps-vertical > li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}


/* ============================================================ */
/* Demo gallery                                                  */
/* ============================================================ */
.demos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 900px) { .demos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .demos { grid-template-columns: 1fr; } }
.demo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.demo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.demo-card .thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-soft) center/cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.demo-card .meta { padding: 0.9rem 1rem 1rem; }
.demo-card .meta h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.demo-card .meta p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* ============================================================ */
/* Pricing                                                       */
/* ============================================================ */
.pricing {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  max-width: 768px;
  overflow: hidden;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line-soft);
}
.price-row:last-child { border-bottom: 0; }
.price-row .label { color: var(--ink); font-weight: 600; }
.price-row .value { font-family: var(--font-mono); color: var(--accent); font-weight: 600; }
.pricing-note { color: var(--ink-mute); font-size: 0.85rem; margin-top: 1rem; max-width: 768px; }

/* ============================================================ */
/* Page scope: /lab-branding/ runs in a single 896px column.    */
/* This is the prose-tier width from the parent's layout        */
/* standard, applied to every section on the page so the body   */
/* rhythm is uniform (instead of stepping between grid + prose  */
/* widths).                                                     */
/* ============================================================ */
/* Scope the narrow column to the main content only — header nav + footer
   keep the default 1280px so the nav doesn't shift between pages. */
body.page-lab-branding .site-main .wrap,
body.page-about .site-main .wrap,
body.page-intake-form .site-main .wrap { max-width: 896px; }
body.page-lab-branding .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.page-lab-branding .pricing,
body.page-lab-branding .pricing-note { max-width: none; }
body.page-lab-branding .section-header .lede,
body.page-lab-branding .page-header .lede,
body.page-lab-branding .hero .lede,
body.page-about .section-header .lede,
body.page-about .page-header .lede,
body.page-about .hero .lede,
body.page-intake-form .section-header .lede,
body.page-intake-form .page-header .lede,
body.page-intake-form .hero .lede { max-width: none; }
/* Form container — bump to match the 896px column. */
body.page-intake-form .form-page { max-width: 896px; }

/* ============================================================ */
/* Acknowledgement logos (landing page bottom)                  */
/* ============================================================ */
.ack-section { padding: 5rem 0 5.5rem !important; }

.ack-eyebrow {
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.72rem;
  color: var(--ink-mute);
  font-weight: 600;
  margin: 0 0 3rem;
}

.ack-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .ack-logos { grid-template-columns: 1fr; }
}

.ack-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 1.5rem;
}
@media (max-width: 720px) {
  .ack-cell { padding: 1.5rem; }
}

.ack-cell img {
  max-height: 64px;
  max-width: 100%;
  width: auto;
}

/* ============================================================ */
/* Footer                                                        */
/* ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-warm);
}
.site-footer .wrap {
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}
.site-footer .wrap p { margin: 0; }
.site-footer .footer-attr { color: var(--ink-mute); }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--accent); }

/* ============================================================ */
/* Prose pages (acknowledgement etc.)                           */
/* ============================================================ */
.prose { max-width: 896px; }
.prose p { color: var(--ink-soft); }
.prose ul { color: var(--ink-soft); padding-left: 1.2rem; }
.prose li + li { margin-top: 0.3rem; }
.prose h2 {
  margin-top: 2.6rem;
  font-size: 1.4rem;
  color: var(--ink);
}
.prose code, code {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 0.05rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

/* ============================================================ */
/* Intake form                                                  */
/* ============================================================ */

.form-page { max-width: 820px; margin: 0 auto; padding: 0 2rem; }
@media (max-width: 720px) { .form-page { padding: 0 1.25rem; } }

.form-intro {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
  text-align: center;
}

/* Numbered cards — circular jersey-number badge replaces redundant
   per-card "Team" / "Game" header labels. The same pattern serves
   both Teams and Game schedule sections.
   Specificity boost (.repeat-item.team-card) is needed so the padding
   override beats the .repeat-item { padding: ... } shorthand declared
   later in this file. */
#teams-repeatable [data-list] { counter-reset: team-num; }
#games-repeatable [data-list] { counter-reset: game-num; }
.repeat-item.team-card { counter-increment: team-num; }
.repeat-item.game-card { counter-increment: game-num; }
.repeat-item.team-card,
.repeat-item.game-card {
  position: relative;
  padding-left: 3.6rem;
  padding-top: 1.1rem;
}
.repeat-item.team-card::before { content: counter(team-num); }
.repeat-item.game-card::before { content: counter(game-num); }
.repeat-item.team-card::before,
.repeat-item.game-card::before {
  position: absolute;
  left: 0.9rem;
  top: 1.1rem;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Informational callout — shifted off the high-intensity orange (used heavily
   throughout the form) onto the structural Navy + Steel surface, so the
   package-checklist reads as informational rather than alert. The checkboxes
   inside keep the orange accent-color as the actionable highlight. */
.form-callout {
  background: var(--bg-soft);
  border-left: 4px solid var(--secondary);
  padding: 1rem 1.2rem;
  margin: 0 0 2rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.form-callout ul { margin: 0.4rem 0 0 0; padding-left: 1.2rem; }
.form-callout li { margin: 0.1rem 0; }

/* Package checklist — header with title + Print button, then a
   tick-box list the user can mark off as they prepare each file. */
.checklist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.checklist-head p { margin: 0; }
.checklist-items {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.checklist-items li { margin: 0.45rem 0; }
.checklist-items label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
}
.checklist-items input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
  width: auto;
  accent-color: var(--accent);
}
.checklist-items input[type="checkbox"]:checked + span {
  text-decoration: line-through;
  opacity: 0.55;
}
.checklist-note {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Steelmorphism fieldset — sharp 1px Steel Gray stroke, full-width Electric
   Orange header bar (DESIGN.md "Components: Cards — Header sections of cards
   should have a Deep [accent] background with White Anton text"). Orange
   here over Navy to keep the form's repeated rhythm in the brand's primary
   high-intensity color rather than the structural secondary. */
fieldset.section {
  border: 1px solid var(--line);
  padding: 0;
  margin: 0 0 1.8rem;
  background: var(--bg-card);
}
fieldset.section > legend {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  color: var(--secondary-ink);
  background: var(--accent);
  padding: 0.65rem 1.2rem;
  width: 100%;
  margin: 0;
}
fieldset.section > *:not(legend) { margin-left: 1.4rem; margin-right: 1.4rem; }
fieldset.section > *:nth-last-child(1) { margin-bottom: 1.4rem; }
fieldset.section > legend + * { margin-top: 1.2rem; }
fieldset.section .section-hint {
  color: var(--ink-mute);
  font-size: 0.88rem;
  margin: -0.2rem 0 1rem;
}

details.advanced {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 0;
  background: var(--bg-soft);
  margin: 2rem 0 1.6rem;
}
details.advanced > summary {
  cursor: pointer;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
details.advanced > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.15s ease;
  color: var(--ink-mute);
}
details.advanced[open] > summary::before { transform: rotate(90deg); }
details.advanced > .advanced-body { padding: 0 1.2rem 1.2rem; }
details.advanced > .advanced-body > fieldset.section { background: var(--bg); }

label.field { display: block; margin: 0.7rem 0; }
/* The HTML `hidden` attribute is overridden by label.field { display:block }
   because of specificity. Win the fight back so [hidden] works. */
label.field[hidden],
[hidden] { display: none !important; }
/* Field labels — Mono uppercase in Electric Orange (the "Lab" technical voice,
   weighted toward the brand's primary high-intensity color so the form's many
   labels carry red rather than blue across the page). */
label.field > .label {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.label .req { color: var(--warn); margin-left: 0.25rem; }
label.field > .hint {
  display: block;
  color: var(--ink-mute);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  font-family: inherit;
}
textarea { resize: vertical; min-height: 4.5rem; line-height: 1.5; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; }
@media (max-width: 600px) { .row-grid { grid-template-columns: 1fr; } }

.repeat-list { display: flex; flex-direction: column; gap: 1rem; margin: 0.4rem 0 0; }
.repeat-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem 0.6rem;
  background: var(--bg-soft);
  position: relative;
}
.repeat-item .repeat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.repeat-controls { display: flex; gap: 0.5rem; margin-top: 0.6rem; }

.btn-mini {
  font: inherit;
  font-size: 0.82rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-soft);
  cursor: pointer;
}
.btn-mini:hover { background: var(--bg-soft); color: var(--ink); }
.btn-mini.remove { color: var(--warn); border-color: #e5cdb8; }
.btn-mini.remove:hover { background: var(--warn-soft); }

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 1rem;
  flex-wrap: wrap;
}
.form-actions .status { color: var(--ink-mute); font-size: 0.9rem; }
.form-actions .status.error { color: var(--warn); font-weight: 600; }
.form-actions .status.ok    { color: var(--accent-ink); font-weight: 600; }

/* ============================================================ */
/* Demo Gallery — 5 categories, 12 demos                         */
/* ============================================================ */
.demo-gallery { padding: 4rem 0 5rem; background: var(--bg-card); }
.demo-gallery .section-header { margin: 0 0 3rem; }
.demo-gallery .section-header h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0.25rem 0 0.9rem;
}
.demo-gallery .section-header .lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0;
}

.category-block {
  margin: 0 0 3.5rem;
  padding: 0;
}
.category-block:last-child { margin-bottom: 0; }

.category-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--secondary);
}
.category-header .category-badge {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 0.35rem;
}
.category-header h3 {
  grid-column: 2;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}
.category-header .category-sub {
  grid-column: 2;
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}

.category-badge {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0;
  white-space: nowrap;
}
.category-badge-youth      { background: #F9A825; color: #1a1c1c; }   /* warm amber */
.category-badge-tradition  { background: #8D5524; color: #ffffff; }   /* heritage brown */
.category-badge-premium    { background: #1a1c1c; color: #ffffff; }   /* near-black */
.category-badge-energy     { background: #00B8D9; color: #ffffff; }   /* electric cyan */
.category-badge-fundraiser { background: #D81B60; color: #ffffff; }   /* fundraiser pink */

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.demo-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.demo-card:hover {
  transform: translateY(-2px);
  border-color: var(--secondary);
  color: inherit;
}

.demo-card-thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--bg-warm);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.demo-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.demo-card-thumb.thumb-missing::before {
  content: "screenshot pending";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background:
    repeating-linear-gradient(
      45deg,
      var(--bg-warm),
      var(--bg-warm) 12px,
      var(--bg-soft) 12px,
      var(--bg-soft) 24px
    );
}

.demo-card-meta {
  padding: 0.95rem 1.1rem 1.1rem;
}
.demo-card-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0 0 0.3rem;
  color: var(--ink);
}
.demo-card-theme {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}

/* FAQ */
.faq {
  padding: 4rem 0 5rem;
  background: var(--bg);
}
.faq .section-header { margin: 0 0 2rem; }
.faq .section-header h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0.25rem 0 0;
}
.faq-inner {
  width: 100%;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2.5rem 1.25rem 0.25rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1rem;
  color: var(--ink);
  position: relative;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink-soft);
  transition: transform 0.18s ease;
}
.faq-item[open] > summary::after {
  content: "\2212";
  color: var(--accent);
}
.faq-answer {
  padding: 0 0.25rem 1.5rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}
.faq-answer p { margin: 0 0 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.25rem;
}
.faq-answer ul li { margin: 0.25rem 0; }
.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faq-answer a:hover { text-decoration: none; }
.faq-answer code {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  background: var(--bg-card);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.92em;
}

/* Closing CTA */
.closing-cta {
  padding: 4rem 0 5rem;
  background: var(--bg-card);
}
.closing-cta h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  letter-spacing: 0.01em;
  margin: 0 0 0.6rem;
}
.closing-cta .lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  max-width: none;
}

.gallery-disclaimer {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--bg-warm);
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}
.gallery-disclaimer strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 0.35rem;
}

/* ============================================================ */
/* How it works — orientation block before the demo gallery     */
/* ============================================================ */
.how-it-works {
  background: var(--bg-card);
  padding: 4rem 0 5rem;
}
.how-it-works .section-header { margin: 0 0 2.5rem; }
.how-it-works .section-header h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0.25rem 0 0;
}
.howit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .howit-grid { grid-template-columns: 1fr; }
}
.howit-step {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 1.75rem 1.6rem;
}
.howit-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.7rem;
}
.howit-body {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

.howit-step {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: 1.6rem 1.75rem 1.7rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.howit-step:hover {
  background: var(--bg-card);
  border-color: var(--secondary);
  border-left-color: var(--accent);
}
.howit-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  letter-spacing: -0.005em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.howit-details {
  margin: 2.5rem 0 0;
}
.howit-details p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}
.howit-details p:last-child { margin-bottom: 0; }

/* Body bg should match section bg for consistent all-white canvas */
body { background: var(--bg-card); }

/* Override the single-column details block — now 3-col bullet detail */
.howit-details {
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 1.5rem;
}
@media (max-width: 900px) {
  .howit-details { grid-template-columns: 1fr; }
}
.howit-details p { margin: 0; }
.howit-detail-block {}
.howit-detail-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}
.howit-detail-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.howit-detail-block li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.55;
  margin-bottom: 0.55rem;
}
.howit-detail-block li:last-child { margin-bottom: 0; }
.howit-detail-block li:before {
  content: "\2014";  /* em-dash bullet marker */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.howit-detail-block li strong {
  color: var(--ink);
  font-weight: 700;
}

/* ============================================================ */
/* Gallery stat-band — visual replacement for prose numbers     */
/* ============================================================ */
.section-header-stats h2 { display: none; }
.gallery-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin: 0.25rem 0 1.5rem;
  flex-wrap: wrap;
}
.gallery-stat {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}
.gallery-stat-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 0.85;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.gallery-stat-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--ink);
}
.gallery-stat-sep {
  display: inline-block;
  width: 2px;
  height: 3.5rem;
  background: var(--line);
}
@media (max-width: 600px) {
  .gallery-stats { gap: 1.2rem; }
  .gallery-stat-sep { display: none; }
}
