/* Sample home page for a custom softball and baseball uniform company. Mobile first (390), then 600, 640, 720,
   768, 1024, 1180, 1200, 1280. Tokens: copied from ../brand.css (a stated default palette: no brand is on record,
   every colour is marked there, with its contrast worked).
   Shell kept from the sitemaker exemplar (see ../NOTES.md): skip link, sticky header with a phone menu, the
   navigation kit wiring, form drafts, the inline storage notice, back to top, one moving band, the pause-motion
   button. No glow, no card borders, no hover lift (LOOK-02..04). Light page only (color-scheme). */

:root {
  --white: #FFFFFF; --grey: #F1F3F6; --sky: #E6EDF7;
  --navy: #13294B; --navy-2: #1E3A66; --navy-deep: #0C1B33;
  --ink: #13294B; --muted: #46536A;
  --on-dark: #FFFFFF; --on-dark-muted: #C9D3E1;
  --red: #C8102E; --red-deep: #A60D26;
  --royal: #1D5FA6; --gold: #F2B33D;
  --action: #C8102E; --action-ink: #FFFFFF; --action-hover: #A60D26;
  --field-line: #6B7689;
  --font-head: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: Verdana, Tahoma, "Segoe UI", system-ui, sans-serif;
  --head-track: -0.01em; --label-track: 0.12em; --body-lh: 1.7;
  --r: 10px; --r-lg: 16px; --wrap: 1200px;
  --shadow: 0 10px 28px -16px rgba(12, 27, 51, .32);
  --hdr-h: 64px;
  color-scheme: light;
  /* navigation kit colours */
  --nk-bg: #13294B; --nk-ink: #FFFFFF; --nk-accent: #C8102E; --nk-accent-ink: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: var(--body-lh);
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; letter-spacing: var(--head-track); margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* no jumps: the sticky header is cleared by scroll-margin on the targets, never scroll-padding on html (UID-005) */
main section[id], main [id] { scroll-margin-top: calc(var(--hdr-h) + 16px); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--navy); color: var(--on-dark); padding: 12px 18px; border-radius: var(--r); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* the one sample label, at the very top, shown with or without JavaScript */
.sample-note { padding: 8px 20px; text-align: center; background: var(--gold); color: var(--ink); font-size: 1rem; line-height: 1.5; font-weight: 700; }

/* shown only when the page's script runs (the html.js class) */
html:not(.js) .js-only { display: none; }

/* ---------- type ---------- */
.eyebrow { font-family: var(--font-head); font-size: 1rem; font-weight: 800; letter-spacing: var(--label-track); text-transform: uppercase; line-height: 1.5; margin-bottom: 12px; }
.eyebrow--red { color: var(--red); }
.eyebrow--royal { color: var(--royal); }
.eyebrow--gold { color: var(--gold); }
h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); line-height: 1.08; margin-bottom: 18px; }
h2 { font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem); line-height: 1.12; }
h3 { font-size: 1.3125rem; line-height: 1.25; }
.lede { font-size: 1.1875rem; line-height: 1.6; max-width: 44ch; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.sample-line { font-size: 1rem; font-weight: 700; color: var(--red-deep); }
.sample-line--dark { color: var(--gold); }

/* ---------- buttons: ONE action colour (red), one outline ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: .7rem 1.4rem; border-radius: var(--r); border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-lg { min-height: 54px; padding: .8rem 1.6rem; font-size: 1.125rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.btn-primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--ink); }
.btn-outline:hover { background: rgba(19, 41, 75, .06); }

/* ---------- header (exemplar shell) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid rgba(19, 41, 75, .12); }
.hdr { display: flex; align-items: center; gap: 12px; min-height: var(--hdr-h); position: relative; }
.brand { display: inline-flex; align-items: center; min-width: 0; min-height: 44px; margin-right: auto; font-family: var(--font-head); font-weight: 800; font-size: 1.1875rem; line-height: 1.2; letter-spacing: var(--head-track); color: var(--ink); text-decoration: none; }
.hdr-cta { display: none; }
.menu-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; background: transparent; border: 1.5px solid rgba(19, 41, 75, .4); color: var(--ink); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s, opacity .2s; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
html:not(.js) .menu-btn { display: none; }

/* phone menu: a white panel under the header */
.nav { display: none; }
html.js .nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  padding: 10px; border-radius: var(--r); background: var(--white);
  box-shadow: 0 24px 60px -24px rgba(12, 27, 51, .45);
  max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); overflow-y: auto;
}
html:not(.js) .nav { display: block; width: 100%; order: 5; padding-bottom: 10px; }
html:not(.js) .hdr { flex-wrap: wrap; }
.nav-list a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: var(--r); text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 600; }
.nav-list a:hover { background: rgba(19, 41, 75, .06); }
.nav-extra { padding: 10px 4px 4px; }

