/* Vantry Labs — site styles
   Vantry palette comes from the Vantry mark (navy, slate, mist, sunset amber, Tuscan greens).
   Product panels use each product's own brand colours and type. */

@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("/assets/fonts/BigShouldersDisplay.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* Vantry */
  --navy: #10192B;
  --slate: #33466A;
  --mist: #A9B3C4;
  --headline-muted: #7A8599;
  --amber: #F2A33A;
  --amber-ink: #8A5208;
  --sand: #F6D9A8;
  --sand-soft: #FBEBD0;
  --terracotta: #E07A3F;
  --olive: #8A9A5B;
  --field: #3E5B3A;
  --field-2: #46663F;
  --pine: #22382A;
  --paper: #F7F5F0;
  --white: #FFFFFF;
  --ink: #10192B;
  --text: #2A3346;
  --muted: #5B6578;
  --line: #E6E2D9;

  /* Hashmark */
  --hm-paper: #F3F0E8;
  --hm-ink: #141414;
  --hm-yellow: #FFE14D;
  --hm-red: #E5341C;
  --hm-blue: #2149D6;

  /* Chainmover */
  --cm-night: #17191B;
  --cm-night-2: #222528;
  --cm-cream: #E9E6DF;
  --cm-orange: #FF6A13;

  --shadow: 0 1px 2px rgba(16, 25, 43, .06), 0 18px 40px -18px rgba(16, 25, 43, .28);
  --shadow-lg: 0 2px 4px rgba(16, 25, 43, .06), 0 30px 60px -24px rgba(16, 25, 43, .35);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
/* scroll-padding keeps anchor targets and focused fields clear of the sticky header (WCAG 2.4.11) */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size-adjust: from-font; /* fallback font matches Barlow's x-height, so the swap doesn't shift text */
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.1; letter-spacing: -0.015em; margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.hidden { display: none !important; }
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important; clip-path: inset(50%) !important; overflow: hidden !important;
  width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important; white-space: nowrap !important;
}

