/* ------------------------------------------------------------------
   The app's HUD x natural kit, on the web: frosted dark glass over a
   sky photo (the app's home screen puts the same glass over sky
   video), a leaf-green to circuit-teal edge taken from the logo,
   Bicubik labels, Space Mono readouts, short corner brackets.
     lib/shared/widgets/hud.dart        (Hud colours, HudPanel)
     lib/core/constants/app_text_styles.dart
   Deliberately dark-only: the white wordmark needs a dark ground.
   ------------------------------------------------------------------ */
@font-face {
  font-family: "Bicubik";
  src: url("/fonts/Bicubik-Regular.otf") format("opentype");
  font-display: swap;
}
:root {
  --green:      #9CCC65;  /* Hud.green = AppColors.primaryLight */
  --teal:       #2DE1C2;  /* Hud.teal                            */
  --sun:        #F2A93B;  /* Hud.sun                             */
  --glass-top:  rgba(20, 42, 28, .70);   /* Hud.glassTop    */
  --glass-bot:  rgba(10, 20, 13, .85);   /* Hud.glassBottom */
  --ink:        #FFFFFF;
  --ink-soft:   rgba(255, 255, 255, .72);
  --ink-faint:  rgba(255, 255, 255, .5);
  --danger:     #FF8A80;
  --display: "Bicubik", "Eurostile", "Helvetica Neue", sans-serif;
  --body:    "Space Mono", ui-monospace, Menlo, monospace;
  --mono:    "Space Mono", ui-monospace, Menlo, monospace;

  /* names the GAIA chat styles below were written against */
  --primary: #7CB342; --primary-light: var(--green);
  --surface: #142A1C; --card: #0F1F15; --channel: #0A140D;
  --rule: rgba(45, 225, 194, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--body); color: var(--ink); line-height: 1.55;
  background-color: #0A140D;
  -webkit-font-smoothing: antialiased;
}

/* backdrop: drifts through photos of gardens and food forests. Fixed to the viewport under one constant tint, so the glass
   panels read the same whichever photo is showing. */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #0A140D; }
.backdrop .slide {
  position: absolute; inset: -4%; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 2.4s ease;
}
.backdrop .slide.on { opacity: 1; animation: drift-zoom 14s ease-out forwards; }
.backdrop .slide.first { opacity: 1; }
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,13,.35) 0%, rgba(10,20,13,.78) 45%, #0A140D 92%);
}
@keyframes drift-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .backdrop .slide { transition: none; } .backdrop .slide.on { animation: none; }
}
a { color: var(--teal); }

.wrap { width: min(100% - 32px, 60rem); margin-inline: auto; }

/* ---------- HUD primitives ---------- */
.label {
  font-family: var(--display); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--teal); margin: 0;
}
.hud {
  position: relative; border-radius: 18px;
  background: linear-gradient(135deg, var(--glass-top), var(--glass-bot));
  border: 1px solid rgba(45, 225, 194, .45);
  box-shadow: 0 0 16px rgba(45, 225, 194, .16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: clamp(1.1rem, 3vw, 1.6rem);
}
/* HudCornerBrackets: 16px arms, 10px in from each corner */
.hud::before {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  --b: var(--teal);
  background:
    linear-gradient(var(--b), var(--b)) top left    / 16px 2px no-repeat,
    linear-gradient(var(--b), var(--b)) top left    / 2px 16px no-repeat,
    linear-gradient(var(--b), var(--b)) top right   / 16px 2px no-repeat,
    linear-gradient(var(--b), var(--b)) top right   / 2px 16px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom left / 16px 2px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom left / 2px 16px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right/ 16px 2px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right/ 2px 16px no-repeat;
  opacity: .9;
}
.hud > * { position: relative; }
.hud--sun { border-color: rgba(242, 169, 59, .6); box-shadow: 0 0 16px rgba(242,169,59,.16); }
.hud--sun::before { --b: var(--sun); }
.hud--sun .label { color: var(--sun); }

/* ---------- top bar ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.top .mark {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  font-family: var(--display); font-size: .82rem; letter-spacing: .22em; color: var(--ink);
}
.top .mark img { width: 30px; height: 30px; border-radius: 8px; }
.top .cta {
  font-family: var(--display); font-size: .66rem; letter-spacing: .2em;
  text-transform: uppercase; text-decoration: none; color: var(--teal);
  border: 1px solid rgba(45,225,194,.5); border-radius: 999px; padding: .55rem 1rem;
}
.top .cta:hover { background: rgba(45,225,194,.12); }

/* ---------- hero ---------- */
.hero { text-align: center; padding: clamp(1rem, 5vh, 3.5rem) 0 clamp(2.5rem, 7vh, 4.5rem); }
.hero .logo {
  width: clamp(170px, 30vw, 250px); height: auto;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.55));
}
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.5rem, 4.6vw, 2.6rem); line-height: 1.2; letter-spacing: .04em;
  margin: 1.2rem auto .8rem; max-width: 22ch;
  text-shadow: 0 0 22px rgba(156, 204, 101, .35);
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--green), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { margin: 0 auto; max-width: 34rem; color: var(--ink-soft); font-size: 1.06rem; }