/* "On this page" (navigation kit) inside the header menu */
.nav-list .nk-jump-li { position: relative; }
.nk-jump.nav-sub summary { min-height: 48px; padding: 0 14px; border-radius: var(--r); color: var(--ink); font-family: var(--font-head); font-weight: 600; display: flex; }
.nk-jump.nav-sub summary:hover { background: rgba(19, 41, 75, .06); }
.nk-jump.nav-sub .nk-jump-list { margin: 4px 0 6px 12px; padding: 6px; background: var(--grey); border-radius: var(--r); }
.nk-jump.nav-sub .nk-jump-list a { min-height: 44px; font-size: 1rem; }
/* closed = no boxes at all (Chromium still lays out a closed <details>' content for getBoundingClientRect) */
.nk-jump.nav-sub:not([open]) .nk-jump-list { display: none; }

/* the full header bar from 1200 px: below that the menu button (fallback faces on some systems run wide) */
@media (min-width: 1200px) {
  :root { --hdr-h: 76px; }
  .hdr { gap: 16px; }
  .brand { font-size: 1.3125rem; }
  .menu-btn { display: none; }
  .nav, html:not(.js) .nav { display: block; width: auto; order: 0; padding: 0; }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-list a, .nk-jump.nav-sub summary { min-height: 44px; padding: 0 12px; font-size: 1rem; }
  .nav-extra { display: none; }
  .hdr-cta { display: inline-flex; min-height: 46px; padding: .55rem 1.2rem; }
  .nk-jump.nav-sub .nk-jump-list { position: absolute; top: calc(100% + 10px); right: 0; width: 260px; margin: 0; padding: 8px; background: var(--white); box-shadow: 0 24px 60px -24px rgba(12, 27, 51, .45); z-index: 5; }
}

/* ---------- sections: one ground each, never two neighbours alike (LOOK-06, LOOK-21) ---------- */
.sec { position: relative; isolation: isolate; padding: 72px 0; }
.sec > .wrap { position: relative; z-index: 1; }
@media (min-width: 768px) { .sec { padding: 96px 0; } }
@media (min-width: 1024px) { .sec { padding: 112px 0; } }
.sec-head { max-width: 720px; margin-bottom: 32px; }
.sec-head .lede { margin-top: 14px; }
@media (min-width: 1024px) { .sec-head { margin-bottom: 44px; } }

/* 1. hero: light grey; the copy, then the jersey picker on a white card */
.hero { background: var(--grey); padding: 48px 0; }
@media (min-width: 768px) { .hero { padding: 72px 0; } }
@media (min-width: 1024px) { .hero { padding: 96px 0; } }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-sub { color: var(--muted); max-width: 46ch; margin-top: 12px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-btns .btn { flex: 1 1 220px; }
@media (min-width: 640px) { .hero-btns .btn { flex: 0 0 auto; } }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 64px; } }

