:root {
  --black: #000000;
  --white: #ffffff;
  --cream: #faf9f7;
  --cream-strong: #f4efe5;
  --oat: #dad4c8;
  --oat-light: #eee9df;
  --charcoal: #333333;
  --muted: #55534e;
  --matcha-300: #84e7a5;
  --matcha-800: #02492a;
  --slushie-500: #3bd3fd;
  --lemon-500: #fbbd41;
  --ube-300: #c1b0ff;
  --pomegranate-400: #fc7981;
  --blueberry-800: #01418d;
  --dragonfruit: #d63384;
  --danger: #a3182b;
  --shadow: rgba(0, 0, 0, 0.1) 0 1px 1px, rgba(0, 0, 0, 0.04) 0 -1px 1px inset,
    rgba(0, 0, 0, 0.05) 0 -0.5px 1px;
  --hard-shadow: #000000 -7px 7px 0;
  --header-height: 72px;
  --page-gutter: max(20px, calc((100vw - 1180px) / 2));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(218, 212, 200, 0.24) 1px, transparent 1px),
    linear-gradient(180deg, rgba(218, 212, 200, 0.2) 1px, transparent 1px),
    var(--cream);
  background-size: 42px 42px;
  color: var(--black);
  font-family: Roobert, "Avenir Next", "Trebuchet MS", sans-serif;
  font-feature-settings: "ss03", "ss10", "ss11", "ss12";
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: var(--header-height);
  padding: 14px 28px;
  border-bottom: 1px solid rgba(218, 212, 200, 0.72);
  background: rgba(250, 249, 247, 0.86);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.hero-kpis,
.demo-controls,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 1px solid var(--black);
  border-radius: 7px;
  background:
    linear-gradient(135deg, var(--matcha-300) 0 45%, transparent 45%),
    linear-gradient(315deg, var(--lemon-500) 0 45%, var(--slushie-500) 45%);
  box-shadow: #000 3px 3px 0;
}

.nav-links {
  gap: 26px;
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 600;
}

.nav-links a,
.clay-button {
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.nav-cta {
  justify-self: end;
}

.clay-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  line-height: 1;
  box-shadow: var(--shadow);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.clay-button:hover {
  background: var(--dragonfruit);
  color: var(--white);
  transform: translateY(-3px) rotate(-4deg);
  box-shadow: var(--hard-shadow);
}

.clay-button:active,
.demo-tab:active {
  transform: scale(0.98);
}

.clay-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
  box-shadow: var(--shadow);
}

.clay-button.compact {
  min-height: 44px;
  padding: 10px 16px;
}

.secondary {
  background: rgba(255, 255, 255, 0.88);
}

.clay-button:focus-visible,
.demo-tab:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgb(20, 110, 245);
  outline-offset: 3px;
}

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(218, 212, 200, 0.24) 1px, transparent 1px),
    linear-gradient(180deg, rgba(218, 212, 200, 0.2) 1px, transparent 1px),
    var(--cream);
  background-position: center;
  background-size: 42px 42px;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 24%;
  content: "";
  background: linear-gradient(180deg, rgba(250, 249, 247, 0), var(--cream) 90%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: 44px;
  align-items: center;
  min-height: 92svh;
  padding: 92px var(--page-gutter) 34px;
}

.hero-content {
  color: var(--black);
}

.eyebrow,
.section-label,
.micro-label {
  margin: 0;
  font-family: "Space Mono", "IBM Plex Mono", Monaco, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--blueberry-800);
}

.hero h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

