/* LeadGentle landing page. Colours and the sans typeface match the app (src/app/globals.css). */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/public-sans-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-2: #fafbf9;
  --land: #f1f4ef;
  --ink: #1b2420;
  --ink-2: #3b4741;
  --graphite: #5e6a64;
  --rule: #dce2dd;
  --route: #1f5fd1;
  --route-dark: #1a51b4;
  --rep: #a83c55;
  --web: #6a4fb3;
  --new: #2f7d3e;
  --warn: #9a6408;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --shadow-card: 0 1px 2px rgba(27, 36, 32, 0.05), 0 14px 32px -18px rgba(27, 36, 32, 0.2);
  --shadow-float: 0 2px 4px rgba(27, 36, 32, 0.06), 0 26px 48px -22px rgba(27, 36, 32, 0.36);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
svg {
  display: block;
}
:focus-visible {
  outline: 2px solid var(--route);
  outline-offset: 3px;
  border-radius: 4px;
}
.tnum {
  font-variant-numeric: tabular-nums;
}
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
}
.skip:focus {
  top: 12px;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Type */
h1,
h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.3rem);
  line-height: 1.02;
}
h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.08;
}
h1 em,
h2 em {
  font-style: italic;
  font-weight: 450;
}
h3 {
  font-size: 1.06rem;
  font-weight: 650;
  line-height: 1.3;
}
.underlined {
  white-space: nowrap;
  padding-bottom: 0.06em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 40 2 80 2 112 6 S 170 10 198 4' fill='none' stroke='%231f5fd1' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E")
    no-repeat 0 100% / 100% 0.2em;
}
.kicker {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--route);
}

/* Buttons and chips */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font: 600 15px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary {
  background: var(--route);
  border-color: var(--route);
  color: #fff;
}
.btn-primary:hover {
  background: var(--route-dark);
  border-color: var(--route-dark);
}
.btn-quiet {
  color: var(--ink);
}
.btn-quiet:hover {
  background: rgba(27, 36, 32, 0.06);
}
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover {
  background: var(--land);
}
.btn-lg {
  padding: 14px 22px;
  font-size: 16px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 2px 6px;
  background: var(--land);
  color: var(--graphite);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}
