/**
 * The public landing page — what Adam is, before anybody signs in.
 *
 * Ported from the Claude Design handoff (`Adam Landing.dc.html`), whose styles
 * were inline and whose runtime pulled React from a CDN. Values are the
 * handoff's, verbatim; see its README for where each came from. Light only, by
 * design: the page is one surface, and it carries no theme toggle.
 */

.landing {
  --ink: #0d2333;
  --body: #48606c;
  --strong: #20404f;
  --muted: #5d7280;
  --accent-text: #0268ce;
  --accent-line: #0389d7;
  --accent-bright: #04d8f2;
  --cta-ink: #04112c;
  --rule: #dce6ea;
  --card-line: #e0e9ed;
  --divider: #dfe8ec;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  margin: 0;
  background: #ffffff;
  color: var(--body);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html:has(body.landing) { scroll-behavior: smooth; }
.landing h1, .landing h2, .landing h3, .landing p, .landing ul, .landing ol { margin: 0; }
.landing ul, .landing ol { padding: 0; list-style: none; }
.landing a { color: var(--accent-text); text-decoration: none; }
.landing a:hover { color: var(--accent-line); }

.lp-shell { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.lp-section { padding-top: clamp(64px, 8vw, 116px); }
.lp-mono { font-family: var(--mono); }
.lp-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-text);
}
.lp-h2 {
  font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.03em;
  font-weight: 700; color: var(--ink); max-width: 24ch;
}
.lp-lead-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(20px, 4vw, 56px); align-items: end; margin-top: 16px;
}
.lp-intro { font-size: 16px; line-height: 1.6; color: var(--body); text-wrap: pretty; padding-bottom: 6px; }

/* ── header ─────────────────────────────────────────────────────────── */
.lp-header {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.lp-lockup { display: flex; align-items: center; flex: none; }
.lp-lockup img { height: 38px; width: auto; display: block; }
.lp-nav {
  display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto;
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
}
.lp-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lp-btn {
  font-size: 13.5px; font-weight: 600; padding: 10px 16px; border-radius: 9px;
  white-space: nowrap; border: 1px solid #cbd8de; color: var(--strong);
  transition: border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.landing a.lp-btn { color: var(--strong); }
.landing a.lp-btn:hover { border-color: var(--accent-line); color: var(--accent-text); }
.lp-btn-fill {
  font-weight: 700; padding: 11px 18px; border: 0;
  background: linear-gradient(135deg, #0268ce, #04d8f2);
  box-shadow: 0 8px 22px rgba(2, 104, 206, .26);
}
.landing a.lp-btn-fill, .landing a.lp-btn-fill:hover { color: #ffffff; text-shadow: 0 1px 2px rgba(2, 40, 90, .35); }
.landing a.lp-btn-fill:hover { box-shadow: 0 12px 30px rgba(2, 104, 206, .34); }

/* ── hero ───────────────────────────────────────────────────────────── */
.lp-hero { padding-top: clamp(48px, 7vw, 86px); }
.lp-hero .lp-eyebrow { letter-spacing: .2em; }
/* The lockup at hero size. Transparent PNG, drawn at most at half its height. */
.lp-hero-logo { display: block; height: clamp(56px, 7vw, 96px); width: auto; margin: 0 0 clamp(18px, 2.4vw, 28px) -6px; }
.lp-hero-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
/* Two lines, broken after the comma. Sized so "one reference graph." stays
   on its line in its half of the hero. */
.lp-hero-title .lp-eyebrow { margin-bottom: clamp(12px, 1.6vw, 20px); }
.lp-h1 {
  font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.035em;
  font-weight: 700; color: var(--ink); text-wrap: balance;
}
@media (min-width: 1000px) { .lp-h1 { white-space: nowrap; } }
.lp-hero-copy { display: flex; flex-direction: column; gap: 18px; padding-bottom: 8px; }
.lp-lede { font-size: 17.5px; line-height: 1.58; color: var(--body); text-wrap: pretty; max-width: 52ch; }
.lp-pipeline { font-family: var(--mono); font-size: 12px; line-height: 1.9; letter-spacing: .04em; color: var(--muted); }
.lp-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── hero animation ─────────────────────────────────────────────────── */
.lp-scene-section { margin-top: clamp(28px, 4vw, 52px); }
.lp-plate { position: relative; width: auto; background: transparent; }
.lp-stage { position: relative; max-width: 1400px; margin: 0 auto; padding: 52px clamp(20px, 4vw, 56px) 40px; }
.lp-flow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.lp-scene-grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.34fr 1fr;
  align-items: start; gap: clamp(18px, 3vw, 48px);
}
.lp-scene-col { text-align: center; }
.lp-scene-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--strong); line-height: 1.7; height: 38px;
}
.lp-scene-row { height: 284px; display: flex; align-items: center; justify-content: center; }
.lp-scene-row canvas { width: 100%; display: block; image-rendering: pixelated; }
.lp-scene-cap {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--strong); margin-top: 14px; line-height: 1.7;
}
.lp-scene-cap.is-muted { letter-spacing: .16em; color: var(--muted); }
.lp-scene-sub { margin-top: 12px; font-family: var(--mono); font-size: 10.5px; line-height: 1.9; letter-spacing: .06em; color: var(--muted); }

