/* Weed Protocol landing page. No external requests: fonts and images are all local. */

@font-face {
  font-family: "Fredoka One";
  src: url("../fonts/FredokaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  /* wasteland */
  --sand-50: #fdf6e7;
  --sand-100: #f6e7c6;
  --sand-200: #ecd4a0;
  --sand-400: #d6aa66;
  --earth-600: #94633a;
  --earth-800: #4f3320;
  /* meadow */
  --leaf-200: #cfe8a4;
  --leaf-400: #8cc152;
  --leaf-600: #5b9a37;
  --leaf-700: #3d7230;
  --leaf-900: #1d3a20;
  /* machines */
  --teal-300: #9cc3b6;
  --teal-500: #5d8d80;
  --teal-700: #3c6359;
  --teal-900: #223b35;
  --orange: #ec7a2c;
  --orange-deep: #c95d17;
  --cream: #f7efdc;
  --lens: #7fe3ea;
  --ink: #2c261d;
  --ink-soft: #5a4c3a;
  --term-bg: #071209;
  --term-fg: #59f27f;

  --font-display: "Fredoka One", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --radius: 18px;
  --shadow: 0 2px 0 rgba(79, 51, 32, .18), 0 14px 30px -12px rgba(79, 51, 32, .45);
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.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; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand-50);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-700); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
em { font-style: italic; }