/* ---------- signup ---------- */
.signup { max-width: 34rem; margin: 2rem auto 0; text-align: left; }
.signup form { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.signup input[type="email"] {
  flex: 1 1 13rem; min-width: 0; border-radius: 12px; padding: .9rem 1rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: rgba(255,255,255,.06); border: 1px solid rgba(45,225,194,.35);
}
.signup input[type="email"]::placeholder { color: var(--ink-faint); }
.signup input[type="email"]:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,225,194,.18); }
.signup .send { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .2rem; }
.seg { flex-basis: 100%; border: 0; margin: 0 0 .2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.seg legend { width: 100%; padding: 0; margin-bottom: .45rem; font-size: .85rem; color: var(--ink-faint); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-block; padding: .5rem .9rem; border-radius: 999px; font-size: .88rem;
  border: 1px solid rgba(45,225,194,.35); color: var(--ink-soft); background: rgba(255,255,255,.04);
  transition: background .15s, color .15s, border-color .15s;
}
.seg input:checked + span {
  color: #0A140D; background: linear-gradient(90deg, var(--green), var(--teal)); border-color: transparent;
}
.seg input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.org { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .6rem; }
.org[hidden] { display: none; }
.org[data-type="community"] .biz-only { display: none; }
.fld { flex: 1 1 12rem; min-width: 0; display: grid; gap: .3rem; font-size: .82rem; color: var(--ink-soft); }
.fld.full { flex-basis: 100%; }
.fld em { font-style: normal; color: var(--ink-faint); }
.fld input, .fld select {
  width: 100%; border-radius: 12px; padding: .75rem .9rem; font: inherit; font-size: 1rem;
  color: var(--ink); background: rgba(255,255,255,.06); border: 1px solid rgba(45,225,194,.35);
}
.fld select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--teal) 50%), linear-gradient(135deg, var(--teal) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.fld select option { color: #0A140D; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,225,194,.18); }
.signup button[type="submit"] {
  flex: 0 0 auto; cursor: pointer; border: 0; border-radius: 12px; padding: .9rem 1.5rem;
  font-family: var(--display); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: #0A140D; background: linear-gradient(90deg, var(--green), var(--teal));
  box-shadow: 0 0 18px rgba(45,225,194,.3);
}
.signup button[type="submit"]:hover { filter: brightness(1.08); }
.signup button[type="submit"]:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.signup button[disabled] { opacity: .55; cursor: default; }
.optin {
  flex-basis: 100%; display: flex; gap: .65rem; align-items: flex-start;
  margin-top: .3rem; font-size: .92rem; color: var(--ink-soft); cursor: pointer;
}
.optin strong { color: var(--ink); font-weight: 500; }
.optin input, .platform input { accent-color: var(--teal); }
.optin input { width: 18px; height: 18px; margin: .12rem 0 0; flex: 0 0 auto; }
.platform {
  flex-basis: 100%; border: 0; margin: 0; padding: 0 0 0 1.85rem;
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; font-size: .9rem;
}
.platform[hidden] { display: none; }
.platform legend { float: left; padding: 0; margin-right: .3rem; color: var(--ink-faint); }
.platform label { display: inline-flex; gap: .4rem; align-items: center; cursor: pointer; }
.status { font-size: .93rem; margin: .7rem 0 0; min-height: 1.4em; }
.status:empty { display: none; }
.status[data-state="ok"]  { color: var(--teal); font-weight: 500; }
.status[data-state="err"] { color: var(--danger); }
.note { font-size: .8rem; color: var(--ink-faint); margin: .8rem 0 0; }

/* ---------- sections ---------- */
section.band { padding: clamp(2rem, 6vh, 3.5rem) 0; }
.band h2 {
  font-family: var(--display); font-weight: 400; letter-spacing: .04em;
  font-size: clamp(1.15rem, 3vw, 1.6rem); line-height: 1.3; margin: .55rem 0 1.4rem;
}
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 52rem) { .grid { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 34rem) { .grid, .grid--2 { grid-template-columns: 1fr; } }
.hud h3 { font-size: 1.02rem; font-weight: 500; line-height: 1.35; margin: .7rem 0 0; }
.hud p { color: var(--ink-soft); font-size: .94rem; margin: .5rem 0 0; }
.ic { width: 26px; height: 26px; stroke: var(--teal); }

/* audience cards: photo header with the icon chip riding its lower edge */
.card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card::before { z-index: 2; }
/* clip the photo on top and sides only, so the icon chip can hang below it */
.card .ph { position: relative; aspect-ratio: 4 / 3; clip-path: inset(0 0 -30px 0); }
.card .ph img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s ease; transform-origin: 50% 100%;
}
.card:hover .ph img { transform: scale(1.04); }
.card .ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,13,0) 45%, rgba(10,20,13,.9) 100%);
}
.card .chip {
  position: absolute; left: 14px; bottom: -18px; z-index: 1;
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: #0F1F15; border: 1px solid rgba(45,225,194,.55);
  box-shadow: 0 0 12px rgba(45,225,194,.25);
}
.card .chip .ic { width: 22px; height: 22px; }
.card .body { padding: 1.4rem 1.15rem 1.25rem; }
.card h3 { margin-top: .1rem; }
@media (prefers-reduced-motion: reduce) { .card .ph img { transition: none; } }