.chip-rep,
.chip-web,
.chip-new,
.chip-warn {
  border-color: currentColor;
  background: color-mix(in srgb, currentColor 8%, #fff);
}
.chip-rep {
  color: var(--rep);
}
.chip-web {
  color: var(--web);
}
.chip-new {
  color: var(--new);
}
.chip-warn {
  color: var(--warn);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg {
  width: 24px;
  height: 24px;
}
.nav {
  display: none;
  margin-left: auto;
  gap: 28px;
  font-size: 15px;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
}
.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.header-row .btn {
  margin-left: auto;
}
.header-row .login {
  margin-left: auto;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.header-row .login:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.header-row .login + .btn {
  margin-left: 0;
}
@media (min-width: 920px) {
  .nav {
    display: flex;
  }
  .header-row .nav + .login {
    margin-left: 8px;
  }
}
/* Narrow phones: the header keeps the brand and the button; Log in stays in the footer. */
@media (max-width: 520px) {
  .header-row .login {
    display: none;
  }
  .header-row .login + .btn {
    margin-left: auto;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--land);
  border-bottom: 1px solid var(--rule);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(27, 36, 32, 0.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(27, 36, 32, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(110% 90% at 85% 0%, #000 0%, transparent 62%);
  mask-image: radial-gradient(110% 90% at 85% 0%, #000 0%, transparent 62%);
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 48px;
  padding-block: clamp(44px, 7vw, 92px) clamp(52px, 8vw, 100px);
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 12px 5px 10px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
}
.hero-tag i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--route);
}
.lede {
  max-width: 33em;
  margin-top: 22px;
  color: var(--ink-2);
  font-size: clamp(1.06rem, 1.5vw, 1.19rem);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
@media (max-width: 480px) {
  .cta-row .btn-lg {
    padding: 13px 16px;
    font-size: 15.5px;
  }
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  color: var(--ink-2);
  font-size: 14.5px;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-points .icon {
  width: 16px;
  height: 16px;
  color: var(--new);
  stroke-width: 2.4;
}
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 660px;
  margin-inline: auto;
}
.map {
  position: relative;
  aspect-ratio: 640 / 520;
  overflow: hidden;
  border: 1px solid #cdd6ce;
  border-radius: 16px;
  background: #e9eee6;
  box-shadow: var(--shadow-card);
}
.map svg {
  width: 100%;
  height: 100%;
}
.map-search {
  position: absolute;
  left: 14px;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 14px 8px 11px;
  background: var(--paper);
  box-shadow: 0 6px 16px -8px rgba(27, 36, 32, 0.35);
  font-size: 13.5px;
  font-weight: 500;
}
.map-search .icon {
  width: 16px;
  height: 16px;
  color: var(--graphite);
}
.pin-label {
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 5px 7px;
  background: var(--paper);
  box-shadow: 0 4px 12px -5px rgba(27, 36, 32, 0.4);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  animation: fade-in 0.4s ease both;
  animation-delay: calc(var(--d, 0s) + 0.25s);
}
.pin-label.right {
  transform: translate(16px, -50%);
}
.pin-label.left {
  transform: translate(calc(-100% - 16px), -50%);
}
.pin-label.rep {
  color: var(--rep);
}
.pin-label.web {
  color: var(--web);
}
.pin-label.new {
  color: var(--new);
}
.pin {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: pin-drop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
  animation-delay: var(--d, 0s);
}
.route-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: route-draw 1.8s 0.5s ease-in-out both;
}
.float {
  margin-top: 12px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-float);
  font-size: 13px;
  line-height: 1.45;
  animation: rise 0.6s ease both;
}
.float-email {
  animation-delay: 1.2s;
}
.float-agent {
  animation-delay: 0.2s;
}
.float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--graphite);
  font-size: 12px;
}
.float-subject {
  margin-top: 10px;
  font-weight: 650;
}
.float-body {
  margin-top: 4px;
  color: var(--ink-2);
}
.float-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  color: var(--graphite);
  font-size: 12px;
}
.float-foot .icon {
  width: 14px;
  height: 14px;
}
.agent-title {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live {
  color: var(--new);
  border-color: currentColor;
  background: color-mix(in srgb, currentColor 8%, #fff);
}
.live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}
.strip {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}
.strip li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  padding: 5px 7px;
  background: var(--land);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.strip .icon {
  width: 12px;
  height: 12px;
  color: var(--new);
  stroke-width: 3;
}
.progress {
  margin-top: 12px;
}
.progress-row {
  display: flex;
  justify-content: space-between;
  color: var(--graphite);
  font-size: 12px;
}
.progress-row b {
  color: var(--ink);
  font-weight: 650;
}
.bar {
  height: 6px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--land);
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--route);
  transform-origin: 0 50%;
  animation: grow 1.4s 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.agent-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.agent-stats dt {
  color: var(--graphite);
  font-size: 11.5px;
}
.agent-stats dd {
  font-size: 15px;
  font-weight: 650;
}
.example-note {
  margin-top: 14px;
  color: var(--graphite);
  font-size: 13px;
}
@media (min-width: 700px) {
  .hero-visual {
    padding: 0 30px 48px;
  }
  .float {
    position: absolute;
    margin: 0;
  }
  .float-email {
    right: 0;
    top: 6%;
    width: 262px;
  }
  .float-agent {
    left: 0;
    bottom: 0;
    width: 318px;
  }
  .hero-visual .example-note {
    position: absolute;
    right: 30px;
    bottom: 14px;
    margin: 0;
  }
}
@media (min-width: 1060px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    gap: 40px;
    align-items: center;
  }
  .hero-visual {
    max-width: 700px;
    margin-inline: 0 -10px;
    justify-self: end;
  }
}

/* Sections */
.section {
  padding-block: clamp(64px, 9vw, 116px);
}
.section-land {
  background: var(--land);
  border-block: 1px solid var(--rule);
}
.section-head {
  max-width: 740px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head h2 {
  margin-top: 12px;
}
.section-head p:not(.kicker) {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.08rem;
}

/* How it works */
.steps {
  display: grid;
  gap: 32px 24px;
  counter-reset: step;
}
.step {
  counter-increment: step;
}
.step h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 20px;
  font-size: 1.16rem;
}
.step h3::before {
  content: "0" counter(step);
  color: var(--route);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.step > p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 16px;
}
.mock {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 252px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px;
  background: var(--land);
  font-size: 13px;
  line-height: 1.45;
}
.bubble {
  max-width: 94%;
  border-radius: 12px;
  padding: 9px 12px;
}
.bubble.user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--ink);
  color: #fff;
}
.bubble.bot {
  align-self: flex-start;
  border: 1px solid var(--rule);
  border-bottom-left-radius: 4px;
  background: var(--paper);
}
.estimate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  color: var(--graphite);
  font-size: 12.5px;
}
.btn-mini {
  flex: none;
  border-radius: 6px;
  padding: 5px 10px;
  background: var(--route);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}
