/* ==========================================================================
   Kruger Navigator — site styles
   Brand: forest-green tree-in-a-pin, savanna warmth. Offline-first safari app.
   ========================================================================== */

:root {
  /* Brand greens (sampled from the logo pin) */
  --green:        #3d6a1e;
  --green-600:    #345c19;
  --green-700:    #2b4d14;
  --green-900:    #1c330d;

  /* Savanna accent */
  --amber:        #c8912f;
  --amber-600:    #b07f22;

  /* Neutrals — warm paper, not clinical white */
  --cream:        #f7f4ec;
  --sand:         #efe9da;
  --sand-line:    #e2dac6;
  --ink:          #23281d;
  --muted:        #5f6553;
  --muted-2:      #7d836f;
  --white:        #ffffff;

  --radius:       18px;
  --radius-sm:    12px;
  --radius-lg:    28px;
  --shadow:       0 1px 2px rgba(28,51,13,.06), 0 12px 32px -12px rgba(28,51,13,.22);
  --shadow-lg:    0 24px 60px -20px rgba(28,51,13,.40);
  --maxw:         1140px;

  --font-head: "Montserrat", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--green-900);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }

p  { margin: 0 0 1rem; }
a  { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-900); }

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

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

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin: 0 0 .9rem;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .85em 1.5em; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px -10px rgba(61,106,30,.7); }
.btn-primary:hover { background: var(--green-700); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--green-900); border-color: var(--sand-line); }
.btn-ghost:hover { background: #fff; border-color: var(--green); color: var(--green-900); }
.btn-amber { background: var(--amber); color: #3a2a06; box-shadow: 0 10px 24px -10px rgba(200,145,47,.75); }
.btn-amber:hover { background: var(--amber-600); color: #3a2a06; transform: translateY(-2px); }
.btn .ico { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,236,.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--sand-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6em; font-family: var(--font-head); font-weight: 700; color: var(--green-900); letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.brand span { font-size: 1.1rem; }
.brand span b { color: var(--green); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink); }
.nav-links a:hover { color: var(--green); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--green-900); }

@media (max-width: 860px) {
  .nav-links { position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--cream); border-bottom: 1px solid var(--sand-line);
    padding: 12px 24px 20px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 620px) {
  .nav-cta .btn-primary { display: none; }
  .brand span { font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 520px at 15% -10%, rgba(61,106,30,.10), transparent 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(200,145,47,.12), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.4rem; }
.hero-note { font-size: .92rem; color: var(--muted-2); display: flex; align-items: center; gap: .5em; }
.hero-note svg { width: 18px; height: 18px; color: var(--green); flex: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
}

/* ---------- Phone / map illustration ---------- */
.phone {
  position: relative; width: min(320px, 78vw); margin-inline: auto;
  aspect-ratio: 320 / 650; background: #10240a;
  border-radius: 46px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
}
.phone::after { /* notch */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; background: #10240a; border-radius: 16px; z-index: 3;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #dfe7d0; }
.phone-screen svg { width: 100%; height: 100%; display: block; }
.phone-badge {
  position: absolute; z-index: 4; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow); padding: 10px 12px; display: flex; gap: 10px; align-items: center;
  font-family: var(--font-head); font-size: .8rem; font-weight: 600; color: var(--green-900);
}
.phone-badge small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .72rem; }
.phone-badge .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--sand); display: grid; place-items: center; flex: none; }
.phone-badge .dot svg { width: 20px; height: 20px; }
.badge-eta { top: 74px; left: -26px; }
.badge-offline { bottom: 60px; right: -22px; }
@media (max-width: 460px) { .badge-eta { left: -6px; } .badge-offline { right: -4px; } }

/* ---------- Trust strip ---------- */
.strip { border-top: 1px solid var(--sand-line); border-bottom: 1px solid var(--sand-line); background: var(--sand); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; text-align: center; }
.strip .num { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--green); }
.strip .lbl { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
@media (max-width: 620px) { .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; } }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 100px) 0; }
.section-head { max-width: 62ch; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head .lead { margin-inline: auto; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--sand-line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(61,106,30,.10); display: grid; place-items: center; margin-bottom: 16px; }
.card .ic svg { width: 26px; height: 26px; color: var(--green); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Split / offline band ---------- */
.band { background: linear-gradient(160deg, var(--green-900), var(--green-700)); color: #eaf0e1; }
.band h2 { color: #fff; }
.band .lead { color: #cad9bd; }
.band .split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.band .checklist { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 14px; }
.band .checklist li { display: flex; gap: 12px; align-items: flex-start; }
.band .checklist svg { width: 22px; height: 22px; color: #a9d17e; flex: none; margin-top: 2px; }
.band .checklist b { color: #fff; font-family: var(--font-head); }
.band-visual { display: grid; place-items: center; }
.compass { width: min(320px, 80%); filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
@media (max-width: 820px) { .band .split { grid-template-columns: 1fr; gap: 36px; } .band-visual { order: -1; } }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta-box {
  background: #fff; border: 1px solid var(--sand-line); border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px); box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-box::before { content:""; position:absolute; inset:0; z-index:0;
  background: radial-gradient(600px 300px at 50% -30%, rgba(200,145,47,.14), transparent 60%); }
.cta-box > * { position: relative; z-index: 1; }
.cta-box .btn { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #c7d3ba; padding: 60px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand span { color: #fff; }
.site-footer .brand span b { color: #a9d17e; }
.site-footer p { color: #9db089; font-size: .92rem; max-width: 34ch; margin-top: 14px; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; color: #c7d3ba; font-size: .95rem; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: #8ba078; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Content pages (privacy / support / help) ---------- */
.page-hero { padding: clamp(48px, 7vw, 84px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--sand-line); }
.page-hero .eyebrow { text-align: left; }
.prose { max-width: 74ch; margin-inline: auto; padding: clamp(40px,6vw,64px) 0; }
.prose h2 { margin-top: 2em; font-size: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose .updated { color: var(--muted-2); font-size: .92rem; }
.callout { background: #fff; border: 1px solid var(--sand-line); border-left: 4px solid var(--green);
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 1.5em 0; }
.callout p:last-child { margin: 0; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
details.qa { background: #fff; border: 1px solid var(--sand-line); border-radius: var(--radius-sm); padding: 4px 22px; box-shadow: var(--shadow); }
details.qa summary { font-family: var(--font-head); font-weight: 600; color: var(--green-900);
  cursor: pointer; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; font-size: 1.4rem; color: var(--amber-600); transition: transform .2s ease; }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa p { color: var(--muted); padding-bottom: 18px; margin: 0; }

.contact-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; max-width: 760px; margin: 0 auto 44px; }
@media (max-width: 560px){ .contact-cards { grid-template-columns: 1fr; } }
.contact-cards .card p { margin-bottom: 14px; }

/* Help / docs layout */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; margin-inline: auto; }
@media (max-width: 640px){ .doc-grid { grid-template-columns: 1fr; } }

.tag { display:inline-block; font-family: var(--font-head); font-weight:600; font-size:.72rem;
  letter-spacing:.06em; text-transform:uppercase; color: var(--amber-600);
  background: rgba(200,145,47,.12); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); border:0; }
