/* Kenzcore AI landing — design tokens from handoff (terracotta primary) */
:root {
  --bg: oklch(0.97 0.01 60);
  --bg2: oklch(0.945 0.014 55);
  --text: oklch(0.24 0.02 40);
  --text-muted: oklch(0.44 0.02 40);
  --border: oklch(0.85 0.015 50);
  --accent: oklch(0.47 0.135 35);
  --accent-dark: oklch(0.36 0.12 33);
  --accent-ink: oklch(0.98 0.005 60);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'PT Sans', sans-serif;
  min-height: 100vh;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

input:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

h1, h2 {
  font-family: 'PT Serif', serif;
  font-weight: 700;
  margin: 0;
}

.eyebrow {
  font-family: 'PT Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'PT Sans', sans-serif;
}
.cta:hover { background: var(--accent-dark); color: var(--accent-ink); }

.cta--small { padding: 10px 18px; font-size: 14px; }
.cta--large { padding: 16px 28px; font-size: 16px; }
.cta--block { width: 100%; text-align: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.wordmark {
  font-family: 'PT Serif', serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.header-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 8px; }
.lang-switch button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'PT Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  padding: 4px 2px;
}
.lang-switch button[aria-current="true"] {
  font-weight: 700;
  color: var(--accent);
}

/* Sections */
.section-pad { padding: 88px 32px; }
.wrap { max-width: 1180px; margin: 0 auto; }
.wrap--narrow { max-width: 760px; margin: 0 auto; }
.bg-alt { background: var(--bg2); }

/* Hero */
.hero { padding: 88px 32px 72px; }
.hero-grid { display: flex; gap: 64px; align-items: center; }
.hero-copy { flex: 1.15; min-width: 0; }
.hero-copy h1 {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.hero-copy p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 32px;
}
.hero-visual { flex: 0.85; min-width: 280px; }
.hero-doc {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 32px 28px;
}
.hero-doc-title {
  font-family: 'PT Serif', serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
}
.hero-doc-line {
  height: 10px;
  background: var(--border);
  filter: blur(2.5px);
  margin-bottom: 10px;
}
.hero-doc-line:last-child { margin-bottom: 0; }
.hero-doc-line.gap { margin-bottom: 24px; }
.hero-caption {
  font-family: 'PT Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Problem / generic narrow text sections */
.text-block h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  margin: 0 0 24px;
}
.text-block p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 18px;
}
.text-block p:last-child { margin-bottom: 0; }

/* Solution steps / Trust columns */
.section-h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  margin: 0 0 48px;
}
.solution .section-h2 { max-width: 26ch; }
.trust .section-h2 { max-width: 30ch; }

.cols-row {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
}
.cols-row > div {
  flex: 1;
  padding: 28px 28px 0 0;
  border-right: 1px solid var(--border);
}
.step-n {
  font-family: 'PT Serif', serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 14px;
}
.step-text, .trust-text {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
.trust-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}
.trust-text { font-size: 16px; }

/* Chat demo (intentionally independent palette) */
.chat-section { max-width: 1180px; margin: 0 auto; padding: 0 32px 88px; }
.chat-app {
  background: #ffffff;
  border: 1px solid #e4e4e4;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  font-family: system-ui, -apple-system, sans-serif;
}
.chat-app-row { display: flex; min-height: 600px; }
.chat-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #fafafa;
  border-right: 1px solid #ececec;
  padding: 20px 16px;
}
.chat-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.chat-brand-mark {
  width: 24px; height: 24px; border-radius: 6px;
  background: #1a1a1a; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.chat-brand-name { font-size: 14px; font-weight: 600; color: #1a1a1a; line-height: 1.3; }
.chat-nav-item { font-size: 14px; color: #333; padding: 8px 4px; margin-bottom: 2px; }
.chat-nav-item.gap { margin-bottom: 18px; }
.chat-nav-label { font-size: 12px; color: #b5b5b5; padding: 6px 4px; }
.chat-nav-label.spaced { margin-top: 10px; }
.chat-history-item { font-size: 14px; color: #1a1a1a; font-weight: 600; padding: 8px 4px; }
.chat-history-item.muted { color: #555; font-weight: 400; }
.chat-main {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 32px; min-width: 0;
}
.chat-model { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.chat-model-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: #1a1a1a; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.chat-model-name { font-size: 22px; color: #1a1a1a; }
.chat-input-pill {
  width: 100%; max-width: 640px;
  border: 1px solid #e2e2e2; border-radius: 24px;
  padding: 18px 22px; margin-bottom: 28px;
}
.chat-greeting { font-size: 16px; color: #333; }
.chat-send-row { display: flex; justify-content: flex-end; margin-top: 14px; }
.chat-send-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: #1a1a1a; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.chat-suggested { width: 100%; max-width: 640px; }
.chat-suggested-label { font-size: 13px; color: #b5b5b5; margin-bottom: 12px; }
.chat-suggestion { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.chat-suggestion-title { font-size: 15px; color: #1a1a1a; font-weight: 600; }
.chat-suggestion-sub { font-size: 14px; color: #9a9a9a; }

/* Results list */
.results-sub { font-size: 18px; line-height: 1.6; color: var(--text-muted); margin: 0 0 32px; }
.results-list-item {
  display: flex; gap: 16px; padding: 18px 0;
  border-top: 1px solid var(--border);
}
.results-bullet { font-family: 'PT Serif', serif; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.results-list-item p { font-size: 17px; line-height: 1.6; margin: 0; }

/* Form */
.form-section { padding: 96px 32px; border-top: 1px solid var(--border); }
.form-sub { font-size: 17px; line-height: 1.6; color: var(--text-muted); margin: 0 0 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { margin-bottom: 16px; }
.field.field--phone { margin-bottom: 28px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); background: var(--bg);
  font-size: 16px; font-family: 'PT Sans', sans-serif; color: var(--text);
}
.form-error {
  color: var(--accent-dark);
  font-size: 14px;
  margin: 0 0 16px;
}

.form-success {
  border: 1px solid var(--accent); background: var(--bg); padding: 32px 28px;
}
.form-success-title {
  font-family: 'PT Serif', serif; font-weight: 700; font-size: 20px; margin-bottom: 8px;
}
.form-success p { font-size: 16px; line-height: 1.6; color: var(--text-muted); margin: 0; }
[hidden] { display: none !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 32px; }
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-size: 14px; color: var(--text-muted);
}
.footer-brand { font-family: 'PT Serif', serif; font-weight: 700; color: var(--text); }
.footer-inner a { color: var(--text-muted); }

/* Responsive */
@media (max-width: 760px) {
  .hero-grid { flex-direction: column; gap: 32px; }
  .hero-visual { order: -1; width: 100%; max-width: 420px; }
  .cols-row { flex-direction: column; }
  .cols-row > div {
    border-right: none;
    border-top: 1px solid var(--border);
    padding: 24px 0;
  }
  .cols-row > div:first-child { border-top: none; padding-top: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 14px 20px; gap: 10px; }
  .cta--small { padding: 9px 14px; font-size: 13px; }
  .section-pad { padding: 56px 20px; }
  .hero { padding: 56px 20px; }
  .form-section { padding: 56px 20px; }
  h1 { font-size: clamp(28px, 8vw, 40px); }
  .chat-sidebar { display: none; }
}

@media (max-width: 420px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
}