.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--cream); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .02em;
  color: #2a1606; background: var(--orange);
  padding: .7em 1.4em; border-radius: 14px; text-decoration: none;
  border: 3px solid #2a1606;
  box-shadow: 0 5px 0 #2a1606;
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
  margin: 0;
}
.btn:hover { background: #f58c43; transform: translateY(-2px); box-shadow: 0 7px 0 #2a1606; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #2a1606; }
.btn-ghost { background: var(--cream); }
.btn-ghost:hover { background: #fff8e8; }
.btn-small { font-size: .95rem; padding: .35em .9em; border-width: 2px; box-shadow: 0 3px 0 #2a1606; border-radius: 10px; }
.btn-small:hover { box-shadow: 0 4px 0 #2a1606; }
.btn-big { font-size: 1.5rem; padding: .7em 1.8em; }
.btn-static, .btn-static:hover { cursor: default; transform: none; background: var(--teal-300); box-shadow: 0 5px 0 #2a1606; }

/* ---------- top bar ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px max(var(--gutter), calc((100% - 1160px) / 2));
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-family: var(--font-display); font-size: 1.25rem; text-shadow: 0 2px 6px rgba(0,0,0,.45); }
.brand img { border-radius: 50%; border: 2px solid var(--cream); }
.topbar nav { display: flex; align-items: center; gap: 22px; }
.topbar nav a:not(.btn) { color: var(--cream); text-decoration: none; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.55); }
.topbar nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(92vh, 900px);
  display: flex; align-items: flex-end;
  background: var(--earth-800);
}
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 50% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(40, 24, 10, .45) 0%, rgba(40, 24, 10, 0) 18%),
    linear-gradient(0deg, rgba(36, 22, 10, .82) 0%, rgba(36, 22, 10, .35) 32%, rgba(36, 22, 10, 0) 55%);
}
.hero-copy {
  position: relative; z-index: 1;
  width: min(1160px, 100% - 2 * var(--gutter)); margin: 0 auto; padding-bottom: clamp(36px, 7vh, 80px);
  color: var(--cream);
}
/* Wide screens: keep the copy over the meadow on the right, so the ranger and NIGEL stay clear. */
@media (min-width: 1000px) {
  .hero-copy { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
  .hero-copy > * { max-width: 520px; }
  .hero-actions { justify-content: flex-end; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(40, 24, 10, .45) 0%, rgba(40, 24, 10, 0) 18%),
      radial-gradient(ellipse 60% 75% at 100% 100%, rgba(30, 22, 10, .85) 0%, rgba(30, 22, 10, .5) 45%, rgba(30, 22, 10, 0) 100%);
  }
}
.kicker { font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: var(--leaf-200); margin-bottom: .4em; }
.hero h1 {
  font-size: clamp(3rem, 8vw, 6.4rem);
  color: var(--cream);
  text-shadow: 0 4px 0 var(--earth-800), 0 10px 30px rgba(0,0,0,.45);
  margin-bottom: .2em;
}
.tagline { font-size: clamp(1.1rem, 1.9vw, 1.35rem); max-width: 34em; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.4em; }

/* ---------- sections ---------- */
.section-title { font-size: clamp(2rem, 4.4vw, 3rem); text-align: center; color: var(--leaf-900); }
.section-sub { text-align: center; color: var(--ink-soft); max-width: 40em; margin: -.4em auto 2em; }

/* paper grain, drawn by the browser */
.sand, .features, .gallery-section {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* pitch on sand, with cracks */
.pitch { position: relative; background-color: var(--sand-100); padding: clamp(56px, 9vw, 110px) 0 clamp(90px, 10vw, 130px); }
.pitch-grid { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr; align-items: center; }
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.2;
  color: var(--earth-800); margin: 0 0 .5em;
}
.quote figcaption { font-weight: 700; color: var(--teal-700); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }
.quote figcaption::before { content: ""; display: inline-block; width: 28px; height: 4px; background: var(--orange); border-radius: 2px; vertical-align: middle; margin-right: 10px; }
.pitch-text { font-size: 1.12rem; color: var(--ink); }
@media (min-width: 900px) { .pitch-grid { grid-template-columns: 5fr 6fr; } }

.edge { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 80px); display: block; }
.edge-grass path { fill: var(--sand-50); }

/* features: sand at the top, green by the end */
.features {
  background-color: var(--sand-50);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .3 0 0 0 0 .15 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--sand-50) 0%, #f1efd0 45%, #dcebbd 80%, var(--leaf-200) 100%);
  padding: clamp(40px, 6vw, 72px) 0 clamp(60px, 8vw, 100px);
}
.feature {
  display: grid; grid-template-columns: 1fr; gap: clamp(20px, 4vw, 56px); align-items: center;
  margin: clamp(40px, 7vw, 96px) 0;
}
.feature:first-of-type { margin-top: clamp(24px, 4vw, 48px); }
.feature:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature.flip .shot { order: 2; }
}
.shot {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 5px solid var(--cream); box-shadow: var(--shadow);
  background: var(--sand-200);
  transform: rotate(-.8deg);
}
.feature.flip .shot { transform: rotate(.8deg); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-text h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--leaf-900); }
.feature-text p { color: var(--ink); }
.feature-text .chip {
  display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream); background: var(--teal-700);
  padding: .3em .85em; border-radius: 999px; margin-bottom: .9em;
  box-shadow: inset 0 -3px 0 var(--orange);
}
.feature-text .chip-orange { background: var(--orange-deep); box-shadow: inset 0 -3px 0 var(--teal-900); }