.hero h1 {
  max-width: 690px;
  font-size: 60px;
  font-weight: 800;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-copy {
  max-width: 600px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.primary {
  background: var(--lemon-500);
}

.hero-kpis {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-kpis div {
  min-width: 128px;
  padding: 12px 14px;
  border: 1px dashed var(--oat);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.hero-kpis dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hero-kpis dd {
  margin-top: 4px;
  color: var(--black);
  font-size: 18px;
  font-weight: 800;
}

.product-preview {
  align-self: center;
  perspective: 1400px;
}

.app-window {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.96);
  border-radius: 26px;
  background: var(--cream);
  box-shadow: #000 12px 12px 0;
  transform: rotate(-1deg);
  animation: productFloat 7s ease-in-out infinite;
}

.app-topbar,
.app-grid,
.builder-head,
.agent-flow,
.ops-grid,
.form-preview {
  display: grid;
}

.app-topbar {
  grid-template-columns: 12px 12px 12px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid var(--oat);
  background: var(--white);
}

.window-dot {
  width: 12px;
  height: 12px;
  border: 1px solid var(--black);
  border-radius: 999px;
}

.window-dot.matcha {
  background: var(--matcha-300);
}

.window-dot.lemon {
  background: var(--lemon-500);
}

.window-dot.pomegranate {
  background: var(--pomegranate-400);
}

.live-pill,
.score-badge {
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--matcha-300);
  color: var(--black);
  font-size: 12px;
  font-weight: 800;
}

.live-pill {
  padding: 7px 10px;
}

.app-grid {
  grid-template-columns: 128px 1fr 190px;
  gap: 1px;
  background: var(--oat);
}

.app-sidebar,
.builder-panel,
.metric-panel {
  background: var(--cream);
}

.app-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 12px;
}

.app-sidebar span {
  min-height: 42px;
  padding: 12px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.app-sidebar .active {
  border: 1px solid var(--black);
  background: var(--lemon-500);
  color: var(--black);
  box-shadow: #000 3px 3px 0;
}

.builder-panel {
  padding: 22px;
}

.builder-head {
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.builder-head h2 {
  margin-top: 5px;
  font-size: 28px;
  line-height: 1;
}

.micro-label {
  color: var(--blueberry-800);
}

.score-badge {
  padding: 10px 12px;
  background: var(--slushie-500);
}

.agent-flow {
  grid-template-columns: 1fr 28px 1fr 28px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 26px;
}

.agent-flow span {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 1px solid var(--black);
  border-radius: 14px;
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
  box-shadow: #000 3px 3px 0;
}

.agent-flow i {
  height: 2px;
  background: var(--black);
}

.chat-surface {
  margin-top: 28px;
  padding: 16px;
  border: 1px dashed var(--oat);
  border-radius: 18px;
  background: var(--white);
}

.chat-surface p {
  font-size: 15px;
  line-height: 1.45;
}

.question {
  color: var(--muted);
}

.answer {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 4px solid var(--matcha-300);
  font-weight: 700;
}

.metric-panel {
  padding: 22px 16px;
}

.metric-value {
  margin-top: 12px;
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
}

.metric-panel p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.sparkline {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 112px;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid var(--black);
  border-radius: 16px;
  background: var(--matcha-800);
}

.sparkline span {
  flex: 1;
  min-height: 18px;
  border-radius: 999px 999px 4px 4px;
  background: var(--matcha-300);
}

.product-section,
.workflow-section,
.validation-section,
.faq-section,
.capture-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0;
}

.product-section {
  padding-top: 44px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: end;
}

.section-label {
  margin-bottom: 18px;
  color: var(--blueberry-800);
}

.section-label.light {
  color: var(--matcha-300);
}

h2 {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.04;
  text-wrap: balance;
}

.section-heading p:last-child,
.workflow-copy p,
.validation-header p,
.capture-copy p,
.byok-panel p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.demo-lab {
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid var(--black);
  border-radius: 28px;
  background: var(--white);
  box-shadow: #000 8px 8px 0;
}

.demo-controls {
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--oat);
  border-radius: 27px 27px 0 0;
  background: var(--cream-strong);
}

.demo-tab {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, color 180ms ease;
}

.demo-tab:hover,
.demo-tab.is-active {
  border-color: var(--black);
  background: var(--lemon-500);
  color: var(--black);
}

.demo-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  padding: 30px;
}

.demo-panel h3 {
  max-width: 520px;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1.08;
}

.demo-panel p {
  max-width: 560px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.demo-steps {
  display: grid;
  gap: 12px;
}

.demo-steps div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--oat);
  border-radius: 16px;
  background: var(--cream);
}

.demo-steps span,
.workflow-list span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--black);
  border-radius: 13px;
  background: var(--ube-300);
  font-family: "Space Mono", "IBM Plex Mono", Monaco, monospace;
  font-size: 12px;
  font-weight: 900;
  box-shadow: #000 3px 3px 0;
}

.demo-steps strong {
  font-size: 18px;
  line-height: 1.25;
}

