/* Core public theme and homepage components, shared through marketing/base.html.
   Palette from Webflow AI-X template: near-black navy, electric blue, cyan glow. */
.home-theme {
  --home-ink: #f0f0f8;
  --home-green: #0068cc;
  --home-accent: #0068cc;
  --home-cyan: #38bdf8;
  --home-muted: #94a3b8;
  --home-cream: #05050f;
  --home-paper: #05050f;
  --home-surface: #0d111a;
  --home-line: #1e293b;
  --home-glow: rgba(0, 104, 204, .28);
  background: var(--home-paper);
  color: var(--home-ink);
  color-scheme: dark;
}

.home-theme .container { max-width: 1184px; padding-inline: 24px; }
.home-theme h1, .home-theme h2, .home-theme h3 { color: inherit; text-wrap: balance; }
.home-theme h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.14; letter-spacing: -.045em; }
.home-theme h3 { font-size: 1.4rem; line-height: 1.3; letter-spacing: -.025em; }
.home-theme a { color: var(--home-cyan); }
.home-theme a:focus-visible, .home-theme button:focus-visible, .home-theme summary:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 5px;
}
.home-theme main:focus { outline: none; }
.home-theme section[tabindex="-1"]:focus { outline: none; }
.home-theme section[id], .home-theme main[id] { scroll-margin-top: 96px; }
.home-skip-link { position: fixed; top: 8px; left: 16px; z-index: 1100; padding: 12px 20px; background: var(--home-surface); color: var(--home-ink); border: 1px solid var(--home-line); border-radius: 8px; transform: translateY(-160%); }
.home-skip-link:focus { transform: translateY(0); }

