/* Hearken.ai marketing site — shared styles. Mobile-first, no build step. */
:root {
  --brand: #1b8ac9;
  --brand-dark: #0f6da6;
  --brand-tint: #e8f4fb;
  --ink: #16283a;
  --ink-soft: #4b5d6e;
  --line: #dde6ed;
  --bg: #ffffff;
  --bg-alt: #f5f9fc;
  --ok: #1f9d55;
  --warn: #b7791f;
  --radius: 12px;
  --maxw: 1060px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
}
a { color: var(--brand-dark); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: 0 0 14px; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-size: 1.12rem; margin: 0 0 8px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ── Header / nav ─────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; height: 64px; }
.nav .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.nav .logo img { height: 30px; width: auto; }
.nav-links { display: none; margin-left: auto; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--brand-dark); }
.nav-links a.signin { color: var(--brand-dark); font-weight: 600; }
.nav-burger { margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
nav.mobile { display: none; border-top: 1px solid var(--line); background: #fff; }
nav.mobile.open { display: block; }
nav.mobile a { display: block; padding: 13px 22px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--bg-alt); font-weight: 500; }
@media (min-width: 800px) {
  .nav-links { display: flex; }
  .nav-burger, nav.mobile { display: none !important; }
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; text-decoration: none; font-size: 1rem; border: 0; cursor: pointer;
}
.btn-primary { background: var(--brand-dark); color: #fff; }
.btn-primary:hover { background: #0b5a8a; }
.btn-ghost { background: #fff; color: var(--brand-dark); border: 1.5px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ── Sections ─────────────────────────────────── */
section.block { padding: 56px 0; }
section.block.alt { background: var(--bg-alt); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 720px; }
.hero { padding: 72px 0 60px; }
.hero .kicker { color: var(--brand-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin-bottom: 10px; }
.grid { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 720px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { color: var(--ink); }
.card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.card .em { color: var(--brand-dark); font-weight: 600; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; padding: 16px 20px; background: var(--brand-tint); border-radius: var(--radius); font-size: .95rem; }
.trust span { white-space: nowrap; color: var(--ink); }
.trust a { font-weight: 600; }

/* ── FAQ ──────────────────────────────────────── */
details.faq { border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px; margin: 10px 0; background: #fff; }
details.faq summary { font-weight: 600; cursor: pointer; padding: 10px 0; }
details.faq p { color: var(--ink-soft); margin-top: 0; }

/* ── Forms ────────────────────────────────────── */
form.contact { max-width: 560px; }
form.contact label { display: block; font-weight: 600; margin: 16px 0 6px; font-size: .95rem; }
form.contact input, form.contact textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.form-msg { margin-top: 16px; padding: 12px 14px; border-radius: 8px; display: none; }
.form-msg.ok { display: block; background: #e8f7ee; color: var(--ok); }
.form-msg.err { display: block; background: #fdf3e4; color: var(--warn); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ── Footer ───────────────────────────────────── */
footer.site { border-top: 1px solid var(--line); padding: 34px 0 44px; margin-top: 30px; color: var(--ink-soft); font-size: .93rem; }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 18px 46px; }
footer.site a { color: var(--ink-soft); text-decoration: none; display: block; padding: 3px 0; }
footer.site a:hover { color: var(--brand-dark); }
footer.site .brand { font-weight: 700; color: var(--ink); }

/* ── Demo chat ────────────────────────────────── */
.demo-shell { max-width: 640px; margin: 26px auto 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 10px 34px rgba(22,40,58,.08); }
.demo-bar { background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.demo-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #48d597; }
.demo-bar .tag { margin-left: auto; font-weight: 500; font-size: .78rem; opacity: .75; }
.demo-log { padding: 20px 18px; min-height: 330px; max-height: 430px; overflow-y: auto; background: var(--bg-alt); }
.msg { max-width: 85%; margin: 0 0 12px; padding: 11px 15px; border-radius: 14px; font-size: .95rem; white-space: pre-wrap; }
.msg.user { margin-left: auto; background: var(--brand-dark); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.sms { background: #fff8e6; border: 1px solid #eadaa8; font-size: .9rem; }
.msg.sms .from { font-weight: 700; font-size: .78rem; color: var(--warn); display: block; margin-bottom: 4px; }
.typing { display: inline-block; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.typing i { display: inline-block; width: 7px; height: 7px; margin: 0 1.5px; border-radius: 50%; background: #9fb2c2; animation: bl 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bl { 0%,60%,100% { transform: translateY(0); opacity:.5 } 30% { transform: translateY(-4px); opacity:1 } }
.approval { border: 1.5px solid var(--brand); border-radius: 12px; background: #fff; padding: 14px 16px; margin: 0 0 12px; max-width: 92%; font-size: .92rem; }
.approval h4 { margin: 0 0 8px; color: var(--brand-dark); font-size: .95rem; }
.approval ul { margin: 6px 0 10px; padding-left: 20px; color: var(--ink-soft); }
.approval .meta { color: var(--ink-soft); font-size: .85rem; margin-bottom: 10px; }
.approval .actions { display: flex; gap: 10px; }
.approval button { padding: 8px 16px; border-radius: 8px; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.approval .yes { background: var(--brand-dark); color: #fff; }
.approval .no { background: #eef2f6; color: var(--ink); }
.demo-choices { padding: 14px 18px 18px; border-top: 1px solid var(--line); background: #fff; }
.demo-choices .hint { font-size: .85rem; color: var(--ink-soft); margin: 0 0 10px; }
.demo-choices button {
  display: inline-block; margin: 0 8px 8px 0; padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid var(--brand); background: #fff; color: var(--brand-dark);
  font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
}
.demo-choices button:hover:not(:disabled) { background: var(--brand-tint); }
.demo-choices button:disabled { opacity: .45; cursor: default; }
.demo-note { text-align: center; color: var(--ink-soft); font-size: .85rem; margin-top: 14px; }