/* values cards: photo under the glass, like HudPanel(background:) */
.hud--photo { overflow: hidden; min-height: 15rem; display: flex; flex-direction: column; justify-content: flex-end; }
.hud--photo > .bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hud--photo > .tint {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg, rgba(20,42,28,.45) 0%, rgba(10,20,13,.92) 70%);
}
.hud--photo::before { z-index: 2; }

/* drifting filmstrip of plant close-ups (the old page's columns, laid flat) */
.strip {
  overflow: hidden; margin: 0 calc(50% - 50vw); padding: .4rem 0 1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip .track { display: flex; gap: 14px; width: max-content; animation: drift 80s linear infinite; }
.strip:hover .track { animation-play-state: paused; }
.strip figure { margin: 0; position: relative; flex: 0 0 auto; }
.strip img {
  display: block; height: clamp(130px, 18vw, 190px); width: auto; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: 14px; border: 1px solid rgba(45,225,194,.35);
  box-shadow: 0 0 12px rgba(45,225,194,.12);
}
.strip figcaption {
  position: absolute; left: 10px; bottom: 8px; font-family: var(--mono); font-size: .7rem;
  color: #fff; background: rgba(10,20,13,.72); padding: .12rem .45rem; border-radius: 6px;
}
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .strip { overflow-x: auto; } .strip .track { animation: none; }
}
.hud--sun .ic { stroke: var(--sun); }

/* readouts: Space Mono, like the app's data rows */
.readout {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.2rem;
  font-family: var(--mono); font-size: .82rem; color: var(--ink-soft);
  padding: 1.4rem 0 .4rem;
}
.readout b { color: var(--green); font-weight: 400; }

footer {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: baseline;
  padding: 1.4rem 0 2.5rem; margin-top: 1.5rem;
  border-top: 1px solid rgba(45,225,194,.25);
  font-size: .8rem; color: var(--ink-faint);
}
footer a {
  color: var(--ink-soft); text-decoration: none;
  font-family: var(--display); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
}
footer a:hover { color: var(--teal); }
footer .sp { margin-left: auto; }
footer .credit { flex-basis: 100%; font-size: .72rem; margin: 0; }
footer .credit a { font: inherit; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }

/* ---------- projectG.A.I.A. ----------
   A circle button, bottom-right, that toggles a chat panel. Inside the
   panel GAIA's face sits in a small box: a VRM model on a WebGL canvas
   that lip-syncs while an answer is being delivered. The leaf mark is the
   fallback if the model can't load, so the chat works either way.
   -------------------------------- */