/* Navigation */
.home-theme .la-navbar { padding-block: 14px; background: rgba(5, 5, 15, .92); border-color: var(--home-line); backdrop-filter: blur(16px); }
.home-theme .navbar-brand { font-size: 1.1rem; margin-right: 20px; color: var(--home-ink) !important; }
.home-theme .home-wordmark,
.public-theme .home-wordmark {
  font-family: var(--la-font-display);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: #fff;
  text-decoration: none;
}
.home-theme .navbar-brand.home-wordmark {
  font-size: 1.22rem;
}
.home-theme .home-wordmark-lg {
  font-size: 1.45rem;
  margin: 0;
  color: #fff;
}
.public-theme .public-brand.home-wordmark {
  font-size: 1.2rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.home-theme .la-navbar .nav-link { color: var(--home-muted); font-size: .93rem; padding: 12px; border-radius: 8px; }
.home-theme .la-navbar .nav-link:hover { background: rgba(0, 104, 204, .14); color: var(--home-ink) !important; }
.home-theme .navbar-toggler { min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid var(--home-line); border-radius: 10px; }
.home-theme .navbar-toggler-icon { filter: invert(1) brightness(1.4); }
.home-nav-login { margin-left: 18px; }
.home-nav-action { margin-left: 12px; }
.home-nav-action .home-button { min-height: 44px; padding: 10px 18px; font-size: .9rem; }

/* Shared homepage components */
.home-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; font-size: .75rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--home-cyan); }
.home-kicker > span { width: 7px; height: 7px; border-radius: 50%; background: var(--home-accent); box-shadow: 0 0 0 5px rgba(0, 104, 204, .22), 0 0 18px rgba(56, 189, 248, .45); }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.home-theme .home-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 50px; padding: 13px 22px; border: 1px solid transparent; border-radius: 10px; font-size: .95rem; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background-color .15s, box-shadow .15s, border-color .15s; }
.home-theme .home-button-primary { background: var(--home-accent); color: white; box-shadow: 0 0 24px rgba(0, 104, 204, .35), 0 4px 14px rgba(0, 0, 0, .35); }
.home-theme .home-button-primary:hover { background: #0052a3; color: white; box-shadow: 0 0 32px rgba(56, 189, 248, .4), 0 6px 18px rgba(0, 0, 0, .4); }
.home-theme .home-button-secondary { background: transparent; border-color: rgba(255, 255, 255, .22); color: var(--home-ink); }
.home-theme .home-button-secondary:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .4); }
.home-theme .home-button-light { background: var(--home-surface); color: var(--home-ink); border-color: var(--home-line); }
.home-theme .home-button-light:hover { background: #151b28; border-color: #334155; }
.home-section { padding-block: 84px; }

/* Hero — full-bleed Webflow AI glow behind the conversation preview */
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 60px;
  padding-bottom: 8px;
  background-color: var(--home-cream);
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(5, 5, 15, .94) 0%, rgba(5, 5, 15, .72) 38%, rgba(5, 5, 15, .28) 68%, rgba(5, 5, 15, .55) 100%),
    linear-gradient(180deg, rgba(5, 5, 15, .35) 0%, transparent 28%, transparent 72%, rgba(5, 5, 15, .85) 100%),
    url("../img/home-hero-glow.jpg") 72% 58% / cover no-repeat;
  pointer-events: none;
}
.home-hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 52px; position: relative; }
.home-hero-grid > * { min-width: 0; }
.home-hero h1 { font-size: clamp(2.65rem, 4.6vw, 4rem); line-height: 1.07; letter-spacing: -.055em; margin: 0; color: #fff; }
.home-hero h1 em, .home-cta h2 em { font-family: Georgia, serif; font-weight: 400; color: var(--home-cyan); }
.home-hero-copy { max-width: 510px; margin: 22px 0 0; color: var(--home-muted); font-size: 1.08rem; line-height: 1.75; }
.home-reassurance { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 20px 0 0; list-style: none; color: var(--home-muted); font-size: .83rem; }
.home-reassurance span { color: var(--home-cyan); margin-right: 5px; }
.home-preview {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(13, 17, 26, .78);
  box-shadow:
    0 0 80px rgba(56, 189, 248, .22),
    0 0 120px rgba(0, 104, 204, .28),
    0 24px 50px rgba(0, 0, 0, .45);
  backdrop-filter: blur(14px);
}
.home-preview-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--home-line); color: var(--home-muted); font-size: .75rem; }
.home-preview-dots { display: flex; gap: 4px; }
.home-preview-dots i { width: 6px; height: 6px; border-radius: 50%; background: #475569; }
.home-preview-label { margin-left: auto; padding: 2px 7px; border-radius: 4px; background: rgba(0, 104, 204, .18); color: var(--home-cyan); font-size: .68rem; }
.home-chat { margin: 18px 18px 0; border: 1px solid var(--home-line); border-radius: 12px; overflow: hidden; }
.home-chat-head { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 11px 11px 0 0; background: linear-gradient(135deg, #0068cc, #0ea5e9); color: white; }
.home-agent-icon { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: #ffffff20; font-size: 1.3rem; }
.home-chat-head strong { display: block; font-size: .92rem; }
.home-chat-head div > span { display: block; margin-top: 2px; font-size: .73rem; color: #dbeafe; }
.home-status-dot { width: 7px; height: 7px; flex-shrink: 0; margin-left: auto; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.home-chat-body { padding: 16px; background: #0a0e16; }
.home-message { width: fit-content; max-width: 89%; margin: 0 0 12px; padding: 11px 13px; border-radius: 12px; font-size: .85rem; line-height: 1.5; overflow-wrap: anywhere; }
.home-message:last-child { margin-bottom: 0; }
.home-message-agent { background: #151b28; border: 1px solid var(--home-line); border-bottom-left-radius: 3px; color: var(--home-ink); }
.home-message-visitor { margin-left: auto; background: #0068cc; color: white; border-bottom-right-radius: 3px; }
.home-lead-result { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px; border-top: 1px solid var(--home-line); background: rgba(0, 104, 204, .12); border-radius: 0 0 11px 11px; }
.home-result-icon { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border: 1px solid rgba(56, 189, 248, .35); border-radius: 50%; color: var(--home-cyan); }
.home-lead-result div { flex: 1; min-width: 0; }
.home-lead-result strong, .home-lead-result div span { display: block; }
.home-lead-result strong { font-size: .83rem; color: #fff; }
.home-lead-result div span { margin-top: 2px; font-size: .74rem; color: var(--home-muted); }
.home-result-badge { color: var(--home-cyan); font-size: .68rem; padding: 3px 7px; border: 1px solid rgba(56, 189, 248, .3); border-radius: 5px; }
.home-preview figcaption { padding: 13px 18px; font-size: .75rem; text-align: center; color: var(--home-muted); }
.home-preview figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.home-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 48px 0 0; padding-block: 25px; border-top: 1px solid var(--home-line); }
.home-metrics > div { padding-inline: 24px; border-left: 1px solid var(--home-line); }
.home-metrics > div:first-child { border: 0; padding-left: 0; }
.home-metrics dt { font-size: 1.15rem; font-weight: 600; color: #fff; }
.home-metrics dd { margin: 5px 0 0; color: var(--home-muted); font-size: .8rem; line-height: 1.5; }

/* Compatibility and feature cards */
.home-platforms { padding-block: 27px; border-block: 1px solid var(--home-line); text-align: center; background: #080810; }
.home-platforms p { margin: 0; color: var(--home-muted); font-size: .8rem; }
.home-platforms ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 48px; padding: 0; margin: 16px 0; list-style: none; font-family: var(--la-font-display); font-size: 1.1rem; font-weight: 700; color: #cbd5e1; }
.home-platforms .home-platform-note { font-size: .73rem; }
.home-section-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 64px; margin-bottom: 32px; }
.home-section-heading h2 { margin: 0; color: #fff; }
.home-section-heading > p { margin: 0 0 5px; color: var(--home-muted); line-height: 1.75; }
.home-feature-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.home-feature {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: rgba(13, 17, 26, .85);
  min-width: 0;
}
.home-feature-large {
  grid-row: span 2;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0, 104, 204, .2), transparent 60%),
    #0d111a;
}
.home-feature-dark {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(56, 189, 248, .18), transparent 55%),
    #0a0e18;
  color: white;
  border-color: rgba(56, 189, 248, .25);
}
.home-feature-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .75rem; color: var(--home-muted); }
.home-feature-tag { font-weight: 600; color: var(--home-cyan); }
.home-feature-copy h3 { margin: 0 0 12px; color: #fff; }
.home-feature-copy p { margin: 0; color: var(--home-muted); font-size: .94rem; line-height: 1.7; }
.home-feature-dark .home-feature-top, .home-feature-dark .home-feature-copy p { color: #94a3b8; }
.home-knowledge-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; min-height: 220px; padding-block: 12px; }
.home-knowledge-file, .home-knowledge-answer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: #121826;
  width: min(100%, 340px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.home-knowledge-file > span, .home-knowledge-answer > span { font-size: 1.6rem; }
.home-knowledge-file strong, .home-knowledge-file small { display: block; }
.home-knowledge-file strong { font-size: .92rem; color: #fff; }
.home-knowledge-file small { font-size: .78rem; color: var(--home-muted); }
.home-knowledge-file b { margin-left: auto; color: var(--home-cyan); }
.home-knowledge-line { height: 32px; border-left: 2px dashed rgba(56, 189, 248, .35); }
.home-knowledge-answer { background: rgba(0, 104, 204, .18); border-color: rgba(0, 104, 204, .35); }
.home-knowledge-answer p { margin: 0; font-size: .9rem; color: #e2e8f0; }
.home-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.home-detail-tags span { padding: 5px 9px; border: 1px solid var(--home-line); border-radius: 6px; background: #121826; font-size: .75rem; color: var(--home-muted); }
.home-theme .home-feature-link { display: inline-flex; align-items: center; gap: 12px; align-self: start; min-height: 44px; margin-top: auto; color: var(--home-cyan); font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; }

/* Setup and accessible, native FAQ disclosures */
.home-how {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: white;
  border-block: 1px solid var(--home-line);
  background-color: #080810;
}
.home-how::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 8, 16, .88) 0%, rgba(8, 8, 16, .72) 50%, rgba(8, 8, 16, .9) 100%),
    url("../img/home-hero-glow.jpg") 50% 70% / cover no-repeat;
  opacity: .85;
  pointer-events: none;
}
.home-how-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
.home-how .home-kicker { color: var(--home-cyan); }
.home-how-copy { margin: 22px 0; max-width: 370px; color: #94a3b8; }
.home-steps { padding: 0; margin: 0; list-style: none; }
.home-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 20px; padding-block: 23px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.home-steps li:first-child { border-top: 1px solid rgba(255, 255, 255, .1); }
.home-steps li > span { padding-top: 4px; color: var(--home-cyan); font-family: var(--la-font-mono); font-size: .8rem; }
.home-steps h3 { margin: 0 0 8px; font-size: 1.22rem; }
.home-steps p { margin: 0; color: #94a3b8; font-size: .95rem; }
.home-faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; }
.home-faq h2 { margin-bottom: 22px; color: #fff; }
.home-faq p { color: var(--home-muted); }
.home-faq a { text-decoration: underline; text-underline-offset: 4px; }
.home-faq details { border-bottom: 1px solid var(--home-line); }
.home-faq details:first-child { border-top: 1px solid var(--home-line); }
.home-faq summary { position: relative; padding: 22px 32px 22px 0; font-weight: 600; cursor: pointer; list-style: none; color: #fff; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after { content: "+"; position: absolute; right: 3px; top: 20px; font-size: 1.3rem; font-weight: 400; color: var(--home-muted); }
.home-faq details[open] summary::after { content: "−"; color: var(--home-cyan); }
.home-faq details p { margin: 0; padding: 0 24px 22px 0; font-size: .95rem; line-height: 1.7; }
.home-cta { padding-bottom: 84px; }
.home-cta-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 60px 28px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background-color: #0d111a;
  text-align: center;
  box-shadow: 0 0 80px rgba(0, 104, 204, .2);
}
.home-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 5, 15, .72) 0%, rgba(5, 5, 15, .55) 45%, rgba(5, 5, 15, .82) 100%),
    url("../img/home-hero-glow.jpg") 50% 45% / cover no-repeat;
  pointer-events: none;
}
.home-cta-card .home-kicker, .home-cta-card .home-actions { justify-content: center; position: relative; }
.home-cta-card h2 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); margin-bottom: 20px; color: #fff; position: relative; }
.home-cta-card > p:not(.home-kicker) { color: var(--home-muted); margin-bottom: 0; position: relative; }
.home-theme .la-footer { margin-top: 0 !important; border-color: var(--home-line) !important; background: #080810; }
.home-theme .la-footer .small-muted, .home-theme .la-footer .footer-link { color: var(--home-muted); }
.home-theme .la-footer .footer-link { width: fit-content; padding-block: 8px; min-height: 40px; }
.home-theme .la-footer .footer-link:hover { color: var(--home-ink); text-decoration: underline; }

@media (max-width: 991.98px) {
  .home-theme .navbar-collapse { padding-block: 12px 4px; }
  .home-theme .la-navbar .nav-link { display: flex; }
  .home-nav-login, .home-nav-action { margin-left: 0; }
  .home-nav-action { margin-top: 8px; }
  .home-hero-grid { gap: 28px; }
  .home-hero h1 { font-size: 2.8rem; }
  .home-preview-top { gap: 6px; padding-inline: 12px; }
  .home-preview-dots { display: none; }
  .home-chat { margin-inline: 10px; }
  .home-chat-head { padding: 12px; }
  .home-chat-body { padding: 12px; }
  .home-result-badge { display: none; }
  .home-section-heading, .home-how-grid, .home-faq-grid { gap: 32px; }
  .home-feature { padding: 24px; }
}

@media (max-width: 767.98px) {
  .home-theme .container { padding-inline: 20px; }
  .home-theme .navbar-brand { font-size: 1rem; margin-right: 8px; }
  .home-hero { padding-top: 38px; }
  .home-hero::before {
    background:
      linear-gradient(180deg, rgba(5, 5, 15, .88) 0%, rgba(5, 5, 15, .55) 40%, rgba(5, 5, 15, .75) 100%),
      url("../img/home-hero-glow.jpg") 50% 40% / cover no-repeat;
  }
  .home-hero-grid, .home-section-heading, .home-feature-grid, .home-how-grid, .home-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .home-hero-grid { gap: 32px; }
  .home-hero h1 { font-size: clamp(2.7rem, 8vw, 3.8rem); }
  .home-hero-copy { max-width: none; font-size: 1rem; }
  .home-preview { width: min(100%, 520px); justify-self: center; }
  .home-chat { margin-inline: 14px; }
  .home-message { font-size: .9rem; }
  .home-preview figcaption { line-height: 1.7; }
  .home-metrics { grid-template-columns: 1fr 1fr; gap: 24px 0; padding-block: 24px; margin-top: 32px; }
  .home-metrics > div { padding-inline: 16px; }
  .home-metrics > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .home-metrics dt { font-size: 1rem; }
  .home-platforms ul { gap: 12px 26px; font-size: 1rem; }
  .home-section { padding-block: 56px; }
  .home-section-heading { gap: 16px; margin-bottom: 24px; }
  .home-feature-large { grid-row: auto; }
  .home-knowledge-visual { min-height: 200px; }
  .home-faq-grid { gap: 24px; }
  .home-cta { padding-bottom: 56px; }
  .home-cta-card { padding: 40px 20px; }
}

@media (max-width: 399.98px) {
  .home-theme .container { padding-inline: 16px; }
  .home-theme .navbar-brand { font-size: .88rem; }
  .home-hero h1 { font-size: 2.4rem; }
  .home-actions { flex-direction: column; align-items: stretch; }
  .home-kicker { font-size: .68rem; letter-spacing: .06em; }
  .home-reassurance { gap: 8px 14px; font-size: .78rem; }
  .home-chat { margin-inline: 10px; }
  .home-chat-head div > span { font-size: .68rem; }
  .home-chat-body { padding: 10px; }
  .home-message { max-width: 94%; }
  .home-lead-result { padding: 12px 10px; }
  .home-feature { padding: 20px; }
  .home-knowledge-file, .home-knowledge-answer { padding: 14px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.home-theme) { scroll-behavior: auto; }
  .home-theme *, .home-theme *::before, .home-theme *::after { transition: none !important; }
}
