/* swarmlabs.eu — static marketing site.
   Ported from the monorepo's landing.css + products.css (design derived from
   the Framer "Quora" template, rebuilt as code). Palette and type scale:
   Orange #FF5E2B · Soft #F7F7F7 · Hard #EDEDED · Karla throughout.
   Karla is loaded from Google Fonts with display=swap; the fallback stack
   below is the real stack browsers use until (or unless) it arrives. */

:root {
  --lp-orange: #ff5e2b;
  --lp-orange-10: rgba(255, 94, 43, 0.1);
  --lp-black: #000;
  --lp-black-50: rgba(0, 0, 0, 0.5);
  /* Minimum opacity for text on white: 0.5 fails WCAG AA (3.95:1), 0.6 passes (5.74:1) */
  --lp-black-60: rgba(0, 0, 0, 0.6);
  /* Brand orange darkened just enough for AA on the orange-10 pill (4.57:1) */
  --lp-orange-text: #bf4620;
  --lp-black-80: rgba(0, 0, 0, 0.8);
  --lp-soft: #f7f7f7;
  --lp-hard: #ededed;
  --lp-white: #fff;
  --font-stack: Karla, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--lp-white);
  color: var(--lp-black);
  font-family: var(--font-stack);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

/* ── Nav ── */
.lp-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 28px; background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.lp-brand {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  color: var(--lp-black); font-weight: 700; font-size: 16px; letter-spacing: -0.02em;
}
/* The butterfly mark itself — the artwork carries the black/silver, so no chrome here. */
.lp-mark { width: 32px; height: auto; display: block; }
.lp-nav-left { display: flex; align-items: center; gap: 30px; min-width: 0; }
.lp-nav-links { display: flex; align-items: center; gap: 4px; }
.lp-nav-plain {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0;
  padding: 6px 10px; border-radius: 7px;
  font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  color: #5f6368; text-decoration: none; transition: color .15s, background .15s;
}
.lp-nav-plain:hover,
.lp-nav-plain[aria-current="page"] { color: var(--lp-black); background: rgba(0, 0, 0, 0.04); }
.lp-nav-actions { display: flex; align-items: center; gap: 10px; }
/* Nav button: compact rounded rect, distinct from the page-body pills. */
.lp-nav-cta {
  display: inline-flex; align-items: center;
  background: var(--lp-black); color: var(--lp-white);
  border: 1px solid var(--lp-black); border-radius: 9px;
  padding: 8px 15px; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none; transition: background .15s, border-color .15s;
}
.lp-nav-cta:hover { background: var(--lp-orange); border-color: var(--lp-orange); }

.lp-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lp-black); color: var(--lp-white);
  border-radius: 999px; padding: 11px 22px; font-size: 14px; font-weight: 600;
  text-decoration: none; border: 0; transition: background .15s, transform .15s;
}
.lp-pill:hover { background: var(--lp-orange); transform: translateY(-1px); }
.lp-pill-orange { background: var(--lp-orange); }
.lp-pill-orange:hover { background: var(--lp-black); }

/* ── Hero ── */
.lp-hero { position: relative; padding: 72px 32px 56px; overflow: hidden; }
.lp-hero-inner { max-width: 1200px; margin: 0 auto; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lp-orange-10); color: var(--lp-orange-text);
  border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600;
  margin: 0 0 24px;
}
.lp-hero h1 {
  margin: 0; font-size: clamp(44px, 7vw, 96px); font-weight: 700;
  line-height: 1.08; letter-spacing: -0.02em;
}
.lp-hero-row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-top: 40px; }
.lp-hero-quote { max-width: 460px; font-size: 15px; color: var(--lp-black-60); margin: 0; }
.lp-hero-quote strong { color: var(--lp-black); }
.lp-hero-side { display: flex; flex-direction: column; gap: 10px; text-align: right; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-black-60); margin: 0; }
.lp-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* Hero visual: the agent console card (CSS-only, replaces template device photo) */
.lp-console {
  margin-top: 48px; border-radius: 24px; background: #0d0d0d; color: var(--lp-white);
  padding: 28px; position: relative; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.4);
}
.lp-console::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255, 94, 43, 0.5), transparent 65%);
  pointer-events: none;
}
.lp-console-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.lp-console-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.lp-console-bar span { margin-left: 10px; font-size: 12px; color: rgba(255,255,255,.45); font-family: ui-monospace, monospace; }
.lp-msg { max-width: 560px; border-radius: 14px; padding: 13px 17px; font-size: 14px; line-height: 1.55; margin-bottom: 12px; position: relative; }
.lp-msg-user { background: rgba(255,255,255,.09); }
.lp-msg-agent { background: var(--lp-orange-10); border: 1px solid rgba(255, 94, 43, 0.35); margin-left: 40px; }
.lp-msg-agent b { color: var(--lp-orange); font-weight: 600; }
.lp-msg-meta { font-size: 11px; color: rgba(255,255,255,.4); margin: 2px 0 14px 57px; }

