/* Elute — "The Elution"
   A chromatography column read top-to-bottom. A target is loaded at the top
   and the answer elutes into three clean bands: Target (blue) -> Route (amber)
   -> Buy list (green). Those route-card colors are the load-bearing palette;
   a thin vertical column rail runs down the page, dividers read as eluting
   bands, and the hero example washes off the column on load. */

:root {
  color-scheme: dark;

  /* Base — the column and its dark glass */
  --bg: #07110d;
  --bg-2: #0a1712;
  --panel: #0f2119;
  --panel-2: #122a20;
  --ink: #eef7ef;
  --muted: #a8b8ad;
  --faint: #6f8378;
  --line: #284737;
  --line-strong: #3f7657;
  --shadow: rgba(0, 0, 0, 0.42);
  --radius: 10px;

  /* The elution gradient — load-bearing, semantic, scarce */
  --target: #8ac7ff;     /* blue  — the molecule you name */
  --intermediate: #ffbe55; /* amber — the route in motion */
  --buyable: #7cf2a4;    /* green — eluted, priced, ready to buy */
  --focus: var(--buyable);

  /* Back-compat aliases used by shared affordances */
  --accent: var(--buyable);
  --amber: var(--intermediate);
  --blue: var(--target);

  --elution: linear-gradient(
    180deg,
    var(--target) 0%,
    var(--intermediate) 50%,
    var(--buyable) 100%
  );

  --fraunces: "Fraunces", "Iowan Old Style", Georgia, serif;
  --grotesk: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "Cascadia Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-family: var(--grotesk);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.003em;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(138, 199, 255, 0.06), transparent 60%),
    radial-gradient(90% 60% at 0% 110%, rgba(124, 242, 164, 0.05), transparent 55%),
    linear-gradient(180deg, #06100c 0%, #091610 46%, #050b08 100%);
}

/* The column rail — a thin eluting gradient down the spine of the page */
.column-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: max(18px, env(safe-area-inset-left));
  width: 3px;
  z-index: 1;
  pointer-events: none;
  background: var(--elution);
  opacity: 0.5;
  border-radius: 3px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
}

a {
  color: var(--buyable);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.shell {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(-140%);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--buyable);
  color: #07110d;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(124, 242, 164, 0.16);
  background: rgba(7, 17, 13, 0.86);
  backdrop-filter: blur(16px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  color: var(--ink);
  font-family: var(--fraunces);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

/* The brand mark is a tiny column: blue cap, amber body, green drop */
.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: #07110d;
  background: var(--elution);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(124, 242, 164, 0.18);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--elution);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.site-nav a:hover::after {
  transform: scaleX(1);
}

/* Section dividers read as faint eluting bands washing across the column */
.section-band {
  position: relative;
  padding: 80px 0;
}

.section-band + .section-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(138, 199, 255, 0.28) 22%,
    rgba(255, 190, 85, 0.28) 50%,
    rgba(124, 242, 164, 0.28) 78%,
    transparent
  );
}

.hero {
  padding: 96px 0 88px;
}

.hero-grid,
.section-grid,
.install-grid,
.form-grid {
  display: grid;
  gap: 32px;
}

.hero-copy,
.section-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--intermediate);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--fraunces);
  line-height: 1.04;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h1 {
  max-width: 14ch;
  margin-bottom: 22px;
  font-size: 3rem;
  font-weight: 500;
}

h2 {
  margin-bottom: 18px;
  font-size: 2rem;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.one-liner {
  max-width: 640px;
  color: #dce9df;
  font-size: 1.2rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 28px;
}

.button,
button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.button-primary,
button {
  color: #06100c;
  background: var(--buyable);
  box-shadow: 0 14px 32px var(--shadow);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(15, 33, 25, 0.7);
}

.button:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px var(--shadow);
}

.button-secondary:hover {
  border-color: var(--buyable);
}

.signal-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.signal-list li {
  position: relative;
  padding-left: 24px;
}

.signal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--buyable);
  box-shadow: 0 0 0 4px rgba(124, 242, 164, 0.12);
}

.demo-workbench,
.install-block,
.capture-form,
.steps li,
.table-wrap {
  border: 1px solid rgba(124, 242, 164, 0.18);
  border-radius: var(--radius);
  background: rgba(10, 23, 18, 0.82);
  box-shadow: 0 24px 64px var(--shadow);
}

/* ---- Hero chromatogram: the example washing off the column ---- */
.hero-panel {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(124, 242, 164, 0.2);
  background:
    linear-gradient(180deg, rgba(18, 42, 32, 0.6), rgba(8, 16, 12, 0.86));
  box-shadow: 0 28px 70px var(--shadow);
  overflow: hidden;
}

/* the column the bands elute down */
.hero-panel::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 24px;
  width: 3px;
  border-radius: 3px;
  background: var(--elution);
  opacity: 0.85;
}

