/* FirstCall — system fonts, accessible contrast, mobile-first */

:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --ink: #1a1f24;
  --muted: #4a5560;
  --line: #d8d2c8;
  --brand: #0c5c4c;
  --brand-hover: #09483c;
  --brand-soft: #e4f2ee;
  --accent: #c45c26;
  --focus: #1a6bff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(26, 31, 36, 0.08);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1080px;
  --narrow: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--brand-hover);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - 2rem, var(--narrow));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  color: var(--brand);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--brand-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--muted);
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 3rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .hero-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.65rem;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}

.card-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.check-list li:first-child {
  border-top: 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 2px var(--brand);
}

/* Sections */
.problem,
.how,
.trust,
.pricing,
.faq,
.pilot {
  padding: 2.75rem 0;
}

.problem,
.trust,
.pricing {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.how {
  background: var(--bg);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.problem p,
.trust p,
.pricing p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.problem p:last-child,
.trust p:last-child,
.pricing p:last-child {
  margin-bottom: 0;
}

/* Steps */
.steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

.steps li {
  display: flex;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}

/* FAQ */
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.65rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 650;
  list-style-position: outside;
}

.faq-list details p {
  margin: 0.65rem 0 0.25rem;
  color: var(--muted);
}

/* Pilot form */
.pilot {
  background: var(--brand-soft);
  border-top: 1px solid var(--line);
}

.pilot-intro {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}

.field input:focus {
  border-color: var(--brand);
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.pilot-success {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

.pilot-success h3 {
  margin-top: 0;
  color: var(--brand);
}

.pilot-success p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner p {
  margin: 0 0 0.35rem;
}

.footer-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Demo page */
.demo-page .hero {
  padding-bottom: 1.5rem;
}

.chat {
  max-width: 40rem;
  margin: 0 auto 3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-header {
  padding: 0.85rem 1.1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.chat-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 22rem;
}

.bubble {
  max-width: 88%;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  font-size: 0.98rem;
  line-height: 1.45;
}

.bubble.lead {
  align-self: flex-start;
  background: #eef1f4;
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.bubble.agent {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble .meta {
  display: block;
  font-size: 0.72rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.chat-aside {
  width: min(100% - 2rem, var(--narrow));
  margin: 0 auto 3rem;
  color: var(--muted);
}

.chat-aside code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--line);
}

@media (max-width: 560px) {
  .nav-list a:not(.nav-cta) {
    display: none;
  }
}
