/* LeadOcto docs landing - ported from design bundle 08-docs.html.
 *
 * The prototype rendered docs inside a logged-in app shell (workspace
 * card, "free plan" card, dashboard sidebar). On the public marketing
 * site that chrome does not belong, so the app shell is dropped and
 * the page uses the shared topnav + footer (lo-chrome.css). The hero,
 * search and the 9 topic tiles are ported verbatim. */

.docs-page { background: var(--surface-sunken); }

/* ===== Hero + search ===== */
.docs-hero {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  padding: 72px 0 56px;
  text-align: center;
}
.docs-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 70% at 88% 0%, rgba(27, 181, 168, 0.12) 0%, transparent 60%),
    radial-gradient(40% 50% at 0% 100%, rgba(27, 181, 168, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.docs-hero-inner { position: relative; max-width: 720px; margin: 0 auto; padding: 0 var(--s7); }
.docs-hero .eyebrow-row { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.docs-hero h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.05; letter-spacing: -0.025em;
  font-weight: 700; margin: 0 0 12px; color: var(--ink); text-wrap: balance;
}
.docs-hero p.sub {
  margin: 0 auto 28px; color: var(--ink-700);
  font-size: 17px; line-height: 1.5; max-width: 600px;
}

/* Search bar */
.docs-search {
  display: flex; align-items: center;
  background: #fff;
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  padding: 6px 6px 6px 18px;
  height: 56px; max-width: 600px; margin: 0 auto;
  box-shadow: 0 2px 4px rgba(10, 18, 20, 0.04);
  transition: border-color 120ms, box-shadow 120ms;
  position: relative;
}
.docs-search:focus-within {
  border-color: var(--turquoise-500);
  box-shadow: 0 0 0 4px rgba(27, 181, 168, 0.14);
}
.docs-search svg { color: var(--ink-500); flex-shrink: 0; }
.docs-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: 500 16px/1 var(--font-sans); color: var(--ink); margin-left: 12px;
}
.docs-search input::placeholder { color: var(--ink-500); }
.docs-search .go {
  height: 44px; padding: 0 18px; border-radius: 9px;
  background: var(--turquoise-500); color: var(--ink);
  border: 0; font: 600 14px/1 var(--font-sans);
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.docs-search .go:hover { background: #20cdbf; }

/* Search results dropdown */
.docs-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: var(--shadow-pop);
  overflow: hidden; text-align: left; z-index: 20;
  max-height: 360px; overflow-y: auto;
}
.docs-search-results.hidden { display: none; }
.docs-search-results a {
  display: block; padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
}
.docs-search-results a:last-child { border-bottom: 0; }
.docs-search-results a:hover { background: #FBFBF9; }
.docs-search-results .r-title { font: 600 14px/1.3 var(--font-sans); color: var(--ink); }
.docs-search-results .r-cat {
  font: 400 11px/1 var(--font-mono);
  letter-spacing: 0.06em; color: var(--ink-500); margin-top: 4px;
}
.docs-search-results .r-empty {
  padding: 28px; text-align: center;
  font: 400 13px/1 var(--font-mono); color: var(--ink-500);
}

.quicktags {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-top: 20px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.04em; color: var(--ink-500);
}
.quicktags .q-label { color: var(--ink-700); align-self: center; margin-right: 2px; }
.quicktag {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 7px 12px; color: var(--ink-700);
  transition: border-color 120ms, color 120ms, background 120ms;
}
.quicktag:hover { border-color: var(--turquoise-500); color: var(--ink); background: var(--turquoise-50); }

/* ===== Body ===== */
.docs-body { padding: 48px var(--s7) 96px; max-width: 1200px; margin: 0 auto; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 24px;
}
.section-head h2 {
  font-size: 22px; line-height: 1; letter-spacing: -0.01em;
  font-weight: 600; margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.section-head h2::before {
  content: ""; width: 3px; height: 18px; border-radius: 2px;
  background: var(--turquoise-500);
}

/* ===== Topic tiles ===== */
.cats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.cat {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 24px 24px 22px;
  color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.cat:hover {
  transform: translateY(-4px);
  border-color: var(--turquoise-300);
  box-shadow: var(--shadow-pop);
}
.cat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--turquoise-100); color: var(--turquoise-900);
  display: grid; place-items: center;
}
.cat h3 {
  font-size: 18px; line-height: 1.2; letter-spacing: -0.01em;
  font-weight: 600; margin: 0;
}
.cat p { margin: 0; color: var(--ink-700); font-size: 14px; line-height: 1.5; }
.cat .articles {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font: 400 11px/1 var(--font-mono);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.cat .articles .count { color: var(--turquoise-700); font-weight: 700; }

/* ===== Contact panel ===== */
.contact-panel {
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-sm);
  padding: 36px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  position: relative; overflow: hidden; margin-top: 48px;
}
.contact-panel::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 90% 50%, rgba(27, 181, 168, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.contact-panel > * { position: relative; z-index: 1; }
.contact-meta {
  display: flex; flex-direction: column; gap: 8px;
  border-right: 1px solid rgba(255,255,255,0.08);
  padding-right: 28px;
}
.contact-panel .contact-meta:last-child { border-right: 0; padding-right: 0; }
.contact-meta .icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(125, 214, 205, 0.12); color: var(--turquoise-300);
  display: grid; place-items: center; margin-bottom: 6px;
}
.contact-meta h3 { margin: 0; font: 600 16px/1.2 var(--font-sans); color: var(--paper); }
.contact-meta p { margin: 0; color: rgba(250, 250, 247, 0.65); font-size: 13.5px; line-height: 1.5; }
.contact-meta .meta-line {
  margin-top: 4px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; color: rgba(250, 250, 247, 0.5);
}
.contact-meta .btn { align-self: flex-start; margin-top: 4px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .docs-hero-inner, .docs-body { padding-left: var(--s5); padding-right: var(--s5); }
}
@media (max-width: 860px) {
  .cats { grid-template-columns: 1fr 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-meta { border-right: 0; padding-right: 0; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .contact-panel .contact-meta:last-child { padding-bottom: 0; border-bottom: 0; }
}
@media (max-width: 560px) {
  .docs-hero { padding: 48px 0 40px; }
  .cats { grid-template-columns: 1fr; }
  .docs-search .go span { display: none; }
}