.conversation-section {
  width: min(1180px, calc(100% - 40px));
  height: 250svh;
  margin: 0 auto;
  padding: 10px 0 20px;
}

.conversation-shell {
  position: sticky;
  top: var(--header-height);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 72px;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: 26px 0;
}

.conversation-copy {
  padding-top: 0;
}

.conversation-copy p:not(.section-label) {
  max-width: 560px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.conversation-cues {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.conversation-cues span {
  padding: 10px 12px;
  border: 1px dashed var(--oat);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.conversation-section[data-chat-step="0"] [data-cue="0"],
.conversation-section[data-chat-step="1"] [data-cue="0"],
.conversation-section[data-chat-step="2"] [data-cue="2"],
.conversation-section[data-chat-step="3"] [data-cue="2"],
.conversation-section[data-chat-step="4"] [data-cue="2"],
.conversation-section[data-chat-step="5"] [data-cue="5"] {
  border-color: var(--black);
  background: var(--lemon-500);
  color: var(--black);
  transform: translateY(-2px);
}

.phone-stage {
  display: grid;
  justify-items: center;
  padding-top: 0;
}

.phone-frame {
  position: relative;
  width: min(100%, 398px);
  height: min(642px, calc(100svh - var(--header-height) - 64px));
  min-height: 540px;
  padding: 14px;
  border: 1px solid var(--black);
  border-radius: 46px;
  background: var(--black);
  box-shadow: #000 10px 10px 0;
}

.phone-speaker {
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 2;
  width: 72px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-50%);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--black);
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(218, 212, 200, 0.24) 1px, transparent 1px),
    linear-gradient(180deg, rgba(218, 212, 200, 0.2) 1px, transparent 1px),
    var(--cream);
  background-size: 30px 30px;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 18px 14px;
  border-bottom: 1px solid var(--oat);
  background: rgba(255, 255, 255, 0.78);
}

.chat-header > div {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.agent-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--black);
  border-radius: 14px;
  background: var(--slushie-500);
  font-family: "Space Mono", "IBM Plex Mono", Monaco, monospace;
  font-size: 12px;
  font-weight: 900;
  box-shadow: #000 3px 3px 0;
}

.chat-header strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-header span:not(.agent-avatar, .chat-status) {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.chat-status {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--matcha-300);
  font-size: 12px;
  font-weight: 900;
}

.chat-feed {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  overflow: hidden;
}

.chat-bubble {
  max-width: 86%;
  max-height: 0;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid var(--black);
  border-radius: 20px;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease, max-height 260ms ease, padding 220ms ease;
}

.chat-bubble p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.chat-bubble.user {
  align-self: end;
  border-bottom-right-radius: 8px;
  background: var(--lemon-500);
}

.chat-bubble.agent {
  align-self: start;
  border-bottom-left-radius: 8px;
  background: var(--white);
}

.typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.typing-bubble i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blueberry-800);
  animation: typingPulse 900ms ease-in-out infinite;
}

.typing-bubble i:nth-of-type(2) {
  animation-delay: 120ms;
}

.typing-bubble i:nth-of-type(3) {
  animation-delay: 240ms;
}

.conversation-section[data-chat-step="0"] .chat-step-0,
.conversation-section[data-chat-step="1"] .chat-step-0,
.conversation-section[data-chat-step="1"] .chat-step-1,
.conversation-section[data-chat-step="2"] .chat-step-0,
.conversation-section[data-chat-step="2"] .chat-step-2,
.conversation-section[data-chat-step="3"] .chat-step-0,
.conversation-section[data-chat-step="3"] .chat-step-2,
.conversation-section[data-chat-step="3"] .chat-step-3,
.conversation-section[data-chat-step="4"] .chat-step-0,
.conversation-section[data-chat-step="4"] .chat-step-2,
.conversation-section[data-chat-step="4"] .chat-step-3,
.conversation-section[data-chat-step="4"] .chat-step-4,
.conversation-section[data-chat-step="5"] .chat-step-0,
.conversation-section[data-chat-step="5"] .chat-step-2,
.conversation-section[data-chat-step="5"] .chat-step-3,
.conversation-section[data-chat-step="5"] .chat-step-5 {
  max-height: 180px;
  padding: 12px 14px;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chat-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 14px 14px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  box-shadow: #000 3px 3px 0;
}