/* the circle button */
.gfab {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(135deg, var(--primary-light), #558B2F);
  border: 1px solid rgba(245,249,243,.22);
  box-shadow: 0 6px 22px rgba(0,0,0,.45), 0 0 0 0 rgba(156,204,101,.4);
  padding: 0;
  transition: transform .22s ease, box-shadow .22s ease, opacity .2s ease;
  animation: gfabpulse 3.4s ease-in-out infinite;
}
/* the app's GAIA mark (lib/shared/widgets/gaia_mark.dart): white leaf, green midrib */
.gfab svg { width: 37px; height: 37px; }
.gfab:hover { transform: scale(1.07); }
.gfab:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 3px; }
/* hidden rather than removed, so focus can return to it on close */
.gfab[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: scale(.85); }
@keyframes gfabpulse {
  0%, 100% { box-shadow: 0 6px 22px rgba(0,0,0,.45), 0 0 0 0 rgba(156,204,101,.35) }
  50%      { box-shadow: 0 6px 26px rgba(0,0,0,.45), 0 0 0 10px rgba(156,204,101,0) }
}
/* a one-time nudge so the button is noticed at all on a landing page */
.gfab .tag {
  position: absolute; right: calc(100% + .6rem); top: 50%;
  transform: translateY(-50%);
  white-space: nowrap; pointer-events: none;
  font-family: var(--display); font-size: .6rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .4rem .6rem; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--rule); color: var(--ink);
  opacity: 0; transition: opacity .35s ease;
}
.gfab:hover .tag, .gfab:focus-visible .tag { opacity: 1; }
.gfab[data-nudge="on"] .tag { opacity: 1; }

/* the panel */
.gpanel {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 61;
  width: min(24.5rem, calc(100vw - 2.8rem));
  display: flex; flex-direction: column;
  background: var(--channel);
  border: 1px solid var(--rule); border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  overflow: hidden;
  transform-origin: bottom right;
  transform: translateY(14px) scale(.96); opacity: 0; pointer-events: none;
  transition: transform .24s ease, opacity .24s ease;
}
.gpanel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .gfab { animation: none }
  .gpanel { transition: opacity .15s ease; transform: none }
  .gpanel.open { transform: none }
}

/* panel header: the face box, the name, the close button */
.ghead {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem .85rem; border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
.ghead .who { display: grid; flex: 1; min-width: 0; }
.ghead .nm {
  font-family: var(--display); font-weight: 700; font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--primary-light);
}
.ghead .sub {
  font-size: .74rem; color: var(--ink-soft);
  display: flex; align-items: center; gap: .4rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* goes solid once the semantic matcher has warmed up */
.ghead .sub .dot {
  width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto;
  background: var(--rule); transition: background .4s ease;
}
.ghead .sub[data-mode="semantic"] .dot { background: var(--primary); }

.gclose {
  flex: 0 0 auto; width: 28px; height: 28px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: none; border: 1px solid transparent; border-radius: 8px;
  box-shadow: none;
}
.gclose svg { width: 14px; height: 14px; stroke: var(--ink-soft); fill: none; }
.gclose:hover { border-color: var(--rule); }
.gclose:hover svg { stroke: var(--ink); }
.gclose:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 1px; }

/* ---- the face box ---- */
.gface {
  position: relative; flex: 0 0 auto;
  width: 82px; height: 96px; border-radius: 10px; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 32%, rgba(156,204,101,.16), transparent 70%),
    var(--card);
  border: 1px solid var(--rule);
}
/* the VRM canvas, appended by JS once the model is parsed */
.gface canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none;
}
/* loader, while the model downloads */
.gface .gload {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center; gap: .3rem;
  grid-auto-flow: row; align-content: center;
  pointer-events: none; transition: opacity .5s ease;
}
.gface .gload .ring {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid rgba(156,204,101,.18);
  border-top-color: var(--primary-light);
  animation: gspin .9s linear infinite;
}
.gface .gload .t {
  font-family: var(--display); font-size: .46rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
}
.gface[data-vrm="ready"] .gload,
.gface[data-vrm="failed"] .gload,
.gface[data-vrm="skipped"] .gload { opacity: 0; }

/* leaf fallback — only shown if the model never arrives */
.gface .gleaf {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  opacity: 0; transition: opacity .5s ease;
}
.gface[data-vrm="failed"] .gleaf,
.gface[data-vrm="skipped"] .gleaf { opacity: 1; }
.gface .gleaf svg { width: 30px; height: 30px; stroke: var(--primary-light); fill: none; }
/* the fallback keeps the four states legible without a model */
.gface[data-state="listening"] .gleaf svg { animation: gbreathe 3.4s ease-in-out infinite }
.gface[data-state="thinking"]  .gleaf svg { animation: gspin 1.6s linear infinite }
.gface[data-state="speaking"]  .gleaf svg { animation: gbob .9s ease-in-out infinite }
@keyframes gbreathe { 0%,100% { transform: scale(1); opacity: .65 } 50% { transform: scale(1.1); opacity: 1 } }
@keyframes gspin    { to { transform: rotate(360deg) } }
@keyframes gbob     { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-2.5px) } }
@media (prefers-reduced-motion: reduce) {
  .gface .gleaf svg, .gface .gload .ring { animation: none !important }
}

