/* Open Trail Science: coming soon page. Mirrors the survey app's palette and type. */

:root {
  --bg: #0b1120;
  --pine-950: #022c22;
  --pine-900: #064e3b;
  --pine-800: #065f46;
  --pine-700: #047857;
  --pine-600: #059669;
  --pine-500: #10b981;
  --pine-400: #34d399;
  --pine-300: #6ee7b7;
  --amber-950: #451a03;
  --amber-700: #b45309;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --sky-300: #7dd3fc;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  color: var(--slate-100);
  overflow-x: hidden;
}

::selection { background: var(--pine-600); color: #fff; }

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
main { flex: 1; }
svg { flex-shrink: 0; }

.mono { font-family: 'JetBrains Mono', monospace; }
.small { font-size: 12px; }
.muted { color: var(--slate-400); }
.strong { font-weight: 700; color: #e2e8f0; }
.text-pine { color: var(--pine-400); }
.text-amber { color: var(--amber-500); }
.center { text-align: center; }

/* Topographic dot background (same as the survey) */
.topo-pattern {
  background-image: radial-gradient(rgba(16, 185, 129, 0.08) 1px, transparent 1px),
                    radial-gradient(rgba(217, 119, 6, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
}

.container { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 56rem; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pine-600), var(--pine-900));
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--pine-400);
  box-shadow: 0 10px 15px -3px rgba(2, 44, 34, 0.5);
  transition: transform 0.2s;
}
.brand:hover .brand-mark { transform: scale(1.05); }
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { display: block; font-weight: 800; letter-spacing: -0.025em; color: #fff; font-size: 16px; white-space: nowrap; }
.brand-sub { display: block; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate-400); }
@media (min-width: 640px) { .brand-name { font-size: 18px; } }

.header-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--amber-300);
  background: rgba(69, 26, 3, 0.7);
  border: 1px solid rgba(180, 83, 9, 0.5);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 420px) { .header-tag { display: none; } }

/* Dots and pills */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-pine { background: var(--pine-400); }
.dot-amber { background: var(--amber-400); }
.pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(2, 44, 34, 0.7);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--pine-300);
  font-size: 13px; font-weight: 500;
  margin-bottom: 24px;
}
.pill-amber { background: rgba(69, 26, 3, 0.6); border-color: rgba(245, 158, 11, 0.3); color: var(--amber-300); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; }
@media (min-width: 640px) { .hero { padding: 96px 0 88px; } }

.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.glow-pine { width: 520px; height: 520px; top: -180px; left: 50%; transform: translateX(-70%); background: rgba(16, 185, 129, 0.16); animation: drift 14s ease-in-out infinite alternate; }
.glow-amber { width: 360px; height: 360px; top: 120px; left: 50%; transform: translateX(20%); background: rgba(245, 158, 11, 0.09); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { translate: 60px 30px; } }

.hero .container { position: relative; z-index: 1; }

h1 {
  font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; color: #fff;
}
@media (min-width: 640px) { h1 { font-size: 52px; } }
@media (min-width: 1024px) { h1 { font-size: 64px; } }

