/* Chatbot Pro — monochrome design system */

:root {
  --bg: oklch(100% 0 0);
  --ink: oklch(18% 0 0);
  --body: oklch(36% 0 0);
  --muted: oklch(46% 0 0);
  --line: oklch(91% 0 0);
  --band: oklch(15% 0 0);
  --band-text: oklch(88% 0 0);
  --z-header: 10;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
}

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--body);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease-out;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

/* Buttons */

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease-out;
}

.btn:hover { opacity: 0.82; }

.btn-inverse {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hero */

.hero {
  padding: clamp(4.5rem, 12vw, 8.5rem) 0 clamp(4rem, 10vw, 7rem);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 800;
  max-width: 18ch;
  margin: 0 auto 1.5rem;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 52ch;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: no-preference) {
  .hero > .container > * {
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero p { animation-delay: 0.08s; }
  .hero .hero-actions { animation-delay: 0.16s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */

.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }

.section + .section { padding-top: 0; }

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* Feature columns (rule-separated, no cards) */

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}

.feature-list > div {
  border-top: 1px solid var(--ink);
  padding-top: 1.25rem;
}

.feature-list h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

/* Testimonials */

.quotes {
  max-width: 640px;
  margin: 0 auto;
}

.quotes figure {
  padding: 2rem 0;
}

.quotes figure + figure { border-top: 1px solid var(--line); }

.quotes blockquote {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1rem;
}

.quotes figcaption {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Steps */

.steps {
  list-style: none;
  counter-reset: step;
  max-width: 720px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.steps h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.steps p { max-width: 58ch; }

/* CTA band */

.cta-band {
  background: var(--band);
  padding: clamp(4rem, 10vw, 6.5rem) 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-band p {
  color: var(--band-text);
  font-size: 1.15rem;
  max-width: 42ch;
  margin: 0 auto 2.25rem;
}

/* Footer */

footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease-out;
}

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

.footer-copy {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Inner pages */

.page {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}

.page-title {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.page-lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 56ch;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.prose {
  max-width: 62ch;
}

.prose h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  margin: clamp(2.5rem, 6vw, 3.5rem) 0 1rem;
}

.prose p + p { margin-top: 1rem; }

.pair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: 1.5rem;
}

.pair-grid > div {
  border-top: 1px solid var(--ink);
  padding-top: 1.25rem;
}

.pair-grid h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.role {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* Contact form */

.contact-form {
  max-width: 620px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 1.35rem; }

.form-group label {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid oklch(75% 0 0);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease-out;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--ink);
  outline-offset: -1px;
  border-color: var(--ink);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: oklch(50% 0 0);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.submit-btn { width: 100%; }

.submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* FAQ */

.faq {
  max-width: 680px;
  margin-top: clamp(3rem, 7vw, 4.5rem);
}

.faq h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

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

.faq details:last-of-type { border-bottom: 1px solid var(--line); }

.faq summary {
  padding: 1.15rem 0;
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
}

.faq details[open] summary::after { content: '\2212'; }

.faq details p {
  padding-bottom: 1.25rem;
  max-width: 60ch;
}

/* Responsive */

@media (max-width: 720px) {
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

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