:root {
  --ink: oklch(0.24 0.012 70);
  --muted: oklch(0.5 0.012 70);
  --soft-muted: oklch(0.62 0.012 70);
  --paper: oklch(0.985 0.006 85);
  --paper-muted: oklch(0.97 0.008 85);
  --surface: #fff;
  --line: oklch(0.91 0.008 85);
  --line-strong: oklch(0.85 0.012 85);
  --green: oklch(0.56 0.085 165);
  --green-strong: oklch(0.42 0.08 165);
  --green-soft: oklch(0.95 0.03 165);
  --shadow: 0 24px 50px -26px rgba(40, 40, 30, 0.32);
  --sans: "Public Sans", Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

@keyframes lr-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lr-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(1.55);
  }
}

@keyframes lr-blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.site-header {
  align-items: center;
  background: rgba(251, 250, 246, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2 + 40px));
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  gap: 11px;
  white-space: nowrap;
}

.brand-mark {
  background: var(--green);
  border-radius: 9px;
  color: #fff;
  display: grid;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  height: 32px;
  letter-spacing: 0.04em;
  place-items: center;
  width: 32px;
}

nav {
  align-items: center;
  display: flex;
  gap: 26px;
}

nav a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}

nav a:hover {
  color: var(--ink);
}

.nav-cta,
.button {
  align-items: center;
  border-radius: 11px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  justify-content: center;
  line-height: 1;
}

.nav-cta {
  background: var(--green);
  color: #fff;
  padding: 10px 18px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100vh - 78px);
  padding: 68px 40px 60px;
}

.pill {
  align-items: center;
  background: var(--green-soft);
  border-radius: 999px;
  color: var(--green-strong);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 9px;
  margin-bottom: 24px;
  padding: 7px 13px;
}

.pill span,
.live-badge > span {
  background: var(--green);
  border-radius: 999px;
  display: inline-block;
  height: 7px;
  width: 7px;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 22px;
  max-width: 640px;
}

h1 em {
  color: var(--green);
  font-style: italic;
}

