/* =========================================================================
   Lab Weeds — Concept Prototype
   Simple, editable static styles. Edit color tokens below to retheme.
   ========================================================================= */

:root {
  /* Palette — edit these to retheme the whole site.
     The site runs over a full-screen animated deep-space canvas, so the
     theme is dark with light typography and translucent "glass" surfaces. */
  --bg: #04060f;                       /* deep space base (canvas fallback) */
  --surface: rgba(16, 22, 38, 0.55);   /* translucent glass for cards */
  --ink: #f4f6fb;                       /* near-white primary text */
  --ink-soft: rgba(244, 246, 251, 0.78); /* secondary text */
  --ink-faint: rgba(244, 246, 251, 0.5); /* captions / fine print */
  --accent: #9fb6cf;        /* light slate-blue accent (links, lines) */
  --accent-deep: #3c5870;   /* deeper slate for solid button fills */
  --accent-soft: rgba(159, 182, 207, 0.14); /* accent tint background */
  --line: rgba(255, 255, 255, 0.12);   /* subtle divider */
  --line-strong: rgba(255, 255, 255, 0.2);

  /* Typography */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --reading: 44rem;         /* max-width reading column */
  --wide: 64rem;            /* wider container for grids */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Typography -------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  margin: 0 0 0.6rem;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 2.8rem 0 0.9rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---- Layout helpers ---------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.reading {
  max-width: var(--reading);
}

.section {
  padding: 3.2rem 0;
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.9rem;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
}

.muted {
  color: var(--ink-faint);
  font-size: 0.9rem;
}

/* ---- Header ----------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(120%) blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  max-width: var(--wide);
  margin: 0 auto;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark small {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.15rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ---- Hero / page intro ------------------------------------------------ */

.page-intro {
  padding: 3.4rem 0 1rem;
}

.hero {
  padding: 4.5rem 0 2rem;
}

.hero h1 {
  max-width: 18ch;
}

.one-liner {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0 0 1.6rem;
}

/* ---- Buttons ---------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.72rem 1.4rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--accent-deep);
  color: #fff;
}

.btn--primary:hover {
  background: #4a6b88;
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

/* ---- Pull quote ------------------------------------------------------- */

.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.4;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1.4rem;
  margin: 2.4rem 0;
  max-width: 32ch;
}

/* ---- Stage / cards ---------------------------------------------------- */

.stages {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
}

.stage {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.3rem 1.4rem;
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
}

.stage__num {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.stage__body p {
  margin: 0;
  color: var(--ink-soft);
}

.cards {
  display: grid;
  gap: 1.1rem;
  margin: 2rem 0 0;
}

@media (min-width: 720px) {
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.6rem;
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p:last-child {
  margin-bottom: 0;
}

/* ---- Lists ------------------------------------------------------------ */

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.4rem;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- Callout ---------------------------------------------------------- */

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
  margin: 2.4rem 0;
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---- CTA band --------------------------------------------------------- */

.cta-band {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 3.2rem 0;
}

/* ---- Footer ----------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding: 2.4rem 0 3rem;
}

.site-footer__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
  color: var(--ink-faint);
  font-size: 0.88rem;
  max-width: 60ch;
}

.site-footer .prototype-tag {
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---- Forms ------------------------------------------------------------ */

.field {
  margin-bottom: 1.2rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field .hint {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin: 0.4rem 0 0;
}

/* ---- Animated deep-space background ----------------------------------- */

/* Full-screen canvas sits behind every page; a fixed scrim mutes the drift
   uniformly so light typography stays legible while scrolling. */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(4, 6, 16, 0.32),
    rgba(4, 6, 16, 0.62)
  );
}

/* ---- Password gate ---------------------------------------------------- */

.gate {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.gate__card {
  width: 100%;
  max-width: 30rem;
  text-align: center;
  padding: 2.6rem 2.2rem;
  border-radius: 16px;
  background: rgba(10, 14, 26, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
}

.gate__card .eyebrow {
  color: #9fb6cf;
}

.gate__card h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.gate__tagline {
  font-family: var(--serif);
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  color: rgba(244, 246, 251, 0.92);
  margin: 0.2rem 0 1rem;
}

.gate__sub {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: rgba(244, 246, 251, 0.72);
  margin-bottom: 1.6rem;
}

.gate__body {
  font-size: 0.98rem;
  color: rgba(244, 246, 251, 0.82);
  margin-bottom: 1.8rem;
}

.gate__form {
  text-align: left;
}

.gate__form .field label {
  color: rgba(244, 246, 251, 0.85);
}

.gate__form .field input {
  color: #f4f6fb;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.gate__form .field input::placeholder {
  color: rgba(244, 246, 251, 0.45);
}

.gate__form .field input:focus {
  outline-color: #9fb6cf;
  border-color: #9fb6cf;
  background: rgba(255, 255, 255, 0.1);
}

.gate__error {
  color: #ff9b8f;
  font-size: 0.88rem;
  margin: 0.6rem 0 0;
  min-height: 1.2rem;
}

.gate__note {
  margin-top: 2rem;
  font-size: 0.82rem;
  color: rgba(244, 246, 251, 0.5);
}

.gate__row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.gate__row .field {
  flex: 1 1 12rem;
  margin-bottom: 0;
}

/* ---- Utilities -------------------------------------------------------- */

.stack-sm > * + * {
  margin-top: 0.5rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .site-header__inner {
    align-items: flex-start;
  }
  .section {
    padding: 2.4rem 0;
  }
}

/* ---- Persistent prototype banner ------------------------------------- */
.proto-banner {
  position: relative;
  z-index: 3;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(8, 12, 24, 0.72);
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 1.2rem;
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
}

/* ---- Gate notice ----------------------------------------------------- */
.gate__notice {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.gate__notice p {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

/* ---- Form status messages -------------------------------------------- */
.form-status {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--accent);
}

.form-status.is-error {
  color: #ff9b8f;
}

.contact-form {
  max-width: 34rem;
  margin-top: 1.6rem;
}

/* ---- Feedback floating button ---------------------------------------- */
.feedback-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 40;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--accent-deep);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  transition: transform 0.15s ease, background 0.15s ease;
}

.feedback-fab:hover {
  transform: translateY(-1px);
  background: #4a6a87;
}

/* ---- Feedback modal -------------------------------------------------- */
.feedback-modal {
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100vh - 4rem);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(12, 17, 30, 0.92);
  color: var(--ink);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: auto;
}

.feedback-modal::backdrop {
  background: rgba(4, 6, 16, 0.66);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.feedback-modal__inner {
  position: relative;
  padding: 1.8rem 1.8rem 2rem;
}

.feedback-modal h2 {
  margin: 0 2rem 0.8rem 0;
  font-size: 1.4rem;
}

.feedback-modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  width: 2rem;
  height: 2rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.feedback-modal__close:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.feedback-modal__intro p {
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.feedback-modes {
  display: flex;
  gap: 0.5rem;
  margin: 1.2rem 0 1.1rem;
  flex-wrap: wrap;
}

.feedback-mode {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
}

.feedback-mode.is-active {
  color: var(--ink);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.feedback-modal__actions {
  margin-top: 1.3rem;
}
