/* EarthCape — the field app. Free landing page.
   Static, framework-free. Green brand (#2E7D32). Design tokens as CSS variables. */

:root {
  --green-900: #14401b;
  --green-700: #1b5e20;
  --green-600: #2e7d32;
  --green-500: #388e3c;
  --green-300: #81c784;
  --green-50:  #eef6ee;
  --ink:       #14201a;
  --body:      #3d4a43;
  --muted:     #6b7a72;
  --line:      #e2e9e3;
  --surface:   #ffffff;
  --bg:        #f7faf7;
  --radius:    18px;
  --shadow-sm: 0 1px 3px rgba(20, 40, 25, .06), 0 6px 18px rgba(20, 40, 25, .05);
  --shadow-md: 0 10px 30px rgba(20, 40, 25, .10);
  --shadow-lg: 0 24px 60px rgba(20, 40, 25, .16);
  --maxw: 1120px;
  --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(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

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

/* ── Access gate ────────────────────────────────────────── */
.gate {
  position: fixed; inset: 0; z-index: 200;
  background: linear-gradient(160deg, var(--green-700), var(--green-900));
  color: #fff; display: none; align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.gate.show { display: flex; }
.gate-inner { max-width: 420px; }
.gate h1 { color: #fff; font-size: 1.7rem; margin-bottom: 12px; }
.gate p { color: rgba(255,255,255,.85); }
body.gated > *:not(.gate) { display: none !important; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 250, 247, .85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.brand svg { display: block; }
.brand-logo { height: 34px; width: auto; display: block; }
.footer-logo { height: 26px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--body); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--green-700); }
.nav .btn { padding: 9px 18px; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 6px 18px rgba(46, 125, 50, .28); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--green-700); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--green-300); transform: translateY(-1px); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: 84px 0 72px; }
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-50); color: var(--green-700);
  font-weight: 700; font-size: .82rem; letter-spacing: .02em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero-title { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 850; }
.hero-title .accent { color: var(--green-600); }
.hero-subtitle { font-size: 1.2rem; color: var(--body); margin: 20px 0 32px; max-width: 34ch; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }

/* Phone frame */
.phone {
  justify-self: center;
  width: 300px; max-width: 78vw;
  border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #20302a, #0e1712);
  box-shadow: var(--shadow-lg);
}
.phone img { display: block; width: 100%; border-radius: 30px; }

/* ── Sections ───────────────────────────────────────────── */
section { scroll-margin-top: 80px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 820; }
.section-subtitle { font-size: 1.12rem; color: var(--muted); margin-top: 14px; }

.features { padding: 40px 0 20px; }
.customize { background: linear-gradient(180deg, #ffffff, var(--green-50)); padding: 72px 0 40px; margin-top: 20px; }
.customize .section-head { margin-bottom: 44px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease;
  display: flex; flex-direction: column;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-shot {
  background: linear-gradient(170deg, var(--green-50), #dcebdd);
  padding: 22px 22px 0; display: flex; justify-content: center;
}
.feature-shot img {
  width: 150px; height: 250px; object-fit: cover; object-position: top center;
  border-radius: 18px 18px 0 0; box-shadow: 0 -2px 22px rgba(20, 40, 25, .14);
}
.feature-body { padding: 22px 24px 26px; }
.feature-body h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature-body p { margin: 0; color: var(--body); font-size: .98rem; }

/* ── Workflow ───────────────────────────────────────────── */
.workflow { padding: 84px 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm);
}
.step-num {
  width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--green-600); color: #fff; font-weight: 800; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ── Download ───────────────────────────────────────────── */
.download { padding: 90px 0; }
.download-card {
  max-width: var(--maxw); margin: 0 auto; text-align: center;
  background: linear-gradient(155deg, var(--green-700), var(--green-500));
  color: #fff; border-radius: 28px; padding: 64px 32px; box-shadow: var(--shadow-md);
}
.download-card h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.download-card p { color: rgba(255,255,255,.9); font-size: 1.12rem; margin: 14px 0 34px; }
.store-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #10261a; color: #fff; border-radius: 14px; padding: 13px 22px;
  border: 1px solid rgba(255,255,255,.14); transition: transform .12s ease, background .12s ease;
}
.store-btn:hover { transform: translateY(-2px); background: #0a1c12; }
.store-btn .glyph { font-size: 1.7rem; line-height: 1; }
.store-btn .store-label { display: block; font-size: .72rem; opacity: .8; text-align: left; }
.store-btn .store-name { display: block; font-size: 1.1rem; font-weight: 700; text-align: left; }
.store-btn.soon { opacity: .62; cursor: default; }
.store-btn.soon:hover { transform: none; background: #10261a; }

/* ── Footer ─────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer .brand { font-size: 1.05rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); font-size: .92rem; font-weight: 600; }
.footer-links a:hover { color: var(--green-700); }
.footer-copy { color: var(--muted); font-size: .88rem; width: 100%; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero .phone { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav .nav-link { display: none; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .download-card { padding: 48px 20px; }
}