.gradient-text {
  background: linear-gradient(90deg, var(--pine-400), #6ee7b7, var(--amber-400), var(--pine-400));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }

.lead { margin: 24px auto 0; max-width: 42rem; font-size: 16px; line-height: 1.7; color: var(--slate-300); }
@media (min-width: 640px) { .lead { font-size: 18px; } }

.cta-row { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; justify-content: center; align-items: stretch; }
@media (min-width: 640px) { .cta-row { flex-direction: row; align-items: center; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font: inherit; font-size: 16px; font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
}
.btn svg { width: 20px; height: 20px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--pine-600), var(--pine-500));
  box-shadow: 0 10px 25px -5px rgba(6, 78, 59, 0.6);
}
.btn-primary:hover { background: linear-gradient(90deg, var(--pine-500), var(--pine-400)); transform: translateY(-2px); box-shadow: 0 14px 30px -6px rgba(16, 185, 129, 0.45); }
.btn-ghost { color: #e2e8f0; background: var(--slate-900); border-color: var(--slate-700); font-weight: 600; }
.btn-ghost:hover { background: var(--slate-800); border-color: var(--slate-600); }
.btn:focus-visible { outline: 2px solid var(--pine-400); outline-offset: 3px; }

.meta-row {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px;
  font-size: 13px; color: var(--slate-400);
}
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row svg { width: 16px; height: 16px; }
.meta-row .sep { color: var(--slate-600); }

/* Cards */
.card-glow {
  position: relative;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: all 0.25s var(--ease);
}
.card-glow:hover { border-color: rgba(16, 185, 129, 0.3); box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.15); }

/* Elevation profile */
.profile-wrap { margin-top: 56px; max-width: 56rem; }
.profile-card { padding: 20px 20px 16px; }
@media (min-width: 640px) { .profile-card { padding: 24px 28px 20px; } }
.profile-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.profile { width: 100%; height: 120px; display: block; overflow: visible; }
@media (min-width: 640px) { .profile { height: 160px; } }
.profile-ghost { fill: none; stroke: var(--slate-700); stroke-width: 2; stroke-dasharray: 6 8; vector-effect: non-scaling-stroke; }
.profile-line { fill: none; stroke: url(#lineGrad); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.profile-fill { fill: url(#fillGrad); }
.profile-labels { display: flex; justify-content: space-between; color: var(--slate-500); margin-top: 10px; }
@media (max-width: 639px) { .hide-sm { display: none; } }

/* Sections */
.section { padding: 48px 0; }
.section.tight { padding: 16px 0; }
@media (min-width: 640px) { .section { padding: 64px 0; } }

.section-head { margin-bottom: 28px; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.eyebrow { display: block; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
h2 { font-size: 24px; font-weight: 800; color: #fff; margin-top: 8px; letter-spacing: -0.02em; line-height: 1.25; }
@media (min-width: 640px) { h2 { font-size: 30px; } }
h2.h-sm { font-size: 22px; }
@media (min-width: 640px) { h2.h-sm { font-size: 26px; } }
h2.big { font-size: 32px; margin-top: 0; }
@media (min-width: 640px) { h2.big { font-size: 44px; } }

.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.feature { padding: 24px; }
.feature h3 { font-size: 17px; font-weight: 700; color: #fff; margin-top: 16px; }
.feature p { font-size: 14px; line-height: 1.6; color: var(--slate-400); margin-top: 6px; }
.feature:hover { transform: translateY(-3px); }

.step { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.step-pine { background: rgba(6, 78, 59, 0.8); color: var(--pine-300); }
.step-amber { background: rgba(120, 53, 15, 0.8); color: var(--amber-300); }
.step-emerald { background: rgba(6, 95, 70, 0.8); color: #a7f3d0; }

.callout {
  padding: 24px;
  border-color: rgba(245, 158, 11, 0.25);
  display: flex; flex-direction: column; gap: 20px;
}
@media (min-width: 768px) { .callout { flex-direction: row; align-items: center; padding: 32px; } }
.callout p { font-size: 14px; line-height: 1.7; color: var(--slate-300); margin-top: 8px; max-width: 46rem; }
.callout:hover { border-color: rgba(245, 158, 11, 0.45); box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.15); }
.callout-badge {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--slate-900);
  border: 1px solid rgba(180, 83, 9, 0.5);
  color: var(--amber-300);
  font-size: 13px; font-weight: 600;
}
@media (min-width: 768px) { .callout-badge { align-self: center; } }
.callout-badge svg { width: 18px; height: 18px; }

/* Trail marquee */
.trail-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.trail-track { display: flex; gap: 12px; width: max-content; animation: marquee 32s linear infinite; }
.trail-marquee:hover .trail-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.trail-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0; font-weight: 600; font-size: 14px;
  white-space: nowrap;
}
.tag { font-family: 'JetBrains Mono', monospace; font-size: 12px; padding: 4px 10px; border-radius: 6px; border: 1px solid; }
.tag-pine { background: rgba(6, 78, 59, 0.8); color: var(--pine-300); border-color: rgba(4, 120, 87, 0.5); }
.tag-emerald { background: #022c22; color: #6ee7b7; border-color: rgba(4, 120, 87, 0.5); }
.tag-amber { background: var(--amber-950); color: var(--amber-300); border-color: rgba(180, 83, 9, 0.5); }
.tag-sky { background: #082f49; color: var(--sky-300); border-color: rgba(3, 105, 161, 0.5); }
.tag-slate { background: var(--slate-800); color: var(--slate-300); border-color: var(--slate-700); }

/* Final CTA */
.final { padding-bottom: 88px; }
.privacy-pill {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--slate-400);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--slate-800);
  padding: 8px 16px;
  border-radius: 999px;
}
.privacy-pill svg { width: 16px; height: 16px; color: var(--pine-400); }

/* Footer */
.site-footer { border-top: 1px solid var(--slate-800); background: rgba(2, 6, 23, 0.9); padding: 40px 0; color: var(--slate-400); font-size: 12px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
@media (min-width: 640px) { .footer-inner { flex-direction: row; justify-content: space-between; } }
.footer-brand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.footer-brand svg { width: 20px; height: 20px; color: var(--pine-400); }

/* Toast */
.toast {
  position: fixed; bottom: 20px; left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0; pointer-events: none;
  background: var(--pine-800);
  border: 1px solid var(--pine-500);
  color: #ecfdf5;
  padding: 10px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  transition: all 0.3s var(--ease);
  z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--slate-900); }
::-webkit-scrollbar-thumb { background: var(--slate-700); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-600); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
