/* ---------------------------------------------------------------------
   Optic Gecko site — shared by the landing page and the legal pages.

   Structural language borrowed from webgecko.au (fixed nav, full-height
   hero, ~90px section rhythm, Oswald display over Inter body, uppercase
   letterspaced buttons, scroll-reveal) but the palette is the app's own
   Meridian/Understory greens rather than webgecko's near-black and orange —
   this is the product's site, so it should look like the product.

   Every path in here and in the pages is RELATIVE. The site is served from a
   subpath (webgecko.au/optic-gecko/), so a leading slash would resolve to
   the parent domain root and 404.
   --------------------------------------------------------------------- */

:root {
  --canopy: #10201A;   /* app --bg-canopy */
  --under:  #172C24;   /* app --bg-understory */
  --panel:  #1B3229;
  --line:   #2A4438;
  --text:   #EDE7D9;
  --muted:  #A9BDB1;
  --moss:   #6FA287;
  --gold:   #E8B84B;
  --clay:   #D97D54;
  --shadow: 0 18px 50px rgba(0, 0, 0, .5);
  --disp: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Inter', system-ui, 'Segoe UI', Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canopy);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }

a { color: var(--gold); }

h1, h2, h3 { font-family: var(--disp); font-weight: 600; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 74px); letter-spacing: -0.5px; }
h2 { font-size: clamp(28px, 4.2vw, 44px); }
h3 { font-size: 20px; }

.eyebrow {
  font-family: var(--disp);
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 14px;
}

/* ---- nav ---------------------------------------------------------- */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
nav.is-stuck {
  background: rgba(16, 32, 26, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.nav-row { display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.brand span { font-family: var(--disp); font-size: 21px; font-weight: 600; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* ---- buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--disp); font-weight: 600; font-size: 15px;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 15px 28px; border-radius: 10px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--moss); color: #06180F; box-shadow: 0 10px 30px rgba(111, 162, 135, .25); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--moss); color: var(--moss); }

/* ---- hero --------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 150px 0 90px;
  position: relative; overflow: hidden;
}
.hero::after {
  /* Soft canopy glow, purely decorative. */
  content: ''; position: absolute; z-index: 0;
  width: 780px; height: 780px; right: -220px; top: -180px;
  background: radial-gradient(circle, rgba(111,162,135,.16), transparent 62%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 22px 0 34px; max-width: 54ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--muted); }
.hero-shot { display: flex; justify-content: center; }
.hero-shot img {
  width: min(300px, 78%); border-radius: 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow); display: block;
}

/* ---- pill row ----------------------------------------------------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill {
  font-size: 13px; color: var(--moss);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; background: var(--under);
}

/* ---- sections ----------------------------------------------------- */
section { padding: 90px 0; }
.section-head { max-width: 62ch; margin-bottom: 46px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 14px 0 0; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--under);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
}
.card h3 { margin-bottom: 9px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.card-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(111,162,135,.14); color: var(--moss);
  margin-bottom: 16px; font-size: 20px;
}

/* ---- stats -------------------------------------------------------- */
.stats { padding: 60px 0; border-block: 1px solid var(--line); background: var(--under); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { font-family: var(--disp); font-size: 40px; color: var(--gold); line-height: 1; }
.stat-lbl { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---- steps -------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-left: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-size: 18px;
  background: var(--moss); color: #06180F;
}
.step p { color: var(--muted); margin: 8px 0 0; font-size: 15.5px; }

/* ---- shots -------------------------------------------------------- */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shots figure { margin: 0; }
.shots img {
  width: 100%; border-radius: 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow); display: block;
}
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; text-align: center; }

/* ---- faq ---------------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  background: var(--under); border: 1px solid var(--line);
  border-radius: 12px; padding: 4px 20px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-weight: 600; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--moss); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq p { color: var(--muted); margin: 0 0 18px; font-size: 15.5px; }

/* ---- cta ---------------------------------------------------------- */
.cta { text-align: center; background: var(--under); border-block: 1px solid var(--line); }
.cta p { color: var(--muted); font-size: 18px; margin: 16px auto 30px; max-width: 52ch; }

/* ---- footer ------------------------------------------------------- */
footer { border-top: 1px solid var(--line); padding: 46px 0 34px; }
.foot-row { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; }
.foot-links { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--text); }
.foot-fine { color: var(--muted); font-size: 13.5px; margin-top: 22px; }

/* ---- legal pages -------------------------------------------------- */
.doc { padding: 150px 0 80px; }
.doc-inner { max-width: 78ch; }
.doc h1 { font-size: clamp(32px, 5vw, 52px); }
.doc .sub { color: var(--muted); margin: 10px 0 34px; font-size: 15.5px; }
.doc h2 { font-size: 23px; color: var(--moss); margin: 40px 0 12px; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; }
.doc p, .doc li { color: #D9D3C6; }
.doc ul, .doc ol { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--moss); }
.doc code { background: var(--under); padding: 2px 7px; border-radius: 5px; font-size: .92em; }
.lede {
  background: var(--under); border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px; padding: 20px 22px; margin: 0 0 30px;
}
.lede p { margin: 0; }
.lede p + p { margin-top: 10px; }

/* ---- scroll reveal ------------------------------------------------ */
/* Scoped to .js, which an inline script in <head> sets before first paint.
   Without that scope the whole page starts at opacity:0 and only JavaScript
   ever makes it visible — so a script error, a blocked file or a browser
   with JS off renders a blank marketing site. Progressive enhancement: no
   JS means no animation, never means no content. */
.js .reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---- responsive --------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { min-height: auto; padding: 130px 0 70px; }
  .grid-3, .grid-4, .steps, .shots { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links { display: none; }

  /* Footer and brand are standalone navigation, not links inside a sentence,
     so the 44px target minimum applies to them. Links inline in prose are
     exempt and are deliberately left alone — padding those would wreck the
     line spacing of the paragraphs they sit in. */
  .foot-links { gap: 4px 22px; }
  .foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .brand { min-height: 44px; }
  section { padding: 64px 0; }
  .grid-3, .grid-4, .steps, .shots { grid-template-columns: 1fr; }
  .hero-shot img { width: min(260px, 70%); }

  /* The privacy policy's three-column disclosure table cannot fit 390px and
     was pushing the whole page 73px sideways. Let the table scroll inside
     its own box instead of dragging the document with it. */
  .doc table { display: block; overflow-x: auto; max-width: 100%; }
  /* A row of adjacent CTAs on a phone needs full-width targets. */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

/* Motion is decoration; never let it hide content. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
