:root {
  --navy: #0f2f52;
  --navy-2: #143b64;
  --blue: #1f81e8;
  --blue-deep: #1668c2;
  --sky: #eaf3fc;
  --wash: #f4f9ff;
  --ink: #24313f;
  --muted: #5b6b82;
  --line: #d9e5f2;
  --green: #178f65;
  --paper: #ffffff;
  --radius: 12px;
  --max: 1140px;
  --gutter: 24px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --shadow-sm: 0 1px 2px rgba(15, 47, 82, 0.06), 0 1px 3px rgba(15, 47, 82, 0.05);
  --shadow-md: 0 8px 28px rgba(15, 47, 82, 0.1);
  --shadow-lg: 0 18px 50px rgba(15, 47, 82, 0.16);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy-2);
  letter-spacing: -0.015em;
  line-height: 1.16;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3, h4 { font-family: var(--sans); font-weight: 700; color: var(--navy-2); margin: 0 0 0.5em; line-height: 1.3; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.16rem; color: var(--muted); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(52px, 8vw, 100px) 0; }
.section--alt { background: var(--wash); }
.section--tight { padding: clamp(36px, 5vw, 60px) 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--navy-2);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy-2) 100%);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--navy-2);
  padding: 8px;
  cursor: pointer;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--blue-deep); text-decoration: none; }
.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600 !important;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn--ghost { color: var(--navy-2); border: 1.5px solid var(--line); background: #fff; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-deep); }
.btn--light { background: #fff; color: var(--navy-2); }
.btn--light:hover { background: var(--sky); }
.btn-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--sky) 0%, rgba(234, 243, 252, 0) 60%),
    var(--paper);
  padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 90px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 em { font-style: italic; color: var(--blue-deep); }
.hero .lead { max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-works-with {
  margin-top: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.88rem;
  color: var(--muted);
}
.works-chip {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy-2);
  white-space: nowrap;
}

