/* Fokus AI marketing site — light, flat, brand purple #8854F6 / ink #171717.
   No build step: served as-is from marketing/ at the platform root. */

:root {
  --brand: #8854f6;
  --brand-hover: #7a4af0;
  --brand-deep: #6a3ce0;
  --brand-soft: #efe9fe;
  --brand-tint: rgba(136, 84, 246, 0.08);
  --ink: #171717;
  --ink-2: #4b4b57;
  --ink-3: #7b7b88;
  --line: #e8e6f0;
  --bg: #ffffff;
  --bg-alt: #f7f5fd;
  --bg-dark: #171717;
  --navy: #0d1a5c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(23, 23, 23, 0.08);
  --shadow-brand: 0 18px 50px rgba(136, 84, 246, 0.18);
  --wrap: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; }
h1 { font-size: clamp(38px, 5.2vw, 60px); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.025em; }
h3 { font-size: 20px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--wrap), 100% - 32px); margin: 0 auto; }
.section { padding: 96px 0; scroll-margin-top: 72px; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head .sub, .sub { color: var(--ink-2); font-size: 18px; }
.eyebrow {
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.grad {
  background: linear-gradient(90deg, var(--brand) 0%, #b08bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(136, 84, 246, 0.28); }
.btn-primary:hover { background: var(--brand-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.section-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.25); }

/* ── nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.brand img { width: 108px; height: auto; }
.brand-ai {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--brand);
  margin-left: -4px;
}
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; }
.nav-burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── hero ── */
.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(136, 84, 246, 0.14), transparent 60%),
    radial-gradient(600px 400px at -10% 90%, rgba(136, 84, 246, 0.08), transparent 60%),
    #fff;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.trust li {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px;
}
.trust li::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
}

/* hero visual: the chat panel */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone { position: relative; width: 360px; max-width: 100%; }
.chat {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-brand), 0 0 0 1px var(--line);
  overflow: hidden;
  font-size: 13.5px;
}
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
}
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.chat-title { font-weight: 700; font-size: 15px; }
.chat-sub { font-size: 12px; opacity: 0.9; display: flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #5ee39a; display: inline-block; }
.chat-body { padding: 14px 16px 6px; background: #faf9fe; }
.disclosure { font-size: 11.5px; color: var(--ink-3); text-align: center; margin: 0 0 12px; }
.bubble {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 14px;
  margin-bottom: 10px;
  line-height: 1.45;
  position: relative;
}
.bubble.ai { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.user { background: var(--brand); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.ai-tag { display: block; margin-top: 6px; font-size: 10.5px; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.chips span {
  font-size: 12px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--brand); color: var(--brand); background: #fff;
}
.lead-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; margin: 0 0 10px; max-width: 86%;
}
.lead-title { font-weight: 600; margin-bottom: 8px; }
.field { height: 30px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; padding: 5px 9px; font-size: 12px; color: var(--ink-3); }
.send { height: 32px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 12.5px; }
.chat-input {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; background: #fff;
}
.chat-input i { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); display: block; position: relative; }
.chat-input i::after {
  content: ""; position: absolute; left: 11px; top: 9px; width: 8px; height: 8px;
  border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg);
}
.launcher {
  position: absolute; right: -18px; bottom: -22px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 10px 28px rgba(136,84,246,0.4);
}
.launcher::after {
  content: ""; position: absolute; inset: 17px 16px 19px;
  border: 2.5px solid #fff; border-radius: 8px 8px 8px 2px;
}
.float-note {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  font-size: 12.5px;
  display: flex; flex-direction: column; gap: 2px;
  animation: floaty 6s ease-in-out infinite;
}
.float-note strong { font-size: 13px; }
.float-note span { color: var(--ink-3); }
.note-1 { left: -84px; top: 150px; }
.note-2 { right: -84px; top: 56%; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .float-note { animation: none; } html { scroll-behavior: auto; } }

/* ── steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { padding: 28px 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.steps h3 { margin-top: 14px; }
.steps p { color: var(--ink-2); margin: 0; font-size: 16px; }
.num {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  font-weight: 800; display: grid; place-items: center; font-size: 17px;
}

/* ── products ── */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(136,84,246,0.4); }
.product-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--brand); display: grid; place-items: center; margin-bottom: 18px;
}
.product-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.product-icon circle { fill: #fff; stroke: none; }
.product h3 { font-size: 22px; margin-bottom: 6px; }
.product-tag { color: var(--ink-2); font-weight: 500; margin-bottom: 16px; font-size: 16px; }
.product ul li {
  position: relative; padding-left: 24px; margin-bottom: 9px;
  font-size: 15.5px; color: var(--ink-2); line-height: 1.5;
}
.product ul li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px rgba(136,84,246,0.35);
}
.product ul li::after {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 4px; height: 7px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg);
}

/* ── lead loop ── */
.loop { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 14px; align-items: start; }
.loop-step { padding: 26px 22px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); min-height: 100%; }
.loop-ico { font-size: 26px; margin-bottom: 10px; }
.loop-step h3 { font-size: 18px; margin-bottom: 6px; }
.loop-step p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.loop-arrow { align-self: center; color: var(--brand); font-size: 26px; font-weight: 300; padding: 0 2px; }