.setup-list {
  display: grid;
  gap: 6px;
}
.setup-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--paper);
  font-weight: 600;
}
.setup-list li > span:last-child {
  margin-left: auto;
  color: var(--graphite);
  font-weight: 400;
  font-size: 12.5px;
}
.setup-list .tick {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--new);
  color: #fff;
}
.setup-list .tick .icon {
  width: 10px;
  height: 10px;
  stroke-width: 3.4;
}
.setup-list .current {
  border-color: var(--route);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--route) 14%, transparent);
}
.setup-list .current .tick {
  border: 1.5px solid var(--route);
  background: transparent;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.seg b,
.seg i {
  padding: 3px 8px;
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
}
.seg b {
  background: var(--route);
  color: #fff;
}
.seg i {
  color: var(--graphite);
}
.activity {
  display: grid;
  gap: 0;
}
.activity li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 7px 0 7px 62px;
}
.activity time {
  position: absolute;
  left: 0;
  color: var(--graphite);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.activity li::before {
  content: "";
  position: absolute;
  left: 44px;
  top: 50%;
  z-index: 1;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--route);
  box-shadow: 0 0 0 3px var(--land);
}
.activity li::after {
  content: "";
  position: absolute;
  left: 47px;
  top: 0;
  bottom: 0;
  z-index: 0;
  width: 1px;
  background: #c9d2ca;
}
.activity li:first-child::after {
  top: 50%;
}
.activity li:last-child::after {
  bottom: 50%;
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Findings */
.findings {
  display: grid;
  gap: 20px;
}
.finding-tabs {
  display: flex;
  gap: 8px;
  margin-inline: calc(-1 * clamp(20px, 4vw, 40px));
  padding: 2px clamp(20px, 4vw, 40px) 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.finding-tabs::-webkit-scrollbar {
  display: none;
}
.finding-tab {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 14px 8px 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.finding-tab .dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--fam);
}
.finding-tab strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.finding-tab .desc {
  display: none;
  margin-top: 1px;
  color: var(--graphite);
  font-size: 13.5px;
  line-height: 1.4;
}
.finding-tab[aria-selected="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
[data-family="rep"] {
  --fam: var(--rep);
}
[data-family="web"] {
  --fam: var(--web);
}
[data-family="new"] {
  --fam: var(--new);
}
.finding-card {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.finding-panel:not([hidden]) {
  animation: fade-in 0.25s ease both;
}
.finding-panel + .finding-panel {
  border-top: 1px solid var(--rule);
}
.evidence {
  display: grid;
  gap: 10px;
  padding: 20px clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.evidence-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--graphite);
  font-size: 13px;
}
.finding-text {
  border-left: 3px solid var(--fam);
  padding-left: 12px;
  font-size: 16px;
  font-weight: 500;
}
.evidence-note {
  padding-left: 15px;
  color: var(--graphite);
  font-size: 13.5px;
}
.email {
  padding: 22px clamp(18px, 3vw, 28px) 24px;
}
.email-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.email-meta dt {
  color: var(--graphite);
}
.email-meta dd {
  font-weight: 550;
}
.email-body p {
  max-width: 60ch;
  margin-bottom: 0.85em;
  font-size: 16px;
}
.email-body mark {
  margin-inline: -3px;
  border-radius: 4px;
  padding: 1px 3px;
  background: color-mix(in srgb, var(--fam) 13%, transparent);
  color: inherit;
}
.email-foot {
  margin-top: 18px;
  color: var(--graphite);
  font-size: 13.5px;
}
.email-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 14px clamp(18px, 3vw, 28px);
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 13.5px;
}
.email-rules li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.email-rules .icon {
  width: 15px;
  height: 15px;
  color: var(--new);
  stroke-width: 2.4;
}
@media (min-width: 980px) {
  .findings {
    grid-template-columns: 348px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }
  .finding-tabs {
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .finding-tab {
    border-color: transparent;
    border-radius: 12px;
    padding: 11px 14px;
    background: transparent;
  }
  .finding-tab:hover {
    background: rgba(27, 36, 32, 0.045);
  }
  .finding-tab .desc {
    display: block;
  }
  .finding-tab[aria-selected="true"] {
    border-color: var(--rule);
    background: var(--paper);
    box-shadow: var(--shadow-card);
  }
}

/* Replies */
.split {
  display: grid;
  gap: 40px;
}
.prose p:not(.kicker) {
  color: var(--ink-2);
}
.prose p + p,
.prose p + h3,
.prose ul + h3,
.prose ul + p {
  margin-top: 18px;
}
.prose h3 {
  margin-bottom: 8px;
}
.bullets {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--route);
}
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.status-row .chip {
  padding: 3px 8px;
  font-size: 12.5px;
}
.thread {
  display: grid;
  gap: 12px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: clamp(16px, 2.6vw, 24px);
  background: var(--land);
  font-size: 14.5px;
  line-height: 1.5;
}
.msg {
  max-width: 88%;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 11px 14px;
  background: var(--paper);
}
.msg.ours {
  justify-self: end;
  border-color: color-mix(in srgb, var(--route) 30%, var(--rule));
  background: #f4f8fe;
}
.msg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 5px;
  color: var(--graphite);
  font-size: 12.5px;
}
.msg-head b {
  color: var(--ink);
  font-weight: 650;
}
.msg .link {
  color: var(--route);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.handoff {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent);
  border-radius: 10px;
  padding: 9px 12px;
  background: color-mix(in srgb, var(--warn) 8%, #fff);
  color: #6f4806;
  font-size: 13.5px;
  font-weight: 550;
}
.handoff .icon {
  width: 17px;
  height: 17px;
}
.audit-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  font-size: 13.5px;
}
.audit-card .url {
  color: var(--graphite);
  font-size: 12px;
}
.audit-card h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.audit-card .by {
  color: var(--graphite);
  font-size: 12.5px;
}
.audit-rows {
  display: grid;
  gap: 6px;
}
.audit-rows li {
  border-left: 3px solid var(--fam, var(--rule));
  padding-left: 10px;
}
.audit-rows b {
  font-weight: 650;
}
@media (min-width: 980px) {
  .split {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 64px;
    align-items: start;
  }
}

