/* ============================================================
   LeadWise AI — Public site styles
   Brand green drawn from the logo. Headings + bold fields use it.
   ============================================================ */

/* ------------------------------------------------------------
   Self-hosted fonts (replaces Google Fonts CDN)
   ------------------------------------------------------------ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-v20-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-v20-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-v12-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-v12-latin-800.woff2') format('woff2');
}

:root {
  --brand-50:  #EAF7F0;
  --brand-100: #D1EEDF;
  --brand-200: #A6DDBF;
  --brand-400: #33B978;
  --brand-500: #17A45B;
  --brand-600: #128A4C;
  --brand-700: #0E6F3D;
  --brand-900: #073B21;

  --ink-900: #0B1220;
  --ink-800: #1A2332;
  --ink-700: #2B3648;
  --ink-600: #4B5563;
  --ink-500: #6B7280;
  --ink-400: #9CA3AF;
  --ink-300: #D1D5DB;
  --ink-200: #E5E7EB;
  --ink-100: #F3F4F6;
  --ink-50:  #F9FAFB;
  --white:   #FFFFFF;

  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1160px;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06);
  --shadow-md: 0 8px 24px rgba(11, 18, 32, .08);
  --shadow-lg: 0 24px 60px rgba(11, 18, 32, .12);
}

/* ------------------------------------------------------------ Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
button { font: inherit; cursor: pointer; }

/* ------------------------------------------------------------ Type */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--brand-600);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .45em;
  font-weight: 700;
}
h1 { font-size: clamp(1.5rem, 2.1vw, 1.9rem); }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p  { margin: 0 0 .9em; }
strong, b { color: var(--brand-600); font-weight: 700; }
small { font-size: .875rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-50);
  border: 2px solid var(--brand-200);
  border-radius: 999px;
  padding: .3rem .75rem;
  margin-bottom: .5rem;
}

.lead { font-size: 1.05rem; color: var(--ink-600); max-width: 60ch; }

/* ------------------------------------------------------------ Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 44px 0; }
.section--tight { padding: 24px 0; }
.section--alt { background: var(--ink-50); }
.section--brand { background: var(--brand-50); }
.section__head { max-width: none; margin: 0 auto 24px; text-align: center; }
.section__head .lead { max-width: 70ch; margin-left: auto; margin-right: auto; }
.section__head:last-child { margin-bottom: 0; }

/* Tighter stacked-section spacing on every page */
section.section + section.section { padding-top: 6px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 32px 0; }
  .section--tight { padding: 20px 0; }
  section.section + section.section { padding-top: 5px; }
}

/* ------------------------------------------------------------ Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ink-200);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto; padding: 10px 24px;
}
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo img {
  height: 52px; width: auto;
  background: var(--white);
  padding: 4px 10px;
  border-radius: 8px;
}
.nav__links { display: flex; align-items: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .88rem;
  color: var(--ink-800);
  white-space: nowrap;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--brand-600); }

/* Extra space between Contact and Demo */
.nav__links li.nav__gap { margin-left: 15px; }

.nav__actions { display: flex; align-items: center; gap: 10px; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-switch__btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .05em;
  color: var(--ink-800);
  background: transparent;
  border: 2px solid var(--ink-200);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.lang-switch__btn:hover,
.lang-switch__btn[aria-expanded="true"] {
  border-color: var(--brand-400);
  background: var(--brand-50);
  color: var(--brand-700);
}
.lang-switch__btn::after {
  content: "";
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 4px;
}
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--white);
  border: 2px solid var(--ink-200);
  border-radius: 10px;
  padding: 6px;
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 60;
}
.lang-switch__menu.is-open { display: block; }
.lang-switch__menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-800);
}
.lang-switch__menu a:hover { background: var(--brand-50); color: var(--brand-700); }
.lang-switch__menu a[aria-current="true"] { background: var(--brand-50); color: var(--brand-600); }

.nav__toggle { display: none; background: none; border: 0; padding: 8px; border-radius: 8px; }
.nav__toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink-800);
  margin: 4px 0; border-radius: 2px;
}

@media (max-width: 1200px) {
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--ink-200);
    padding: 8px 24px 16px; display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--ink-100); }
  .nav__links li.nav__gap { margin-left: 0; }
  .nav__toggle { display: block; }
}

/* ------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700; font-size: .95rem;
  padding: 11px 20px; border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-500); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-600); color: var(--white); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--brand-700); border: 2px solid var(--brand-400); }
.btn--ghost:hover { background: var(--brand-50); border-color: var(--brand-600); color: var(--brand-700); }
.btn--lg { padding: 13px 24px; font-size: 1rem; }

/* ------------------------------------------------------------ Hero */
.hero {
  padding: 40px 0 28px;
  background: linear-gradient(180deg, var(--white) 0%, var(--brand-50) 100%);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero__inner > div:first-child { text-align: center; }
.hero h1 span { color: var(--brand-500); }
.hero .lead { margin-left: auto; margin-right: auto; margin-bottom: 12px; }
.hero__note {
  font-size: .92rem;
  color: var(--ink-500);
  font-weight: 500;
  margin: 0 auto 20px;
  max-width: 60ch;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__art {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 20px; border: 3px solid var(--ink-200);
}
.hero__art .bubble {
  background: var(--brand-50); border-radius: 14px; padding: 12px 14px;
  font-size: .9rem; color: var(--ink-700); margin-bottom: 10px;
  border-bottom-left-radius: 4px;
}
.hero__art .bubble--reply {
  background: var(--brand-500); color: var(--white);
  border-radius: 14px; border-bottom-right-radius: 4px;
  margin-left: 40px; border-bottom-left-radius: 14px;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 28px 0 22px; }
}

/* ------------------------------------------------------------ Cards */
.card {
  background: var(--white); border: 3px solid var(--ink-200);
  border-radius: var(--radius-lg); padding: 20px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--brand-400); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; color: var(--ink-600); }

