/* LatchLead v1 — original stylesheet. System fonts only. */

:root {
  --navy: #0a1a33;
  --navy-2: #0e2242;
  --ink: #12233f;
  --muted: #5b6b85;
  --cyan: #22d3ee;
  --cyan-dark: #0e9db5;
  --amber: #f5a524;
  --cloud: #f4f7fb;
  --white: #ffffff;
  --line: #e3e9f2;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--white); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
p { margin: 0 0 16px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan-dark);
  margin-bottom: 10px;
}
.section-alt .eyebrow { color: var(--cyan-dark); }
.accent { color: var(--cyan); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-primary { background: var(--cyan); color: var(--navy); }
.btn-primary:hover { background: #4fe0f5; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(34, 211, 238, 0.35); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--cyan-dark); color: var(--cyan-dark); }
.btn-sm { padding: 9px 20px; font-size: 0.9rem; }
.hero .btn-ghost { border-color: rgba(255,255,255,0.35); color: var(--white); background: transparent; }
.hero .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 26, 51, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-weight: 800; font-size: 1.25rem; color: var(--white); letter-spacing: -0.01em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.nav a:hover { color: var(--cyan); }
@media (max-width: 760px) { .nav { display: none; } .header-inner .btn { margin-left: auto; } }

/* Hero */
.hero {
  background: radial-gradient(1100px 520px at 80% -10%, #14315e 0%, var(--navy) 55%, #060f22 100%);
  color: var(--white);
  padding: 96px 0 110px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .eyebrow { color: var(--cyan); }
.lede { font-size: 1.2rem; color: rgba(255,255,255,0.82); max-width: 34rem; }
.hero-cta { display: flex; gap: 14px; margin: 26px 0 30px; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero-points li { position: relative; padding-left: 30px; color: rgba(255,255,255,0.85); font-size: 1.02rem; }
.hero-points li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(34, 211, 238, 0.16); color: var(--cyan);
  font-size: 0.78rem; font-weight: 800; text-align: center; line-height: 20px;
}

/* Mini phone visual in hero */
.hero-visual { display: flex; justify-content: center; }
.phone-mini {
  width: 300px; border-radius: 36px; padding: 12px;
  background: #050b18; border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  transform: rotate(2deg);
}
.phone-mini-screen { display: flex; flex-direction: column; gap: 8px; padding: 14px 8px; }
.bubble {
  max-width: 88%; padding: 10px 14px; border-radius: 18px;
  font-size: 0.86rem; line-height: 1.45;
}
.bubble.bot { background: #1b2f52; color: #eaf2ff; align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.user { background: var(--cyan); color: var(--navy); align-self: flex-end; border-bottom-right-radius: 6px; font-weight: 600; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--cloud); }
.section-sub { max-width: 44rem; color: var(--muted); font-size: 1.08rem; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 36px 0; }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.card h3 { font-size: 1.15rem; color: var(--navy); }
.card p, .card li { color: var(--muted); }
.problem-close { max-width: 46rem; font-size: 1.12rem; }
.problem-close strong { color: var(--navy); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--cyan);
  font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
}
.step h3 { color: var(--navy); font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }

/* Demo */
.demo-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 940px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-notes { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: var(--muted); }
.demo-notes kbd {
  font-family: inherit; background: var(--cloud); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 7px; font-size: 0.85em;
}
.live-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #22c55e; margin-right: 8px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.demo-phone { display: flex; justify-content: center; }
.phone {
  width: 340px; max-width: 100%;
  background: #0b1526; border-radius: 40px; padding: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 80px rgba(10, 26, 51, 0.35);
  display: flex; flex-direction: column;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--white); font-size: 0.8rem; font-weight: 600;
  padding: 6px 18px 10px;
}
.signal { display: inline-flex; gap: 3px; align-items: flex-end; }
.signal i { width: 3px; background: var(--white); border-radius: 2px; display: block; }
.signal i:nth-child(1) { height: 5px; } .signal i:nth-child(2) { height: 8px; }
.signal i:nth-child(3) { height: 11px; } .signal i:nth-child(4) { height: 14px; }
.phone-header {
  display: flex; gap: 10px; align-items: center;
  background: #132441; border-radius: 22px; padding: 10px 14px; margin-bottom: 10px;
  color: var(--white);
}
.phone-header strong { display: block; font-size: 0.92rem; line-height: 1.2; }
.presence { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.6); }
.chat {
  height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
  padding: 12px 8px; background: #060d1b; border-radius: 18px;
  scrollbar-width: thin;
}
.msg { max-width: 85%; padding: 9px 13px; border-radius: 18px; font-size: 0.88rem; line-height: 1.45; animation: rise 0.25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.bot { background: #22385f; color: #eef4ff; align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.user { background: var(--cyan); color: var(--navy); align-self: flex-end; border-bottom-right-radius: 6px; font-weight: 600; }
.msg .ts { display: block; font-size: 0.66rem; opacity: 0.65; margin-top: 4px; font-weight: 400; }
.typing { display: inline-flex; gap: 5px; padding: 12px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8fa6c9; animation: blink 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.18s; } .typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.quick { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 4px 2px; min-height: 44px; }
.quick button {
  border: 1.5px solid var(--cyan); background: transparent; color: var(--cyan);
  border-radius: 999px; padding: 7px 14px; font-size: 0.82rem; font-weight: 700; cursor: pointer;
}
.quick button:hover { background: var(--cyan); color: var(--navy); }
.composer { display: flex; gap: 8px; padding: 10px 4px 4px; }
.composer input {
  flex: 1; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2);
  background: #132441; color: var(--white); padding: 11px 16px; font-size: 0.9rem; outline: none;
}
.composer input:focus { border-color: var(--cyan); }
.composer input::placeholder { color: rgba(255,255,255,0.4); }
.composer button {
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: var(--cyan); color: var(--navy); font-size: 1.15rem; font-weight: 800; cursor: pointer;
}
.composer button:disabled { opacity: 0.4; cursor: default; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 2px; }
.sim-badge {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em;
  color: var(--amber); border: 1px solid rgba(245, 165, 36, 0.5);
  padding: 3px 9px; border-radius: 999px;
}
.link-btn { background: none; border: none; color: rgba(255,255,255,0.55); font-size: 0.8rem; cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--cyan); }

/* Pricing */
.pricing .card { display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--cyan); position: relative; box-shadow: 0 18px 44px rgba(34, 211, 238, 0.16); }
.flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--cyan); color: var(--navy); font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 14px; border-radius: 999px;
  margin: 0; white-space: nowrap;
}
.price { font-size: 2.6rem; font-weight: 800; color: var(--navy); margin: 6px 0; }
.price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan-for { font-size: 0.95rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 9px; flex: 1; }
.price-card li { position: relative; padding-left: 26px; font-size: 0.95rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan-dark); font-weight: 800; }
.price-card .btn { text-align: center; }
.fine { color: var(--muted); font-size: 0.9rem; max-width: 46rem; margin-top: 26px; }

