/* planforadventure.com shared styles (prd-website-homepage-refresh P0-3).
   Linked by the homepage now and by the legal pages next (WS-C), so only
   site-wide rules live here: tokens, base type, nav, footer, buttons, section
   heads and the reveal classes. Homepage-only rules are in home.css.

   Tokens: the design system's Dark values, under the same names as the app's
   frontend/src/styles/tokens.css (source: Documentation/design/design-system/
   tokens.json). landingAssets.test.js holds every token declared here to the
   value tokens.css gives it. Dark only (Keith K3); @font-face stays inline in
   each page (fonts.test.js). */
:root {
  color-scheme: dark;

  --color-forest:        #345C3B;
  --color-burnt-orange:  #C3552A;
  --color-burnt-orange-aa: #BF5329;
  --color-sage:          #80A779;
  --color-deep-rust:     #AD4420;
  --color-near-black:    #211F21;
  --color-light-gray:    #CCCBCA;
  --color-off-white:     #FEFEFE;

  --bg-primary:          var(--color-near-black);
  --bg-surface:          #2A282A;
  --bg-surface-hover:    #353335;
  --bg-input:            #1A181A;
  --bg-glass:            rgba(33, 31, 33, 0.80);
  --bg-overlay:          rgba(33, 31, 33, 0.85);

  --text-primary:        var(--color-off-white);
  --text-secondary:      var(--color-light-gray);
  --text-tertiary:       #a3a0a1;
  --text-accent:         #e8835a;
  --text-on-accent:      #fefefe;
  --text-brand:          #80a779;

  --interactive-primary:       var(--color-burnt-orange-aa);
  --interactive-primary-hover: var(--color-deep-rust);
  --interactive-secondary:     var(--color-forest);
  --interactive-secondary-hover: #2D5034;
  --interactive-focus:         var(--color-sage);
  --interactive-link:          var(--text-accent);
  --interactive-link-hover:    #f09a74;
  --interactive-primary-tint:  rgba(195, 85, 42, 0.10);

  --border-default:      #3A383A;
  --border-subtle:       #2F2D2F;
  --border-control:      #807d7e;
  --border-strong:       var(--color-light-gray);

  --status-success-text: #8fc488;
  --status-success-bg:   rgba(90, 143, 92, 0.12);

  --map-campsite:       #1b6342;
  --map-water:          #2f8ad0;
  --map-fuel:           #e8b23a;
  --map-services:       #2c4256;
  --map-activity:       #a95294;
  --map-hazard:         #ff6b5e;
  --map-pin-ring:       var(--color-off-white);

  --day-1: #f0b5ab;
  --day-2: #c68c27;
  --day-3: #9e9c04;

  --font-body:    'Work Sans', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Poppins', 'Montserrat', 'Nunito Sans', sans-serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --shadow-lg:    0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-popup: 0 4px 16px rgba(0, 0, 0, 0.35);

  --touch-target: 44px;
  --duration-instant: 100ms;
  --duration-fast:    150ms;
  --duration-slow:    300ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);

  /* Site layout (no app counterpart). */
  --site-max: 1240px;
  --site-pad: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--interactive-link); }
a:hover { color: var(--interactive-link-hover); }
:focus-visible { outline: 2px solid var(--interactive-focus); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.disp { font-family: var(--font-display); }
.accent { color: var(--color-burnt-orange); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: var(--radius-md); background: var(--bg-surface); color: var(--text-primary); }
.skip-link:focus { top: 12px; }
.ic { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.wrap { max-width: var(--site-max); margin: 0 auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Buttons */
.btn {
  min-height: var(--touch-target);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--duration-instant) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
.btn:hover { transform: translateY(-1px); color: var(--text-primary); }
.btn:active { transform: scale(0.98); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-primary { background: var(--interactive-primary); }
.btn-primary:hover { background: var(--interactive-primary-hover); }
.btn-forest { background: var(--interactive-secondary); }
.btn-forest:hover { background: var(--interactive-secondary-hover); }
.btn-outline { border-color: var(--border-control); background: transparent; }
.btn-outline:hover { background: var(--bg-surface-hover); }
.store-badge-slot[hidden] { display: none; }

/* Nav */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}
@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .site-nav {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
  }
}
.site-nav-inner {
  max-width: 1312px; margin: 0 auto; padding: 12px var(--site-pad);
  display: flex; align-items: center; gap: 32px;
}
.site-nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-nav-logo img { height: 34px; width: auto; display: block; }
.site-nav-links { display: flex; gap: 28px; flex-grow: 1; font-weight: 500; }
.navlink { color: var(--text-secondary); text-decoration: none; transition: color var(--duration-fast); }
.navlink:hover { color: var(--text-primary); }
.site-nav-actions { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 960px) {
  .site-nav-links { display: none; }
}
@media (max-width: 420px) {
  .site-nav-inner { padding: 10px 16px; gap: 12px; }
  .site-nav-logo img { height: 28px; }
  .site-nav-actions .btn { padding: 0 12px; font-size: 14px; }
}
@media (max-width: 359px) {
  .site-nav-actions .nav-signin { display: none; }
}

/* Section heads */
.section { padding: 112px var(--site-pad); }
.eyebrow {
  margin: 0; font-size: 11px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-accent);
}
.sec-h {
  font-family: var(--font-display); font-size: 44px; line-height: 48px;
  font-weight: 900; letter-spacing: -0.01em;
}
.lead { font-size: 17px; line-height: 26px; color: var(--text-secondary); }
.fine { font-size: 13px; line-height: 18px; color: var(--text-tertiary); }
@media (max-width: 760px) {
  .section { padding: 64px 16px; }
  .sec-h { font-size: 32px; line-height: 36px; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px var(--site-pad);
  text-align: center;
  font-size: 13px; line-height: 22px; color: var(--text-tertiary);
}
.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--text-primary); }

/* Reveal on scroll. Hidden only once home.js has added the `js` class to
   <html> (its first statement), so a blocked or failed script hides nothing. */
.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 700ms var(--ease-standard), transform 700ms var(--ease-standard);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-property: opacity !important;
    transition-duration: var(--duration-instant) !important;
  }
  .js .reveal { transform: none; }
  .btn:hover, .btn:active { transform: none; }
}