.lead {
  color: oklch(0.45 0.012 70);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 520px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.button {
  border: 1px solid transparent;
  min-height: 46px;
  padding: 14px 24px;
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.secondary {
  border-color: var(--line-strong);
  color: oklch(0.3 0.012 70);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.proof-points {
  align-items: center;
  color: oklch(0.55 0.012 70);
  display: flex;
  flex-wrap: wrap;
  font-size: 13.5px;
  gap: 18px;
}

.proof-points span {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.proof-points strong {
  color: var(--green);
}

.lead-demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-header {
  align-items: center;
  border-bottom: 1px solid oklch(0.94 0.008 85);
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  padding: 16px 18px;
}

.demo-avatar {
  background: oklch(0.93 0.03 165);
  border-radius: 11px;
  color: var(--green-strong);
  display: grid;
  font-size: 14px;
  font-weight: 700;
  height: 38px;
  place-items: center;
  width: 38px;
}

.demo-header strong {
  display: block;
  font-size: 14.5px;
  line-height: 1.2;
}

.demo-header p {
  color: oklch(0.58 0.012 70);
  font-size: 12px;
  margin: 2px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-badge {
  align-items: center;
  background: oklch(0.95 0.03 150);
  border-radius: 999px;
  color: oklch(0.4 0.09 150);
  display: inline-flex;
  font-size: 11.5px;
  font-weight: 600;
  gap: 7px;
  padding: 5px 10px;
}

.live-badge > span {
  animation: lr-pulse 1.8s ease-in-out infinite;
}

.demo-tabs {
  border-bottom: 1px solid oklch(0.94 0.008 85);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 18px;
  scrollbar-width: none;
}

.demo-tabs::-webkit-scrollbar {
  display: none;
}

.demo-tabs button {
  background: var(--paper-muted);
  border: 1px solid oklch(0.9 0.008 85);
  border-radius: 6px;
  color: oklch(0.45 0.012 70);
  cursor: pointer;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 12px;
  white-space: nowrap;
}

.demo-tabs button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 600;
}

.demo-thread {
  background: oklch(0.992 0.004 85);
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 330px;
  padding: 18px;
}

.thread-item {
  max-width: 82%;
}

.thread-item.new {
  animation: lr-fade-up 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.thread-item.in {
  align-self: flex-start;
}

.thread-item.out {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.thread-item.log {
  align-self: center;
  max-width: 90%;
}

.bubble {
  border-radius: 14px 14px 14px 4px;
  font-size: 13.5px;
  line-height: 1.45;
  padding: 10px 13px;
}

.thread-item.in .bubble {
  background: #fff;
  border: 1px solid oklch(0.92 0.008 85);
  color: oklch(0.32 0.012 70);
}

.thread-item.out .bubble,
.typing {
  background: var(--green);
  border-radius: 14px 14px 4px 14px;
  color: #fff;
}

.thread-item.log .bubble {
  align-items: center;
  background: oklch(0.96 0.006 85);
  border: 1px solid oklch(0.93 0.008 85);
  border-radius: 999px;
  color: oklch(0.46 0.012 70);
  display: inline-flex;
  gap: 7px;
  padding: 6px 13px;
}

.thread-item.log strong {
  color: var(--green);
}

.thread-item > span {
  color: var(--soft-muted);
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  margin: 4px 0 0 4px;
}

.thread-item.out > span {
  color: var(--green);
  margin: 4px 0 0;
}

.thread-item.log > span {
  display: none;
}

.typing {
  align-self: flex-end;
  display: flex;
  gap: 4px;
  padding: 11px 14px;
}

.typing span {
  animation: lr-blink 1.1s infinite;
  background: #fff;
  border-radius: 999px;
  height: 6px;
  width: 6px;
}

.typing span:nth-child(2) {
  animation-delay: 0.18s;
}

.typing span:nth-child(3) {
  animation-delay: 0.36s;
}

.demo-stepper {
  border-top: 1px solid oklch(0.94 0.008 85);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 15px 18px;
}

.demo-stepper div {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.demo-stepper span {
  background: #fff;
  border: 2px solid oklch(0.88 0.008 85);
  border-radius: 999px;
  color: #fff;
  display: grid;
  font-size: 10px;
  font-weight: 700;
  height: 18px;
  place-items: center;
  width: 18px;
}

.demo-stepper div.done span {
  background: var(--green);
  border-color: var(--green);
}

.demo-stepper p {
  color: oklch(0.45 0.012 70);
  font-size: 11px;
  font-weight: 600;
  margin: 0;
}

.process-strip {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.process-strip article {
  border-left: 1px solid oklch(0.93 0.008 85);
  padding: 30px 36px;
}

.process-strip article:first-child {
  border-left: 0;
}

.process-strip span {
  color: var(--green);
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  margin-bottom: 12px;
}

.process-strip h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 8px;
}

.process-strip p,
.section-heading > p:not(.eyebrow),
.service-grid p,
.integration-grid p,
.faq-grid p,
.policy-grid p,
.pricing-grid p,
.audience-list,
.footer p,
.document-page p,
.next-step-grid p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.section,
.footer,
.document-page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 74px 40px;
}

.section {
  border-top: 1px solid var(--line);
}

.muted-section {
  background: var(--paper-muted);
  max-width: none;
}

.muted-section > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1100px;
}

.section-heading {
  max-width: 680px;
}

.eyebrow {
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.15;
  margin-bottom: 12px;
}

h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 11px;
}

.service-grid,
.integration-grid,
.pricing-grid,
.faq-grid,
.policy-grid,
.next-step-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.service-grid,
.pricing-grid,
.policy-grid,
.next-step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.integration-grid,
.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-grid article > span {
  background: var(--green);
  border-radius: 2px;
  display: block;
  height: 3px;
  margin-bottom: 18px;
  width: 36px;
}

.integration-grid article,
.faq-grid article,
.policy-grid article,
.pricing-grid article,
.next-step-grid article {
  background: var(--surface);
  border: 1px solid oklch(0.9 0.008 85);
  border-radius: 16px;
  padding: 28px;
}

.integration-grid h3 {
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-section {
  background: var(--paper-muted);
  max-width: none;
}

.pricing-section > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1100px;
}

.pricing-grid article {
  position: relative;
}

.pricing-grid article.highlight {
  border: 1.5px solid var(--green);
  box-shadow: 0 18px 40px -24px rgba(40, 80, 60, 0.4);
}

.popular {
  background: var(--green);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  left: 28px;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  position: absolute;
  text-transform: uppercase;
  top: -12px;
}

.price {
  color: var(--ink) !important;
  font-family: var(--serif);
  font-size: 42px !important;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 14px;
}

.price span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 17px;
}

.pricing-grid ul {
  color: oklch(0.38 0.012 70);
  display: flex;
  flex-direction: column;
  font-size: 13.5px;
  gap: 10px;
  line-height: 1.4;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.pricing-grid li {
  padding-left: 22px;
  position: relative;
}

.pricing-grid li::before {
  color: var(--green);
  content: "\2713";
  font-weight: 700;
  left: 0;
  position: absolute;
}

.pricing-note {
  align-items: center;
  background: var(--surface);
  border: 1px solid oklch(0.9 0.008 85);
  border-radius: 14px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: 28px;
  padding: 20px 24px;
}

.pricing-note p {
  color: oklch(0.48 0.012 70);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  max-width: 680px;
}

.split {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.audience-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.audience-list li {
  align-items: center;
  background: var(--paper-muted);
  border: 1px solid oklch(0.92 0.008 85);
  border-radius: 12px;
  display: flex;
  font-weight: 500;
  gap: 13px;
  padding: 18px 20px;
}

.audience-list li::before {
  color: var(--green);
  content: "\2713";
  font-weight: 700;
}

.document-page {
  max-width: 880px;
}

.document-page h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 500;
  line-height: 1.04;
  margin-bottom: 18px;
}

.document-page section {
  border-top: 1px solid var(--line);
  padding: 28px 0 10px;
}

.document-page a {
  color: var(--green-strong);
  font-weight: 600;
}

.next-step-grid span {
  color: var(--green);
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 44px;
  padding-top: 44px;
}

.footer strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 8px;
}

.footer p {
  margin: 0 0 8px;
}

.footer a {
  color: var(--green-strong);
  font-weight: 600;
}

@media (max-width: 940px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding: 14px 20px;
  }

  nav {
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    width: 100%;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    border: 1px solid var(--line);
    border-radius: 8px;
    flex: 0 0 auto;
    font-size: 12px;
    padding: 8px 10px;
  }

  .nav-cta {
    border-color: var(--green);
    color: #fff;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 48px 20px 54px;
  }

  .process-strip,
  .service-grid,
  .integration-grid,
  .pricing-grid,
  .faq-grid,
  .policy-grid,
  .next-step-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .process-strip article {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 20px;
  }

  .process-strip article:first-child {
    border-top: 0;
  }

  .section,
  .footer,
  .document-page {
    padding: 52px 20px;
  }

  .footer,
  .pricing-note {
    flex-direction: column;
  }

  .pricing-note {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .nav-secondary {
    display: none;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 32px;
  }

  .lead-demo {
    border-radius: 16px;
  }

  .demo-header {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .live-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .demo-thread {
    min-height: 360px;
  }

  .thread-item {
    max-width: 92%;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .price {
    font-size: 38px !important;
  }
}
