/* Nsesa marketing site — standalone stylesheet, no build step.
   Design tokens mirror the application's globals.css so the site and the
   product look like one thing. */

:root {
  --paper: #f5f0e8;
  --ink: #1a1a1a;
  --forest: #1b4332;
  --forest-deep: #12301f;
  --forest-soft: #e4ece7;
  --gold: #d4a017;
  --gold-soft: #f7ecd2;
  --line: #dcd4c6;
  --card: #fdfbf7;
  --muted: #6b6558;
  --danger: #a4302f;
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
::selection { background: var(--gold-soft); }

.icon {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-sm { width: 20px; height: 20px; }
.icon-xs { width: 16px; height: 16px; stroke-width: 2; }

/* ---------- layout ---------- */
.wrap { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.bordered { border-top: 1px solid var(--line); }
.bg-card { background: var(--card); }
.center { text-align: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 240, 232, 0.9);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 24px; max-width: 1152px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--forest); color: var(--paper);
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
}
.brand-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.nav { display: none; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav a { transition: color .15s ease; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px; font-weight: 600; font-family: inherit;
  font-size: 14px; padding: 8px 16px; cursor: pointer;
  border: 1px solid transparent; transition: background .15s ease, border-color .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn-lg { font-size: 16px; padding: 14px 28px; }
.btn-primary { background: var(--forest); color: var(--paper); }
.btn-primary:hover { background: var(--forest-deep); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--forest); background: var(--forest-soft); }
.btn-gold { background: var(--gold); color: var(--forest-deep); }
.btn-gold:hover { opacity: .9; }
.btn-block { width: 100%; padding: 12px 16px; font-size: 15px; }

/* ---------- bits ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 999px; border: 1px solid var(--line);
  text-transform: uppercase; letter-spacing: .04em;
}
.badge-gold { border-color: var(--gold); background: var(--gold-soft); color: var(--forest); }
.badge-outline-gold { border-color: var(--gold); background: transparent; color: var(--gold); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.muted { color: var(--muted); }
.text-forest { color: var(--forest); }
.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------- hero ---------- */
.hero { display: grid; gap: 56px; align-items: center; padding: 80px 0 96px; }
.hero h1 { font-size: clamp(38px, 7vw, 60px); font-weight: 700; line-height: 1.08; margin-top: 24px; }
.hero-sub { margin-top: 24px; max-width: 36rem; font-size: 18px; line-height: 1.7; color: var(--muted); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-note { margin-top: 24px; font-size: 14px; color: var(--muted); }

/* ---------- chat mock ---------- */
.mock { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: 0 24px 60px -24px rgba(18,48,31,.35); }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.mock-head-left { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.mock-mark { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; background: var(--forest); color: var(--paper); font-family: var(--font-display); font-size: 12px; font-weight: 700; }
.mock-body { padding: 20px 16px; font-size: 14px; background: var(--paper); display: flex; flex-direction: column; gap: 16px; }
.bubble-user { margin-left: auto; max-width: 85%; border-radius: 12px 12px 4px 12px; background: var(--forest); color: var(--paper); padding: 12px 16px; }
.bubble-ai { max-width: 92%; border-radius: 12px 12px 12px 4px; border: 1px solid var(--line); background: var(--card); padding: 12px 16px; line-height: 1.7; }
.cite {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 999px;
  background: var(--forest-soft); color: var(--forest);
  font-size: 10px; font-weight: 700; vertical-align: text-top;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 4px 10px; font-size: 12px; color: var(--muted); }

/* meeting mock */
.mock-plain { background: var(--card); }
.mock-plain .mock-body { background: var(--card); }
.mock-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.decision { margin-top: 6px; display: flex; align-items: flex-start; gap: 8px; line-height: 1.7; }
.task-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 8px 12px; }
.task-row span:first-child { display: flex; align-items: center; gap: 8px; }
.task-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- grids ---------- */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
.feature { padding: 24px; }
.feature h3 { margin-top: 16px; font-size: 18px; font-weight: 700; }
.feature p { margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.section h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; margin-top: 16px; max-width: 42rem; }
.section-lede { margin-top: 20px; max-width: 40rem; line-height: 1.7; color: var(--muted); }

/* steps */
.step { position: relative; padding: 32px 24px 24px; }
.step-num {
  position: absolute; top: -16px; left: 24px;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--forest); color: var(--paper);
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
}
.step h3 { margin-top: 16px; font-size: 18px; font-weight: 700; }
.step p { margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* bullet list */
.checks { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.7; }
.checks .icon { color: var(--forest); margin-top: 2px; }

/* ---------- security (dark) ---------- */
.dark { background: var(--forest-deep); color: var(--paper); }
.dark h2 { color: var(--paper); }
.dark .section-lede { color: rgba(245,240,232,.7); }
.sec-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
.sec-item .icon { color: var(--gold); }
.sec-item h3 { margin-top: 12px; font-size: 16px; font-weight: 700; }
.sec-item p { margin-top: 6px; font-size: 14px; line-height: 1.7; color: rgba(245,240,232,.7); }

/* ---------- integrations ---------- */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 40px auto 0; max-width: 48rem; }
.pill { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq { padding: 16px 20px; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { color: var(--muted); transition: transform .2s ease; font-weight: 400; font-size: 20px; line-height: 1; }
.faq[open] summary .plus { transform: rotate(45deg); }
.faq p { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ---------- lead form ---------- */
.request-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
.lead-card { padding: 32px; }
.toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  border: 1px solid var(--line); background: var(--paper);
  border-radius: 8px; padding: 4px;
}
.toggle button {
  border: 0; background: transparent; border-radius: 6px;
  padding: 8px 12px; font-size: 14px; font-weight: 600; font-family: inherit;
  color: var(--muted); cursor: pointer; transition: background .15s ease, color .15s ease;
}
.toggle button[aria-pressed="true"] { background: var(--forest); color: var(--paper); }
.field-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
.field label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 13px; font-size: 14px;
  font-family: inherit; color: var(--ink); outline: none;
  transition: border-color .15s ease;
}
.input:focus { border-color: var(--forest); }
textarea.input { min-height: 96px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin-top: 12px; font-size: 14px; color: var(--danger); }
.form-note { margin-top: 12px; text-align: center; font-size: 12px; color: var(--muted); }
.form-note a { color: var(--forest); font-weight: 600; text-decoration: underline; }
.success { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px; text-align: center; }
.success .icon { width: 40px; height: 40px; color: var(--forest); stroke-width: 1.5; }
.success h3 { font-size: 20px; font-weight: 700; }
.success p { max-width: 24rem; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ---------- final CTA ---------- */
.cta {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  border-radius: 16px; background: var(--forest); color: var(--paper);
  padding: 56px 32px; text-align: center;
}
.cta h2 { color: var(--paper); max-width: 42rem; }
.cta p { max-width: 34rem; line-height: 1.7; color: rgba(245,240,232,.75); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-direction: column; gap: 40px; padding: 48px 0 0; }
.footer-about { max-width: 20rem; }
.footer-about p { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 64px; font-size: 14px; }
.footer-cols h4 { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin: 0; }
.footer-cols ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.footer-cols a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 40px; padding: 24px 0 48px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  font-size: 14px; color: var(--muted);
}
.footer-bottom .tag { font-family: var(--font-display); font-weight: 600; color: var(--forest); }

/* ---------- legal pages ---------- */
.legal { max-width: 768px; margin: 0 auto; padding: 56px 24px; }
.legal h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.legal h2 { font-size: 18px; font-weight: 700; margin: 32px 0 10px; }
.legal h3 { font-size: 16px; font-weight: 700; margin: 20px 0 6px; }
.legal p { margin: 12px 0; line-height: 1.75; }
.legal ul { margin: 12px 0 12px 20px; padding: 0; }
.legal li { margin: 6px 0; line-height: 1.75; }
.legal a { color: var(--forest); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.legal .lede { color: var(--muted); font-size: 14px; }
.legal .table-scroll { overflow-x: auto; margin: 16px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 11px; text-align: left; vertical-align: top; }
.legal th { background: var(--card); font-weight: 700; }

/* ---------- responsive ----------
   Cards go 1 → 2 → 3 across. Three columns only from 1024px: on a portrait
   tablet (768px) three cards leave ~224px each, which crushes the copy into
   a narrow ribbon. */
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .nav { display: flex; }
  .footer-top { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1.1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .sec-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 40px; }
  .request-grid { grid-template-columns: 1fr 1.1fr; }
}

/* Touch devices: comfortable tap targets and no iOS zoom-on-focus
   (Safari zooms whenever an input's font-size is under 16px). */
@media (hover: none) {
  .input { font-size: 16px; padding: 11px 13px; }
  .toggle button { padding: 11px 12px; }
  .faq summary { padding: 4px 0; }
  .footer-cols a, .nav a { display: inline-block; padding: 2px 0; }
}

/* ---------- contact line ---------- */
.contact-line {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.contact-line a {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--forest); font-weight: 600; white-space: nowrap;
}
.contact-line a:hover { text-decoration: underline; }
.contact-methods { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 10px; }