/* ── figures ────────────────────────────────────────────────────────── */
.lp-figures {
  margin-top: 22px; display: flex; flex-wrap: nowrap; gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden;
}
.lp-figure { background: #fff; padding: 20px clamp(10px, 1.4vw, 18px); flex: 1 1 0; min-width: 0; }
.lp-figure b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.lp-figure span {
  display: block; margin-top: 5px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
}
.lp-figures-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* ── what Adam is ───────────────────────────────────────────────────── */
.lp-what-h2 { margin-top: 16px; max-width: 26ch; }
.lp-cards3 { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.lp-card {
  background: #fff; border: 1px solid var(--card-line); border-radius: 12px;
  padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 12px;
}
.lp-kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.lp-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1.3; }
.lp-card p { font-size: 14.5px; line-height: 1.62; color: var(--body); text-wrap: pretty; }

/* ── the journey ────────────────────────────────────────────────────── */
.lp-journey { position: relative; margin-top: 44px; }
.lp-journey canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.lp-jrow {
  display: grid; gap: 1px; background: var(--divider); border: 1px solid var(--divider);
  border-radius: 12px; overflow: hidden; margin: 0;
}
.lp-jrow.is-top { grid-template-columns: repeat(auto-fit, minmax(min(100%, 178px), 1fr)); }
.lp-jrow.is-bottom { grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr)); margin-top: 1px; }
.lp-jcard { background: #fff; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lp-jnum { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--muted); }
.lp-jcard h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); line-height: 1.3; min-height: 44px; }
.lp-jband { height: 200px; margin: 4px 0 2px; }
.lp-jcard p { font-size: 13.5px; line-height: 1.6; color: var(--body); text-wrap: pretty; }
.lp-jpath {
  margin-top: auto; padding-top: 10px; font-family: var(--mono); font-size: 10px;
  letter-spacing: -.01em; color: var(--accent-text); word-break: keep-all; overflow-wrap: normal;
}
.lp-exit {
  margin-top: 16px; text-align: right; white-space: nowrap; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .16em; color: var(--accent-text); line-height: 1.6;
}