.chat-composer span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-composer strong {
  display: grid;
  place-items: center;
  min-width: 68px;
  min-height: 36px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--matcha-300);
  font-size: 13px;
}

@keyframes typingPulse {
  0%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.conversation-section + .workflow-section {
  padding-top: 42px;
}

.workflow-section,
.capture-section,
.faq-section,
.validation-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}

.workflow-copy,
.validation-header {
  position: sticky;
  top: 112px;
}

.workflow-list {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--oat);
}

.workflow-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--oat);
}

.workflow-list h3 {
  margin-bottom: 8px;
  font-size: 25px;
  line-height: 1.16;
}

.workflow-list p,
.faq-list p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.byok-section {
  margin: 28px 0;
  padding: 92px var(--page-gutter);
  background:
    radial-gradient(circle at 84% 22%, rgba(132, 231, 165, 0.18), transparent 28%),
    var(--matcha-800);
  color: var(--white);
}

.byok-panel {
  display: grid;
  grid-template-columns: 1fr 0.84fr;
  gap: 78px;
  align-items: end;
}

.byok-panel h2 {
  color: var(--white);
}

.byok-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.ops-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 46px;
}

.ops-grid div {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--black);
  border-radius: 22px;
  background: var(--white);
  color: var(--black);
  box-shadow: #000 5px 5px 0;
}

.ops-grid strong {
  display: block;
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.14;
}

.metric-table {
  border-top: 1px solid var(--black);
}

.metric-table div {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--oat);
}

.metric-table strong {
  font-size: 20px;
}

.metric-table span {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.faq-list {
  border-top: 1px solid var(--oat);
}

details {
  border-bottom: 1px solid var(--oat);
}

summary {
  min-height: 70px;
  padding: 22px 36px 22px 0;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

details p {
  padding: 0 0 26px;
}

.capture-section {
  align-items: stretch;
  padding-bottom: 124px;
}

.form-preview {
  gap: 10px;
  margin-top: 30px;
}

.form-preview span {
  min-height: 48px;
  padding: 14px 16px;
  border: 1px dashed var(--oat);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--charcoal);
  font-weight: 800;
}

.lead-form {
  padding: 24px;
  border: 1px solid var(--black);
  border-radius: 28px;
  background: var(--white);
  box-shadow: #000 8px 8px 0;
}

.form-row {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

label,
legend {
  font-size: 14px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #717989;
  border-radius: 10px;
  background: var(--cream);
  color: var(--black);
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fff7f7;
}

.field-hint,
.field-error {
  font-size: 13px;
  line-height: 1.35;
}

.field-hint {
  color: var(--muted);
}

.field-error {
  min-height: 18px;
  color: var(--danger);
  font-weight: 700;
}

fieldset {
  display: grid;
  gap: 12px;
  padding: 16px;
  margin: 18px 0;
  border: 1px dashed var(--oat);
  border-radius: 18px;
}

fieldset label,
.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--charcoal);
  font-weight: 600;
  line-height: 1.35;
}

input[type="radio"],
input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 1px;
  accent-color: var(--blueberry-800);
}

.checkbox-row {
  margin: 12px 0 4px;
}

.submit-button {
  width: 100%;
  min-height: 54px;
  margin-top: 14px;
  background: var(--lemon-500);
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--matcha-800);
  font-weight: 800;
  line-height: 1.4;
}

.form-status.is-error {
  color: var(--danger);
}

.site-footer {
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  padding: 28px 0 42px;
  margin: 0 auto;
  border-top: 1px solid var(--oat);
  color: var(--muted);
  font-size: 14px;
}

.site-footer span:first-child {
  color: var(--black);
  font-weight: 900;
}