/* ---- transcript ---- */
.log {
  display: grid; gap: .5rem; padding: .85rem;
  align-content: start;  /* a lone welcome bubble must not stretch to fill the log */
  height: 20rem; max-height: min(20rem, 46vh);
  overflow-y: auto;
  /* no scroll-behavior here on purpose: say() picks smooth vs instant so
     prefers-reduced-motion is actually honoured */
}
.msg {
  max-width: 88%; padding: .6rem .9rem; border-radius: 20px;
  font-size: .87rem; line-height: 1.45;
}
.msg.g {
  justify-self: start; background: rgba(124,179,66,.14);
  border: 1px solid rgba(124,179,66,.3); border-bottom-left-radius: 6px;
}
.msg.u {
  justify-self: end; background: var(--primary); color: #16250F;
  font-weight: 600; border-bottom-right-radius: 6px;
}
.msg p { margin: 0 0 .5rem; }
.msg p:last-child { margin-bottom: 0; }
.msg a { color: var(--primary-light); }
.msg.u a { color: #16250F; }

/* typing indicator — three dots, same bubble geometry as .msg.g */
.typing {
  justify-self: start; display: flex; gap: .3rem; align-items: center;
  padding: .75rem .9rem; border-radius: 20px; border-bottom-left-radius: 6px;
  background: rgba(124,179,66,.14); border: 1px solid rgba(124,179,66,.3);
}
.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary-light);
  animation: gdot 1.3s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: .18s }
.typing span:nth-child(3) { animation-delay: .36s }
@keyframes gdot { 0%,60%,100% { opacity: .3; transform: translateY(0) } 30% { opacity: 1; transform: translateY(-3px) } }
@media (prefers-reduced-motion: reduce) { .typing span { animation: none; opacity: .7 } }

/* follow-ups attached under an answer */
.followups { display: grid; gap: .45rem; }
.followups .lbl {
  font-family: var(--display); font-size: .58rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
  opacity: .75;
}
.asks { display: flex; flex-wrap: wrap; gap: .4rem; }
#gaia-asks { padding: 0; }
.ask {
  cursor: pointer; font-family: inherit; font-size: .78rem; font-weight: 600;
  text-transform: none; letter-spacing: 0;
  padding: .34rem .7rem; border-radius: 20px;
  background: #3A4D3A; border: 1px solid #4A5D4A; color: var(--ink);
  box-shadow: none;
}
.ask:hover { border-color: var(--primary); }
.ask:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; }

/* ---- composer ---- */
.gpanel form {
  display: flex; gap: .45rem; margin: 0;
  padding: .7rem .85rem .85rem; border-top: 1px solid var(--rule);
}
.gpanel form input {
  flex: 1; min-width: 0; font: inherit; font-size: .9rem; color: var(--ink);
  padding: .65rem .85rem; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(45,225,194,.35);
}
.gpanel form input::placeholder { color: var(--ink-faint); }
.gpanel form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,225,194,.18); }
.gpanel form button {
  flex: 0 0 auto; cursor: pointer; border: 0; border-radius: 12px; padding: .65rem 1.1rem;
  font-family: var(--display); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: #0A140D; background: linear-gradient(90deg, var(--green), var(--teal));
}
.gpanel form button:hover { filter: brightness(1.08); }
.gpanel form button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* full-width sheet on small screens */
@media (max-width: 30rem) {
  .gpanel {
    bottom: 0; right: 0; left: 0; width: 100%;
    border-radius: 16px 16px 0 0; border-bottom: none;
  }
  .log { height: auto; max-height: 52vh; }
  .gfab { bottom: 1rem; right: 1rem; }
  .gfab .tag { display: none; }
}




/* ---------- header nav (audience pages) ---------- */
.top { gap: 1rem; flex-wrap: wrap; }
.nav { display: flex; gap: .2rem 1.1rem; flex-wrap: wrap; margin-left: auto; margin-right: .4rem; }
.nav a {
  font-family: var(--display); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; padding: .3rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--teal); }
.nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }
@media (max-width: 40rem) {
  .nav { order: 3; flex-basis: 100%; margin: 0; justify-content: center; }
}

