/* ============================================================
   BlackHills.biz — Redesign base
   Philosophy: CALM CANVAS + DARK FOREST TYPE + ONE WARM ACCENT.
   Contrast, not color noise. Dark-green borders kept as the
   regional signature. System fonts only (CSP-friendly, portable
   straight into the PHP build).
   Per-direction accent is set by a body class (.dir-*) below.
   ============================================================ */

:root {
  /* ---- Canvas & surfaces (clean, high-contrast) ---- */
  --canvas:        #f5f8f0;   /* warm pale sage — page */
  --canvas-2:      #eef3e8;   /* banded sections */
  --surface:       #ffffff;   /* cards — pure white */
  --surface-tint:  #fbfdf8;

  /* ---- Ink (dark forest type — the contrast engine) ---- */
  --ink:           #1c2e1b;   /* headings — near-black forest */
  --ink-2:         #2c3f2a;   /* strong body */
  --ink-3:         #51624d;   /* secondary */
  --ink-4:         #7b8c76;   /* muted / captions */
  --inverse:       #ffffff;

  /* ---- Borders ---- */
  --line:          #d7e3cf;   /* hairline */
  --line-soft:     #e6eede;
  --forest:        #243d24;   /* THE dark-green signature border */
  --forest-2:      #2f5230;

  /* ---- Brand greens ---- */
  --green:         #2f7d2a;
  --green-deep:    #1f5a1d;
  --gold:          #b8741a;
  --biz:           #5cb030;   /* the .biz lime */

  /* ---- Accent (overridden per direction) ---- */
  --accent:         #d9772e;
  --accent-hover:   #c1641f;
  --accent-active:  #a85316;
  --accent-soft:    #fbe6d3;
  --accent-ink:     #8a4412;  /* readable accent-colored text */
  --accent-contrast:#ffffff;  /* text on accent fill */
  --dawn:          linear-gradient(100deg, #e8607a 0%, #f08a3c 55%, #f4b026 100%);

  /* ---- Platform identity (small accents only) ---- */
  --fb:      #1862a8;  --fb-bg:   #e4eefa;
  --ig:      #d9772e;  --ig-bg:   #fbe7d6;   /* true orange, reserved for IG */
  --google:  #b8841a;  --google-bg:#f8edd2;  /* amber/gold — off yellow */
  --gpt:     #5a7d6a;  --gpt-bg:  #e3ece6;
  --blog:    #7a5aa8;  --blog-bg: #ece4f5;

  /* ---- Status ---- */
  --good:    #2f8a1f;  --good-bg: #dcf0d2;
  --warn:    #b8741a;  --warn-bg: #f8e9cd;
  --bad:     #b8281b;  --bad-bg:  #fadbd6;

  /* ---- Type ---- */
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* ---- Radius / shadow / space ---- */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(20,45,15,.05);
  --sh-2: 0 6px 22px rgba(20,45,15,.10);
  --sh-3: 0 18px 50px rgba(20,45,15,.16);
  --gutter: clamp(20px, 5vw, 40px);
}

/* ---- Per-direction accent themes ---- */
.dir-firstlight {            /* rose → gold dawn */
  --accent:#e8757f; --accent-hover:#dd5b67; --accent-active:#c5414e;
  --accent-soft:#fbe2e4; --accent-ink:#b23a47; --accent-contrast:#fff;
  --accent-grad: linear-gradient(100deg,#e8607a 0%, #f08a3c 60%, #f4b026 100%);
}
.dir-trailhead {             /* burnt orange */
  --accent:#d9772e; --accent-hover:#c1641f; --accent-active:#a85316;
  --accent-soft:#fbe6d3; --accent-ink:#8a4412; --accent-contrast:#fff;
  --accent-grad: linear-gradient(100deg,#e0651e 0%, #d9772e 100%);
}
.dir-summit {                /* deeper green */
  --accent:#2f7d2a; --accent-hover:#246420; --accent-active:#1b4d18;
  --accent-soft:#d8f0cf; --accent-ink:#1f5a1d; --accent-contrast:#fff;
  --accent-grad: linear-gradient(100deg,#2f7d2a 0%, #5cb030 100%);
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(38px, 5.6vw, 66px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(21px, 2.2vw, 27px); letter-spacing: -0.01em; }
h4 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p  { margin: 0; }
a  { color: var(--accent-ink); text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
strong { color: var(--ink); font-weight: 700; }

.wrap  { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow{ max-width: 760px;  margin: 0 auto; padding: 0 var(--gutter); }
.lede  { font-size: clamp(18px, 2vw, 22px); line-height: 1.55; color: var(--ink-3); }

/* ============================================================
   Icons
   ============================================================ */
.ic { width: 20px; height: 20px; stroke: currentColor; fill: none;
      stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 26px; height: 26px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 700; letter-spacing: -0.01em;
  padding: 13px 22px; min-height: 50px;
  border-radius: var(--r-md); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color:#fff; }
.btn-primary:active { background: var(--accent-active); }
.btn-forest { background: var(--forest); color:#fff; border-color: var(--forest); }
.btn-forest:hover { background: var(--forest-2); border-color: var(--forest-2); color:#fff; }
.btn-outline { background: var(--surface); color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: #f0f5ec; }
.btn-ghost { background: transparent; color: var(--ink-3); border-color: var(--line); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: var(--forest); }
.btn-lg { font-size: 18px; padding: 16px 28px; min-height: 58px; }
.btn-sm { font-size: 14px; padding: 9px 16px; min-height: 40px; border-width: 1.5px; }
.btn-block { width: 100%; }

/* ============================================================
   Header
   ============================================================ */
.hdr {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px var(--gutter);
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hdr__brand img { height: 34px; width: auto; }
.hdr__nav { display: flex; align-items: center; gap: 4px; }
.hdr__nav a:not(.btn) { color: var(--ink-3); text-decoration: none; font-weight: 600; font-size: 15px;
              padding: 8px 13px; border-radius: var(--r-sm); white-space: nowrap; }
.hdr__nav a:not(.btn):hover { background: #eef3e8; color: var(--ink); }
.hdr__sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
@media (max-width: 720px) { .hdr__nav .hide-sm { display: none; } }

/* ============================================================
   Eyebrow / kicker
   ============================================================ */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink);
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.kicker--forest { color: var(--forest-2); }
.kicker--forest .dot { background: var(--green); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--canvas-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.center { text-align: center; max-width: 680px; margin: 0 auto; }
.center .lede { margin-top: 14px; }
.stack > * + * { margin-top: 16px; }

/* ============================================================
   Cards
   ============================================================ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card--forest { border: 1.5px solid var(--forest); box-shadow: var(--sh-2); }   /* dark-green signature */
.card-pad { padding: clamp(22px, 3vw, 32px); }

/* ============================================================
   Bullets (low-reading audience — used everywhere)
   ============================================================ */
.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.bullets li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start;
              font-size: 17px; color: var(--ink-2); line-height: 1.5; }
.bullets li .bx {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); margin-top: 1px;
}
.bullets li .bx .ic { width: 15px; height: 15px; stroke-width: 2.5; }
.bullets--forest li .bx { background: var(--good-bg); color: var(--green-deep); }

/* ============================================================
   Hero sun / mountain treatment
   ============================================================ */
.sun-stage { position: relative; overflow: hidden; }
.sun-stage__sky {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.sun {
  position: absolute; left: 50%; top: 16%; transform: translateX(-50%);
  width: min(620px, 86vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at center,
      var(--accent-soft) 0%, color-mix(in oklab, var(--accent-soft) 60%, transparent) 42%, transparent 70%);
  opacity: .9;
}
.ridge {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%;
  height: auto; z-index: 1; pointer-events: none;
}

/* ============================================================
   Platform chips
   ============================================================ */
.plats { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px 9px 12px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: 15px; color: var(--ink);
}
.chip .ic { width: 18px; height: 18px; }
.chip.fb     { border-color: color-mix(in oklab, var(--fb) 35%, var(--line)); }
.chip.fb     .ic { color: var(--fb); }
.chip.ig     { border-color: color-mix(in oklab, var(--ig) 35%, var(--line)); }
.chip.ig     .ic { color: var(--ig); }
.chip.google { border-color: color-mix(in oklab, var(--google) 40%, var(--line)); }
.chip.google .ic { color: var(--google); }
.chip.gpt    { border-color: color-mix(in oklab, var(--gpt) 40%, var(--line)); }
.chip.gpt    .ic { color: var(--gpt); }
.chip .tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
             background: var(--accent); color:#fff; border-radius: var(--r-pill); padding: 2px 7px; }

/* ============================================================
   Step cards
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 26px; }
.step__n {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; background: var(--forest); color: #fff; margin-bottom: 16px;
}
.step h4 { margin-bottom: 7px; }
.step p { color: var(--ink-3); font-size: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   Report preview card
   ============================================================ */
.report { overflow: hidden; }
.report__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--surface-tint);
}
.report__biz { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); }
.report__biz .ic { color: var(--forest-2); }
.report__vs { font-size: 14px; color: var(--ink-4); }
.report__grade { display: flex; gap: 20px; align-items: center; padding: 22px; }
.grade-badge {
  width: 86px; height: 86px; border-radius: 16px; flex: none; display: grid; place-items: center;
  font-size: 40px; font-weight: 800; letter-spacing: -.02em;
  background: var(--warn-bg); color: var(--warn); border: 1.5px solid color-mix(in oklab, var(--warn) 40%, transparent);
}
.report__sum { font-size: 16px; color: var(--ink-2); }
.rank {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 9px;
  font-size: 13px; font-weight: 700; color: var(--forest-2);
  background: #eef3e8; border-radius: var(--r-pill); padding: 4px 11px;
}
.rank .ic { width: 14px; height: 14px; color: var(--google); }
.findings { border-top: 1px solid var(--line); }
.finding { display: grid; grid-template-columns: 24px 1fr; gap: 13px; padding: 15px 22px; border-top: 1px solid var(--line-soft); }
.finding:first-child { border-top: none; }
.finding .ic { width: 22px; height: 22px; margin-top: 1px; }
.finding--good .ic { color: var(--good); }
.finding--warn .ic { color: var(--warn); }
.finding--next .ic { color: var(--fb); }
.finding .ft { font-weight: 700; color: var(--ink); }
.finding .fb-txt { font-size: 15px; color: var(--ink-3); }

/* ============================================================
   Offer card (the public price / "what you get")
   ============================================================ */
.offer { display: grid; grid-template-columns: 1.15fr .85fr; }
@media (max-width: 820px) { .offer { grid-template-columns: 1fr; } }
.offer__main { padding: clamp(26px, 3.5vw, 40px); }
.offer__side {
  padding: clamp(26px, 3.5vw, 40px); background: var(--forest); color: #eaf3e6;
  display: flex; flex-direction: column; justify-content: center;
}
.offer__price { display: flex; align-items: baseline; gap: 6px; color: #fff; flex-wrap: nowrap; }
.offer__price .amt { font-size: 60px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.offer__price .per { font-size: 18px; color: #bcd6b6; font-weight: 600; white-space: nowrap; }
.offer__terms { color: #bcd6b6; font-size: 15px; margin-top: 8px; }
.offer__side .btn { margin-top: 22px; }
.offer__side .fine { color: #9cbf96; font-size: 13px; margin-top: 14px; }
.tagline { display:inline-flex; align-items:center; gap:8px; font-weight:700; color: var(--accent-ink);
           background: var(--accent-soft); border-radius: var(--r-pill); padding: 6px 14px; font-size: 14px; white-space: nowrap; }

/* ---- Upsell teaser ---- */
.upsell { display: flex; align-items: center; justify-content: space-between; gap: 18px;
          flex-wrap: wrap; padding: 20px 24px; }
.upsell p { color: var(--ink-3); }

/* ============================================================
   Run-report band
   ============================================================ */
.run { }
.run-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.input-wrap { position: relative; flex: 1 1 300px; min-width: 0; }
.input-wrap .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-4); }
.input {
  width: 100%; font: inherit; font-size: 18px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--forest); border-radius: var(--r-md);
  padding: 15px 16px 15px 44px; min-height: 58px; outline: none;
}
.input:focus { box-shadow: 0 0 0 4px var(--accent-soft); }
.input::placeholder { color: var(--ink-4); }
.pips { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 14px; color: var(--ink-4); }
.pip { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.pip.used { background: var(--accent); }

/* ============================================================
   Footer
   ============================================================ */
.ftr { background: var(--forest); color: #c4dbbe; padding: 44px 0; }
.ftr__in { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.ftr__brand { display: flex; gap: 14px; align-items: flex-start; }
.ftr__brand img { height: 40px; background:#fff; border-radius: 8px; padding: 4px; }
.ftr strong { color: #fff; }
.ftr a { color: #dcead7; }
.ftr__links { display: flex; gap: 22px; flex-wrap: wrap; }
.ftr small { color: #98b692; }

/* ============================================================
   AI status dot
   ============================================================ */
.ai { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.ai .d { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-bg); }

/* reveal-on-scroll friendly default (visible by default for print/no-JS) */
[data-rise] { }
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js [data-rise].in { opacity: 1; transform: none; }
}