@keyframes productFloat {
  0%,
  100% {
    transform: rotate(-1deg) translateY(0);
  }

  50% {
    transform: rotate(0.4deg) translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1100px) {
  .hero-layout {
    grid-template-columns: 1fr;
    padding-top: 118px;
  }

  .product-preview {
    max-width: 760px;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 42px;
  }

  .conversation-section {
    height: 258svh;
  }

  .conversation-shell {
    grid-template-columns: minmax(0, 0.9fr) minmax(330px, 1.1fr);
    gap: 38px;
  }

  .conversation-copy {
    padding-top: 0;
  }

  .section-heading,
  .workflow-section,
  .capture-section,
  .faq-section,
  .validation-section,
  .byok-panel,
  .demo-panel {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .workflow-copy,
  .validation-header {
    position: static;
  }

  .ops-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    padding: 10px 16px;
  }

  .brand span:last-child {
    max-width: 134px;
    line-height: 1.1;
  }

  .nav-cta {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero-layout {
    min-height: 94svh;
    padding: 96px 16px 44px;
  }

  .hero h1 {
    font-size: 39px;
    line-height: 1.02;
  }

  .hero-copy,
  .section-heading p:last-child,
  .conversation-copy p:not(.section-label),
  .workflow-copy p,
  .validation-header p,
  .capture-copy p,
  .byok-panel p {
    font-size: 18px;
  }

  .hero-actions,
  .demo-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .clay-button,
  .demo-tab {
    width: 100%;
  }

  .hero-kpis {
    display: grid;
    grid-template-columns: 1fr;
  }

  .app-window {
    border-radius: 20px;
    transform: none;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-topbar {
    grid-template-columns: 10px 10px 10px 1fr;
  }

  .live-pill {
    display: none;
  }

  .agent-flow {
    grid-template-columns: 1fr;
  }

  .agent-flow i {
    width: 2px;
    height: 18px;
    margin: 0 auto;
  }

  .product-section,
  .conversation-section,
  .workflow-section,
  .validation-section,
  .faq-section,
  .capture-section {
    width: calc(100% - 32px);
    padding: 76px 0;
  }

  .conversation-section + .workflow-section {
    padding-top: 34px;
  }

  .byok-section {
    padding: 76px 16px;
  }

  h2 {
    font-size: 34px;
  }

  .workflow-list li,
  .metric-table div {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .demo-panel,
  .lead-form {
    padding: 20px;
  }

  .demo-panel h3 {
    font-size: 28px;
  }

  .conversation-section {
    height: 286svh;
    padding: 0 0 16px;
  }

  .conversation-shell {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 16px;
    min-height: calc(100svh - var(--header-height));
    padding: 14px 0 16px;
  }

  .conversation-copy .section-label {
    margin-bottom: 10px;
  }

  .conversation-copy h2 {
    font-size: 28px;
    line-height: 1.04;
  }

  .conversation-copy p:not(.section-label) {
    display: none;
  }

  .conversation-cues {
    display: none;
  }

  .phone-frame {
    width: min(100%, 360px);
    height: clamp(458px, calc(100svh - var(--header-height) - 142px), 520px);
    min-height: 0;
    padding: 10px;
    border-radius: 38px;
    box-shadow: #000 7px 7px 0;
  }

  .phone-screen {
    border-radius: 29px;
  }

  .chat-header {
    padding: 24px 14px 12px;
  }

  .chat-status {
    display: none;
  }

  .chat-feed {
    gap: 8px;
    padding: 14px;
  }

  .chat-bubble {
    max-width: 90%;
  }

  .chat-bubble p {
    font-size: 13px;
  }

  .conversation-section[data-chat-step="0"] .chat-step-0,
  .conversation-section[data-chat-step="1"] .chat-step-0,
  .conversation-section[data-chat-step="1"] .chat-step-1,
  .conversation-section[data-chat-step="2"] .chat-step-0,
  .conversation-section[data-chat-step="2"] .chat-step-2,
  .conversation-section[data-chat-step="3"] .chat-step-0,
  .conversation-section[data-chat-step="3"] .chat-step-2,
  .conversation-section[data-chat-step="3"] .chat-step-3,
  .conversation-section[data-chat-step="4"] .chat-step-0,
  .conversation-section[data-chat-step="4"] .chat-step-2,
  .conversation-section[data-chat-step="4"] .chat-step-3,
  .conversation-section[data-chat-step="4"] .chat-step-4,
  .conversation-section[data-chat-step="5"] .chat-step-0,
  .conversation-section[data-chat-step="5"] .chat-step-2,
  .conversation-section[data-chat-step="5"] .chat-step-3,
  .conversation-section[data-chat-step="5"] .chat-step-5 {
    padding: 10px 12px;
  }

  .chat-composer {
    margin: 0 10px 10px;
  }

  .metric-table div {
    padding: 22px 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    width: calc(100% - 32px);
  }
}