/* FAQ */
.faq-wrap { max-width: 780px; }
.faq-list { display: grid; gap: 12px; margin-top: 28px; }
.faq-list details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); padding: 0; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; padding: 20px 24px; font-weight: 700; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 1.4rem; color: var(--cyan-dark); font-weight: 400; flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 24px 22px; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-inner .tagline { color: var(--cyan); font-weight: 700; margin: 0; }
.footer-inner .legal { font-size: 0.85rem; margin: 0; }

/* ================================================================
   Concept A additions (2026-11-07 launch build) — appended only;
   the incumbent system above is unchanged.
   ================================================================ */

/* Hero demo */
.demo-hint { margin-top: 22px; color: rgba(255,255,255,0.65); font-size: 0.95rem; max-width: 32rem; }
.hero .demo-phone { align-self: start; }

/* Post-demo capture card (revealed by intake.js on demo completion) */
.post-demo-card {
  margin-top: 12px; padding: 14px 16px;
  background: #10233f; border: 1px solid rgba(34,211,238,0.45); border-radius: 18px;
  color: #eaf2ff; text-align: left;
}
.post-demo-card p { margin: 0 0 10px; font-size: 0.95rem; line-height: 1.5; }
.post-demo-card .btn { width: 100%; text-align: center; }

/* Footer legal links */
.footer-links { display: flex; gap: 22px; justify-content: center; margin: 10px 0 4px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.footer-links a:hover { color: var(--cyan); }

/* ---------- Intake overlay + form ---------- */
body.intake-open { overflow: hidden; }
.intake-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 32px 16px; }
.intake-overlay[hidden] { display: none; }
.intake-backdrop { position: fixed; inset: 0; background: rgba(4, 10, 22, 0.72); }
.intake-dialog {
  position: relative; width: 100%; max-width: 560px;
  background: var(--white); color: var(--ink);
  border-radius: 20px; padding: 34px 34px 28px;
  box-shadow: 0 40px 120px rgba(3, 8, 20, 0.55);
}
.intake-dialog h2 { margin: 0 40px 8px 0; color: var(--navy); font-size: 1.6rem; letter-spacing: -0.01em; }
.intake-close {
  position: absolute; top: 14px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white);
  font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted);
}
.intake-close:hover { border-color: var(--cyan-dark); color: var(--cyan-dark); }
.intake-sub { color: var(--muted); margin: 0 0 20px; }
.intake-page-wrap { max-width: 620px; }
.intake-page-wrap h1 { color: var(--navy); letter-spacing: -0.01em; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: 0.98rem; }
.field .req { color: #c2274b; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 10px;
}
.field input:focus, .field select:focus { outline: 3px solid rgba(34,211,238,0.5); border-color: var(--cyan-dark); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #c2274b; }
.field-hint { margin: 6px 0 0; color: var(--muted); font-size: 0.9rem; }
.field-error { margin: 6px 0 0; color: #b01e40; font-size: 0.92rem; font-weight: 600; }
.field-consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.field-consent input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--cyan-dark); }
.field-consent label { font-weight: 400; color: var(--ink); font-size: 0.94rem; line-height: 1.55; margin: 0; }
.field-consent .field-error { grid-column: 2; }
.consent-ver { color: var(--muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.intake-errors {
  border: 1.5px solid #c2274b; background: #fdf0f3; color: #7c1430;
  border-radius: 10px; padding: 12px 16px; margin-bottom: 18px;
}
.intake-errors p { margin: 0 0 6px; }
.intake-errors ul { margin: 0; padding-left: 20px; }
.intake-submit { width: 100%; text-align: center; margin-top: 6px; }
.intake-alt { text-align: center; color: var(--muted); margin: 14px 0 0; font-size: 0.95rem; }
.intake-success h2 { margin-right: 0; }
.intake-success strong { color: var(--navy); }

/* ---------- Legal documents ---------- */
.doc-wrap { max-width: 760px; }
.doc-wrap h1 { color: var(--navy); letter-spacing: -0.01em; }
.doc-wrap h2 { color: var(--navy); margin-top: 34px; font-size: 1.25rem; }
.doc-wrap p, .doc-wrap li { color: var(--ink); }
.doc-meta { color: var(--muted); font-weight: 600; }

/* ---------- 404 ---------- */
.notfound-wrap { max-width: 640px; text-align: left; }
.notfound-wrap h1 { color: var(--navy); letter-spacing: -0.01em; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(34,211,238,0.65); outline-offset: 2px;
}

@media (max-width: 900px) {
  .hero .demo-phone { margin-top: 8px; }
  .intake-dialog { padding: 26px 20px 22px; }
}
