/* The public landing page. Same tokens as app.css; the composition
   follows Closeout's marketing site: a white page, 24px soft-grey panels,
   a centred hero with an eyebrow pill, black pill and outlined actions, a
   numbered stepper with one solid active row, and gradient stages that
   carry product frames instead of photography. */

body.site { background: var(--canvas); }

.l-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.l-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.l-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.l-nav {
  display: flex;
  gap: 34px;
  font-size: 14px;
}

.l-nav a,
.l-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}

.l-nav a:hover,
.l-link:hover { color: var(--ink); }

.l-link.is-strong { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

.l-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ---------- buttons and pills ---------- */

.l-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 140ms ease, border-color 140ms ease;
}

.l-btn:hover { background: #000; }
.l-btn.is-small { min-height: 42px; padding: 0 20px; font-size: 14px; }

.l-btn.is-ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
}

.l-btn.is-ghost:hover { background: var(--panel); border-color: var(--muted); }

.l-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 11, 12, 0.04);
  color: var(--ink-2);
  font-size: 14px;
}

.l-pill .mark { width: 18px; height: 18px; }

/* ---------- hero ---------- */

.l-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 84px;
  text-align: center;
}

.l-hero h1 {
  margin-top: 30px;
  max-width: 15ch;
  font-size: 76px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.038em;
}

.l-sub {
  margin-top: 24px;
  max-width: 34em;
  font-size: 18px;
  color: var(--ink-2);
}

.l-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

.l-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  width: 100%;
  margin-top: 72px;
  text-align: left;
}

.l-panel {
  position: relative;
  min-height: 500px;
  padding: 26px;
  border-radius: var(--r-big);
  overflow: hidden;
}

.l-panel.is-mist {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  background:
    radial-gradient(110% 80% at 82% 10%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(160deg, #eef1f6 0%, #dfe4ec 100%);
}

.l-panel.is-sky {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(90% 70% at 88% 82%, rgba(37, 84, 204, 0.45) 0%, rgba(37, 84, 204, 0) 65%),
    linear-gradient(158deg, #c9dcf7 0%, #9fbfee 55%, #85aae6 100%);
}

/* Large handoff rails: the lead line stops at a terminal, the standby
   line starts underneath and carries on past it. */
.l-handoff-art {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 18px 6px 0;
}

.lh { position: relative; display: block; height: 32px; }
.lh i { position: absolute; display: block; border-radius: 2px; }
.lh-lead { left: 0; top: 6px; width: 60%; height: 3px; background: var(--ink); }
.lh-stop { left: 60%; top: 0; width: 6px; height: 15px; background: var(--red); }
.lh-standby { left: 42%; top: 26px; right: 0; height: 3px; background: var(--accent); }
.lh-1 { height: 72px; margin-top: 18px; }
.lh-1 .lh-lead { top: 26px; }
.lh-1 .lh-stop { top: 20px; }
.lh-1 .lh-standby { top: 46px; }
.lh-1 em {
  position: absolute;
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  color: var(--ink-2);
}
.lh-1 .lh-name-lead { left: 0; top: 0; }
.lh-1 .lh-name-standby { right: 0; top: 56px; color: var(--accent-ink); }
.lh-2 .lh-lead,
.lh-3 .lh-lead { width: 78%; background: rgba(11, 11, 12, 0.18); }
.lh-2 .lh-standby,
.lh-3 .lh-standby { left: 70%; background: rgba(59, 113, 240, 0.25); }

.l-pushes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.l-push {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(11, 11, 12, 0.1);
}

.l-push strong { display: block; font-size: 14px; font-weight: 600; }
.l-push small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.l-push time { margin-left: auto; align-self: flex-start; font-size: 12px; color: var(--muted); }

.l-push-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.l-push-icon::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.l-push-icon.is-red { background: var(--red-soft); }
.l-push-icon.is-red::before { background: var(--red); }
.l-push-icon.is-calm { background: var(--calm-soft); }
.l-push-icon.is-calm::before { background: var(--calm); }

.l-app {
  width: 100%;
  max-width: 470px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(11, 11, 12, 0.16);
}

.l-app-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 14px;
}

.l-app-top strong { font-size: 15px; }

.l-app-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
}

.l-app-live i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--calm);
}