/* ---------- Entrances ----------
   Nothing waits on JavaScript to become visible. Above the fold, .enter and the hero collage
   run a CSS entrance on load. Below the fold, site.js adds .reveal-ready to <html> only after
   marking what is already on screen, so a blocked or failed script leaves every section showing. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; translate: 0 18px; } }
  .enter { animation: rise .8s var(--ease-out) backwards; animation-delay: var(--d, 0s); }
  .reveal-ready .reveal { transition: opacity .8s var(--ease-out), translate .8s var(--ease-out); transition-delay: var(--d, 0s); }
  .reveal-ready .reveal:not(.in) { opacity: 0; translate: 0 18px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 "Barlow", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { transition: transform .2s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--slate); }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: #F7B457; }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-line:hover { border-color: var(--mist); }

/* Pill CTA with the arrow in a circle that slides through on hover */
.btn-pill {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none;
  background: var(--navy); color: var(--white); border-radius: 999px; padding: 7px 7px 7px 24px;
  font: 600 1.02rem/1 "Barlow", sans-serif; transition: background-color .2s ease, transform .2s var(--ease-out);
}
.btn-pill:hover { background: var(--slate); transform: translateY(-1px); }
.btn-pill .circle { width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: var(--navy); display: grid; place-items: center; overflow: hidden; }
.btn-pill .track { display: flex; gap: 22px; transform: translateX(-31px); transition: transform .35s var(--ease-out); }
.btn-pill:hover .track { transform: translateX(0); }
.btn-pill svg { flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
/* Border fades in over the first 8px of scroll. Decorative, so browsers without
   scroll-driven animations just keep the borderless header. */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  @keyframes header-edge { to { border-bottom-color: var(--line); } }
  .site-header {
    animation: header-edge linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 8px;
  }
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.nav > * { flex-shrink: 0; white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.brand-name { font-weight: 700; font-size: 1.2rem; letter-spacing: .005em; }
.brand-name span { font-weight: 500; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .98rem; transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--amber-ink); }
.nav-links .nav-cta { color: var(--navy); background: var(--sand-soft); padding: 11px 18px; border-radius: 999px; font-weight: 600; transition: background-color .15s ease; }
.nav-links .nav-cta:hover { background: var(--sand); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.nav-toggle svg { margin: auto; }
/* The link list is a native popover (popover="auto"): the menu button opens it with
   popovertarget, and the browser handles Escape, outside clicks and focus. On wide
   screens the same list is shown inline, so the popover is never opened there. */
.nav-links[popover] { position: static; inset: auto; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .nav-links[popover] {
    position: fixed; inset: 72px var(--gutter) auto; max-height: calc(100dvh - 96px); overflow: auto;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
    background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  }
  .nav-links:not(:is(:popover-open, .\:popover-open)) { display: none; }
  .nav-links[popover]::backdrop { background: transparent; }
  .nav-links a { display: block; color: var(--ink); padding: 13px 14px; border-radius: 10px; }
  .nav-links a:hover { background: var(--paper); }
  .nav-links .nav-cta { text-align: center; margin-top: 6px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 84px) 0 0; text-align: center; overflow: hidden; }
.hero h1 {
  font-size: clamp(2.9rem, 8.4vw, 7.2rem); font-weight: 700; letter-spacing: -0.04em; line-height: .96;
  margin: 0 auto 24px; max-width: 12.5em;
}
.hero h1 .muted { color: var(--headline-muted); display: block; }
.hero-cred { margin: -6px auto 18px; font-size: clamp(.98rem, 1.3vw, 1.1rem); color: var(--ink); }
.hero-cred a { font-weight: 700; color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.hero-cred a:hover { text-decoration-color: var(--navy); }
.hero-cred b { font: 700 1.25em/1 "Barlow Condensed", sans-serif; background: var(--amber); color: var(--navy); padding: 2px 6px 1px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.hero .lead { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 30em; margin: 0 auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; margin-top: 34px; }
.hero-actions .btn { min-height: 54px; padding-inline: 24px; font-size: 1.02rem; }

/* Collage: brand tiles + product cards, each layer drifts at its own speed on scroll */
.collage { position: relative; width: 100%; max-width: 1600px; margin: clamp(48px, 7vw, 80px) auto 0; height: clamp(380px, 40vw, 620px); }
.layer { position: absolute; --pscale: 1; }
.layer > * { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes pop-in { from { opacity: 0; translate: 0 40px; scale: .97; } }
  .layer > .pop { animation: pop-in 1s var(--ease-out) backwards; animation-delay: var(--d, 0s); }

  /* Parallax: each layer drifts up at its own speed (--depth) over the first 1200px of page
     scroll. Scroll-driven, so it runs off the main thread. Decorative: browsers without
     scroll-driven animations show the collage still. */
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes parallax { to { translate: 0 calc(-1200px * var(--depth, 0) * var(--pscale)); } }
    .layer {
      animation: parallax linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 1200px;
    }
  }
}

.field {
  position: relative; overflow: hidden; border-radius: 30px; aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, transparent 22%, rgba(255, 255, 255, .75) 22%, rgba(255, 255, 255, .75) calc(22% + 3px), transparent calc(22% + 3px)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 2px, transparent 2px 2.5%) 0 30% / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 2px, transparent 2px 2.5%) 0 70% / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .8) 0 3px, transparent 3px 12.5%),
    repeating-linear-gradient(90deg, var(--field) 0 12.5%, var(--field-2) 12.5% 25%);
  box-shadow: var(--shadow);
}
.field::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 0%, rgba(246, 217, 168, .28), transparent 55%), linear-gradient(180deg, transparent 50%, rgba(16, 25, 43, .25)); }
/* Yard numbers: two digits with a real gap between them, as painted on a field */
.field .yard { position: absolute; bottom: 12%; display: flex; gap: .35em; font: 700 clamp(1.2rem, 3vw, 2.6rem)/1 "Barlow Condensed", sans-serif; color: rgba(255, 255, 255, .85); z-index: 1; }
.field.round { border-radius: 50%; aspect-ratio: 1; }
.field.tall { aspect-ratio: 4 / 5; }
/* Down marker: the numbered box on a pole the chain crew holds on the sideline */
.marker { display: grid; justify-items: center; }
.marker-box { width: 100%; aspect-ratio: 1; display: grid; place-items: center; background: var(--amber); color: var(--navy); border-radius: 8px; font: 700 clamp(1.6rem, 3vw, 3rem)/1 "Barlow Condensed", sans-serif; box-shadow: var(--shadow); }
.marker-pole { width: 14%; aspect-ratio: 1 / 16; background: linear-gradient(90deg, var(--slate), var(--navy)); border-radius: 0 0 4px 4px; }