/* the jersey picker: an inline SVG whose colours come from --body and --trim (app.js sets them on a tap) */
.jersey-card { width: 100%; max-width: 460px; margin: 0 auto; padding: 24px 20px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); }
@media (min-width: 768px) { .jersey-card { padding: 28px; } }
.jersey { width: 100%; max-width: 300px; height: auto; aspect-ratio: 260 / 240; margin: 0 auto; --body: #13294B; --trim: #C8102E; }
.j-body { fill: var(--body); }
.j-trim { fill: var(--trim); }
.j-line, .j-pipe, .j-num { stroke: var(--trim); }
.j-body, .j-trim, .j-line, .j-pipe, .j-num { transition: fill .25s, stroke .25s; }
.picker { margin-top: 20px; display: grid; gap: 16px; }
html:not(.js) .picker { display: none; }
.sw-label { font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.4; margin-bottom: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
/* the pressed border is 3 px against 1 px (a shape cue, not colour alone); padding gives back the 2 px, so no size change */
.swatch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 15px 0 10px;
  border: 1px solid rgba(19, 41, 75, .4); border-radius: 999px; background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.2; cursor: pointer;
}
.swatch:hover { background: var(--grey); }
.swatch[aria-pressed="true"] { border: 3px solid var(--navy); padding: 0 13px 0 8px; }
.swatch:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 999px; }
.chip { width: 22px; height: 22px; flex: none; border-radius: 50%; background: #CCD3DD; border: 1px solid rgba(12, 27, 51, .45); }
.pick-status { margin-top: 16px; min-height: 3.2em; font-weight: 700; line-height: 1.6; }

/* 2. products: white band, four light grey cards with a soft shadow */
.products { background: var(--white); }
.card-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; border-radius: var(--r); background: var(--grey); box-shadow: var(--shadow); }
.card-ico { width: 44px; height: 44px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-royal { color: var(--royal); }
.ico-red { color: var(--red); }
.ico-navy { color: var(--navy); }
.price { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.price-from { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.price-tag { font-size: 1rem; color: var(--muted); }

/* 3. sizes: light grey band; the chart on a white card */
.sizes { background: var(--grey); }
.sizes-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) {
  .sizes-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .sizes-grid .sec-head { margin-bottom: 0; }
}
.table-card { padding: 4px 0; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
.size-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 1rem; line-height: 1.4; }
.size-table caption { caption-side: top; text-align: left; padding: 14px 16px 8px; font-weight: 700; color: var(--red-deep); }
.size-table th, .size-table td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(19, 41, 75, .14); overflow-wrap: anywhere; }
.size-table th:first-child, .size-table td:first-child { padding-left: 16px; }
.size-table thead th { font-family: var(--font-head); font-weight: 700; }
.size-table thead th:first-child { width: 24%; }
.size-table tbody th { font-family: var(--font-head); font-weight: 800; }
.size-table tbody tr:last-child th, .size-table tbody tr:last-child td { border-bottom: 0; }

/* 4. pricing: the navy band; three cards one step lighter (LOOK-03 on dark) */
.pricing { background: var(--navy); color: var(--on-dark); }
.pricing h2 { color: var(--on-dark); }
.pricing .sample-line { margin-top: 14px; }
.pricing :focus-visible { outline-color: var(--gold); }
.price-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.band { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 26px 24px; border-radius: var(--r); background: var(--navy-2); }
.band-qty { font-weight: 700; color: var(--gold); }
.band-price { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); line-height: 1.1; color: var(--on-dark); }
.band-per { color: var(--on-dark-muted); }
.pricing-next { margin-top: 24px; }
.pricing .text-link { color: var(--on-dark); }

/* 5. how ordering works: white + the page's one moving band (quiet rails in the margins) */
.how { background: var(--white); --bg-dot: rgba(19, 41, 75, .10); --bg-accent-1: rgba(200, 16, 46, .55); --bg-accent-2: rgba(29, 95, 166, .6); }
.steps { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; align-content: start; }
.step-n { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: var(--action-ink); font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; line-height: 1; }
.step h3, .step p { grid-column: 2; }
.step p { color: var(--muted); }
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step-n { grid-row: auto; margin-bottom: 8px; }
  .step h3, .step p { grid-column: 1; }
}