.panel-kicker {
  margin: 0 0 18px 22px;
  color: var(--intermediate);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chromatogram {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
  counter-reset: band;
}

.band {
  position: relative;
  padding: 14px 16px 14px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left-width: 3px;
  background: rgba(7, 17, 13, 0.72);
}

/* the dot where each band meets the column */
.band::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 22px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.band-target {
  border-left-color: var(--target);
}
.band-target::before {
  background: var(--target);
  box-shadow: 0 0 0 4px rgba(138, 199, 255, 0.18);
}

.band-route {
  border-left-color: var(--intermediate);
}
.band-route::before {
  background: var(--intermediate);
  box-shadow: 0 0 0 4px rgba(255, 190, 85, 0.18);
}

.band-buy {
  border-left-color: var(--buyable);
}
.band-buy::before {
  background: var(--buyable);
  box-shadow: 0 0 0 4px rgba(124, 242, 164, 0.18);
}

.band-tag {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.band-target .band-tag { color: var(--target); }
.band-route .band-tag { color: var(--intermediate); }
.band-buy .band-tag { color: var(--buyable); }

.band-value {
  display: block;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

.band-note {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 0.86rem;
}

/* The load: each band fades + rises, staggered, as if eluting */
.band {
  opacity: 0;
  transform: translateY(10px);
}

@media (prefers-reduced-motion: no-preference) {
  .band {
    animation: elute 560ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
    animation-delay: calc(160ms + var(--reveal-step) * 80ms);
  }
}

@keyframes elute {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.narrow {
  max-width: 760px;
}

.demo-workbench {
  padding: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 600;
}

.search-row {
  display: grid;
  gap: 10px;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 13px;
  color: var(--ink);
  background: #07110d;
  font: inherit;
}

input:focus,
textarea:focus {
  border-color: var(--line-strong);
}

textarea {
  resize: vertical;
}

::placeholder {
  color: #7e9187;
  opacity: 1;
}

.chip-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 6px 8px;
  border: 1px dashed rgba(124, 242, 164, 0.26);
  border-radius: var(--radius);
}

.demo-results {
  min-height: 190px;
  margin-top: 16px;
  border: 1px solid rgba(138, 199, 255, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(138, 199, 255, 0.05), transparent 40%),
    #08130f;
}

/* ---- How it works: three step cards, one per elution band ---- */
.steps {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 24px;
  border-top: 3px solid var(--line-strong);
}

.step-target { border-top-color: var(--target); }
.step-route { border-top-color: var(--intermediate); }
.step-buy { border-top-color: var(--buyable); }

.step-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #06100c;
  font-family: var(--mono);
  font-weight: 600;
}

.step-target .step-number { background: var(--target); }
.step-route .step-number { background: var(--intermediate); }
.step-buy .step-number { background: var(--buyable); }

.steps p,
.section-copy p,
.footer-inner p {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

caption {
  padding: 18px;
  color: var(--muted);
  text-align: left;
  font-family: var(--mono);
  font-size: 0.84rem;
}

th,
td {
  border-top: 1px solid rgba(124, 242, 164, 0.14);
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
}

thead th {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

thead th:nth-child(1) { color: var(--target); }
thead th:nth-child(2) { color: var(--faint); }
thead th:nth-child(3) { color: var(--buyable); }

tbody th {
  color: var(--ink);
  font-family: var(--grotesk);
  font-weight: 600;
}

td {
  color: var(--muted);
}

/* the Elute column reads as the eluted, ready answer */
tbody td:last-child {
  color: #cdeed7;
}

.install-section {
  background: rgba(18, 42, 32, 0.3);
}

.install-block {
  padding: 22px;
}

.url-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 8px;
}

pre {
  flex: 1 1 240px;
  margin: 0;
  border: 1px solid rgba(124, 242, 164, 0.3);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  color: var(--buyable);
  background: #06100c;
}

.copy-button {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  align-self: stretch;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(15, 33, 25, 0.8);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.copy-button:hover {
  border-color: var(--buyable);
  box-shadow: none;
}

.copy-status {
  min-height: 20px;
  margin: 0 0 14px;
  color: var(--buyable);
  font-family: var(--mono);
  font-size: 0.82rem;
}

code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--mono);
}

.install-block ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.capture-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.capture-form button {
  width: 100%;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--buyable);
  font-family: var(--mono);
  font-size: 0.9rem;
}

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(124, 242, 164, 0.16);
  background: #050b08;
}

.footer-inner {
  align-items: flex-start;
  padding: 26px 0;
}

.footer-inner p {
  max-width: 680px;
  margin-bottom: 0;
}

.footer-inner a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .search-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .capture-form button {
    width: fit-content;
  }
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
    align-items: center;
  }

  .section-grid,
  .install-grid,
  .form-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
    align-items: start;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  h1 {
    font-size: 4.4rem;
  }

  h2 {
    font-size: 2.55rem;
  }
}

@media (max-width: 767px) {
  .column-rail {
    left: 10px;
  }

  .header-inner,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .section-band {
    padding: 60px 0;
  }

  .hero {
    padding-top: 72px;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 1.85rem;
  }
}

/* Reduced motion: revealed elements rest at their FINAL state (not just
   "drop the animation" — the bands must be fully visible and in place). */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .band {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .button:hover,
  button:hover {
    transform: none;
  }

  .site-nav a::after {
    transition: none;
  }
}