/* Customer credit under the console conversation */
.lp-console-customer {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px; color: rgba(255,255,255,.55); position: relative;
}
.lp-tp-mark {
  display: inline-flex; align-items: baseline; text-decoration: none;
  color: #fff; font-weight: 800; font-size: 14px; letter-spacing: -0.01em;
}
.lp-tp-mark span { font-weight: 800; }
.lp-tp-mark i {
  width: 7px; height: 7px; border: 2px solid #58aee0; border-radius: 50%;
  margin-left: 3px; align-self: flex-start; margin-top: 1px;
}
.lp-tp-mark:hover { color: #58aee0; }

/* Readiness journey steps */
.lp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 56px 0 0; text-align: left; padding: 0; list-style: none; }
.lp-step { background: var(--lp-soft); border-radius: 20px; padding: 28px 26px; }
.lp-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--lp-orange-10); color: var(--lp-orange-text);
  font-weight: 700; font-size: 16px;
  margin-bottom: 14px;
}
.lp-step h2 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.lp-step p { margin: 0; color: var(--lp-black-60); font-size: 14px; line-height: 1.55; }

/* ── Sections ── */
.lp-section { padding: 100px 32px; }
.lp-section-soft { background: var(--lp-soft); }
.lp-section-inner { max-width: 1200px; margin: 0 auto; }
.lp-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lp-orange-10); color: var(--lp-orange-text);
  border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
}
h2 { margin: 0 0 16px; font-size: clamp(32px, 4.5vw, 48px); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.lp-lead { color: var(--lp-black-60); font-size: 17px; max-width: 560px; margin: 0 0 48px; }

.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-card { background: var(--lp-white); border-radius: 20px; padding: 36px 32px; }
.lp-card .lp-stat { font-size: 44px; font-weight: 700; color: var(--lp-orange); margin-bottom: 8px; }
.lp-card h2, .lp-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; }
.lp-card p { margin: 0; color: var(--lp-black-60); font-size: 15px; }