/* ------------------------------------------------------------ Steps */
.step { position: relative; }
.step__num {
  font-family: var(--font-display); font-weight: 800; font-size: 2rem;
  color: var(--brand-200); line-height: 1; margin-bottom: 8px;
}

/* ------------------------------------------------------------ Channels */
.channels { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.channel-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--white); border: 2px solid var(--ink-200);
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  color: var(--ink-800);
}
.channel-pill span.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); }

/* ------------------------------------------------------------ CTA band */
.cta-band {
  background: var(--brand-600);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center;
}
.cta-band h2 { color: var(--white); margin-bottom: .35em; }
.cta-band p  { color: rgba(255,255,255,.85); margin: 0; max-width: 60ch; }
.cta-band .btn--primary { background: var(--white); color: var(--brand-700); }
.cta-band .btn--primary:hover { background: var(--brand-50); }
@media (max-width: 780px) { .cta-band { grid-template-columns: 1fr; padding: 24px 20px; } }

/* ------------------------------------------------------------ Forms */
.form { display: grid; gap: 14px; max-width: 560px; }
.field { display: grid; gap: 4px; }
.field label {
  font-family: var(--font-display); font-weight: 700; font-size: .88rem;
  color: var(--brand-600);
}
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; font: inherit;
  border: 2px solid var(--ink-300); border-radius: 10px;
  background: var(--white); color: var(--ink-800);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-500);
  box-shadow: 0 0 0 4px var(--brand-50);
}
.field textarea { min-height: 120px; resize: vertical; }

/* ------------------------------------------------------------ Footer */
.site-footer {
  background: var(--ink-900); color: var(--ink-400);
  padding: 44px 0 24px; margin-top: 48px;
  font-size: .92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px;
  max-width: var(--container); margin: 0 auto 28px; padding: 0 24px;
}
.footer-grid h5 {
  color: var(--white); font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 10px; font-weight: 700;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--ink-400); }
.footer-grid a:hover { color: var(--white); }

.footer-brand img {
  height: 52px; width: auto;
  background: var(--white);
  padding: 6px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.footer-brand p { color: var(--ink-400); max-width: 38ch; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: var(--container); margin: 0 auto; padding: 16px 24px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .22rem .55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.badge--live    { background: var(--brand-50); color: var(--brand-700); border: 2px solid var(--brand-200); }
.badge--live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-500);
}
.badge--roadmap { background: var(--ink-100); color: var(--ink-600); border: 2px solid var(--ink-200); }
.badge--never   { background: #FEF2F2; color: #991B1B; border: 2px solid #FECACA; }

/* ------------------------------------------------------------ Status table */
.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.status-table th {
  text-align: left;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-500);
  padding: .55rem .6rem;
  border-bottom: 1px solid var(--ink-200);
}
.status-table td {
  padding: .7rem .6rem;
  border-bottom: 1px solid var(--ink-100);
  vertical-align: top;
  color: var(--ink-600);
}
.status-table td:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-600);
  white-space: nowrap;
  width: 1%;
  padding-right: 1.2rem;
}
.status-table td:nth-child(2) {
  width: 1%;
  padding-right: 1rem;
  white-space: nowrap;
}
.status-table tr:last-child td { border-bottom: 0; }

@media (max-width: 620px) {
  .status-table { font-size: .88rem; }
  .status-table th, .status-table td { padding: .5rem .35rem; }
  .status-table td:first-child,
  .status-table td:nth-child(2) { padding-right: .5rem; }
}

/* ------------------------------------------------------------ Legend */
.legend {
  display: flex; flex-wrap: wrap; gap: 16px 24px;
  justify-content: center;
  margin-bottom: 8px;
  font-size: .85rem;
  color: var(--ink-600);
}
.legend span { display: inline-flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------ Scroll bubbles */
.scroll-bubbles {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 40;
}
.scroll-bubble {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-500);
  color: var(--white);
  border: 2px solid var(--brand-500);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background .15s ease, border-color .15s ease, transform .15s ease, opacity .15s ease;
}
.scroll-bubble:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.scroll-bubble:active { transform: translateY(0); }
.scroll-bubble svg { width: 20px; height: 20px; display: block; }
.scroll-bubble[hidden] { display: none; }

@media (max-width: 620px) {
  .scroll-bubbles { right: 14px; bottom: 14px; gap: 8px; }
  .scroll-bubble { width: 42px; height: 42px; }
  .scroll-bubble svg { width: 18px; height: 18px; }
}

@media print {
  .scroll-bubbles { display: none; }
}

/* ------------------------------------------------------------ Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 1.5rem; }
.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;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand-600); color: var(--white); padding: 12px 18px; z-index: 100;
}
.skip-link:focus { left: 0; }