/* ── portal ── */
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink-2); font-size: 16px; }
.checks li strong { color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand);
}
.checks li::after {
  content: ""; position: absolute; left: 6px; top: 7px; width: 4px; height: 8px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg);
}
.portal-card {
  background: var(--bg-dark); color: #fff; border-radius: 20px; padding: 22px;
  box-shadow: var(--shadow-brand); font-size: 14px;
  border: 1px solid #2a2a2a;
}
.pc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pc-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.pc-pill { font-size: 12px; background: rgba(136,84,246,0.2); color: #c4b5fd; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(136,84,246,0.45); }
.pc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.pc-kpis > div { background: #222; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; border: 1px solid #2e2e2e; }
.pc-k { color: #9a9aa6; font-size: 12px; }
.pc-v { font-size: 22px; font-weight: 700; }
.pc-list { display: flex; flex-direction: column; }
.pc-row { display: flex; align-items: center; gap: 10px; padding: 11px 4px; border-top: 1px solid #2a2a2a; }
.pc-row span:nth-child(2) { flex: 1; color: #e6e6ea; }
.pc-row em { font-style: normal; color: #9a9aa6; font-size: 12.5px; }
.pc-dot { width: 8px; height: 8px; border-radius: 50%; background: #55555f; flex: none; }
.pc-dot.new { background: var(--brand); box-shadow: 0 0 0 4px rgba(136,84,246,0.25); }
.pc-dot.ok { background: #5ee39a; }
.pc-foot { margin-top: 12px; color: #9a9aa6; font-size: 12.5px; text-align: right; }

/* ── trust ── */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.trust-item { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; border-left: 4px solid var(--brand); }
.trust-item h3 { font-size: 19px; }
.trust-item p { color: var(--ink-2); margin: 0; font-size: 16px; }

/* ── why (dark) ── */
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark .eyebrow { color: #c4b5fd; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.why h3 { color: #fff; }
.why p { color: #c9c9d2; margin: 0; font-size: 16px; }
.why > div { padding-top: 18px; border-top: 2px solid var(--brand); }

/* ── faq ── */
.faq-wrap { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 600; font-size: 17px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--brand); font-weight: 300; transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 0 18px; margin: 0; font-size: 16px; max-width: 720px; }

/* ── contact ── */
.section-cta { background: linear-gradient(180deg, var(--bg-alt), #fff); }
.cta-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.cta-grid .sub em { font-style: normal; color: var(--brand); font-weight: 600; }
.contact-direct { display: flex; flex-direction: column; gap: 6px; margin-top: 22px; font-weight: 600; font-size: 18px; }
.demo-form {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.demo-form .opt { color: var(--ink-3); font-weight: 400; }
.demo-form input[type="text"], .demo-form input[type="email"], .demo-form input[type="tel"], .demo-form input[type="url"], .demo-form textarea {
  font: inherit; font-weight: 400; font-size: 15px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.demo-form input:focus, .demo-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.demo-form textarea { resize: vertical; min-height: 84px; }
.demo-form .consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.demo-form .consent input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.demo-form .btn { align-self: flex-start; margin-top: 4px; }
.demo-form.sent .btn, .demo-form.sent .f-row, .demo-form.sent > label { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 0; font-size: 14.5px; color: var(--ink-2); min-height: 1.2em; }
.form-msg.ok { color: #1f7a4d; font-weight: 600; font-size: 17px; }
.form-msg.err { color: #b42318; }
.is-invalid { border-color: #b42318 !important; }

/* ── footer ── */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 15px; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer .brand { display: inline-flex; margin-bottom: 0; }
.footer .brand img { width: 100px; }
.footer p { margin-top: 14px; line-height: 1.7; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--ink-2); margin-bottom: 8px; }
.footer-grid a:hover { color: var(--brand); }
.footer p a { display: inline; margin: 0; }
.footer-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }

/* ── responsive ── */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { padding: 24px 20px 30px; }
  .note-1 { left: 0; }
  .note-2 { right: 0; }
  .steps, .products, .why { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr 1fr; }
  .loop-arrow { display: none; }
  .portal-grid, .cta-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 1100px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav.open .nav-row { flex-wrap: wrap; height: auto; padding-bottom: 16px; }
  .nav.open .brand, .nav.open .nav-burger { height: 72px; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 2px; width: 100%; order: 3;
    margin: 0; padding-top: 6px; border-top: 1px solid var(--line);
  }
  .nav.open .nav-links a { padding: 10px 2px; font-size: 16px; }
  .nav.open .nav-cta { display: flex; flex-direction: column; width: 100%; order: 4; margin: 10px 0 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .hero-actions .btn { width: 100%; }
  .phone { width: 100%; }
  .launcher { right: 6px; }
  .float-note { display: none; }
  .loop { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .demo-form { padding: 20px; }
  .demo-form .btn { width: 100%; }
}