.lp-products { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lp-product { border-radius: 24px; padding: 44px; min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; }
.lp-product-dark { background: #0d0d0d; color: var(--lp-white); position: relative; overflow: hidden; }
.lp-product-dark::after { content: ""; position: absolute; left: -100px; bottom: -140px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(255,94,43,.45), transparent 65%); }
.lp-product-light { background: var(--lp-soft); }
.lp-product h3 { margin: 0 0 12px; font-size: 28px; font-weight: 600; }
.lp-product p { margin: 0; font-size: 15px; line-height: 1.6; max-width: 420px; }
.lp-product-dark p { color: rgba(255,255,255,.6); }
.lp-product-light p { color: var(--lp-black-60); }
.lp-url-chip {
  align-self: flex-start; margin-top: 28px; background: var(--lp-white); border: 1px solid var(--lp-hard);
  border-radius: 999px; padding: 10px 18px; font-family: ui-monospace, monospace; font-size: 13px;
  color: var(--lp-black); text-decoration: none; position: relative;
}
.lp-url-chip b { color: var(--lp-orange); font-weight: 600; }
a.lp-url-chip:hover { border-color: var(--lp-orange); }
.lp-product-dark .lp-url-chip { background: rgba(255,255,255,.08); border: 0; color: #fff; }

.lp-faq { max-width: 760px; }
.lp-faq details { border-bottom: 1px solid var(--lp-hard); padding: 22px 0; }
.lp-faq summary { cursor: pointer; font-size: 17px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 22px; color: var(--lp-black-60); transition: transform .2s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { margin: 14px 0 0; color: var(--lp-black-60); font-size: 15px; line-height: 1.6; max-width: 640px; }

.lp-cta { text-align: center; }
.lp-cta .lp-lead { margin-left: auto; margin-right: auto; }

/* ── Products page (pd-) ── */
.pd-hero { padding: 72px 32px 48px; text-align: center; max-width: 760px; margin: 0 auto; }
.pd-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 5.6vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
}
.pd-hero p { margin: 0 0 26px; font-size: 17px; color: var(--lp-black-60); line-height: 1.6; }
.pd-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.pd-section { padding: 56px 32px; max-width: 1120px; margin: 0 auto; scroll-margin-top: 80px; }
.pd-section-head { margin-bottom: 28px; }
.pd-section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.02em;
}
.pd-section-head p { margin: 0; font-size: 16px; color: var(--lp-black-60); }

.pd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pd-card {
  background: var(--lp-white); border: 1px solid var(--lp-hard);
  border-radius: 16px; padding: 28px 26px;
  scroll-margin-top: 90px;
  transition: border-color .15s, transform .15s;
}
.pd-card:hover { border-color: rgba(0, 0, 0, 0.2); transform: translateY(-2px); }
.pd-card:target { border-color: var(--lp-orange); }
.pd-eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--lp-orange);
}
.pd-card h3 {
  margin: 0 0 12px;
  font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
}
.pd-card p { margin: 0 0 20px; font-size: 15px; line-height: 1.65; color: var(--lp-black-60); }
.pd-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pd-card li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--lp-black-80); }
.pd-tick { color: var(--lp-orange); font-weight: 700; flex-shrink: 0; }

.pd-cta { text-align: center; padding: 72px 32px 96px; background: var(--lp-soft); }
.pd-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.02em;
}
.pd-cta p { margin: 0 0 26px; font-size: 16px; color: var(--lp-black-60); }

/* ── Prose pages (privacy) ── */
.pv-hero { padding: 72px 32px 32px; max-width: 760px; margin: 0 auto; }
.pv-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 5.6vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
}
.pv-hero p { margin: 0; font-size: 15px; color: var(--lp-black-60); }
.prose { max-width: 760px; margin: 0 auto; padding: 24px 32px 96px; }
.prose h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin: 40px 0 12px; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.7; color: var(--lp-black-80); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--lp-orange); }

/* ── Footer ── */
.lp-footer { background: #0d0d0d; color: rgba(255,255,255,.55); padding: 80px 32px 0; overflow: hidden; }
.lp-footer-inner { max-width: 1200px; margin: 0 auto; }
.lp-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 64px; }
.lp-footer h2 { color: var(--lp-white); font-size: 14px; font-weight: 600; margin: 0 0 16px; }
.lp-footer a { display: block; color: rgba(255,255,255,.55); text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.lp-footer a:hover { color: var(--lp-white); }
.lp-footer .lp-brand { color: #fff; }
.lp-footer-tag { font-size: 14px; max-width: 320px; margin: 16px 0 0; }
.lp-footer-word {
  font-weight: 800;
  font-size: clamp(64px, 13vw, 190px); line-height: 0.85; letter-spacing: -0.02em;
  color: rgba(255,255,255,.08); text-align: center; user-select: none; margin: 0;
  transform: translateY(0.12em);
}
/* Footer logo: the transparent silver mark reads on the dark footer as-is. */
.lp-footer .lp-mark { width: 30px; height: auto; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .lp-hero-row { grid-template-columns: 1fr; align-items: start; }
  .lp-hero-side { flex-direction: row; text-align: left; flex-wrap: wrap; gap: 16px; }
  .lp-cards, .lp-products { grid-template-columns: 1fr; }
  .lp-steps { grid-template-columns: 1fr 1fr; }
  .lp-footer-grid { grid-template-columns: 1fr; }
  .lp-section { padding: 64px 20px; }
  .lp-hero { padding: 48px 20px 40px; }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-section { padding: 44px 20px; }
  .pd-hero { padding: 52px 20px 36px; }
  .pv-hero { padding: 52px 20px 24px; }
  .prose { padding: 16px 20px 72px; }
}

@media (max-width: 560px) {
  .lp-steps { grid-template-columns: 1fr; }
  .lp-nav { padding: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-pill, .pd-card { transition: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
