/* Robot Gossip. Colors sampled from the logo PNG. */
:root {
  --bg: #060606;
  --bg-raised: #131315;
  --text: #FFFFFF;
  --text-muted: #A1A1AA;
  --lime: #B9FB18;
  --lime-soft: #D9F99D;
  --line: #26262A;
  --error: #FF8A8A;

  --font-head: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --gutter: 20px;
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.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;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--lime); color: var(--bg); font-weight: 700;
  padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* Top bar */
.topbar { position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; padding: 18px var(--gutter) 0; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 400 22px/1 var(--font-head); text-transform: uppercase; letter-spacing: .02em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 24px; border: 0; border-radius: 12px;
  background: var(--lime); color: var(--bg);
  font: 400 21px/1 var(--font-head); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .75; cursor: progress; }
.btn-ghost { background: transparent; color: var(--lime); box-shadow: inset 0 0 0 2px var(--lime); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 28px 0 56px; isolation: isolate; }
.hero-grid { display: grid; gap: 8px; position: relative; z-index: 1; }

.eyebrow {
  color: var(--lime); font-weight: 700; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px;
}
h1 {
  font: 400 clamp(46px, 13vw, 92px)/.95 var(--font-head);
  text-transform: uppercase; letter-spacing: .005em;
}
.hl { color: var(--lime); }
.sub { color: var(--text-muted); font-size: 18px; margin: 18px 0 26px; max-width: 34em; }