/* Chat demo window */
.chat-window {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 520px;
  justify-self: end;
  width: 100%;
}
.chat-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.chat-title { margin-left: 6px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.chat-body { padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 14px; min-height: 330px; }
.chat-msg { max-width: 92%; }
.chat-msg--user {
  align-self: flex-end;
  background: var(--navy-2);
  color: #eaf3fc;
  border-radius: 14px 14px 4px 14px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.55;
}
.chat-caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  vertical-align: text-bottom;
  background: #9cc4ee;
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.chat-msg--ai { align-self: flex-start; width: 100%; }
.chat-ai-note { font-size: 0.85rem; color: var(--muted); margin: 0 0 10px; }
.chat-cards { display: flex; flex-direction: column; gap: 8px; }
.match-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.match-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
}
.match-avatar--b { background: var(--navy-2); }
.match-avatar--c { background: var(--green); }
.match-name { font-weight: 600; font-size: 0.9rem; color: var(--navy-2); line-height: 1.3; }
.match-meta { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.match-tag {
  margin-left: auto;
  flex: none;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--green);
  border: 1px solid rgba(23, 143, 101, 0.35);
  background: rgba(23, 143, 101, 0.07);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.chat-msg--ai.is-hidden, .chat-msg--user.is-hidden { visibility: hidden; }
.reveal-card { opacity: 0; transform: translateY(8px); }
.reveal-card.is-visible { opacity: 1; transform: none; transition: opacity 0.45s ease, transform 0.45s ease; }

/* ---------- Trusted by ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--wash); }
.trust-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px 44px; }
.trust-label { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.trust-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--navy-2);
  opacity: 0.75;
  white-space: nowrap;
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.step-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--blue-deep);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.prompt-example {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.55;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--navy-2);
  margin: 10px 0 0;
}
.prompt-example span { display: block; font-family: var(--sans); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 5px; }

/* ---------- Audience split ---------- */
.audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }
.audience {
  border-radius: var(--radius);
  padding: 32px 30px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.audience--navy { background: var(--navy); border-color: var(--navy); color: #d7e6f7; }
.audience--navy h3, .audience--navy h4 { color: #fff; }
.audience--navy .eyebrow { color: #8fc0f2; }
.audience ul { margin: 0 0 22px; padding: 0; list-style: none; }
.audience li { padding: 7px 0 7px 28px; position: relative; }
.audience li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}
.audience--navy li::before { border-color: #8fc0f2; }

/* ---------- Case study band ---------- */
.case-band { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%); color: #d7e6f7; }
.case-band .eyebrow { color: #8fc0f2; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 70px); align-items: center; }
.case-quote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-style: italic;
  line-height: 1.35;
  color: #fff;
  margin: 0 0 18px;
}
.case-attrib { font-size: 0.95rem; color: #9cc4ee; margin-bottom: 26px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid rgba(143, 192, 242, 0.35); }
.timeline li { position: relative; padding: 0 0 18px 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 129, 232, 0.25);
}
.timeline li:last-child::before { background: #2fbd8b; box-shadow: 0 0 0 3px rgba(47, 189, 139, 0.25); }
.timeline .day { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8fc0f2; display: block; }
.timeline .what { color: #eaf3fc; font-weight: 500; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; align-items: stretch; }
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.plan--featured { border: 2px solid var(--blue); box-shadow: var(--shadow-md); }
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 14px;
  white-space: nowrap;
}
.plan-name { font-weight: 700; font-size: 1.05rem; color: var(--navy-2); }
.plan-price { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--navy-2); margin: 8px 0 2px; }
.plan-price small { font-family: var(--sans); font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan-quota { font-size: 0.95rem; color: var(--muted); margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: 0.95rem; }
.plan li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 13px;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}
.plan .btn { justify-content: center; }
.pricing-note { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 26px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 32px auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy-2);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 4px 22px; color: var(--ink); max-width: 46em; }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.cta-band { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%); color: #d7e6f7; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #b9d3ee; margin-left: auto; margin-right: auto; max-width: 36em; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--wash); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.footer-brand { font-family: var(--serif); font-weight: 700; color: var(--navy-2); font-size: 1.1rem; }
.footer-tag { font-size: 0.88rem; color: var(--muted); max-width: 30em; margin-top: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.footer-links a { color: var(--ink); }
.footer-copy { font-size: 0.82rem; color: var(--muted); margin-top: 28px; }

/* ---------- Inner pages (setup / case study) ---------- */
.page-hero { padding: clamp(48px, 6vw, 80px) 0 clamp(28px, 4vw, 44px); background: radial-gradient(900px 400px at 80% -20%, var(--sky) 0%, rgba(234, 243, 252, 0) 60%), var(--paper); }
.page-hero .lead { max-width: 40em; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose img { border-radius: var(--radius); }
.callout {
  background: var(--wash);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.97rem;
}
.callout p:last-child { margin-bottom: 0; }
code, .code-inline {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--sky);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--navy-2);
  word-break: break-all;
}
pre {
  background: var(--navy);
  color: #d7e6f7;
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.83rem;
  line-height: 1.6;
}
pre code { background: none; padding: 0; color: inherit; word-break: normal; }
.setup-steps { list-style: none; margin: 20px 0 0; padding: 0; counter-reset: setup; }
.setup-steps > li {
  counter-increment: setup;
  position: relative;
  padding: 0 0 26px 52px;
}
.setup-steps > li::before {
  content: counter(setup);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.setup-steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16.5px;
  top: 40px;
  bottom: 4px;
  width: 1.5px;
  background: var(--line);
}
.tool-section { margin-top: 48px; scroll-margin-top: 90px; }
.tool-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }

/* Case study stats */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 32px 0; }
.stat {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat .n { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--navy-2); display: block; }
.stat .l { font-size: 0.85rem; color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(80px, 14vw, 160px) 0; }
.notfound .big { font-family: var(--serif); font-size: clamp(4rem, 10vw, 7rem); color: var(--sky); font-weight: 700; line-height: 1; text-shadow: 0 1px 0 var(--line); margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .chat-window { justify-self: stretch; max-width: 560px; margin: 0 auto; }
  .steps, .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .audiences { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 10px 0; font-size: 1.05rem; }
  .nav-cta { display: inline-block; margin-top: 8px; padding: 12px 22px; }
}

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

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