/* ── the chain ──────────────────────────────────────────────────────── */
.lp-chain-grid { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.lp-chain-list { display: grid; gap: 6px; margin: 0; }
.lp-step {
  width: 100%; box-sizing: border-box; display: grid; grid-template-columns: 34px minmax(0, 1fr);
  align-items: baseline; column-gap: 14px; row-gap: 5px; text-align: left; font: inherit; cursor: pointer;
  padding: 13px 16px; border-radius: 9px; background: transparent; border: 1px solid var(--card-line);
  color: #3d5463; transition: background .16s ease, border-color .16s ease;
}
.lp-step.is-on { background: #fff; border-color: var(--accent-line); color: var(--ink); box-shadow: 0 2px 10px rgba(13, 35, 51, .07); }
.lp-step-n { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.lp-step.is-on .lp-step-n { color: var(--accent-line); }
.lp-step-t { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.lp-step-tool { grid-column: 2; font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; overflow-wrap: anywhere; color: var(--muted); }
.lp-step.is-on .lp-step-tool { color: var(--accent-text); }
.lp-panel {
  position: sticky; top: 20px; background: #fff; border: 1px solid var(--card-line); border-radius: 12px;
  padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 16px;
}
.lp-panel-diagram { border: 1px solid var(--card-line); border-radius: 10px; overflow: hidden; background: #fff; }
.lp-panel-diagram canvas { width: 100%; aspect-ratio: 352 / 198; display: block; }
.lp-panel-step { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.lp-panel h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.025em; color: var(--ink); line-height: 1.14; }
.lp-panel-why { font-size: 15px; line-height: 1.62; color: var(--body); text-wrap: pretty; }
.lp-panel-facts { margin-top: 4px; display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid #e8eff3; }
.lp-fact { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: baseline; }
.lp-fact span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lp-fact code { font-family: var(--mono); font-size: 12.5px; color: var(--strong); overflow-wrap: break-word; }
.lp-fact code.is-writes { color: var(--accent-text); }

/* ── reading it back ────────────────────────────────────────────────── */
.lp-read-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-top: 32px; align-items: start; }
.lp-read-card { background: #fff; border: 1px solid var(--card-line); border-radius: 12px; padding: 28px 26px 30px; }
.lp-read-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.lp-read-card > p { margin-top: 12px; font-size: 14.5px; line-height: 1.62; color: var(--body); text-wrap: pretty; }
.lp-layers { margin-top: 20px; display: grid; gap: 1px; background: #e6eef2; border: 1px solid #e6eef2; border-radius: 9px; overflow: hidden; }
.lp-layers li { background: #fff; padding: 14px 16px; display: grid; grid-template-columns: 98px 1fr; gap: 14px; align-items: baseline; }
.lp-layers li span:first-child { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.lp-layers li span:last-child { font-size: 13.5px; line-height: 1.55; color: var(--body); }
.lp-tools { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 7px; }
.lp-tools code {
  font-family: var(--mono); font-size: 11.5px; color: var(--strong); background: #f2f7f8;
  border: 1px solid var(--card-line); border-radius: 6px; padding: 6px 9px;
}
.lp-read-card .lp-read-note { margin-top: 20px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ── CTA ────────────────────────────────────────────────────────────── */
.lp-cta {
  position: relative; overflow: hidden;
  background: var(--cta-ink); border-radius: 16px; padding: clamp(32px, 5vw, 64px); display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center;
}
.lp-cta h2 { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; color: #eaf3f7; max-width: 22ch; }
.lp-cta-body { margin-top: 16px; font-size: 16px; line-height: 1.6; color: #9fb3c2; max-width: 52ch; text-wrap: pretty; }
.lp-cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.lp-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.landing a.lp-cta-fill {
  font-size: 15px; font-weight: 700; padding: 14px 24px; border-radius: 11px; white-space: nowrap;
  background: linear-gradient(135deg, #0268ce, #04d8f2); color: #ffffff; text-shadow: 0 1px 2px rgba(2, 40, 90, .35);
  box-shadow: 0 10px 28px rgba(4, 216, 242, .32); transition: box-shadow .16s ease;
}
.landing a.lp-cta-fill:hover { box-shadow: 0 14px 36px rgba(4, 216, 242, .46); color: #ffffff; }
.landing a.lp-cta-ghost {
  font-size: 15px; font-weight: 600; padding: 14px 22px; border-radius: 11px; white-space: nowrap;
  border: 1px solid rgba(4, 216, 242, .4); color: #9fdff2; transition: border-color .16s ease, color .16s ease;
}
.landing a.lp-cta-ghost:hover { border-color: #04d8f2; color: #ddf6fd; }
.lp-cta-fine { font-size: 13px; line-height: 1.6; color: #8298a8; max-width: 44ch; }

/* ── footer ─────────────────────────────────────────────────────────── */
.lp-footer {
  margin-top: clamp(48px, 6vw, 88px); padding: 22px 0 44px; border-top: 1px solid var(--rule);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.lp-rings { display: flex; align-items: center; flex: none; }
.lp-rings span { width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid #218dae; }
.lp-rings span + span { border-color: #12566b; margin-left: -5px; }
.lp-by { display: flex; flex-direction: column; gap: 2px; }
.lp-by-label { font-size: 8.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1; color: #6c7d7f; }
.lp-by-name { font-size: 12.5px; font-weight: 700; line-height: 1; color: var(--strong); }
.lp-by-name b { color: #218dae; font-weight: 700; }
.lp-softlabs { margin-left: auto; width: 84px; opacity: .55; }

/* ── narrow ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .lp-chain-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-panel { position: static; }
  .lp-figures { flex-wrap: wrap; }
  .lp-figure { flex: 1 1 30%; }
}
@media (max-width: 760px) {
  .lp-scene-grid { grid-template-columns: 1fr; }
  .lp-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.landing) { scroll-behavior: auto; }
}

/* ── the mascot ───────────────────────────────────────────────────────
 * ADAM, through the page.
 *
 * **Not in the hero.** The lockup already carries the ADAM mark, so a figure
 * beside it is the same mark twice, and it showed: wherever it was put in that
 * row it read as decoration looking for somewhere to be. It stands in the
 * closing panel instead, which is the one dark ground on this page and what the
 * artwork was drawn against — and the panel's bottom right is genuinely empty,
 * because the fine print is short and the grid is centred.
 *
 * Absolute inside the panel, which is safe in a way the hero was not: the panel
 * is one box with its own padding rather than a grid that reflows around the
 * copy, so `right` and `bottom` mean the same thing at every width. Below the
 * width where the panel stacks into one column it is not scaled down, it is
 * dropped — overlapping the call to action to keep a decoration is the wrong
 * trade. `overflow: hidden` keeps it inside the panel's rounded corner.
 *
 * **Every pose gets the same box, and that is the whole trick.** The poses are
 * cut to their own content, so their aspect ratios differ — 184x223 against
 * 165x250 against 198x244. Sizing them by height alone gave each one a
 * different width, so four figures that should have read as one motif sat at
 * four different distances from four different headings. A fixed box with
 * `object-fit: contain` makes them occupy identical space whatever shape the
 * artwork is, and `object-position: bottom` stands them all on the same floor.
 * Setting both dimensions also reserves the box before the image arrives;
 * height alone collapsed an unloaded pose to zero width, and every heading
 * below the fold shifted sideways as its figure loaded.
 */
.lp-cta .lp-adam {
  position: absolute;
  right: clamp(16px, 3vw, 52px);
  bottom: 0;
  height: clamp(150px, 19vw, 250px);
  width: auto;
  pointer-events: none;
  user-select: none;
  animation: lp-adam-float 7s ease-in-out infinite;
}

@keyframes lp-adam-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

.lp-pose {
  display: inline-block;
  width: 62px;
  height: 74px;
  object-fit: contain;
  object-position: bottom center;
  vertical-align: middle;
  margin: 0 12px 0 0;
  opacity: .92;
}

/* Under this the panel stacks into one column and the figure would stand on
   the buttons. */
@media (max-width: 900px) {
  .lp-cta .lp-adam { display: none; }
}

@media (max-width: 720px) {
  .lp-pose { width: 44px; height: 52px; margin-right: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-cta .lp-adam { animation: none; }
}
