/* TENLYRA AI marketing site — no framework, no build step, vanilla CSS. */

:root {
  --ink: #14142b;
  --ink-soft: #4a4a68;
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --primary: #4338ca;
  --primary-dark: #362da3;
  --accent: #f97350;
  --border: #e6e6f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 20, 43, 0.06);
  --max-width: 1160px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); text-align: center; }
h3 { font-size: 1.15rem; }
p { color: var(--ink-soft); margin: 0 0 12px; }
a { color: inherit; text-decoration: none; }

.section-sub { text-align: center; max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(67, 56, 202, 0.28); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--border); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { color: var(--ink-soft); padding: 12px 16px; }
.btn-ghost:hover { color: var(--primary); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.logo span { color: var(--primary); }
.logo-icon { width: 24px; height: 24px; flex-shrink: 0; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 10px; }

/* Sections */
.section { padding: 88px 0; }
.alt-bg { background: var(--bg-soft); }

/* Hero */
.hero { padding: 120px 0 90px; text-align: center; background: radial-gradient(120% 120% at 50% -10%, #ece9fe 0%, #ffffff 55%); }
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-sub { font-size: 1.2rem; margin: 0 auto 32px; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 0.85rem; color: #8a8aa3; }

/* Problem */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 44px; }
.problem-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; }
.problem-num { font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-bottom: 10px; }

/* Solution */
.solution-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.solution-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.solution-list li { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; font-weight: 600; box-shadow: var(--shadow); }
.solution-list li::before { content: "✓ "; color: var(--primary); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 48px; }
.step { text-align: center; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 16px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 48px; }
/* --accent's real, live use: a decorative top border only — never as text color (verified
   WCAG contrast: #F97350 on white is 2.76:1, below the 3:1 minimum even for large text, so it
   must never carry text; as pure decoration it isn't a contrast-rule surface at all). */
.feature-card { border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 26px; background: #fff; box-shadow: var(--shadow); }

/* WhatsApp mock */
.whatsapp-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.whatsapp-mock { background: #e9edf1; border-radius: 20px; padding: 22px; display: grid; gap: 10px; }
.chat-bubble { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 0.92rem; line-height: 1.4; }
.chat-in { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-out { background: #d9fdd3; align-self: flex-end; margin-left: auto; border-bottom-right-radius: 4px; }

/* Industries */
.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 44px; }
.industry-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 20px; text-align: center; font-weight: 600; }

/* Pricing */
.pricing { text-align: center; }
.pricing .btn { margin-top: 24px; }

/* Real-UI-pattern mockups (leads/follow-up/appointments/analytics/AI quality sections) —
   illustrative, styled UI patterns matching the real product's look, never a claimed screenshot
   and never real metrics/testimonials (generic labels only). */
.ui-mock { max-width: 560px; margin: 36px auto 0; }

.lead-list-mock { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.lead-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 0.92rem; font-weight: 600; }
.lead-row:last-child { border-bottom: none; }
.lead-pill { font-size: 0.78rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.lead-pill-hot { background: rgba(249,115,80,0.14); color: #c04a2e; }
.lead-pill-warm { background: rgba(67,56,202,0.1); color: var(--primary); }
.lead-pill-booked { background: rgba(26,122,76,0.12); color: #1a7a4c; }

.followup-timeline-mock { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 0; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.tl-step { display: flex; align-items: center; gap: 8px; padding: 6px 4px; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); display: inline-block; }
.tl-dot-muted { background: #c7c7d6; }
.tl-dot-accent { background: var(--accent); }
.tl-dot-done { background: #1a7a4c; }
.tl-line { width: 28px; height: 2px; background: var(--border); }

.slots-mock { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.slot-chip { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 0.9rem; }
.slot-chip-selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.slot-chip-taken { color: #b8b8c8; text-decoration: line-through; }

.source-tags-mock { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.source-tag { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 9px 16px; font-weight: 600; font-size: 0.88rem; color: var(--ink-soft); }

.quality-check-mock { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; text-align: left; }
.qc-message { font-size: 0.95rem; font-style: italic; color: var(--ink); margin-bottom: 14px; }
.qc-checks { display: flex; flex-wrap: wrap; gap: 10px; }
.qc-check { background: rgba(26,122,76,0.1); color: #1a7a4c; font-weight: 700; font-size: 0.82rem; padding: 5px 12px; border-radius: 999px; }

@media (max-width: 560px) {
  .lead-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .followup-timeline-mock { flex-direction: column; }
  .tl-line { width: 2px; height: 16px; }
}

/* Lead form */
.lead-form { max-width: 620px; margin: 40px auto 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); text-align: left; }
.lead-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 4px; }
.lead-form label { display: block; font-size: 0.85rem; font-weight: 600; margin: 14px 0 6px; }
.lead-form input, .lead-form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; color: var(--ink);
}
.lead-form textarea { resize: vertical; }
.lead-form-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
.lead-form-consent input { width: auto; margin-top: 3px; }
.lead-form button { margin-top: 20px; width: 100%; background: var(--primary); color: #fff; border: none; }
.lead-form button:hover { background: var(--primary-dark); }
.lead-form-status { text-align: center; font-size: 0.9rem; margin: 12px 0 0; min-height: 1.2em; }
.lead-form-status.ok { color: #1a7a4c; }
.lead-form-status.error { color: #c0392b; }
@media (max-width: 560px) {
  .lead-form { padding: 22px; }
  .lead-form-grid { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-list { max-width: 720px; margin: 44px auto 0; display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; }
summary { font-weight: 600; cursor: pointer; }
details p { margin-top: 10px; }

/* Final CTA */
.final-cta { background: linear-gradient(135deg, var(--primary) 0%, #6d28d9 100%); color: #fff; text-align: center; }
.final-cta h2, .final-cta p { color: #fff; }
.final-cta .btn-outline { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); color: #fff; }
.final-cta .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.final-cta .btn-primary:hover { background: #f1f0ff; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0; background: var(--bg-soft); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-brand p { max-width: 260px; font-size: 0.9rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); font-size: 0.9rem; }
.footer-meta p { font-size: 0.82rem; color: #9a9ab0; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .solution-inner, .whatsapp-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-inner { height: auto; padding: 12px 0; }
  .header-cta .btn-ghost { display: none; } /* WhatsApp CTA still reachable in hero/final-cta; avoids header overflow on narrow phones */
  .header-cta .btn-primary { padding: 10px 16px; font-size: 0.88rem; }
  .hero { padding: 90px 0 60px; }
  .section { padding: 56px 0; }
}