/* Safeguards */
.guards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
  gap: 16px;
}
.guard {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px 20px;
  background: var(--paper);
}
.guard .icon {
  width: 22px;
  height: 22px;
  color: var(--route);
}
.guard h3 {
  margin-top: 14px;
}
.guard p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}

/* Manual agents */
.manual {
  display: grid;
  gap: 24px;
  margin-top: 24px;
  border: 1px dashed #c3cdc5;
  border-radius: 14px;
  padding: clamp(20px, 3vw, 28px);
}
.manual h3 {
  font-size: 1.02rem;
}
.manual p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 15px;
}
.manual code {
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 1px 5px;
  background: var(--paper);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  white-space: nowrap;
}
@media (min-width: 860px) {
  .manual {
    grid-template-columns: 0.8fr 1fr 1fr;
    gap: 36px;
  }
}

/* Questions */
.faq {
  display: grid;
  gap: 32px;
}
.faq-list {
  border-top: 1px solid var(--rule);
}
.faq-list details {
  border-bottom: 1px solid var(--rule);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  font-size: 1.06rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.6px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.6px 12px no-repeat;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list details p {
  max-width: 64ch;
  padding: 0 2px 20px;
  color: var(--ink-2);
}
@media (min-width: 980px) {
  .faq {
    grid-template-columns: 348px minmax(0, 1fr);
    gap: 36px;
  }
}

/* Early access */
.access {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.access::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(90% 120% at 100% 100%, #000 0%, transparent 60%);
  mask-image: radial-gradient(90% 120% at 100% 100%, #000 0%, transparent 60%);
}
.access-inner {
  position: relative;
  max-width: 720px;
}
.access-art {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  width: 380px;
  translate: 0 -50%;
  pointer-events: none;
}
@media (min-width: 1100px) {
  .access-art {
    display: block;
  }
}
.access .kicker {
  color: #9dbcf5;
}
.access h2 {
  margin-top: 12px;
}
.access p:not(.kicker) {
  margin-top: 16px;
  color: #c8d1cb;
  font-size: 1.1rem;
}
.access .cta-row {
  align-items: center;
  gap: 12px 20px;
}
.access .alt {
  margin: 0;
  font-size: 15px;
}
.access .alt a {
  color: #fff;
  text-underline-offset: 4px;
}
.access :focus-visible {
  outline-color: #fff;
}

/* Footer */
.site-footer {
  padding-block: 36px 44px;
  color: var(--graphite);
  font-size: 14.5px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
.footer-row .brand {
  color: var(--ink);
  font-size: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-links a {
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-row small {
  font-size: inherit;
}
@media (min-width: 760px) {
  .footer-row small {
    margin-left: auto;
  }
}

/* Plain pages (bot, 404) */
.plain {
  max-width: 720px;
  padding-block: clamp(48px, 8vw, 96px);
}
.plain h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.plain p:not(.kicker) {
  margin-top: 16px;
  color: var(--ink-2);
}
.plain a:not(.btn) {
  color: var(--route);
  text-underline-offset: 3px;
}
.plain code {
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 1px 5px;
  background: var(--land);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
}
.plain pre {
  margin: 16px 0 0;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--land);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
}

/* Motion */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0s);
}
.js-reveal .reveal.in {
  opacity: 1;
  transform: none;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 14px;
  }
}
@keyframes pin-drop {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.7);
  }
}
@keyframes route-draw {
  from {
    stroke-dashoffset: 1;
  }
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