/* NIGEL */
.nigel-art {
  margin: 0 auto; width: min(420px, 86%);
  aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, var(--cream) 58%, #eadcb8 100%);
  border: 5px solid var(--teal-500);
  box-shadow: var(--shadow), inset 0 0 0 8px rgba(255,255,255,.5);
  display: grid; place-items: center; overflow: hidden;
  animation: hover 5s ease-in-out infinite;
}
.nigel-art img { width: 92%; mix-blend-mode: multiply; }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.terminal {
  margin-top: 1.4em; background: var(--term-bg); color: var(--term-fg);
  font-family: var(--font-mono); font-size: 1rem; line-height: 1.5;
  border-radius: 12px; border: 4px solid var(--teal-900);
  box-shadow: var(--shadow), inset 0 0 40px rgba(89, 242, 127, .08);
  position: relative; overflow: hidden;
}
.terminal::after { /* scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px);
}
.terminal-bar { padding: 6px 14px; font-size: .78rem; letter-spacing: .12em; color: #2f9a4f; border-bottom: 1px dashed #1f5a30; }
.terminal .terminal-line { color: var(--term-fg); margin: 0; padding: 14px 14px 6px; min-height: 5.6em; text-shadow: 0 0 4px rgba(89, 242, 127, .35); }
.terminal-line::before { content: "> "; color: #2f9a4f; }
.terminal-line.typing::after { content: "█"; animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.terminal-next {
  font: inherit; font-size: .82rem; color: #2f9a4f; background: none; border: 0; cursor: pointer;
  padding: 4px 14px 12px; position: relative; z-index: 1;
}
.terminal-next:hover { color: var(--term-fg); }

/* ---------- gallery ---------- */
.gallery-section {
  background-color: var(--leaf-200);
  padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 9vw, 110px);
}
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a {
  display: block; border-radius: 14px; overflow: hidden; border: 4px solid var(--cream);
  box-shadow: var(--shadow); background: var(--leaf-600);
  transition: transform .18s ease;
}
.gallery a:hover { transform: translateY(-4px) rotate(-.6deg); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
.lightbox::backdrop { background: rgba(18, 26, 16, .9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; width: min(1600px, 94vw); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 10px; border: 4px solid var(--cream); background: #000; }
.lightbox figcaption { color: var(--cream); text-align: center; margin-top: 12px; font-size: 1rem; padding: 0 48px; }
.lb-btn {
  position: fixed; font-size: 2.2rem; line-height: 1; width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid #2a1606; background: var(--cream); color: #2a1606; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 3px 0 #2a1606;
}
.lb-btn:hover { background: var(--orange); }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 12px; top: 12px; }

/* ---------- call to action ---------- */
.cta {
  position: relative; text-align: center; color: var(--cream);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(207, 232, 164, .35), transparent 60%),
    linear-gradient(180deg, var(--leaf-600), var(--leaf-700));
  padding: clamp(60px, 9vw, 110px) 0;
}
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); text-shadow: 0 3px 0 var(--leaf-900); }
.cta p { font-size: 1.15rem; }
.cta .btn { margin-top: .6em; }
.signup { max-width: 600px; margin: 1.4em auto 0; }
.signup-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.signup input[type="email"] {
  flex: 1 1 260px; min-width: 0;
  font: inherit; font-size: 1.1rem; color: var(--ink);
  padding: .7em 1em; border-radius: 14px; border: 3px solid #2a1606; background: var(--cream);
  box-shadow: inset 0 3px 0 rgba(42, 22, 6, .12);
}
.signup input[type="email"]::placeholder { color: #8a7a62; }
.signup .btn { margin-top: 0; flex: 0 0 auto; }
.cta .signup-note { font-size: .92rem; opacity: .9; margin-top: 1.1em; }

/* ---------- footer ---------- */
.footer { background: var(--leaf-900); color: var(--leaf-200); padding: 28px 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.footer p { margin: 0; }
.footer .privacy { flex-basis: 100%; font-size: .85rem; opacity: .8; }
.brand-foot { font-family: var(--font-display); font-size: 1.2rem; color: var(--cream); }

/* ---------- phones ---------- */
/* Below 1000 px the key art sits on top and the copy goes underneath, so nothing covers the ranger. */
@media (max-width: 999px) {
  .hero { display: block; min-height: 0; background: var(--earth-800); }
  .hero-art { position: relative; display: block; aspect-ratio: 16 / 9; height: auto; }
  .hero::after { background: linear-gradient(180deg, rgba(40, 24, 10, .5) 0%, rgba(40, 24, 10, 0) 22%); height: 120px; }
  .hero-copy { padding: 26px 0 40px; }
}
@media (max-width: 760px) {
  .topbar { padding-block: 10px; }
  .topbar nav a:not(.btn) { display: none; }
  .brand { font-size: 1.1rem; }

  .hero-art { aspect-ratio: 4 / 3.4; }
  .hero-art img { object-position: 46% 50%; }
  .hero-copy { padding: 22px 0 36px; }
  .hero-actions .btn { flex: 1 1 auto; }

  .shot, .feature.flip .shot { transform: none; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lightbox figcaption { padding: 0 8px 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