/* Signup */
.signup { max-width: 520px; }
.field-row { display: flex; flex-direction: column; gap: 10px; }
.signup input[type="email"] {
  width: 100%; min-height: 54px; padding: 0 18px;
  background: var(--bg-raised); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  font: 500 17px var(--font-body);
  transition: border-color .15s ease;
}
.signup input[type="email"]::placeholder { color: #6B6B73; }
.signup input[type="email"]:focus { border-color: var(--lime); outline: none; box-shadow: 0 0 0 3px rgba(185, 251, 24, .25); }
.signup input[aria-invalid="true"] { border-color: var(--error); }
.micro { color: var(--text-muted); font-size: 14px; margin-top: 12px; }
.status { min-height: 1.6em; margin-top: 8px; font-size: 15px; font-weight: 500; }
.status.is-error { color: var(--error); }
.status.is-success {
  color: var(--text); font-size: 19px; font-weight: 600;
  padding: 18px 20px; border-radius: 12px; background: var(--bg-raised);
  border: 1px solid var(--lime); margin-top: 0;
}
.status.is-success strong { color: var(--lime); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.proof { margin-top: 20px; color: var(--text-muted); font-size: 15px; }
.proof strong { color: var(--lime); }

/* Circuit background */
.circuits { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .32; pointer-events: none; }
.circuit-lines path { fill: none; stroke: var(--lime); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s ease-out .2s forwards; }
.circuit-lines path:nth-child(2n) { animation-delay: .6s; }
.circuit-lines path:nth-child(3n) { animation-delay: 1s; }
.circuit-nodes circle { fill: none; stroke: var(--lime); stroke-width: 2; opacity: 0; animation: fade-in .6s ease-out 2.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

.drifters { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.drift {
  position: absolute; width: 46px; height: 36px; opacity: .1;
  background: var(--lime); border-radius: 18px 18px 18px 6px;
  animation: drift 18s linear infinite;
}
.d1 { left: 6%; top: 70%; }
.d2 { left: 44%; top: 88%; animation-delay: -6s; width: 34px; height: 26px; }
.d3 { left: 88%; top: 60%; animation-delay: -11s; }
.d4 { left: 70%; top: 95%; animation-delay: -3s; width: 28px; height: 22px; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  15% { opacity: .1; }
  85% { opacity: .1; }
  100% { transform: translate3d(30px, -420px, 0); opacity: 0; }
}

/* ---------- Mascot ---------- */
.mascot-stage { position: relative; width: min(78vw, 360px); margin: 10px auto 0; }
.mascot { width: 100%; height: auto; overflow: visible; }
.mascot .w { fill: #FCFBFB; }
.mascot .ink { fill: var(--bg); }
.mascot .lime { fill: var(--lime); }
.mascot .outline { stroke: var(--bg); stroke-width: 6; paint-order: stroke; }
.mascot .outline-thin { stroke: var(--bg); stroke-width: 4; }
.mascot .smile, .mascot .flat { fill: none; stroke: #FCFBFB; stroke-width: 7; stroke-linecap: round; }
.mascot .arc { fill: none; stroke: var(--lime); stroke-width: 10; stroke-linecap: round; }
.mascot g, .mascot rect, .mascot circle { transform-box: view-box; }

.m-float { animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.m-bulb { transform-origin: 200px 32px; animation: blink 4s ease-in-out infinite; }
@keyframes blink { 0%, 86%, 100% { opacity: 1; } 90% { opacity: .25; } 94% { opacity: 1; } }

.m-head { transform-origin: 200px 248px; transition: transform .45s var(--ease-pop); }
.m-pupils { transform: translate(var(--ex, 0px), var(--ey, 0px)); transition: transform .18s ease-out; }
.m-lids { transform-origin: 200px 114px; transform: scaleY(0); animation: eyelid 5.2s infinite; }
@keyframes eyelid { 0%, 94%, 100% { transform: scaleY(0); } 97% { transform: scaleY(1); } }

.m-arm { transition: transform .45s var(--ease-pop); }
.m-arm-l { transform-origin: 155px 266px; transform: rotate(14deg); }
.m-arm-r { transform-origin: 245px 266px; transform: rotate(-14deg); }
.m-finger { opacity: 0; transition: opacity .2s ease; }
.m-bounce { transform-origin: 200px 430px; }

.face { opacity: 0; transition: opacity .2s ease; }
.face-normal { opacity: 1; }
.m-sparkles, .m-question { opacity: 0; transform-origin: 330px 70px; transform: scale(.4); transition: opacity .25s ease, transform .35s var(--ease-pop); }
.m-question { fill: var(--lime); font: 400 64px/1 var(--font-head); }

/* Whisper: hand to mouth, head leans in. */
.is-whisper .m-arm-r { transform: rotate(158deg); }
.is-whisper .m-head { transform: rotate(-4deg); }

/* Email focused: point at the form. On mobile the form sits above the mascot. */
.is-point .m-arm-l { transform: rotate(168deg); }
.is-point .m-finger { opacity: 1; }
.is-point .m-head { transform: rotate(-6deg); }
@media (min-width: 900px) {
  .is-point .m-arm-l { transform: rotate(100deg); }
  .is-point .m-head { transform: rotate(-8deg) translateX(-6px); }
}

/* Submitting: antenna works overtime. */
.is-busy .m-bulb { animation: blink-fast .35s linear infinite; }
.is-busy .m-antenna { transform-origin: 200px 72px; animation: wiggle .3s ease-in-out infinite; }
@keyframes blink-fast { 50% { opacity: .2; } }
@keyframes wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* Success: excited pose. */
.is-celebrate .m-arm-l { transform: rotate(138deg); }
.is-celebrate .m-arm-r { transform: rotate(-138deg); }
.is-celebrate .face-normal { opacity: 0; }
.is-celebrate .face-happy { opacity: 1; }
.is-celebrate .m-sparkles { opacity: 1; transform: scale(1); }
.is-celebrate .m-bounce { animation: hop .55s ease-out 3; }
@keyframes hop { 0%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-34px) scale(1.02, .98); } 60% { transform: translateY(0) scale(1.04, .95); } }

/* Error: skeptical shrug. */
.is-shrug .m-arm-l { transform: rotate(62deg); }
.is-shrug .m-arm-r { transform: rotate(-62deg); }
.is-shrug .m-head { transform: rotate(9deg); }
.is-shrug .face-normal { opacity: 0; }
.is-shrug .face-skeptic { opacity: 1; }
.is-shrug .m-question { opacity: 1; transform: scale(1); }

/* Speech bubbles and confetti */
.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubble {
  position: absolute; left: 66%; top: 26%;
  display: flex; gap: 5px; align-items: center; justify-content: center;
  width: 64px; height: 44px; border-radius: 22px 22px 22px 6px;
  background: var(--lime);
  animation: bubble-up 2.4s ease-out forwards;
}
.bubble i { width: 7px; height: 7px; border-radius: 50%; background: var(--bg); }
@keyframes bubble-up {
  0% { transform: translate(0, 10px) scale(.3); opacity: 0; }
  15% { transform: translate(var(--bx, 10px), -8px) scale(1); opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translate(calc(var(--bx, 10px) * 2), -110px) scale(.9); opacity: 0; }
}
.confetti {
  position: absolute; left: 50%; top: 40%; width: 9px; height: 9px; border-radius: 50%;
  background: var(--lime);
  animation: burst 1.1s cubic-bezier(.2, .7, .3, 1) forwards;
}
.confetti.soft { background: var(--lime-soft); width: 6px; height: 6px; }
@keyframes burst {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--cx), var(--cy)) scale(.4); opacity: 0; }
}

/* Pause idle loops while the tab is hidden. */
.is-paused *, .is-paused { animation-play-state: paused !important; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
h2 { font: 400 clamp(38px, 9vw, 60px)/1 var(--font-head); text-transform: uppercase; }
.section p { color: var(--text-muted); }

.accent-line { width: 220px; height: 14px; margin: 14px 0 28px; }
.accent-line path { fill: none; stroke: var(--lime); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.accent-line.in path { animation: draw 1.2s ease-out forwards; }

.cards { display: grid; gap: 16px; }
.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font: 700 20px/1.3 var(--font-body); margin: 16px 0 6px; }
.icon { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: rgba(185, 251, 24, .1); fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Sample issue */
.sample-grid { display: grid; gap: 40px; align-items: center; }
.sample-copy p { margin: 14px 0 24px; max-width: 30em; }
.email-mock {
  background: #FCFBFB; color: #111; border-radius: 18px; padding: 22px;
  box-shadow: 0 0 0 1px rgba(185, 251, 24, .35), 0 20px 70px -10px rgba(185, 251, 24, .3);
  transform: rotate(-1.5deg);
}
.email-mock.reveal.in { transform: rotate(-1.5deg); }
.mock-head { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #E4E4E7; }
.mock-head img { border-radius: 10px; }
.mock-from { font-weight: 700; font-size: 15px; color: #111 !important; }
.mock-subj { font-size: 14px; color: #52525B !important; }
.mock-stories { list-style: none; margin: 0; padding: 0; }
.mock-stories li { padding: 16px 0; border-bottom: 1px solid #E4E4E7; }
.mock-stories li:last-child { border-bottom: 0; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: #111; color: var(--lime); padding: 3px 8px; border-radius: 6px; }
.mock-stories h3 { font: 700 18px/1.3 var(--font-body); margin: 8px 0 4px; color: #111; }
.mock-stories p { font-size: 15px; line-height: 1.5; color: #3F3F46 !important; }
.mock-foot { font-size: 12px; color: #71717A !important; padding-top: 6px; }

/* Socials */
.follow p { margin-top: 10px; }
.socials { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.socials a {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
  background: var(--bg-raised); border: 1px solid var(--line);
  transition: transform .15s ease, border-color .15s ease;
}
.socials a:hover { transform: translateY(-3px); border-color: var(--lime); }
.socials svg { width: 26px; height: 26px; fill: none; stroke: var(--lime); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.socials .fill { fill: var(--lime); stroke: none; }

/* FAQ */
.faq h2 { margin-bottom: 24px; }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 18px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--lime); border-bottom: 2.5px solid var(--lime);
  transform: rotate(45deg); transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
details p { padding: 0 0 20px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.footer-row { display: grid; gap: 18px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer nav a { color: var(--text-muted); text-decoration: none; font-size: 15px; }
.footer nav a:hover { color: var(--lime); }
.copy { color: var(--text-muted); font-size: 14px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Larger screens ---------- */
@media (min-width: 560px) {
  .field-row { flex-direction: row; }
  .field-row input { flex: 1; }
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .hero { padding: 40px 0 88px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 32px; }
  .mascot-stage { width: 100%; max-width: 420px; margin: 0 0 0 auto; }
  .section { padding: 96px 0; }
  .sample-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; }
  .footer-row { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer nav { justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .circuit-lines path, .accent-line path { stroke-dashoffset: 0; }
  .circuit-nodes circle { opacity: 1; }
  .drifters { display: none; }
  .reveal { opacity: 1; transform: none; }
  .email-mock.reveal { transform: rotate(-1.5deg); }
  .mascot { animation: fade-in .6s ease-out both !important; opacity: 0; }
}

/* Privacy page */
.legal { border-top: 0; padding-top: 40px; }
.legal h1 { font-size: clamp(44px, 11vw, 72px); }
.legal h2 { font-size: 28px; margin: 36px 0 10px; }
.legal p { font-size: 17px; }
.legal p a { color: var(--lime); }
.legal .updated { margin-top: 10px; font-size: 14px; }
.legal .back { margin-top: 44px; }