.l-app-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-row);
}

.l-app-row + .l-app-row { margin-top: 8px; }
.l-app-row.is-red { --t: var(--red); --t-soft: var(--red-soft); --t-ink: var(--red-ink); border-color: #f6cfcc; background: linear-gradient(90deg, #fff6f5, #fff 60%); }
.l-app-row.is-amber { --t: var(--amber); --t-soft: var(--amber-soft); --t-ink: var(--amber-ink); }
.l-app-row.is-calm { --t: var(--calm); --t-soft: var(--calm-soft); --t-ink: var(--calm-ink); }

.l-app-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--t-soft);
}

.l-app-mark i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--t);
}

.l-app-row.is-red .l-app-mark i {
  width: 18px;
  height: 18px;
  background: transparent;
  border: 2.5px solid color-mix(in srgb, var(--red) 25%, transparent);
  border-top-color: var(--red);
}

.l-app-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.l-tag {
  display: inline-flex;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--t-soft);
  color: var(--t-ink);
  font-size: 11.5px;
  font-weight: 600;
}

.l-app-status { margin-top: 3px; font-size: 13px; color: var(--ink-2); }

.l-app-meter {
  position: relative;
  display: block;
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--red-soft);
}

.l-app-meter i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 62%;
  border-radius: 999px;
  background: var(--red);
}

.l-chip {
  position: absolute;
  left: 22px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(11, 11, 12, 0.14);
}

.l-chip span { font-size: 12px; color: var(--muted); }
.l-chip strong { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }

.l-live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  width: 100%;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.l-live-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
}

.l-live-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-live-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
}

.l-live-list strong { font-weight: 600; }
.l-live-none { font-size: 14px; color: var(--ink-2); }
.l-live .l-link { margin-left: auto; }

/* ---------- sections ---------- */

.l-section { padding-top: 128px; }

.l-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 52px;
}

.l-hero h1,
.l-head h2,
.l-run h2,
.l-safe h2 { text-wrap: balance; }

.l-head h2,
.l-run h2 {
  margin-top: 24px;
  font-size: 52px;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.032em;
}

.l-head > p:not(.l-pill) {
  padding-bottom: 6px;
  font-size: 17px;
  color: var(--ink-2);
}

.l-head.is-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 780px;
  margin: 0 auto 52px;
  text-align: center;
}

.l-head.is-center > p:not(.l-pill) { margin-top: 18px; padding: 0; }

/* ---------- problem ---------- */

.l-quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.l-quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  min-height: 300px;
  margin: 0;
  padding: 30px 26px 26px;
  border-radius: var(--r-big);
  background: var(--panel);
}

.l-quote blockquote { margin: 0; }

.l-quote blockquote p {
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.022em;
}

.l-quote blockquote p::before { content: "\201C"; }
.l-quote blockquote p::after { content: "\201D"; }

.l-quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: var(--r-row);
  background: #fff;
}

.l-quote figcaption span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.l-quote figcaption a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.l-quote figcaption a:hover { text-decoration: underline; }