/* ---------- audience page hero ---------- */
.hero--sub { padding-top: clamp(1.5rem, 7vh, 4.5rem); }
.hero--sub h1 { margin-top: .7rem; }

/* ---------- feature rows: photo beside a HUD panel, alternating ---------- */
.features { display: grid; gap: 1.6rem; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: center; }
.feature--flip .feature-ph { order: 2; }
.feature-ph {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; display: block;
  border: 1px solid rgba(45,225,194,.35); box-shadow: 0 0 16px rgba(45,225,194,.14);
}
.feature .hud h3 { font-size: 1.15rem; margin-top: .55rem; }
@media (max-width: 44rem) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature-ph { order: 0; }
}
.ticks { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .45rem; }
.ticks li { position: relative; padding-left: 1.4rem; color: var(--ink-soft); font-size: .93rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 2px;
  background: linear-gradient(135deg, var(--green), var(--teal)); box-shadow: 0 0 6px rgba(45,225,194,.5);
}

.band--tight { padding-top: 0; }
.promise p { margin-top: .6rem; }

/* home audience cards link through to their pages */
a.card { color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--teal); }
.card .more {
  display: inline-block; margin-top: .7rem; font-family: var(--display); font-size: .6rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--teal);
}

/* ---------- hero call to action (the form lives at the bottom now) ---------- */
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.8rem; }
.btn {
  display: inline-block; text-decoration: none; border-radius: 12px; padding: .95rem 1.6rem;
  font-family: var(--display); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: #0A140D; background: linear-gradient(90deg, var(--green), var(--teal));
  box-shadow: 0 0 18px rgba(45,225,194,.3);
}
.btn:hover { filter: brightness(1.08); }
.btn--ghost { color: var(--teal); background: rgba(10,20,13,.45); border: 1px solid rgba(45,225,194,.5); box-shadow: none; }
.btn--ghost:hover { background: rgba(45,225,194,.12); }
.join-band .signup { margin: 0 auto; }
.join-band { text-align: center; }
.join-band .signup { text-align: left; }

/* ---------- photo + phone: the photo sells it, the screen proves it ---------- */
.feature-media { position: relative; }
.feature--shot .feature-media { padding-bottom: 34%; }
.phone {
  position: absolute; right: 5%; bottom: 0; width: 42%; margin: 0;
  border-radius: 24px; overflow: hidden; background: #0A140D;
  border: 5px solid #0E1A12; outline: 1px solid rgba(45,225,194,.45);
  box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 18px rgba(45,225,194,.2);
}
.feature--flip .phone { right: auto; left: 5%; }
/* the whole screen, nav bar included: shown at its own proportions, not cropped */
.phone img { display: block; width: 100%; height: auto; }
@media (max-width: 44rem) { .phone { width: 46%; } }

/* ---------- home: three screens in a row ---------- */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; max-width: 52rem; margin: 0 auto; }
.shot { margin: 0; text-align: center; }
.phone.phone--inline { position: relative; right: auto; left: auto; bottom: auto; width: 100%; }
.shot figcaption { margin-top: .8rem; font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 44rem) {
  /* swipe sideways on a phone instead of three tiny screens */
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%;
           overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; }
  .shot { scroll-snap-align: center; }
  .phone.phone--inline { width: 100%; }
}

/* ---------- hero: ask GAIA ---------- */
.hero-gaia { max-width: 34rem; margin: 1.6rem auto 0; text-align: left; }
.hero-gaia-row { display: flex; gap: .5rem; margin-top: .6rem; }
.hero-gaia-row input {
  flex: 1; min-width: 0; border-radius: 12px; padding: .8rem 1rem; font: inherit; color: var(--ink);
  background: rgba(255,255,255,.06); border: 1px solid rgba(45,225,194,.35);
}
.hero-gaia-row input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,225,194,.18); }
.hero-gaia-row button, .gaia-gate button, .share-row button {
  border: 0; border-radius: 12px; padding: .75rem 1.1rem; cursor: pointer;
  font-family: var(--display); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: #0A140D; background: linear-gradient(90deg, var(--green), var(--teal));
}
.hero-gaia-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.hero-gaia-chips button, .struggle {
  border-radius: 999px; padding: .42rem .8rem; cursor: pointer; font: inherit; font-size: .84rem;
  color: var(--ink-soft); background: rgba(255,255,255,.05); border: 1px solid rgba(45,225,194,.3);
}
.hero-gaia-chips button:hover, .struggle:hover:not(:disabled) { color: var(--ink); border-color: var(--teal); }

