/* ScoutCache — shared site styles
   Palette: topo-map charcoal + trail-marker red on warm field-paper.
   No official Scouting America artwork or trademarks. */

:root {
  --charcoal: #3f3f3d;
  --charcoal-deep: #2a2a29;
  --red: #d8201f;
  --red-soft: #ff6b5e;
  --paper: #f6f3ec;
  --paper-deep: #ebe5d8;
  --ink: #1f2120;
  --muted: #5e625f;
  --white: #ffffff;
  --radius: 14px;
  --maxw: 1080px;
  --shadow: 0 10px 30px rgba(42, 42, 41, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header ---------- */
.site-header {
  background: var(--charcoal-deep);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; display: block; flex: none; }
.brand .accent { color: var(--red-soft); }

.nav a {
  color: #d9d6cf;
  margin-left: 22px;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--white); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background-color: var(--charcoal);
  background-image:
    linear-gradient(160deg, rgba(42,42,41,0.55) 0%, rgba(42,42,41,0.92) 70%),
    url("../img/topo.png");
  background-size: cover, 790px auto;
  background-repeat: no-repeat, repeat;
  color: var(--white);
  padding: 76px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero-grid { display: flex; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 auto; min-width: 0; }
.hero-art { flex: 0 0 auto; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero h1 .accent { color: var(--red-soft); }
.hero .tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #e1ded7;
  max-width: 600px;
  margin: 0 0 28px;
}
.badge-pill {
  display: inline-block;
  background: rgba(216, 32, 31, 0.2);
  color: #ffd2cc;
  border: 1px solid rgba(255, 107, 94, 0.5);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* Phone mock showing the arrow-to-cache screen */
.phone {
  width: 250px;
  border-radius: 38px;
  background: #111;
  padding: 12px;
  box-shadow: 0 22px 50px rgba(0,0,0,0.5);
}
.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}
.phone-bar {
  background: var(--charcoal-deep);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 14px 16px 10px;
}
.phone-map { display: block; width: 100%; height: auto; }
.phone-info { padding: 14px 16px 18px; }
.phone-info .dist { font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.phone-info .dist small { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.phone-info .name { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.phone-info .scan {
  margin-top: 12px;
  background: var(--red);
  color: var(--white);
  text-align: center;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px;
}

@media (max-width: 760px) {
  .hero-grid { flex-direction: column; align-items: flex-start; gap: 36px; }
  .hero-art { align-self: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.12s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #b81a19; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-ghost:hover { border-color: var(--white); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
/* Store button before its app is live (see js/stores.js). */
.btn.is-soon { opacity: 0.75; cursor: default; pointer-events: none; }
.btn .soon { font-weight: 500; opacity: 0.85; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--charcoal-deep);
  margin: 0 0 10px;
  font-weight: 800;
}
.section-sub { color: var(--muted); max-width: 640px; margin: 0 0 40px; }

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--paper-deep);
}
.feature .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: #fde8e6;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature h3 { margin: 0 0 8px; color: var(--charcoal-deep); font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; }
.step { text-align: center; padding: 12px; }
.step .num {
  width: 44px; height: 44px; margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--charcoal-deep); color: var(--red-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}
.step h3 { color: var(--charcoal-deep); margin: 0 0 6px; }
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.alt-bg { background: var(--paper-deep); }

/* ---------- Leaders split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split ul { margin: 0; padding-left: 20px; color: var(--muted); }
.split li { margin-bottom: 8px; }
.split li strong { color: var(--ink); }
.tag-card {
  background: var(--white);
  border: 2px dashed #c9c2b2;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.tag-card svg { width: 140px; height: 140px; display: block; margin: 0 auto 14px; }
.tag-card .tag-title { font-weight: 900; letter-spacing: 0.6px; text-transform: uppercase; }
.tag-card .tag-sub { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---------- Disclaimer banner ---------- */
.disclaimer {
  background: var(--charcoal-deep);
  color: #cfccc4;
  font-size: 0.92rem;
  padding: 22px 0;
  text-align: center;
}
.disclaimer strong { color: var(--white); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(160deg, var(--red) 0%, #b01716 100%);
  color: var(--white);
  text-align: center;
}
.cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 12px; }
.cta p { margin: 0 0 26px; font-size: 1.1rem; color: #ffe3df; }
.cta .btn-primary { background: var(--charcoal-deep); color: var(--white); }
.cta .btn-primary:hover { background: #000; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal-deep);
  color: #b3b0a8;
  padding: 40px 0 28px;
  font-size: 0.9rem;
}
.site-footer .cols {
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
  margin-bottom: 24px;
}
.site-footer a { color: #ffb3aa; }
.site-footer a:hover { color: var(--white); }
.site-footer h4 { color: var(--white); margin: 0 0 10px; font-size: 0.95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  color: #8f8c85;
  font-size: 0.82rem;
}

/* ---------- Legal / doc pages ---------- */
.doc { background: var(--white); }
.doc .container { max-width: 800px; padding-top: 48px; padding-bottom: 64px; }
.doc h1 { color: var(--charcoal-deep); font-size: 2rem; margin-bottom: 4px; }
.doc .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 32px; }
.doc h2 { color: var(--charcoal-deep); margin-top: 36px; font-size: 1.3rem; }
.doc h3 { color: var(--ink); margin-top: 24px; font-size: 1.05rem; }
.doc p, .doc li { color: #2e312f; }
.doc .callout {
  background: var(--paper);
  border-left: 4px solid var(--red);
  padding: 16px 20px;
  border-radius: 8px;
  margin: 24px 0;
}

@media (max-width: 600px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding: 52px 0 60px; }
  section { padding: 48px 0; }
}