.l-verdict {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  padding: 30px 34px;
  border-radius: var(--r-big);
  background: var(--brand);
  color: #fff;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.l-verdict-rail { position: relative; flex-shrink: 0; width: 72px; height: 18px; }
.l-verdict-rail i { position: absolute; left: 0; top: 7px; width: 58px; height: 3px; border-radius: 2px; background: #fff; }
.l-verdict-rail b { position: absolute; left: 58px; top: 0; width: 5px; height: 17px; border-radius: 2px; background: #ff6b5e; }

/* ---------- how it works ---------- */

.l-how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  align-items: stretch;
  gap: 34px;
  padding: 28px;
  border-radius: var(--r-big);
  background: var(--panel);
}

.l-how-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-how-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 220ms var(--ease), color 220ms var(--ease);
}

.l-how-step:hover { background: rgba(255, 255, 255, 0.7); }
.l-how-step[aria-pressed="true"] { background: var(--brand); color: #fff; }

.l-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 14px;
}

.l-how-step strong {
  display: block;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.014em;
}

.l-how-step small {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  color: var(--ink-2);
}

.l-how-step[aria-pressed="true"] small { color: #c9ccd3; }

.l-how-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-height: 440px;
  padding: 22px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(90% 70% at 88% 82%, rgba(37, 84, 204, 0.45) 0%, rgba(37, 84, 204, 0) 65%),
    linear-gradient(158deg, #c9dcf7 0%, #9fbfee 55%, #85aae6 100%);
}

.l-how-art::before,
.l-how-art::after {
  content: "";
  position: absolute;
  height: 3px;
  border-radius: 2px;
}

.l-how-art::before { left: 28px; top: 54px; width: 52%; background: rgba(11, 11, 12, 0.75); box-shadow: 0 0 0 0 transparent; }
.l-how-art::after { left: 38%; top: 76px; right: 28px; background: #fff; }

.l-how-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(11, 11, 12, 0.14);
  text-align: center;
}

.l-how-detail strong {
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.l-how-detail span { font-size: 15px; color: var(--ink); }
.l-how-detail em { font-size: 13px; font-style: normal; color: var(--ink-2); }

.js .l-how-detail:not(.is-active) { display: none; }

/* ---------- step-in, live ---------- */

.l-run {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
}

.l-run-copy > p:not(.l-pill) {
  margin-top: 20px;
  max-width: 34em;
  font-size: 17px;
  color: var(--ink-2);
}

.l-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.l-stats div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding: 18px;
  border-radius: var(--r-panel);
  background: var(--panel);
}

.l-stats dt { font-size: 13px; color: var(--ink-2); line-height: 1.35; }

.l-stats dd {
  margin: 0;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.l-run-card {
  padding: 26px;
  border: 1px solid color-mix(in srgb, var(--calm) 28%, white);
  border-radius: var(--r-big);
  background: linear-gradient(180deg, var(--calm-soft) 0%, #fff 150px);
  box-shadow: var(--shadow-card);
}

.l-run-card.is-running {
  border-color: color-mix(in srgb, var(--accent) 30%, white);
  background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 150px);
}

.l-run-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.l-run-head h3 { font-size: 18px; letter-spacing: -0.016em; }

.l-run-count {
  display: inline-flex;
  gap: 10px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  white-space: nowrap;
}

.l-run-clock { color: var(--ink); }

.l-run-steps {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.l-run-steps li {
  position: relative;
  padding: 7px 0 7px 40px;
  font-size: 14.5px;
  transition: color 220ms ease;
}

.l-run-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid var(--line-strong);
  background: #fff;
}

.l-run-steps li::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 33px;
  bottom: -7px;
  width: 2px;
  background: var(--line);
}

.l-run-steps li:last-child::after { display: none; }
.l-run-steps li[data-status="waiting"] { color: var(--muted); }
.l-run-steps li[data-status="doing"] { font-weight: 600; }
.l-run-steps li[data-status="doing"]::before { border-color: color-mix(in srgb, var(--accent) 25%, white); border-top-color: var(--accent); }
.l-run-steps li[data-status="done"]::before {
  border-color: var(--calm);
  background: var(--calm) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.l-run-steps li[data-status="done"]::after { background: color-mix(in srgb, var(--calm) 45%, white); }

.l-run-done {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--calm-soft);
  color: var(--calm-ink);
  font-size: 14px;
  font-weight: 500;
}

.l-run-card.is-running .l-run-done { visibility: hidden; }

/* ---------- who decides ---------- */

.l-roles {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-roles::before,
.l-roles::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 44px;
  height: 2px;
  border-radius: 1px;
  background: var(--line-strong);
}

.l-roles::after {
  background: var(--accent);
  transform-origin: left center;
}

.l-role {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 26px 30px;
  border-radius: var(--r-big);
  background: var(--panel);
}

.l-role-who {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
}

.l-role h3 {
  margin-top: 38px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.018em;
}

.l-role p { font-size: 14px; color: var(--ink-2); }

.l-role.is-jev {
  background: linear-gradient(158deg, #2f63e0 0%, #1d43ad 100%);
  color: #fff;
}

.l-role.is-jev .l-role-who { background: rgba(255, 255, 255, 0.16); color: #fff; }
.l-role.is-jev p { color: #fff; }

.l-role.is-you { background: var(--brand); color: #fff; }
.l-role.is-you .l-role-who { background: rgba(255, 255, 255, 0.14); color: #fff; }
.l-role.is-you p { color: #d5d8de; }

/* ---------- built on ---------- */

.l-built {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
}

.l-sprites {
  padding: 30px;
  border-radius: var(--r-big);
  background: var(--panel);
}

.l-sprites h3,
.l-connectors-title {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.022em;
}

.l-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.l-features li {
  padding: 15px 16px;
  border-radius: var(--r-row);
  background: #fff;
}

.l-features li:last-child { grid-column: 1 / -1; }
.l-features strong { display: block; font-size: 15px; font-weight: 600; }
.l-features span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }

.l-connectors {
  margin: 0;
  padding: 8px 24px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r-big);
}

.l-connectors li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.l-connectors li:first-child { border-top: 0; }

.l-tile {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(11, 11, 12, 0.06);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-ink);
}

.l-tile img { display: block; width: 32px; height: 32px; object-fit: contain; }
.l-tile img[src*="typesafe"] { border-radius: 8px; }

.l-sprites-head { display: flex; align-items: center; gap: 10px; }
.l-brand { display: block; width: 28px; height: 28px; }

.l-connectors strong { display: block; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.l-connectors span:not(.l-tile) { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-2); }

/* ---------- safe by default ---------- */

.l-safe {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 48px;
  padding: 48px;
  border-radius: var(--r-big);
  background:
    radial-gradient(110% 80% at 10% 0%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, #f7f8fa 0%, #e9ecf1 100%);
}

.l-safe h2 {
  margin-top: 24px;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.l-ledger {
  margin: 0;
  padding: 6px 24px;
  list-style: none;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.l-ledger li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.l-ledger li:first-child { border-top: 0; }

.l-never {
  justify-self: start;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--calm-soft);
  color: var(--calm-ink);
  font-size: 12.5px;
  font-weight: 600;
}

.l-ledger strong,
.l-limit-list strong { display: block; font-size: 18px; font-weight: 500; letter-spacing: -0.012em; }
.l-ledger div > span,
.l-limit-list span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-2); }

/* ---------- limits ---------- */

.l-limits {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 40px;
  padding: 40px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-big);
}

.l-limits-head h2 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.028em;
}

.l-limits-head p { margin-top: 10px; font-size: 16px; color: var(--ink-2); }

.l-limit-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-limit-list li {
  position: relative;
  padding: 18px 0 18px 32px;
  border-top: 1px solid var(--line);
}

.l-limit-list li:first-child { border-top: 0; padding-top: 4px; }

.l-limit-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 31px;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--amber);
}

.l-limit-list li:first-child::before { top: 17px; }

/* ---------- footer ---------- */

.l-footer {
  margin-top: 128px;
  padding: 48px 0 36px;
  border-top: 1px solid var(--line);
}

.l-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.l-footer-inner p { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

.l-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}

.l-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}

