/* Stinger landing — self-hosted styles (CSP style-src 'self'; no inline styles anywhere).
   web-shell S2 (F4). Dark, single-commitment palette; no scripts, no third-party. */

:root {
  --bg: #0b0d10;
  --panel: #12161b;
  --ink: #e6e9ec;
  --muted: #9aa1a8;
  --accent: #f4b400;
  --line: #222833;
  --maxw: 60rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

header.wrap { padding-top: 3.5rem; }

.wordmark { margin: 0; }
.wordmark .mark {
  /* OE, 2026-08-20: the wordmark and the bee lead the page; the headline sits under them at
     what the wordmark used to be. */
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.tag {
  /* Aligned with the first letter of "Stinger" rather than the page margin, so the bee can
     grow without dragging this line out with it. */
  margin: 0.35rem 0 0 calc(var(--bee-size) + var(--brand-gap));
  color: var(--muted);
  font-size: 1rem;
}

.lede { padding: 3rem 0 1rem; }
.lede h1 {
  /* 30px, settled by OE against the live page (1.6 -> 1.75 -> 1.875rem). Still clearly under
     the 41.6px wordmark. The clamp only protects narrow screens; it never exceeds the cap. */
  font-size: clamp(1.5rem, 3.6vw, 1.875rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  font-weight: 700;
}
.lede p {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 44rem;
}

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  padding: 2rem 0;
}
.point {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
}
.point h2 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--accent);
}
.point p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.shot { margin: 1.5rem 0 0; }
.shot-ph {
  height: 16rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background:
    repeating-linear-gradient(45deg, #12161b 0 12px, #0e1216 12px 24px);
}
.shot figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

footer.wrap {
  padding: 2.5rem 1.5rem 3.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
}
footer.wrap p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  a:focus-visible, :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
}

/* 2026-08-19: the header sign-in link (the login page existed unlinked). */
.wordmark { display: flex; align-items: center; justify-content: space-between; }
.signin { color: var(--accent); text-decoration: none; font-size: 1rem; font-weight: 600; }
.signin:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------------------------
   The listening bee beside the wordmark — the app's talk-button animation, in CSS only.

   This page has NO SCRIPT and its CSP is `default-src 'none'` with no script-src at all. A
   Lottie player would have meant adding script-src + connect-src to an auth-adjacent origin
   for one ornament, so instead the animation was read out of
   assets/animations/stinger_green.json and rebuilt here: a STATIC body with two wings
   rotating +/-13deg across 18 frames at 60fps (0.3s), eased cubic-bezier(.42,0,.58,1) —
   which is exactly what the file contains, no approximation.

   Every offset is a PERCENTAGE of the 1024x1024 Lottie canvas, so the whole bee scales from
   the single --bee-size below and the wings stay pinned to their hinges at any size:
     base    pos [0,1]                        -> left 0%,       top 0.098%
     wingL   pos [404,424] anchor [192,11]    -> left 20.703%,  top 40.332%
     wingR   pos [620,424] anchor [6,11]      -> left 59.961%,  top 40.332%
   A wing's transform-origin is its anchor as a fraction of the WING, not the canvas.
   --------------------------------------------------------------------------------------- */
/* The bee LEADS: bigger than the wordmark beside it, per OE. Both sizes live here so the
   tagline below can indent by exactly the bee's footprint and start under the "S". */
:root {
  --bee-size: 104px;
  --brand-gap: 0.6rem;
}

.brand { display: inline-flex; align-items: center; gap: var(--brand-gap); }

.bee {
  position: relative;
  display: inline-block;
  width: var(--bee-size);
  height: var(--bee-size);
  flex: none;
  /* The wordmark row is baseline-aligned; nudge the bee onto the type's optical centre. */
  vertical-align: middle;
}

.bee img { position: absolute; display: block; }
.bee-base { left: 0; top: 0.098%; width: 100%; height: 99.32%; }
.bee-wing { width: 19.531%; height: 22.363%; top: 40.332%; }

.bee-wing-l {
  left: 20.703%;
  transform-origin: 96.48% 4.803%;
  animation: bee-flap-l 0.3s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}
.bee-wing-r {
  left: 59.961%;
  transform-origin: 3% 4.803%;
  animation: bee-flap-r 0.3s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

@keyframes bee-flap-l {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(13deg); }
  50%  { transform: rotate(0deg); }
  75%  { transform: rotate(-13deg); }
  100% { transform: rotate(0deg); }
}
@keyframes bee-flap-r {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-13deg); }
  50%  { transform: rotate(0deg); }
  75%  { transform: rotate(13deg); }
  100% { transform: rotate(0deg); }
}

/* A 0.3s loop running forever is exactly what a motion-sensitive reader asked us not to do.
   The bee stays — wings at rest, which is a frame the animation passes through anyway. */
@media (prefers-reduced-motion: reduce) {
  .bee-wing { animation: none; }
}