/* Hashmark wristband card (shared by hero + product panel) */
.band, .sheet { background: #fff; border: 3px solid var(--hm-ink); box-shadow: 9px 9px 0 var(--hm-ink); font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; text-align: left; color: var(--hm-ink); }
.band .top { background: var(--hm-ink); color: var(--hm-yellow); display: flex; justify-content: space-between; padding: 8px 12px; font-size: .9rem; letter-spacing: .06em; }
.band .row { display: flex; align-items: center; border-top: 2px solid var(--hm-ink); font-size: clamp(.86rem, 1.15vw, 1.1rem); height: clamp(32px, 2.8vw, 40px); white-space: nowrap; overflow: hidden; }
.band .row:first-of-type { border-top: 0; }
.band .n { background: var(--hm-blue); color: #fff; width: clamp(32px, 2.9vw, 42px); height: 100%; display: grid; place-items: center; flex: none; }
.band .row span:last-child { padding-left: 12px; }
.band .row.on { background: var(--hm-yellow); }
.sheet .top { background: var(--hm-red); color: #fff; font: 900 1.2rem/1 "Big Shoulders Display", sans-serif; padding: 10px 12px; letter-spacing: .02em; }
.sheet .cols { display: grid; grid-template-columns: 1fr 1fr; font-size: .96rem; }
.sheet .cols div { border-top: 2px solid var(--hm-ink); padding: 7px 10px; white-space: nowrap; }
.sheet .cols div:nth-child(odd) { border-right: 2px solid var(--hm-ink); }
.sheet .cols .h { background: var(--hm-ink); color: var(--hm-paper); letter-spacing: .06em; }
.sheet b { color: var(--hm-blue); }

/* Chainmover analytics card */
.cm-card { background: var(--cm-night); color: var(--cm-cream); border-radius: 22px; padding: clamp(14px, 1.6vw, 22px); text-align: left; box-shadow: var(--shadow-lg); }
.cm-card .head { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: clamp(.82rem, 1vw, .98rem); }
.cm-card .head img { width: 26px; height: 26px; border-radius: 7px; }
.cm-card .head small { margin-left: auto; color: rgba(233, 230, 223, .55); font-weight: 500; }
.cm-score { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: clamp(10px, 1.2vw, 16px) 0 0; }
.cm-score b { font: 700 clamp(1.8rem, 3.2vw, 3rem)/1 "Barlow Condensed", sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.cm-score span { font-size: clamp(.74rem, .9vw, .88rem); color: rgba(233, 230, 223, .72); }
.cm-weeks { list-style: none; margin: clamp(10px, 1.2vw, 16px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 10), 1fr); gap: 4px; align-items: end; height: clamp(54px, 6vw, 84px); }
.cm-weeks li { display: grid; grid-template-rows: 1fr auto; gap: 4px; height: 100%; }
.cm-weeks i { align-self: end; height: var(--h); border-radius: 3px 3px 1px 1px; background: var(--cm-orange); }
.cm-weeks li > span:not(.visually-hidden) { font-size: .62rem; text-align: center; color: rgba(233, 230, 223, .5); font-variant-numeric: tabular-nums; }
.cm-card .foot { margin-top: clamp(12px, 1.4vw, 18px); display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: clamp(.72rem, .85vw, .82rem); }
.cm-card .chip { background: rgba(255, 106, 19, .15); color: #FF9A5E; border: 1px solid rgba(255, 106, 19, .35); padding: 4px 10px; border-radius: 99px; font-weight: 600; white-space: nowrap; }

/* Phone running Hashmark game day */
.phone { aspect-ratio: 9 / 18.5; background: #0E0E0E; border-radius: clamp(24px, 2.6vw, 40px); padding: clamp(6px, .6vw, 9px); box-shadow: var(--shadow-lg); }
.phone .screen { height: 100%; border-radius: clamp(18px, 2.1vw, 32px); background: var(--hm-paper); overflow: hidden; display: flex; flex-direction: column; text-align: left; font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; color: var(--hm-ink); }
.phone .bar-top { background: var(--hm-ink); color: var(--hm-yellow); padding: 14% 9% 6%; font-size: clamp(.7rem, .95vw, .95rem); letter-spacing: .06em; display: flex; justify-content: space-between; }
.phone .sit { padding: 8% 9% 4%; font: 900 clamp(1rem, 1.7vw, 1.7rem)/1 "Big Shoulders Display", sans-serif; }
.phone .sit small { display: block; font: 700 clamp(.6rem, .75vw, .78rem)/1.3 "Barlow Condensed", sans-serif; color: #6B6862; letter-spacing: .05em; margin-top: 4px; }
.phone .log { margin: 3% 7%; border: 2px solid var(--hm-ink); background: #fff; padding: 6% 7%; font-size: clamp(.62rem, .8vw, .82rem); display: flex; justify-content: space-between; gap: 6px; }
.phone .log b { color: var(--hm-blue); }
.phone .act { margin: auto 7% 10%; background: var(--hm-yellow); border: 2px solid var(--hm-ink); box-shadow: 3px 3px 0 var(--hm-ink); text-align: center; padding: 7% 0; font-size: clamp(.72rem, 1vw, 1rem); letter-spacing: .06em; }

/* Desktop positions (percent of the collage box) */
.l-field  { left: -3%;  top: 10%; width: 36%; }
.l-marker { left: 36%;  top: 4%;  width: 5%; }
.l-cm     { left: 24%;  top: 46%; width: 27%; }
.l-round  { left: 55%;  top: 8%;  width: 16%; }
.l-phone  { left: 70%;  top: 0%;  width: 13.5%; }
.l-tall   { left: 84%;  top: 18%; width: 20%; }

@media (max-width: 760px) {
  .collage { height: 112vw; margin-top: 40px; }
  .layer { --pscale: .5; }
  .l-field  { left: -12%; top: 4%;  width: 76%; }
  .l-marker { left: 52%;  top: 0%;  width: 10%; }
  .l-phone  { left: 66%;  top: 10%; width: 31%; }
  .l-cm     { left: 6%;   top: 50%; width: 72%; }
  .cm-card .foot span:first-child { display: none; }
  .l-round, .l-tall { display: none; }
}

/* ---------- Sections ---------- */
section { padding: clamp(80px, 10vw, 128px) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 700; }
.section-head h2 .muted { color: var(--headline-muted); }
.section-head p { font-size: 1.12rem; color: var(--muted); }

/* ---------- Product panels ---------- */
.product { position: relative; border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; padding: clamp(28px, 5vw, 64px); }
.product + .product { margin-top: 40px; }
.product-status { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pill { font-size: .78rem; font-weight: 600; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; }
.product-desc { font-size: 1.07rem; margin: 18px 0 22px; max-width: 34em; }
.feature-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list svg { flex: none; margin-top: 4px; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }

.hm { background: var(--hm-paper); color: var(--hm-ink); border: 2px solid var(--hm-ink); }
.hm::before, .hm::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; opacity: .14; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 18px, var(--hm-ink) 18px 20px); }
.hm::before { top: 0; } .hm::after { bottom: 0; }
.hm-lockup { margin: 0; line-height: 0; }
.hm-lockup img { height: 56px; width: auto; max-width: 100%; }
.hm-headline { font: 900 clamp(2.4rem, 5vw, 3.6rem)/.96 "Big Shoulders Display", sans-serif; text-transform: uppercase; color: var(--hm-ink); margin-top: 26px; }
.hm-headline mark { background: var(--hm-yellow); color: inherit; padding: .04em .12em 0; display: inline-block; margin-top: .08em; }
.hm .product-desc { color: #3B3A36; }
.hm .pill { background: var(--hm-ink); color: var(--hm-yellow); }
.hm .pill.alt { background: transparent; color: var(--hm-ink); border: 1.5px solid var(--hm-ink); }
.hm-price { margin: 0 0 30px; padding-top: 16px; border-top: 2px solid var(--hm-ink); color: #3B3A36; max-width: 34em; }
.hm-price b { color: var(--hm-ink); font: 700 1.25rem/1.2 "Barlow Condensed", sans-serif; letter-spacing: .02em; text-transform: uppercase; }
.hm-btn {
  display: inline-flex; align-items: stretch; text-decoration: none; color: var(--hm-ink);
  background: var(--hm-yellow); border: 2px solid var(--hm-ink); box-shadow: 5px 5px 0 var(--hm-ink);
  font: 700 1.05rem/1 "Barlow Condensed", sans-serif; letter-spacing: .05em; text-transform: uppercase;
  transition: transform .12s ease, box-shadow .12s ease;
}
.hm-btn span { padding: 14px 18px; }
.hm-btn span + span { border-left: 2px dashed var(--hm-ink); padding: 14px 14px; }
.hm-btn:hover { transform: translate(-1px, -1px); box-shadow: 7px 7px 0 var(--hm-ink); }
.hm-btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--hm-ink); }
.hm-visual { display: grid; justify-items: end; padding: 10px 14px 18px 0; }
.hm-visual .band, .hm-visual .sheet { width: min(100%, 330px); }
.hm-visual .sheet { margin-top: 26px; margin-right: 60px; position: relative; }
@media (max-width: 900px) { .hm-visual { justify-items: start; } .hm-visual .sheet { margin-right: 0; margin-left: 28px; } }
@media (max-width: 420px) { .hm-visual .sheet { margin-left: 0; } }

.cm { color: var(--cm-cream); background: radial-gradient(55% 80% at 85% 50%, rgba(255, 106, 19, .16), transparent 60%), var(--cm-night); }
.cm-wordmark { height: clamp(30px, 4.4vw, 42px); width: auto; }
.cm-slogan { font: 700 clamp(1.9rem, 4vw, 2.8rem)/1.05 "Barlow", sans-serif; letter-spacing: -0.02em; color: #fff; margin-top: 26px; }
.cm-slogan em { font-style: normal; color: var(--cm-orange); }
.cm .product-desc { color: rgba(233, 230, 223, .78); }
.cm .pill { background: rgba(255, 106, 19, .14); color: #FF9A5E; border: 1px solid rgba(255, 106, 19, .35); }
.cm .feature-list { color: rgba(233, 230, 223, .9); }
.cm .feature-list svg { color: var(--cm-orange); }
.cm-btn { background: var(--cm-orange); color: #17191B; }
.cm-btn:hover { background: #FF8236; }
.cm-record { margin: 0; align-self: center; background: var(--cm-night-2); border-radius: 20px; padding: clamp(20px, 2.6vw, 32px); }
.cm-record figcaption { font: 700 .82rem/1.2 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #FF9A5E; }
.cm-record .cm-score b { font-size: clamp(3rem, 6vw, 4.6rem); }
.cm-record .cm-score span { font-size: 1rem; }
.cm-record .cm-weeks { height: clamp(110px, 12vw, 150px); gap: 6px; margin-top: 22px; }
.cm-record .cm-weeks li > span:not(.visually-hidden) { font-size: .72rem; }
.cm-record-foot { margin: 20px 0 0; font-size: .92rem; color: rgba(233, 230, 223, .72); }
.cm-record-foot a { color: #fff; font-weight: 600; white-space: nowrap; }

/* ---------- Game week ---------- */
.week-section { background: var(--paper); }
.week {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr);
  border: 2px solid var(--navy); border-radius: 16px; background: var(--white); overflow: hidden;
}
.week li { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 30px 16px 18px; border-left: 1px solid var(--line); }
.week li:first-child { border-left: 0; }
/* Hash ticks along the top edge of each day, like the marks on a field */
.week li::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; background: repeating-linear-gradient(90deg, var(--mist) 0 2px, transparent 2px 14px); opacity: .7; }
.week .day { font: 700 1.3rem/1.05 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .02em; color: var(--amber-ink); }
.week .gd .day { color: var(--navy); background: var(--amber); justify-self: start; padding: 4px 7px 3px; border-radius: 6px; }
.week b { color: var(--ink); font-size: 1.02rem; line-height: 1.25; }
.week .what { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.week .app { justify-self: start; margin-top: 6px; font: 700 .78rem/1 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: var(--hm-paper); color: var(--hm-ink); }
.week .sun { background: var(--cm-night); border-left-color: var(--cm-night); }
.week .sun .day { color: var(--cm-orange); }
.week .sun b { color: #fff; }
.week .sun .what { color: rgba(233, 230, 223, .78); }
.week .sun .app { background: rgba(255, 106, 19, .16); color: #FF9A5E; }
/* One bracket per product over the days it owns (desktop); on narrow screens each row keeps its own tag */
.week-brackets { display: grid; grid-template-columns: 6fr 1fr; gap: 10px; margin: 0 2px 18px; font: 700 .9rem/1 "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.week-brackets span { position: relative; padding: 0 2px 8px; border-bottom: 2px solid currentColor; }
.week-brackets span::after { content: ""; position: absolute; inset: auto 0 -10px; height: 10px; border-inline: 2px solid currentColor; }
.week-brackets span + span { color: var(--cm-night); }
.week li:not(.sun) .app { display: none; }
.week-note { margin-top: 28px; color: var(--muted); max-width: 44em; }
@media (max-width: 980px) {
  .week-brackets { display: none; }
  .week li:not(.sun) .app { display: inline-block; }
  .week { grid-template-columns: 1fr; }
  .week li { grid-template-columns: 5.5rem 1fr auto; grid-template-rows: auto auto; column-gap: 16px; row-gap: 4px; padding: 18px 18px 18px 22px; border-left: 0; border-top: 1px solid var(--line); }
  .week li:first-child { border-top: 0; }
  .week li::before { inset: 0 auto 0 0; width: 6px; height: auto; background: repeating-linear-gradient(180deg, var(--mist) 0 2px, transparent 2px 10px); }
  .week .day { grid-row: 1 / 3; align-self: center; }
  .week b, .week .what { grid-column: 2; }
  .week .app { grid-column: 3; grid-row: 1 / 3; align-self: center; margin-top: 0; }
  .week .sun { border-top-color: var(--cm-night); }
}
@media (max-width: 480px) {
  .week li { grid-template-columns: 4.6rem 1fr; }
  .week .app { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 4px; }
}

/* ---------- Coach band ---------- */
.studio { background: var(--navy); color: rgba(255, 255, 255, .78); position: relative; overflow: hidden; }
.studio-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.studio h2 { color: var(--white); font-size: clamp(2.1rem, 4.4vw, 3.2rem); letter-spacing: -0.03em; font-weight: 700; margin: 0 0 20px; }
.studio p { font-size: 1.12rem; max-width: 36em; }
.studio p + p { margin-top: 14px; }
.coach-card { margin: 0; background: var(--white); color: var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .55); }
.coach-card-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--amber); color: var(--navy); font: 700 1rem/1 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.coach-card-top img { width: 28px; height: 28px; }
.coach-card > div:not(.coach-card-top) { display: grid; grid-template-columns: 7.5rem 1fr; gap: 14px; padding: 15px 20px; border-top: 1px solid var(--line); }
.coach-card > div:nth-child(2) { border-top: 0; }
.coach-card dt { font: 700 .9rem/1.4 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.coach-card dd { margin: 0; font-weight: 600; line-height: 1.4; }
.coach-card dd.stat { font: 700 1.9rem/1 "Barlow Condensed", sans-serif; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.coach-card dt { align-self: center; }
.coach-card-top span { letter-spacing: .06em; }
@media (max-width: 820px) { .studio-grid { grid-template-columns: 1fr; } .coach-card { max-width: 30rem; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-info h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; font-weight: 700; margin: 0 0 16px; }
.contact-info p { color: var(--muted); font-size: 1.08rem; }
.contact-lines { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.contact-lines li { display: flex; gap: 14px; align-items: center; }
.contact-lines .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--slate); flex: none; }
.contact-lines a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines small { display: block; color: var(--muted); font-size: .88rem; }
.form-card { background: var(--white); border-radius: 16px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .92rem; color: var(--ink); display: grid; gap: 7px; }
input, textarea, select {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%; min-height: 48px; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
input:hover, textarea:hover, select:hover { border-color: var(--mist); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--slate); background: var(--white); box-shadow: 0 0 0 4px rgba(51, 70, 106, .12); }
textarea { min-height: 150px; resize: vertical; }
/* Errors show only after the visitor has touched a field (or tried to submit), never on load.
   :is() keeps the rule alive in browsers that don't know :user-invalid. */
:is(input, textarea, select):is(:user-invalid, .user-invalid-fallback) { border-color: #B3261E; background: #FDF0EE; }
.error-msg { display: none; color: #8F2A1A; font-size: .88rem; font-weight: 600; }
.form-field { display: grid; gap: 7px; align-content: start; }
.form-field:has(:is(:user-invalid, .user-invalid-fallback)) > .error-msg { display: block; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-foot small { color: var(--muted); font-size: .86rem; }
.form-foot small a { color: var(--ink); }
.form-status { padding: 12px 14px; border-radius: 12px; background: #FDF0EE; color: #8F2A1A; font-weight: 600; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .64); padding: 64px 0 36px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: var(--white); }
.site-footer .brand-name span { color: rgba(255, 255, 255, .6); }
.footer-grid p { margin-top: 14px; max-width: 26em; }
.footer-col h2 { line-height: 1.6; color: var(--white); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 6px 0 14px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { text-decoration: none; color: rgba(255, 255, 255, .72); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .88rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Document pages (support, privacy, terms) ---------- */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 60px); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; letter-spacing: -0.035em; margin: 0 0 12px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; }
.doc { max-width: 780px; padding-top: 56px; padding-bottom: 104px; }
.doc h2 { font-size: 1.4rem; margin: 44px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--muted); max-width: 60ch; }
.doc p + p { margin-top: 12px; }
.doc a { color: var(--ink); font-weight: 600; }
.help-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 52px; }
.help-card { border-radius: 20px; padding: 24px; text-decoration: none; display: grid; gap: 10px; transition: transform .2s var(--ease-out), box-shadow .2s ease; }
.help-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.help-card.hm-card { background: var(--hm-paper); border: 2px solid var(--hm-ink); color: var(--hm-ink); }
.help-card.cm-card-link { background: var(--cm-night); color: var(--cm-cream); }
.help-card .logo { height: 34px; display: flex; align-items: center; gap: 10px; }
.help-card .logo img { height: 100%; width: auto; }
.help-card .cm-logo { height: 24px; }
.help-card p { color: inherit; opacity: .8; font-size: .98rem; }
.doc .help-card { font-weight: 400; }
@media (max-width: 560px) { .help-cards { grid-template-columns: 1fr; } }
details { border: 1px solid var(--line); border-radius: 16px; background: var(--white); margin-bottom: 10px; transition: border-color .15s ease; }
details:hover { border-color: var(--mist); }
/* Marker sits right before the question so it's read with it; one chevron rotates for both states */
summary { font-weight: 600; color: var(--ink); cursor: pointer; padding: 18px 20px; list-style: none; display: flex; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::before {
  content: ""; inline-size: 1em; block-size: 1em; flex-shrink: 0; background-color: var(--slate);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}
summary:dir(rtl)::before { rotate: 90deg; }
details[open] > summary::before { rotate: 0deg; }
details p { padding: 0 20px 18px 48px; margin: 0; }
/* Slide open/closed. Without interpolate-size (Firefox, Safari) items just open instantly. */
details::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
details:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  summary::before { transition: rotate .2s; }
  details::details-content {
    transition: block-size, content-visibility, display; transition-duration: .3s; transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

/* ---------- Small status pages ---------- */
.status-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; text-align: center; background: var(--paper); padding: 40px var(--gutter); }
.status-page img { width: 88px; margin: 0 auto 28px; }
.status-page h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 12px; }
.status-page p { color: var(--muted); margin-bottom: 30px; font-size: 1.1rem; }

/* Reduced motion: drop the movement (lifts, slides, nudges) but keep color and border fades.
   Reveal, parallax, smooth scroll and the FAQ slide are already opt-in above. */
@media (prefers-reduced-motion: reduce) {
  .btn, .btn-pill, .hm-btn, .help-card { transition-property: background-color, border-color, box-shadow; }
  .btn:hover, .btn-pill:hover, .hm-btn:hover, .hm-btn:active, .help-card:hover, .btn:hover .arrow { transform: none; }
  .btn-pill .track, .btn .arrow { transition: none; }
}