/* ---------- after signup: sent, invite, one question ---------- */
.sent {
  display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 14px;
  background: rgba(45,225,194,.08); border: 1px solid rgba(45,225,194,.35);
}
.sent-ic { flex: none; width: 2.2rem; height: 2.2rem; padding: .45rem; border-radius: 50%;
  stroke: #0A140D; background: linear-gradient(135deg, var(--green), var(--teal)); }
.sent-h { margin: 0; font-family: var(--display); font-size: .9rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink); }
.sent-p { margin: .35rem 0 0; font-size: .88rem; font-weight: 400; color: var(--ink-soft); line-height: 1.5; }
.sent-p b { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.status[data-state="ok"]:has(.sent) { font-weight: 400; }
.thanks { margin-top: 1.1rem; display: grid; gap: .8rem; }
.thanks-step { padding: 1rem 1.1rem; border-radius: 14px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08); }
.thanks-step .label { margin: 0; font-size: .68rem; }
.thanks-h { margin: 0; font-weight: 500; color: var(--ink); }
.thanks-p { margin: .45rem 0 0; font-size: .88rem; color: var(--ink-soft); line-height: 1.5; }
.thanks-step .ask-q { color: var(--ink); }
.share-row { display: flex; gap: .4rem; margin-top: .7rem; flex-wrap: wrap; }
.share-row button.done { background: rgba(45,225,194,.18); color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.share-link {
  flex: 1 1 12rem; min-width: 0; border-radius: 12px; padding: .7rem .9rem; font: inherit; font-size: .88rem;
  color: var(--ink); background: rgba(255,255,255,.06); border: 1px solid rgba(45,225,194,.35);
}
.struggles { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .7rem; }
.thanks .struggle { font-size: .8rem; padding: .4rem .75rem; }
.struggle:disabled { cursor: default; opacity: .55; }
.struggle.picked { opacity: 1; color: #0A140D; background: linear-gradient(90deg, var(--green), var(--teal)); border-color: transparent; }

/* ---------- GAIA's daily-limit signup, inside the chat ---------- */
.gaia-gate { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .8rem; }
.gaia-gate input {
  flex: 1 1 10rem; min-width: 0; border-radius: 10px; padding: .6rem .8rem; font: inherit; font-size: .88rem;
  color: var(--ink); background: rgba(255,255,255,.07); border: 1px solid rgba(45,225,194,.35);
}
.gaia-gate .gate-status { flex-basis: 100%; margin: 0; font-size: .8rem; color: var(--ink-soft); }
.gaia-gate .gate-status:empty { display: none; }

/* a submitted form hides; its display:flex would otherwise beat [hidden] */
.signup form[hidden] { display: none; }

/* Founding-member offer */
.founding { padding: .8rem 1rem; margin: 0 0 1.1rem; }
.founding p:last-child { margin: .3rem 0 0; font-size: .9rem; line-height: 1.45; }
.founding a { color: var(--sun); }
.perk { margin: .9rem 0 0; font-size: .85rem; color: var(--sun); letter-spacing: .02em; }

/* Two-step signup: email first, details after */
.more { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .6rem; }
.more[hidden], .signup .send[hidden], .optin[hidden] { display: none; }
.more-h { flex-basis: 100%; margin: 0 0 .2rem; font-size: .9rem; color: var(--ink-soft); }
.more-actions { flex-basis: 100%; display: flex; align-items: center; gap: 1rem; margin-top: .2rem; }
.more-actions .skip {
  background: none; border: 0; padding: .5rem 0; cursor: pointer; font: inherit;
  font-size: .85rem; color: var(--ink-faint); text-decoration: underline;
}
.founding-no { color: var(--sun); font-weight: 600; }

/* Business lookup */
.lookup { padding: 1.1rem 1.2rem; max-width: 40rem; margin: 0 auto; }
.lookup-row { display: flex; gap: .6rem; margin-top: .6rem; flex-wrap: wrap; }
.lookup-row input {
  flex: 1 1 14rem; min-width: 0; border-radius: 12px; padding: .8rem 1rem; font: inherit; color: var(--ink);
  background: rgba(255,255,255,.06); border: 1px solid rgba(45,225,194,.35);
}
.lookup-row input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,225,194,.18); }
.lookup button {
  cursor: pointer; border: 0; border-radius: 12px; padding: .8rem 1.2rem;
  font-family: var(--display); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: #0A140D; background: linear-gradient(90deg, var(--green), var(--teal));
}
.lookup-results { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .5rem; }
.lookup-results li:not(.lookup-note) {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .6rem .8rem; border-radius: 10px; background: rgba(255,255,255,.04);
}
.lookup-results strong { display: block; color: var(--ink); font-weight: 600; }
.lookup-results span { font-size: .8rem; color: var(--ink-faint); }
.lookup-results li button { padding: .55rem .8rem; flex: 0 0 auto; }
.lookup-note { font-size: .88rem; color: var(--ink-soft); }
.lookup-note a { color: var(--teal); }

