:root {
  --bg: #080d18;
  --bg2: #101a2e;
  --bg3: #18233c;
  --text: #f4f7fc;
  --subtle: #9fb0c9;
  --line: #212d45;
  --accent: #2ed573;
  --accent-dark: #15803d;
  --btn-text: #06210f;
  --radius: 16px;
}
html[data-theme="light"] {
  --bg: #eef2f7;
  --bg2: #ffffff;
  --bg3: #f1f5f9;
  --text: #0f172a;
  --subtle: #475569;
  --line: #d8dee8;
  --accent: #15803d;
  --accent-dark: #0f5c2e;
  --btn-text: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* nav */
header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); }
.brand svg { width: 26px; height: 26px; }
.nav .spacer { flex: 1; }
.nav a.navlink { color: var(--subtle); font-weight: 600; font-size: 15px; }
.nav a.navlink:hover { color: var(--text); }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--subtle); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }

/* buttons */
.btn {
  display: inline-block; font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: var(--btn-text); border: none; cursor: pointer;
}
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn:hover { filter: brightness(1.07); }

/* pills */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--subtle);
  background: var(--bg2); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 84px 0 70px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; margin: 20px 0 0; }
.hero h1 .grn { color: var(--accent); }
.hero p.lead { color: var(--subtle); font-size: 19px; margin: 20px 0 30px; max-width: 32em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,213,115,.22), transparent 62%); filter: blur(8px);
}
.watch {
  position: relative; width: 290px; height: 290px; border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #16233d, #05080f);
  border: 11px solid #04070d; display: grid; place-items: center;
  box-shadow: 0 34px 80px rgba(0,0,0,.6);
}
.watch.sm { width: 188px; height: 188px; border-width: 8px; box-shadow: 0 18px 44px rgba(0,0,0,.5); }

/* sections */
section { padding: 70px 0; border-top: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
section h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin-top: 10px; }
section .sub { color: var(--subtle); margin-top: 10px; margin-bottom: 34px; font-size: 17px; max-width: 44em; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--bg2), color-mix(in srgb, var(--bg2) 70%, var(--bg)));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card .n { width: 36px; height: 36px; border-radius: 10px; background: rgba(46,213,115,.15); color: var(--accent); font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.card .ic { width: 40px; height: 40px; margin-bottom: 12px; color: var(--accent); }
.card h3 { font-size: 18px; margin-bottom: 7px; }
.card p { color: var(--subtle); font-size: 15px; }

/* device mockup row */
.devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; justify-items: center; }
.device { display: grid; justify-items: center; gap: 14px; }
.device .label { color: var(--subtle); font-size: 14px; font-weight: 600; }
.postcard {
  width: 188px; min-height: 188px; box-sizing: border-box;
  background: linear-gradient(180deg, var(--bg2), color-mix(in srgb, var(--bg2) 70%, var(--bg)));
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
  padding: 18px 16px; display: flex; flex-direction: column; gap: 5px; text-align: left;
}
.postcard .pc-name { color: var(--accent); font-weight: 800; font-size: 16px; }
.postcard .pc-loc { color: var(--subtle); font-size: 11px; }
.postcard .pc-story { color: var(--text); font-size: 12px; line-height: 1.5; margin-top: 4px; }

/* privacy */
.privacy-band { background: linear-gradient(180deg, rgba(46,213,115,.06), transparent); }

/* trails */
.trails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trail { display: flex; align-items: center; gap: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 15px; }
.trail svg { width: 30px; height: 30px; flex: none; }
.trail .t-name { font-weight: 700; font-size: 15px; }
.trail .t-meta { color: var(--subtle); font-size: 13px; }
.tag { margin-left: auto; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 4px 9px; border-radius: 999px; }
.tag.free { background: rgba(46,213,115,.18); color: var(--accent); }
.tag.soon { background: rgba(159,176,201,.14); color: var(--subtle); }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 14px; }

footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--subtle); font-size: 14px; }
footer .row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
footer .spacer { flex: 1; }

/* legal page */
.legal { max-width: 760px; padding: 52px 0; }
.legal h1 { font-size: 38px; font-weight: 800; margin-bottom: 6px; }
.legal .updated { color: var(--subtle); margin-bottom: 30px; }
.legal h2 { font-size: 21px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--subtle); font-size: 16px; }
.legal ul { margin: 8px 0 8px 22px; }

/* feature list */
.feat { list-style: none; display: grid; gap: 13px; }
.feat li { position: relative; padding-left: 30px; color: var(--subtle); font-size: 16px; }
.feat li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.feat b { color: var(--text); }
.feat-two { grid-template-columns: 1fr 1fr; gap: 13px 28px; }

/* companion screenshots */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; justify-items: center; max-width: 720px; margin: 0 auto 34px; }
.shot { display: grid; justify-items: center; gap: 10px; margin: 0; }
.shot img { width: 100%; max-width: 220px; border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 22px 50px rgba(0,0,0,.5); display: block; }
.shot figcaption { color: var(--subtle); font-size: 14px; font-weight: 600; }

/* email signup */
.signup { display: flex; gap: 10px; max-width: 480px; flex-wrap: wrap; }
.email-in {
  flex: 1; min-width: 220px; background: var(--bg2); border: 1px solid var(--line);
  color: var(--text); border-radius: 999px; padding: 13px 20px; font-size: 15px; outline: none;
}
.email-in:focus { border-color: var(--accent); }
.trial-msg { width: 100%; color: var(--accent); font-size: 14px; margin-top: 8px; min-height: 18px; }
.eo-embed { max-width: 480px; }
/* theme the EmailOctopus embed to follow the active theme (light or dark) */
.eo-embed input[type="email"], .eo-embed input[type="text"] {
  background: var(--bg2) !important; border: 1px solid var(--line) !important; color: var(--text) !important;
  border-radius: 999px !important; padding: 13px 20px !important;
}
.eo-embed button, .eo-embed input[type="submit"] {
  background: var(--accent) !important; color: var(--btn-text) !important; border: none !important;
  border-radius: 999px !important; font-weight: 700 !important; padding: 13px 24px !important; cursor: pointer;
}

@media (max-width: 860px) {
  .hero, .cols, .feat-two { grid-template-columns: 1fr; }
  .grid3, .trails, .devices { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .devices { gap: 30px; }
  .hero-art { order: -1; }
}
