/* Theme: "bioluminescent laboratory" (style reference: Integrated Biosciences).
   Layered over sneak.css, which supplies the component structure. One weight (400) of a single grotesque, mono for labels,
   flat surfaces with 1px hairlines and no shadows, abyssal-ink dark bands, and one lime signal used only on micro-surfaces.
   Free fonts stand in for the reference fonts: Inter Tight for Aspekta, Roboto Mono as specified. */
@font-face { font-family: "Inter Tight Fallback"; src: local("Arial"); size-adjust: 97%; ascent-override: 96%; descent-override: 24%; line-gap-override: 0%; }
:root {
  --lime: #cef79e; --ink: #222f30; --bone: #f7f7f5; --graphite: #4d5757; --lichen: #c9cbbe; --tissue: #e7e8e1; --void: #000;
  --charcoal: var(--ink); --concrete: var(--lichen); --smoke: var(--graphite); --ink-2: var(--graphite); --ink-3: var(--graphite);
  --red: var(--ink); --navy: var(--ink);
  --font-display: "Inter Tight", "Inter Tight Fallback", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-body: var(--font-display);
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 8px; --shadow: none;
}
body { background: var(--bone); color: var(--ink); font: 400 18px/1.3 var(--font-body); letter-spacing: -.001em; }
a { color: inherit; border-bottom: 1px solid var(--lichen); }
a:hover { color: var(--ink); border-color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.sec-head h2, .h2, .cta h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.1; letter-spacing: -.012em; }
h3, .step h3, .honest h3, .where h3, .big h3, .persona h3, .tile h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.006em; }
.sec-head p, .lede { color: var(--graphite); font-size: 18px; line-height: 1.3; }

/* mono labels */
.eyebrow, .mono, .label, .stat, .where h4, .demo-status, .chip, .micro-cap, .nav-links a, .btn, .tab, .seg button, .badge-red, .hero2-panel .trust, .step h3 span, .kbd {
  font-family: var(--font-mono); font-weight: 400; font-size: 13px; letter-spacing: -.02em; text-transform: uppercase; color: var(--graphite); }
