/* Agility Athlete — athletic dark theme */
:root {
  --bg: #141618;
  --surface: #1c1f23;
  --card: #24282e;
  --text: #f2efe8;
  --muted: #9aa3ad;
  --accent: #c4954a;
  --accent-hover: #d4a85c;
  --steel: #7a8a9a;
  --hairline: #2e343c;
  --ok: #6b9e78;
  --font-heading: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --max: 1080px;
  --header-h: 4rem;
  --radius: 8px;
  --focus: 0 0 0 3px rgba(196, 149, 74, 0.45);
}

*, *::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.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--accent);
  color: #141618;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

.container-narrow {
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 22, 24, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logo-link img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}
.logo-link:hover { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--text);
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    padding: 0.75rem 1rem 1rem;
    gap: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--hairline);
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 3rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 22, 24, 0.55) 0%,
    rgba(20, 22, 24, 0.92) 70%,
    var(--bg) 100%
  );
}
.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  word-spacing: 0.16em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.4rem);
  text-transform: uppercase;
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #141618;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #141618;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */
.section { padding: 3rem 0; }
.section-tight { padding: 2rem 0; }
.section-muted { background: var(--surface); }

.section-intro {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}
.section-intro p { color: var(--muted); margin: 0.5rem 0 0; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
}

.guide-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.guide-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: inherit;
}
.guide-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.guide-card-body { padding: 1.15rem 1.25rem 1.35rem; flex: 1; }
.guide-card-body h3 { margin-bottom: 0.4rem; }
.guide-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.guide-card .card-cta {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Positioning strip */
.positioning {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 760px) {
  .positioning { grid-template-columns: 1fr; }
}
.positioning ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}
.positioning li { margin-bottom: 0.4rem; }
.positioning img {
  border-radius: 12px;
  border: 1px solid var(--hairline);
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* Article / guide layout */
.article-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--hairline);
}
.article-hero h1 { max-width: 22ch; }
.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}

.disclosure-banner {
  background: rgba(196, 149, 74, 0.1);
  border: 1px solid rgba(196, 149, 74, 0.35);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1.25rem 0 0;
}
.disclosure-banner a { font-weight: 600; }

.article-body {
  padding: 2rem 0 3rem;
}
.article-body > .container-narrow > * + * { margin-top: 1.25rem; }
.article-body p { color: #d5d8dc; }
.article-body ul, .article-body ol {
  color: #d5d8dc;
  padding-left: 1.25rem;
}
.article-body li { margin-bottom: 0.4rem; }
.article-body h2 { margin-top: 2.25rem; }
.article-body h3 { margin-top: 1.75rem; color: var(--text); }

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (max-width: 560px) {
  .criteria-grid { grid-template-columns: 1fr; }
}
.criterion {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.criterion h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  color: var(--accent);
}
.criterion p { margin: 0; font-size: 0.95rem; color: var(--muted); }

.verdict-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (max-width: 760px) {
  .verdict-grid { grid-template-columns: 1fr; }
}
.verdict {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1.15rem 1.2rem;
}
.verdict .label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}
.verdict h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.verdict p { margin: 0 0 0.85rem; font-size: 0.92rem; color: var(--muted); }
.verdict .price-note {
  font-size: 0.85rem;
  color: var(--steel);
  margin-bottom: 0.75rem;
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border: 1px solid var(--hairline);
  border-radius: 10px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 640px;
}
.compare-table th,
.compare-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.compare-table th {
  background: var(--surface);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  white-space: nowrap;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.compare-table .product-name { font-weight: 600; color: var(--text); }

.figure {
  margin: 1.75rem 0;
}
.figure img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  max-height: 420px;
  object-fit: cover;
}
.figure figcaption {
  font-size: 0.85rem;
  color: var(--steel);
  margin-top: 0.5rem;
}

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.65rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--accent);
  font-weight: 700;
}
.faq details[open] summary::before { content: "–"; }
.faq details p {
  margin: 0.65rem 0 0.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.related-guides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 560px) {
  .related-guides { grid-template-columns: 1fr; }
}
.related-guides a {
  display: block;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: var(--text);
}
.related-guides a:hover { border-color: var(--accent); }
.related-guides span {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 2.5rem 0 2rem;
  background: #101214;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
.footer-brand a { color: var(--text); text-decoration: none; }
.site-footer p { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.5rem; }
.site-footer h4 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.65rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-block;
  padding: 0.2rem 0;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.85rem;
  color: var(--steel);
}
.footer-disclosure {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 52rem;
  margin-top: 0.75rem;
}

/* 404 */
.page-404 {
  text-align: center;
  padding: 5rem 0 4rem;
}
.page-404 h1 { max-width: none; margin-inline: auto; }

/* Utility */
.muted { color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
