/* Firmeza — Joelheira lander
   THESIS: Product-first athletic support — not medical advertorial, not shop grid.
   OWN-WORLD: Stone daylight, ink navy, citrus CTAs; Barlow Condensed + Public Sans.
   STORY: Compression/gel/fit → trust → Shopify checkout.
   FIRST VIEWPORT: Disclosure → Firmeza → headline → line → price+CTA on product plane.
   FORM: Track-side chalk athletic retail.
*/

:root {
  --stone: #e4e8e4;
  --ink: #0a1c28;
  --ink-soft: #163041;
  --citrus: #c6f04d;
  --citrus-deep: #a8d12e;
  --chalk: #f4f6f3;
  --mist: #44524c;
  --line: #c0c9c1;
  /* One content measure for header + sections — matches full-bleed hero feel */
  --max: 1600px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bar-pad: 0px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 10% -10%, #dfe6df 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 20%, #d5ddd6 0%, transparent 45%),
    var(--stone);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar-pad);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.45em;
}

p {
  margin: 0 0 1em;
  max-width: 68ch;
}

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

/* Ad disclosure */
.ad-disclosure {
  background: var(--ink);
  color: var(--chalk);
  text-align: center;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 1rem;
  font-weight: 500;
}

.ad-disclosure a {
  color: var(--citrus);
  text-underline-offset: 2px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--gutter);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.logo span {
  color: var(--mist);
  font-weight: 600;
  font-size: 0.85em;
}

.nav {
  display: flex;
  gap: 1.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  color: var(--mist);
  transition: color 0.2s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(90vh, 780px);
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  background: var(--ink);
  color: var(--chalk);
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Left edge matches header / section content column */
  padding: clamp(2rem, 5vw, 4.5rem) var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  position: relative;
  z-index: 2;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 1.15rem;
  color: var(--citrus);
}

.hero h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
  font-weight: 600;
  max-width: 16ch;
  margin-bottom: 0.75rem;
  color: var(--chalk);
}

.hero-lead {
  font-size: 1.0625rem;
  color: rgba(244, 246, 243, 0.8);
  margin-bottom: 1.75rem;
  max-width: 36ch;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1.15rem;
  margin-bottom: 1.25rem;
}

.price {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--chalk);
}

.price-note {
  font-size: 0.875rem;
  color: rgba(244, 246, 243, 0.68);
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 1rem 1.7rem;
  min-height: 48px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-primary {
  background: var(--citrus);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--citrus-deep);
  transform: translateY(-1px);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--chalk);
  outline-offset: 3px;
}

.affiliate-note {
  font-size: 0.75rem;
  color: rgba(244, 246, 243, 0.62);
  max-width: 36ch;
  margin: 0;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  background: #101c24;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroIn 1.05s var(--ease) both;
}

@keyframes heroIn {
  from {
    opacity: 0.4;
    transform: scale(1.05);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, transparent 32%);
  pointer-events: none;
}

/* Sections */
.section {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.25rem, 7vw, 5.5rem) var(--gutter);
  box-sizing: border-box;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
}

.section-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  margin: 0 0 0.55rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--mist);
  margin: 0 0 2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Features */
.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 1rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-list strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.feature-list p {
  margin: 0;
  color: var(--mist);
}

/* Gallery — full width of section, three equal tiles */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.gallery figure {
  margin: 0;
  background: var(--chalk);
  overflow: hidden;
  aspect-ratio: 1;
  min-width: 0;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery figure:hover img {
  transform: scale(1.03);
}

/* Disclaimer */
.disclaimer {
  background: color-mix(in srgb, var(--chalk) 88%, var(--stone));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem var(--gutter);
}

.disclaimer .inner {
  max-width: var(--max);
  margin: 0 auto;
  font-size: 0.875rem;
  color: var(--mist);
}

.disclaimer .inner p {
  margin: 0;
  max-width: none;
}

.disclaimer strong {
  color: var(--ink);
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}

.faq summary {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--mist);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--mist);
}

.faq a {
  color: var(--ink);
  text-underline-offset: 2px;
}

/* CTA band */
.cta-band {
  background: var(--citrus);
  color: var(--ink);
  text-align: center;
  padding: clamp(2.75rem, 6vw, 4.25rem) var(--gutter);
}

.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.cta-band > p {
  margin: 0 auto 1.5rem;
  max-width: 42ch;
}

.cta-band .btn-primary {
  background: var(--ink);
  color: var(--chalk);
}

.cta-band .btn-primary:hover {
  background: var(--ink-soft);
}

.cta-band .affiliate-note {
  color: rgba(10, 28, 40, 0.62);
  margin: 0.85rem auto 0;
  max-width: 42ch;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(244, 246, 243, 0.74);
  padding: 3rem var(--gutter) 2rem;
  font-size: 0.875rem;
}

.footer-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer .logo {
  color: var(--citrus);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: var(--chalk);
  text-underline-offset: 2px;
}

.site-footer h3 {
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--chalk);
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer .footer-inner > div > p {
  max-width: 36ch;
}

.legal-entity {
  width: 100%;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 246, 243, 0.12);
  max-width: var(--max);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.legal-entity p {
  margin: 0 0 0.35rem;
  max-width: none;
}

/* Legal pages */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 4rem;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.legal-page h2 {
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-top: 2rem;
}

.legal-page a {
  color: var(--ink);
  text-underline-offset: 2px;
}

/* Cookie CMP */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--chalk);
  border-top: 1px solid var(--line);
  padding: 1.15rem var(--gutter);
  box-shadow: 0 -10px 36px rgba(10, 28, 40, 0.14);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--mist);
  max-width: none;
}

.cookie-inner a {
  color: var(--ink);
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn-cookie {
  min-width: 120px;
  min-height: 44px;
  padding: 0.75rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity 0.2s var(--ease);
}

.btn-cookie.accept {
  background: var(--ink);
  color: var(--chalk);
}

.btn-cookie:hover {
  opacity: 0.88;
}

/* Mobile buy bar */
.mobile-buy {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--ink);
  padding: 0.75rem 1rem;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(244, 246, 243, 0.1);
  box-shadow: 0 -8px 28px rgba(10, 28, 40, 0.2);
}

.mobile-buy .price {
  font-size: 1.5rem;
  color: var(--chalk);
}

.mobile-buy .btn {
  flex: 1;
  max-width: 220px;
  padding: 0.85rem 1.2rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 340px;
    order: -1;
  }

  .hero-visual::after {
    background: linear-gradient(180deg, transparent 50%, var(--ink) 100%);
  }

  .hero-brand {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .feature-list li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery figure:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 1.15;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .cookie-inner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    width: 100%;
  }

  .btn-cookie {
    flex: 1;
  }

  .nav {
    display: none;
  }

  .mobile-buy.is-on {
    display: flex;
  }

  body.has-cookie-banner .mobile-buy {
    display: none !important;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