.pill { font: 400 13px/1.2 var(--font-mono); border-radius: 9999px; border-color: var(--graphite); color: var(--graphite); background: transparent; }
.badge-red { background: transparent; color: #fff; padding: 0; gap: 8px; }
.badge-red i { background: var(--lime); }

/* flat surfaces: hairlines, no shadow */
.glass, .glass--text, .glass--sm { border: 1px solid var(--lichen); border-radius: 20px; box-shadow: none !important; background: #fff !important; }
.step, .big, .tile, .persona, .faq-item, .honest, .where, .cta, .lesson-card, .mode-body { border-radius: 20px; }
.demo { border-radius: 16px; }
.mini, .big .art, .persona .art, .ico, .flow3 li { background: var(--tissue); border-color: var(--lichen); border-radius: 12px; }
.where > div + div { border-color: var(--lichen); }
.loop-line { background: var(--lichen); }
.loop-line::after { background: var(--lime); }
.lesson li, .lesson li.on { box-shadow: none; border-radius: 12px; }
.lesson li.on { border-color: var(--ink); }
.lesson li.on::before, .lesson li.done::before, .where li::before, .flow3 li::before, .mini .tag, .mini .ck, .mini .yn span:first-child { background: var(--ink); color: #fff; border-color: var(--ink); }
.mini .ring { border-color: var(--ink); }

/* nav: flat bar, outlined links */
.nav-wrap { background: var(--bone); border-bottom: 1px solid var(--lichen); }
.brand { font: 400 22px/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.brand svg path { fill: var(--ink); stroke: var(--bone); }
.nav-links a { border: 1px solid transparent; border-radius: 12px; padding: 8px 14px; }
.nav-links a:hover { background: transparent; border-color: var(--graphite); color: var(--ink); }

/* buttons: ink fill on light canvas, white fill on dark; lime only on hover/active micro-surfaces */
.btn { background: var(--ink); color: #fff; border-color: var(--ink); border-radius: 8px; min-height: 46px; }
.btn:hover:not(:disabled) { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.btn--glass { background: transparent; color: var(--ink); border: 1px solid var(--graphite); }
.btn--glass:hover { background: var(--tissue); color: var(--ink); }
.btn:disabled { background: var(--lichen); border-color: var(--lichen); color: var(--graphite); }
.input { border: 1px solid var(--graphite); border-radius: 8px; background: #fff; color: var(--ink); font: 400 18px/1.2 var(--font-body); }
.input::placeholder { color: var(--graphite); }
.input:focus-visible, :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.check input { accent-color: var(--ink); }
.check, .micro { color: var(--graphite); }
.wl-msg { color: #8a1f1f; }
.linkish { border-bottom-color: var(--lichen); }
.tabs.glass, .seg.glass { background: transparent !important; border-radius: 12px; }
.tab[aria-selected="true"] { background: var(--lime); color: var(--ink); }
.seg button[aria-checked="true"] { color: var(--ink); }
.seg-thumb { background: var(--lime); }

/* ---------- hero: dark canvas, big left headline, demo in a rounded frame ---------- */
.hero2 { min-height: 0; background: var(--ink); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: end;
  padding: clamp(48px, 7vw, 96px) max(clamp(16px, 4vw, 40px), calc((100% - 1200px) / 2)) clamp(48px, 6vw, 80px); overflow: visible; }
.hero2-panel { position: static; width: auto; padding: 0; margin: 0; gap: 20px; order: 1; justify-content: flex-end; overflow: visible;
  background: transparent !important; border: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.hero2-media { position: relative; inset: auto; order: 2; align-content: start; border: 1px solid var(--graphite); border-radius: 16px; overflow: hidden; background: #0b1213; }
.hero2 .mac-screen.demo { border-radius: 0; }
.hero2-panel .label { color: var(--lichen); }
.hero2-panel h1 { color: #fff; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.022em; }
.hero2-panel .lede { color: var(--lichen); }
.hero2-panel .wl { max-width: 520px; }
.hero2-panel .wl-row { flex-direction: row; }
.hero2-panel .wl-row .btn { width: auto; }
.hero2-panel .btn { background: #fff; color: var(--ink); border-color: #fff; }
.hero2-panel .btn:hover:not(:disabled) { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.hero2-panel .check, .hero2-panel .micro, .hero2-panel .trust, .hero2-panel .linkish { color: var(--lichen); }
.hero2-panel .wl-msg { color: #ffb4a8; }
.hero2-panel .linkish { border-bottom-color: var(--graphite); }
.hero2-panel .check input { accent-color: var(--lime); }
.hero2-panel .wl-done, .hero2-panel .wl-done h3, .hero2-panel .pos { color: #fff; }
.hero2-panel :focus-visible { outline-color: var(--lime); }
.hero2 .demo-note { position: static; max-width: none; margin: 0; padding: 12px 16px; background: transparent; border-top: 1px solid var(--graphite); border-radius: 0; box-shadow: none; color: var(--lichen); font: 400 13px/1.4 var(--font-mono); letter-spacing: -.02em; }
@media (max-width: 900px) {
  .hero2 { grid-template-columns: minmax(0, 1fr); align-items: stretch; padding-inline: 16px; background: var(--ink); }
  .hero2-media { background: #0b1213; }
  .hero2-panel { margin: 0; padding: 0; background: transparent !important; }
  .hero2-panel .wl-row { flex-direction: column; }
  .hero2-panel .wl-row .btn { width: 100%; }
  .hero2-panel h1 { font-size: clamp(40px, 12vw, 56px); }
}

/* dark closing band + black footer */
.cta.glass { background: var(--ink) !important; border-color: var(--ink); }
.cta h2, .cta .pos { color: #fff; }
.cta p, .cta .check, .cta .micro, .cta .trust, .cta .linkish { color: var(--lichen); }
.cta .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta .btn:hover:not(:disabled) { background: var(--lime); border-color: var(--lime); }
.cta .wl, .cta .wl-done { background: transparent !important; border: 0; }
.cta .wl-done, .cta .wl-done h3 { color: #fff; }
.cta :focus-visible { outline-color: var(--lime); }
.foot { background: var(--void); color: var(--lichen); }
.foot a { color: #fff; border-color: var(--graphite); font-family: var(--font-mono); font-size: 13px; }
.foot small { color: var(--lichen); }

/* demos: Buddy's marks are lime with an ink edge so they read on both dark and light app screens */
.demo-svg path { stroke: var(--lime); filter: drop-shadow(0 0 1.5px var(--ink)) drop-shadow(0 0 1px var(--ink)); }
.demo-ripple { border-color: var(--lime); }
.demo-label { background: var(--ink); color: #fff; border: 1px solid var(--lime); border-radius: 8px; font-family: var(--font-mono); letter-spacing: -.02em; }
.demo-status, .demo-status.ok, .chip.ok { background: var(--ink); color: var(--lime); border-radius: 9999px; }
.demo-cap { border-radius: 12px; }
.faq-q { font: 400 24px/1.2 var(--font-display); letter-spacing: -.006em; }
.stopbtn { background: var(--ink); border-radius: 8px; font-family: var(--font-mono); }
.prose { background: var(--bone); }
.prose h1 { font-size: clamp(36px, 5vw, 58px); }
.prose h2 { font-size: 28px; }
.prose code { background: var(--tissue); }
.skip { background: var(--ink); }
.hero2 > * { min-width: 0; }

/* WebGL backdrop (public/js/shader.js): canvas sits behind the hero content; the dark ink fill is the no-WebGL fallback */
.hero2 { position: relative; isolation: isolate; overflow: hidden; }
.shader-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hero2-panel, .hero2-media { position: relative; z-index: 1; }
/* the shader's light bands would sink white text, so the copy sits on a solid ink card (flat, hairline, 20px) */
.hero2 { align-items: stretch; }
.hero2-panel { background: var(--ink) !important; border: 1px solid var(--graphite) !important; border-radius: 20px; padding: clamp(24px, 3vw, 40px); align-self: center; }
@media (max-width: 900px) { .hero2-panel { padding: 24px 20px; } }
.hero2-panel { inset: auto; }

/* simplified page: hero is one card on the shader */
.hero2 { grid-template-columns: minmax(0, 1fr); min-height: min(86vh, 820px); align-content: center; padding-block: clamp(40px, 7vw, 96px); }
.hero2-panel { max-width: 640px; }
.hero2-panel h1 { font-size: clamp(38px, 5.4vw, 68px); }
.sec { padding-block: clamp(56px, 8vw, 96px); }
