/* Kikr Labs / Climb Hub site — shared stylesheet.
   Palette sampled from the Kikr Labs logo: gold + pink on black. */

:root {
  --bg: #0B0B0B;
  --bg-elev: #141414;
  --bg-card: #16140F;
  --border: #2A2620;
  --gold: #E0B14C;
  --gold-bright: #ECC45B;
  --gold-dark: #BB892D;
  --pink: #D99A95;
  --pink-bright: #E8B5B0;
  --text: #F4F2EE;
  --text-muted: #9A9690;
  --maxw: 920px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--gold); text-decoration: none; transition: color .15s ease; }
a:hover, a:focus { color: var(--gold-bright); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Skip-link — visually hidden until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--bg);
  padding: 10px 16px;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus, .skip-link:focus-visible {
  left: 0;
  top: 0;
  text-decoration: none;
  outline: 2px solid var(--gold-bright);
}

/* Top nav */
.site-header {
  padding: 24px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; letter-spacing: 0.2px; color: var(--text);
  font-size: 17px;
  min-height: 44px;
  flex-wrap: wrap;
}
.brand > span { min-width: 0; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand .by { color: var(--text-muted); font-weight: 400; font-size: 14px; }
@media (max-width: 480px) {
  .brand .by { display: none; }
}
.site-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--text-muted);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--gold); }

/* Hero */
.hero { padding: clamp(32px, 8vw, 56px) 0 clamp(20px, 5vw, 32px); }
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05; margin: 0 0 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero h1 .accent { color: var(--gold); }
.hero h1 .accent-pink { color: var(--pink); }
.hero .lede {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--text-muted);
  max-width: 60ch; margin: 0 0 28px;
}

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text); font-size: 14px;
  min-height: 56px;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
}
.store:hover, .store:focus-visible {
  border-color: var(--gold);
  background: var(--bg-card);
  text-decoration: none;
  transform: translateY(-1px);
}
.store .label { display: flex; flex-direction: column; line-height: 1.2; }
.store .label .top { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.store .label .bot { font-size: 16px; font-weight: 600; color: var(--text); }
.store svg { flex-shrink: 0; }

/* Eyebrow / section heads */
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: clamp(32px, 8vw, 56px) 0 14px;
  font-weight: 600;
}
h2.section-title {
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

/* Feature grid */
.features {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin: 0 0 24px;
}
@media (min-width: 720px) {
  .features { grid-template-columns: 1fr 1fr; }
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.feature h3 { margin: 0 0 8px; font-size: 18px; color: var(--gold); }
.feature p { margin: 0; color: var(--text); }
.feature p + p { margin-top: 8px; color: var(--text-muted); font-size: 14px; }

/* How-to sections */
.howto-section { margin: 48px 0; scroll-margin-top: 80px; }
.howto-section > h2 {
  font-size: 26px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin: 0 0 20px;
  color: var(--text);
}
.howto-section > h2 .pink { color: var(--pink); }
.howto-item {
  margin: 0 0 28px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  scroll-margin-top: 80px;
}
.howto-item h3 {
  margin: 0 0 8px; font-size: 19px;
  color: var(--gold);
}
.howto-item .summary {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 15px;
}
.howto-item ol { margin: 0; padding-left: 22px; }
.howto-item ol li { margin: 0 0 6px; color: var(--text); }
.howto-item ol li::marker { color: var(--pink); font-weight: 600; }

/* Table of contents on how-to page */
.toc {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 32px 0;
}
.toc h2 { margin: 0 0 12px; font-size: 16px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .toc ul { columns: 1; } }
.toc ul li { margin: 0 0 8px; break-inside: avoid; }
.toc ul li a {
  color: var(--text);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
}
.toc ul li a:hover { color: var(--gold); }

/* QR / download grid */
.qr-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin: 32px 0;
}
@media (min-width: 720px) { .qr-grid { grid-template-columns: 1fr 1fr; } }
.qr-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.qr-card h3 { margin: 0 0 14px; color: var(--gold); }
.qr-card img.qr {
  width: 220px; max-width: 100%;
  border-radius: 10px;
  background: var(--text);
  padding: 12px;
  margin: 0 auto 16px;
}
.qr-card .store-link {
  display: inline-block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  min-height: 44px;
  padding: 10px 4px;
}

/* Breadcrumbs */
.crumbs { color: var(--text-muted); font-size: 14px; margin: 0 0 20px; }
.crumbs a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
}
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { margin: 0 6px; color: var(--border); }

/* Footer */
.site-footer {
  margin-top: 80px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between; align-items: center;
}
.site-footer a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
}
.site-footer a:hover { color: var(--gold); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.footer-brand .by { color: var(--pink); }

/* Small accent rule for "Kikr Labs" mention in body copy */
.kikr-mark {
  color: var(--gold);
  font-weight: 600;
}
.kikr-mark .r { color: var(--pink); }

/* Page-content utility classes (replaces previous inline style= attributes) */
.page-h1 {
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.page-lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 65ch;
  margin: 0 0 24px;
  line-height: 1.6;
}
.page-lede.tight { margin: 0 0 12px; }
.note-muted {
  margin: 32px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}
.note-muted.tight { margin: 0; font-size: 14px; }
.howto-quick {
  font-size: 17px;
  line-height: 1.8;
  padding-left: 22px;
}
.feature.wide { max-width: 720px; }
.feature.wide > h3 { font-size: 22px; }
.help-trailer { margin: 48px 0; color: var(--text-muted); font-size: 15px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