/* ---------- blog ---------- */
.post { max-width: 44rem; margin: 0 auto; padding-top: 2rem; }
.post-head { text-align: center; margin-bottom: 1.4rem; }
.post-head .label a { color: inherit; }
.post-head h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); line-height: 1.15; margin: .5rem 0 .8rem; }
.post-head .lede { margin: 0 auto; max-width: 36rem; color: var(--ink-soft); }
.post-hero { margin: 0 0 1.4rem; border-radius: 16px; overflow: hidden; }
.post-hero img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.toc { padding: .9rem 1.2rem; margin-bottom: 1.2rem; }
.toc ol { margin: .4rem 0 0; padding-left: 1.2rem; display: grid; gap: .25rem; font-size: .92rem; }
.toc a { color: var(--teal); }
.prose { padding: 1.4rem 1.5rem; font-size: 1.02rem; line-height: 1.7; color: var(--ink); }
.prose h2 { font-size: 1.25rem; line-height: 1.3; margin: 2rem 0 .7rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; color: var(--ink-soft); }
.prose li { margin-bottom: .35rem; }
.prose strong { color: var(--ink); }
.prose a { color: var(--teal); }
.prose .callout { margin: 1.2rem 0; padding: .9rem 1.1rem; }
.prose .callout p { margin: 0; color: var(--ink); font-size: .95rem; }
.more-posts { margin: 1.6rem 0 0; }
.more-posts ul { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .4rem; }
.more-posts a { color: var(--teal); }
.post-list { display: grid; gap: 1rem; max-width: 52rem; margin-inline: auto; }
.post-card {
  display: grid; grid-template-columns: 14rem 1fr; gap: 1.1rem; align-items: center;
  padding: .8rem; color: inherit; text-decoration: none;
}
.post-card img { width: 100%; height: 100%; max-height: 10rem; object-fit: cover; border-radius: 10px; display: block; }
.post-card h2 { font-size: 1.15rem; line-height: 1.3; margin: .3rem 0 .4rem; }
.post-card p:last-child { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.post-card:hover { border-color: var(--teal); }
@media (max-width: 40rem) {
  .post-card { grid-template-columns: 1fr; }
  .post-card img { max-height: 12rem; }
  .prose { padding: 1.1rem 1rem; }
}

/* blog headings in the display face, sized like the rest of the site */
.post-head h1, .prose h2, .prose h3, .post-card h2 {
  font-family: var(--display); font-weight: 400; letter-spacing: .04em;
}
.post-head h1 { font-size: clamp(1.35rem, 4.2vw, 2.1rem); line-height: 1.25; }
.prose h2 { font-size: clamp(1.05rem, 2.6vw, 1.25rem); line-height: 1.35; }
.prose h3 { font-size: .98rem; line-height: 1.4; }
.post-card h2 { font-size: 1rem; line-height: 1.35; }

/* the plant guide's name keeps its lowercase "project" inside uppercase labels */
.pg { text-transform: none; }

/* Business plans */
.plans .hud { padding: 1.1rem 1.2rem; }
.hud p.plan-price { margin: .5rem 0 0; font-size: 1.7rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.plan-price span { font-size: .85rem; font-weight: 400; color: var(--ink-soft); }
.plans-note { max-width: 44rem; margin: 1.1rem auto 0; text-align: center; font-size: .88rem; color: var(--ink-soft); }

/* pre-launch: the app isn't out yet, signing up only saves a place */
.soon {
  display: flex; width: fit-content; align-items: center; gap: .5rem;
  margin: 0 auto 1rem; padding: .35rem .8rem; border-radius: 999px;
  font-family: var(--display); font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sun);
  background: rgba(242,169,59,.1); border: 1px solid rgba(242,169,59,.5);
}
.soon .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 8px var(--sun); }
.soon-note {
  margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 10px;
  font-size: .9rem; line-height: 1.5; color: var(--ink);
  background: rgba(242,169,59,.08); border-left: 3px solid var(--sun);
}
.soon-note strong { color: var(--sun); }