.l-footer-links a:hover { color: var(--ink); }

.l-footer-base {
  max-width: 1152px;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal="stagger"] > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms var(--ease);
  }

  .js [data-reveal="stagger"] > :nth-child(2) { transition-delay: 120ms; }
  .js [data-reveal="stagger"] > :nth-child(3) { transition-delay: 240ms; }
  .js [data-reveal="stagger"].is-in > * { opacity: 1; transform: none; }

  .js [data-reveal="rail"]::after { transform: scaleX(0); transition: transform 1400ms var(--ease); }
  .js [data-reveal="rail"].is-in::after { transform: scaleX(1); }

  .l-run-steps li[data-status="doing"]::before,
  .l-app-row.is-red .l-app-mark i { animation: spin 900ms linear infinite; }
  .l-app-meter i { width: 40%; animation: travel 1.8s var(--ease) infinite; }
  .live-dot { animation: ring-calm 2s ease-out infinite; }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .l-nav { display: none; }
  .l-hero h1 { font-size: 58px; }
  .l-head h2,
  .l-run h2 { font-size: 42px; }
  .l-stage,
  .l-head,
  .l-how,
  .l-run,
  .l-built,
  .l-safe,
  .l-limits { grid-template-columns: 1fr; }
  .l-head { gap: 18px; }
  .l-panel { min-height: 420px; }
  .l-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-roles::before,
  .l-roles::after { display: none; }
  .l-how-art { min-height: 300px; }
}

