:root {
  --swamp: #0f2e27;      /* ink, and the dark band */
  --swamp-2: #1b443a;
  --croc: #1fb469;       /* the mascot's green */
  --croc-deep: #12814b;  /* green that holds up as text on light */
  --lagoon: #0b8c80;     /* the speech bubble's teal */
  --reed: #edf5ef;       /* page */
  --reed-2: #dcebe1;
  --sun: #ffc93c;        /* the one warm spark: status dot, unread */
  --paper: #ffffff;
  --muted: #4a6359;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--reed);
  color: var(--swamp);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--croc-deep); text-underline-offset: 3px; }
a:hover { color: var(--swamp); }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; border-radius: 6px; }

.sr, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip { position: absolute; left: 16px; top: -60px; background: var(--swamp); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; color: #fff; }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
h1 { font-weight: 800; font-size: clamp(2.6rem, 6.2vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }

/* Header */
.top {
  max-width: 1180px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--swamp); }
.wordmark { font: 800 1.45rem/1 var(--display); letter-spacing: -0.03em; }
.wordmark span { color: var(--croc-deep); }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { color: var(--swamp); text-decoration: none; font-weight: 500; }
.top-nav a:hover { color: var(--croc-deep); text-decoration: underline; }

.btn {
  appearance: none; border: 0; cursor: pointer;
  background: var(--swamp); color: #fff;
  font: 600 1rem/1 var(--body);
  padding: 16px 22px; border-radius: 14px;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--croc-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-small { padding: 11px 16px; font-size: .95rem; border-radius: 12px; }
.btn-outline { background: transparent; color: var(--swamp); box-shadow: inset 0 0 0 2px var(--swamp); }
.btn-outline:hover { background: var(--swamp); color: #fff; }
.btn-light { background: var(--croc); color: var(--swamp); }
.btn .short { display: none; }
.btn-light:hover { background: #fff; color: var(--swamp); }

/* Hero */
.hero {
  max-width: 1180px; margin: 0 auto; padding: 48px 24px 88px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center;
}
.hero-copy { max-width: 620px; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .95rem; color: var(--swamp-2);
  background: var(--paper); border: 1px solid var(--reed-2);
  padding: 7px 14px 7px 10px; border-radius: 999px; margin-bottom: 26px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 201, 60, .28); }
.hero h1 { margin-bottom: 22px; }
.lede { font-size: 1.2rem; color: var(--swamp-2); max-width: var(--measure); margin-bottom: 30px; }
.fine { font-size: .92rem; color: var(--muted); margin-top: 14px; max-width: 52ch; }

.join-row { display: flex; gap: 10px; }
.join input, .join textarea {
  font: 400 1rem/1.4 var(--body); color: var(--swamp);
  background: var(--paper); border: 2px solid var(--reed-2); border-radius: 14px;
  padding: 14px 16px; width: 100%;
}
.join input:focus, .join textarea:focus { outline: none; border-color: var(--lagoon); }
.join-hero input { flex: 1; min-width: 0; }
.join-msg { min-height: 1.5em; margin-top: 10px; font-weight: 500; }
.join-msg.ok { color: var(--croc-deep); }
.join-msg.err { color: #b3261e; }
.join.done .join-row, .join.done .field, .join.done .field-pair, .join.done button { display: none; }
.join.done .join-msg { font-size: 1.1rem; margin-top: 0; }

/* The example conversation: the one big moment on the page. */
.demo { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 430px; padding-bottom: 44px; }
.panel {
  background: var(--paper); border-radius: 28px 28px 28px 8px;
  box-shadow: 0 30px 60px -28px rgba(15, 46, 39, .45), 0 0 0 1px rgba(15, 46, 39, .06);
  overflow: hidden;
}
.panel-head { display: flex; gap: 12px; align-items: center; padding: 16px 18px; background: var(--lagoon); color: #fff; }
.panel-head img { border-radius: 8px; }
.panel-head strong { display: block; font-weight: 600; }
.online { font-size: .82rem; opacity: .85; }
.thread { list-style: none; margin: 0; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; min-height: 380px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: .95rem; line-height: 1.45; }
.them { align-self: flex-start; background: var(--reed); border-bottom-left-radius: 6px; }
.us { align-self: flex-end; background: var(--croc); color: var(--swamp); border-bottom-right-radius: 6px; }
.photo { padding: 6px 6px 10px; }
.photo-box {
  display: block; width: 190px; height: 112px; border-radius: 13px; margin-bottom: 8px;
  background: linear-gradient(180deg, #e9dcc6 0 62%, #b98a5a 62% 100%);
  position: relative; overflow: hidden;
}
.photo-box span { position: absolute; left: 38%; top: 18%; width: 46px; height: 58px; border: 5px solid #fff; border-radius: 4px; background: #9fc4b5; }
.photo { padding-left: 6px; }
.by-email .via {
  display: block; margin-top: 6px; font-size: .78rem; font-weight: 600; color: var(--lagoon);
}
.panel-type { margin: 8px 14px 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--reed-2); color: #8aa197; font-size: .92rem; }
.launcher { position: absolute; right: -14px; bottom: -6px; width: 88px; filter: drop-shadow(0 10px 18px rgba(15, 46, 39, .3)); }

/* Messages arrive one after another, once, on load. */
html.js .thread .msg { opacity: 0; transform: translateY(8px); }
html.js .thread .msg.in { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s ease; }
@media (prefers-reduced-motion: reduce) {
  html.js .thread .msg { opacity: 1; transform: none; }
}

/* Sections */
.how, .features, .faq { max-width: 1180px; margin: 0 auto; padding: 72px 24px; }
.how h2, .features h2, .faq h2 { max-width: 20ch; margin-bottom: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--swamp); padding-top: 22px; }
.steps li::before {
  content: counter(step); display: block;
  font: 800 3.4rem/1 var(--display); color: var(--croc); margin-bottom: 14px; letter-spacing: -0.04em;
}
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--swamp-2); }

.features { border-top: 1px solid var(--reed-2); }
.feature-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.feature-cols h3 { color: var(--croc-deep); margin-bottom: 18px; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { padding: 16px 0; border-bottom: 1px solid var(--reed-2); color: var(--swamp-2); max-width: var(--measure); }
.feature-list li:first-child { padding-top: 0; }
.feature-list strong { color: var(--swamp); font-weight: 600; }
.no-bots {
  margin-top: 48px; display: flex; align-items: center; gap: 16px;
  font: 600 1.25rem/1.35 var(--display); letter-spacing: -0.01em; max-width: 46ch;
}

.faq { border-top: 1px solid var(--reed-2); }
.faq details { border-bottom: 1px solid var(--reed-2); max-width: 760px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font: 600 1.15rem/1.35 var(--body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2.5px solid var(--swamp); border-bottom: 2.5px solid var(--swamp); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { padding: 0 0 22px; color: var(--swamp-2); max-width: var(--measure); }

/* Waiting list band */
.cta { background: var(--swamp); color: #fff; }
.cta-inner { max-width: 1180px; margin: 0 auto; padding: 84px 24px; display: grid; grid-template-columns: 180px minmax(0, 640px); gap: 40px; align-items: start; }
.cta-croc { width: 160px; }
.cta h2 { margin-bottom: 12px; }
.cta p { color: #c9ddd4; max-width: 52ch; }
.join-full { margin-top: 28px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: #9fbcb1; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta .join input, .cta .join textarea { background: var(--swamp-2); border-color: #2c5a4e; color: #fff; }
.cta .join input::placeholder { color: #8fb0a4; }
.cta .join input:focus, .cta .join textarea:focus { border-color: var(--croc); }
.cta .join-full .btn { justify-self: start; }
.cta .join-msg.ok { color: var(--croc); }
.cta .join-msg.err { color: #ffb4ab; }
.cta :focus-visible { outline-color: var(--croc); }

/* Footer */
.foot {
  max-width: 1180px; margin: 0 auto; padding: 36px 24px 48px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; color: var(--muted); font-size: .95rem;
}
.brand-small .wordmark { font-size: 1.1rem; }
.foot p:last-child { margin-left: auto; }

/* Narrower screens */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-bottom: 64px; }
  .demo { justify-self: start; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .feature-cols { grid-template-columns: 1fr; gap: 40px; }
  .cta-inner { grid-template-columns: 1fr; gap: 20px; }
  .cta-croc { width: 96px; }
}
@media (max-width: 720px) {
  .top { padding: 14px 16px; gap: 12px; }
  .top-nav { display: none; }
  .top .btn-small:not(.btn-outline) { margin-left: auto; }
  .hero, .how, .features, .faq { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 28px; }
  .join-row { flex-direction: column; }
  .join-row .btn { width: 100%; }
  .field-pair { grid-template-columns: 1fr; }
  .cta-inner { padding: 64px 16px; }
  .foot { padding-left: 16px; padding-right: 16px; }
  .foot p:last-child { margin-left: 0; }
  .launcher { right: 0; }
  .thread { min-height: 0; }
}
@media (max-width: 480px) {
  .btn .long { display: none; }
  .btn .short { display: inline; }
}
@media (max-width: 420px) {
  .top { gap: 8px; }
  .top .btn-small { padding: 9px 10px; font-size: .85rem; }
  .wordmark { font-size: 1.15rem; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 1.25rem; }
}

/* The robot trap stays out of sight and out of the layout. */
.join .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; }
