@font-face {
  font-family: Poppins;
  src: url('/assets/poppins-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Poppins;
  src: url('/assets/poppins-600-latin.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Poppins;
  src: url('/assets/poppins-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #172522;
  --muted: #46564e;
  --forest: #16483a;
  --forest-hover: #103629;
  --mint: #ddecdf;
  --paper: #f5f7f1;
  --white: #fff;
  --border: #cbd9ce;
  font-family: Poppins, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.65; }
a { color: inherit; text-underline-offset: .24em; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.16; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); letter-spacing: -.05em; }
h3 { font-size: 1.2rem; letter-spacing: -.025em; }
section[id] { scroll-margin-block-start: 2rem; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid #347758;
  outline-offset: 4px;
}

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 4;
  left: 1rem;
  top: 1rem;
  background: var(--white);
  padding: .6rem 1rem;
}

.frame {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}

.site-header { border-bottom: 1px solid var(--border); }
.header-inner, .footer-inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  flex-shrink: 0;
}

.brand img { width: 5.3rem; height: auto; }
.brand span { border-left: 1px solid var(--border); padding-left: .75rem; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
nav a { font-size: .9rem; text-decoration: none; }
nav a:hover, .footer-inner > a:last-child:hover { text-decoration: underline; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.85rem;
  padding: .65rem 1.15rem;
  border: 1px solid var(--forest);
  border-radius: .65rem;
  background: var(--forest);
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.button:hover { background: var(--forest-hover); }
.button-outline { background: transparent; color: var(--forest); }
.button-outline:hover { background: var(--mint); }
.text-link { color: var(--forest); font-size: .9rem; font-weight: 600; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3.2rem, 8vw, 7rem);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.25vw, 5rem);
  letter-spacing: -.065em;
  line-height: 1.06;
}

.hero-copy > p {
  max-width: 31rem;
  margin-block: 1.3rem 1.7rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; }
.chat {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c7d7ca;
  border-radius: 1.25rem;
  background: #e7efe4;
  box-shadow: 0 1.4rem 3.5rem #173e2720;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  font-size: .9rem;
  line-height: 1.4;
}

.chat-avatar {
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
}

.chat-caption { display: block; color: var(--muted); font-size: .78rem; }
.replay {
  margin-left: auto;
  padding: .35rem .5rem;
  border: 1px solid var(--border);
  border-radius: .4rem;
  background: var(--white);
  color: var(--forest);
  font-size: .8rem;
  cursor: pointer;
}

.replay:hover { background: var(--paper); }
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin: 0;
  padding: clamp(1rem, 2.3vw, 1.7rem);
  list-style: none;
  background-image: radial-gradient(circle at 1px 1px, #1d59341a 1px, transparent 0);
  background-size: 16px 16px;
}

.message {
  width: fit-content;
  max-width: 88%;
  padding: .6rem .8rem;
  border: 1px solid #c9d9cc;
  border-radius: .8rem;
  background: var(--white);
  font-size: .9rem;
  line-height: 1.55;
}

.message-out { align-self: flex-end; background: #d1e8d2; border-bottom-right-radius: .25rem; }
.message-in { align-self: flex-start; border-bottom-left-radius: .25rem; }
.message-done { color: var(--forest); font-weight: 600; }
.is-playing .message { animation: receive .32s ease-out both; }
.is-playing .message:nth-child(2) { animation-delay: .40s; }
.is-playing .message:nth-child(3) { animation-delay: .82s; }
.is-playing .message:nth-child(4) { animation-delay: 1.12s; }
@keyframes receive {
  from { opacity: 0; transform: translateY(.35rem); }
  to { opacity: 1; transform: translateY(0); }
}

.section { padding-block: clamp(3rem, 6vw, 5rem); }
.setup { background: var(--mint); }
.setup-grid, .examples-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3.3vw, 2rem);
  margin-top: 1.7rem;
}

.setup-grid article { border-top: 1px solid #aac2b0; padding-top: 1.1rem; }
.setup-grid p, .example p { margin-top: .65rem; color: var(--muted); }
.example {
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2.3vw, 1.65rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: .85rem;
}

.example .prompt {
  margin-top: 1rem;
  padding: .75rem;
  border-radius: .65rem;
  background: var(--paper);
  color: var(--forest);
  font-weight: 600;
}

.pilot { margin-block: 0 clamp(3rem, 6vw, 5rem); }
.pilot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.4rem;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  border-radius: 1.1rem;
  background: var(--forest);
  color: var(--white);
}

.pilot-inner p { max-width: 35rem; margin-top: .6rem; color: #e6f4e9; }
.button-light { flex-shrink: 0; background: var(--white); color: var(--forest); border-color: var(--white); }
.button-light:hover { background: var(--mint); }
.pilot-inner :focus-visible { outline-color: var(--white); }
.site-footer { border-top: 1px solid var(--border); }
.footer-inner > a:last-child { color: var(--muted); font-size: .86rem; text-decoration: none; }

@media (max-width: 48rem) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .chat { width: min(100%, 34rem); }
  .setup-grid, .examples-grid { grid-template-columns: minmax(0, 1fr); }
  nav { display: none; }
}

@media (max-width: 33rem) {
  .frame { width: calc(100% - 2rem); }
  .header-inner, .footer-inner { min-height: 4.1rem; }
  .header-inner .button { padding-inline: .65rem; }
  .brand { gap: .45rem; }
  .brand img { width: 4.4rem; }
  .brand span { padding-left: .45rem; }
  .pilot-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .is-playing .message { animation: none; }
}