@media (max-width: 700px) {
  .l-wrap { padding: 0 16px; }
  .l-footer-base { max-width: calc(100% - 32px); }
  .l-header-inner { min-height: 64px; gap: 12px; }
  .l-header-actions .l-link { display: none; }
  .l-hero { padding-top: 48px; }
  .l-pill { font-size: 13px; min-height: auto; padding: 8px 14px 8px 10px; text-align: left; }
  .l-hero h1 { font-size: 40px; letter-spacing: -0.032em; }
  .l-sub { font-size: 16px; }
  .l-actions { width: 100%; flex-direction: column; }
  .l-actions .l-btn { width: 100%; }
  .l-stage { margin-top: 44px; gap: 16px; }
  .l-panel { min-height: 0; padding: 18px; }
  .l-panel.is-sky { padding: 22px 14px 92px; }
  .l-chip { left: 14px; bottom: 16px; }
  .l-live .l-link { margin-left: 0; }

  .l-section { padding-top: 80px; }
  .l-head { margin-bottom: 30px; }
  .l-head h2,
  .l-run h2,
  .l-safe h2 { font-size: 32px; letter-spacing: -0.026em; }
  .l-head > p:not(.l-pill),
  .l-run-copy > p:not(.l-pill) { font-size: 15px; }
  .l-quotes { grid-template-columns: 1fr; gap: 14px; }
  .l-quote { min-height: 0; padding: 24px 20px 20px; }
  .l-quote blockquote p { font-size: 23px; }
  .l-verdict { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 22px; font-size: 21px; }

  .l-how { padding: 14px; gap: 14px; }
  .l-how-step { padding: 14px; gap: 13px; }
  .l-num { width: 40px; height: 40px; }
  .l-how-step strong { font-size: 17px; }
  .l-how-art { min-height: 0; padding: 92px 14px 14px; }
  .l-how-detail strong { font-size: 44px; }

  .l-stats { grid-template-columns: 1fr; }
  .l-stats div { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; }
  .l-stats dd { font-size: 28px; }
  .l-run { gap: 32px; }
  .l-run-card { padding: 18px; }
  .l-run-head { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .l-run-head .stepin-rail { display: none; }
  .l-run-count { justify-self: start; }

  .l-roles { grid-template-columns: 1fr; }
  .l-role h3 { margin-top: 18px; }
  .l-features { grid-template-columns: 1fr; }
  .l-features li:last-child { grid-column: auto; }
  .l-sprites { padding: 20px; }
  .l-connectors { padding: 4px 18px; }
  .l-safe,
  .l-limits { padding: 24px 20px; gap: 24px; }
  .l-ledger { padding: 4px 18px; }
  .l-ledger li { grid-template-columns: 1fr; gap: 8px; }
  .l-limits-head h2 { font-size: 30px; }
  .l-footer { margin-top: 80px; }
}

.l-role-who { display: inline-flex; align-items: center; gap: 6px; }
.l-role-logo { display: block; width: 16px; height: 16px; border-radius: 4px; background: #fff; }
.l-role-logo-ollama { padding: 1px; }