/* 6. team order request: pale blue band; the form on a white card */
.order { background: var(--sky); }
.order-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .order-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 64px; align-items: start; } }
.order-head h2 { margin-bottom: 14px; }
.form-card { padding: 24px 20px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
@media (min-width: 768px) { .form-card { padding: 32px; } }
.form-card > .sample-line { margin-bottom: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-width: 0; min-height: 52px; padding: 12px 14px;
  font-size: 1.0625rem; line-height: 1.4; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--field-line); border-radius: var(--r);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--royal); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--red-deep); border-width: 2px; }
.field-err { margin-top: 8px; color: var(--red-deep); font-size: 1rem; font-weight: 700; }
.field-hint { margin-top: 8px; font-size: 1rem; color: var(--muted); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-pick { margin: 4px 0 20px; padding-left: 14px; border-left: 3px solid var(--royal); }
.oform .btn-block { margin-top: 4px; }
.form-done:focus { outline: none; }
.done-ico { width: 48px; height: 48px; fill: none; stroke: var(--royal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.form-done h3 { font-size: 1.625rem; margin: 14px 0 10px; }
.form-done p { margin-bottom: 20px; }
/* the navigation kit's notes inside the white form card keep dark text */
.form-card .nk-consent, .form-card .nk-draft { color: var(--ink); }
.form-card .nk-no { background: rgba(19, 41, 75, .08); color: var(--ink); }

/* ---------- footer: the deep navy band ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark); padding: 64px 0; }
@media (min-width: 1024px) { .site-footer { padding: 80px 0; } }
.site-footer :focus-visible { outline-color: var(--gold); }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.foot-name { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: var(--head-track); margin-bottom: 8px; }
.site-footer p { color: var(--on-dark-muted); }
.site-footer .foot-name { color: var(--on-dark); }
.foot-title { font-family: var(--font-head); font-size: 1rem; font-weight: 800; letter-spacing: var(--label-track); text-transform: uppercase; margin-bottom: 8px; }
.site-footer .foot-title { color: var(--gold); }
.foot-links { display: grid; gap: 2px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); }
.foot-base { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 1rem; }
/* the storage notice (navigation kit) sits in the footer: its yes button turns white on the dark band */
.site-footer .nk-consent { margin-top: 32px; color: var(--on-dark); }
.site-footer .nk-consent p { color: var(--on-dark); }
.site-footer .nk-yes { background: var(--white); color: var(--ink); }

/* pause / play motion (WCAG 2.2.2): in the footer on phones and tablets, fixed bottom left on wide screens */
.motion-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: var(--on-dark); font-family: var(--font-body); font-size: 1rem; font-weight: 700; cursor: pointer; }
.motion-toggle[hidden] { display: none; }
.mt-ico { width: 14px; height: 14px; position: relative; flex: none; }
.mt-ico::before, .mt-ico::after { content: ""; position: absolute; top: 1px; width: 4px; height: 12px; border-radius: 1px; background: var(--gold); }
.mt-ico::before { left: 2px; } .mt-ico::after { right: 2px; }
.motion-toggle.is-paused .mt-ico::before { left: 3px; width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--gold); top: 0; }
.motion-toggle.is-paused .mt-ico::after { display: none; }
@media (min-width: 1280px) {
  .motion-toggle { position: fixed; left: 14px; bottom: 16px; z-index: 95; width: 44px; padding: 0; justify-content: center; background: var(--navy-deep); border-color: rgba(255, 255, 255, .3); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55); }
  .motion-toggle .mt-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .motion-toggle:hover, .motion-toggle:focus-visible { width: auto; padding: 0 16px 0 14px; }
  .motion-toggle:hover .mt-label, .motion-toggle:focus-visible .mt-label { position: static; width: auto; height: auto; clip: auto; }
}

/* ---------- navigation kit: this page's colours (the kit file itself is unchanged) ---------- */
.nk-progress i { background: var(--red); }
.nk-toast .nk-go { background: var(--white); color: var(--ink); }
@media (min-width: 1280px) { .nk-rail a[aria-current]::after { background: var(--red); } }

@media (prefers-reduced-motion: reduce) {
  .btn, .bars, .bars::before, .bars::after, .j-body, .j-trim, .j-line, .j-pipe, .j-num { transition: none; }
}
