/* ==========================================================================
   Public marketing site — landing, pricing, signup.
   Separate from crm.css: the app is dense and utilitarian, the site is
   spacious and persuasive. Sharing one stylesheet would compromise both.
   ========================================================================== */

:root {
  --ink: #0b1220;
  --ink-2: #1e293b;
  --body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --paper: #ffffff;
  --paper-2: #f8fafc;
  --wash: #f1f5f9;

  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --brand-ink: #14213d;

  --green: #059669;
  --green-soft: #ecfdf5;
  --amber: #d97706;
  --red: #dc2626;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);

  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -0.022em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.18rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 22px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--wash { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.section--ink { background: var(--brand-ink); color: #cbd5e1; }
.section--ink h2, .section--ink h3 { color: #fff; }

.center { text-align: center; }
.lede { font-size: 1.14rem; color: var(--body); max-width: 62ch; }
.lede--center { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }

.brand__mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, #60a5fa 100%);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .85rem;
}

.site-nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--ink-2); font-weight: 550; font-size: .95rem; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }

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

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r-sm);
  font-weight: 650; font-size: .95rem; font-family: inherit;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--muted); color: var(--ink); }

.btn--light { background: #fff; color: var(--brand-ink); }
.btn--light:hover { background: #eef2ff; color: var(--brand-ink); }

.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--sm { padding: 7px 13px; font-size: .875rem; }

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 88px 0 72px;
  background:
    radial-gradient(1100px 460px at 82% -8%, #dbeafe 0%, rgba(219,234,254,0) 62%),
    radial-gradient(760px 380px at 8% 6%, #ede9fe 0%, rgba(237,233,254,0) 60%),
    var(--paper);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-soft); color: var(--brand-dark);
  border: 1px solid #bfdbfe;
  padding: 5px 13px; border-radius: 999px;
  font-size: .8rem; font-weight: 650; letter-spacing: .01em;
  margin-bottom: 18px;
}

.hero h1 { margin-bottom: 18px; }
.hero .lede { font-size: 1.2rem; margin-bottom: 26px; }

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

.hero__note { font-size: .875rem; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.hero__note span { display: inline-flex; align-items: center; gap: 6px; }

/* Product mock — a real-looking screenshot built from markup, so it stays
   sharp at any resolution and never goes stale against the actual UI. */
.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 13px; background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.mock__title { margin-left: 8px; font-size: .78rem; color: var(--muted); font-weight: 600; }

.mock__body { padding: 14px; display: grid; gap: 10px; }

.mock__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.mock__stat { background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 9px 11px; }
.mock__stat b { display: block; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.mock__stat span { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 650; }

.mock__row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); font-size: .8rem;
}
.mock__row b { color: var(--ink); font-weight: 650; display: block; }
.mock__row small { color: var(--muted); font-size: .72rem; }

.pill {
  font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--wash); color: var(--muted); white-space: nowrap;
}
.pill--new { background: #dbeafe; color: #1d4ed8; }
.pill--hot { background: #fee2e2; color: #b91c1c; }
.pill--won { background: #d1fae5; color: #047857; }
.pill--warm { background: #fef3c7; color: #b45309; }

.score {
  min-width: 30px; text-align: center; font-weight: 750; font-size: .74rem;
  padding: 2px 6px; border-radius: 6px; background: #d1fae5; color: #047857;
}
.score--mid { background: #fef3c7; color: #b45309; }

/* ------------------------------------------------------------- logos strip */

.logos { display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; opacity: .72; }
.logos span { font-weight: 750; color: var(--muted); font-size: 1.02rem; letter-spacing: -.01em; }

/* ---------------------------------------------------------------- features */

.grid { display: grid; gap: 22px; }
.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)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card--flat { box-shadow: none; }

.feature__icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; margin-bottom: 15px;
}
.feature h3 { margin-bottom: 7px; }
.feature p { margin: 0; font-size: .95rem; }

.section-head { max-width: 68ch; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { margin: 0; font-size: 1.06rem; }

/* --------------------------------------------------------------- how it works */

.steps { counter-reset: step; display: grid; gap: 26px; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start; }
.step__num {
  counter-increment: step;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-ink); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: 5px; }
.step p { margin: 0; font-size: .95rem; }

/* ----------------------------------------------------------------- pricing */

.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }

.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px; position: relative; display: flex; flex-direction: column; height: 100%;
}

.plan--featured {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: scale(1.025);
}

.plan__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .72rem; font-weight: 750;
  padding: 5px 15px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap;
}

.plan__name { font-size: 1.15rem; font-weight: 750; color: var(--ink); }
.plan__tagline { font-size: .9rem; color: var(--muted); margin-bottom: 18px; min-height: 2.6em; }

.plan__price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 3px; }
.plan__amount { font-size: 2.5rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.plan__period { color: var(--muted); font-size: .92rem; }
.plan__yearly { font-size: .82rem; color: var(--green); font-weight: 600; margin-bottom: 20px; min-height: 1.4em; }

.plan__cta { margin-bottom: 22px; }

.plan__features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
.plan__features li { display: grid; grid-template-columns: 19px 1fr; gap: 9px; align-items: start; }
.plan__features .tick { color: var(--green); }
.plan__features .cross { color: #cbd5e1; }
.plan__features .off { color: #94a3b8; }

.billing-toggle { display: inline-flex; background: var(--wash); border-radius: 999px; padding: 4px; gap: 3px; margin-bottom: 34px; }
.billing-toggle a { padding: 8px 20px; border-radius: 999px; font-size: .9rem; font-weight: 650; color: var(--muted); }
.billing-toggle a:hover { text-decoration: none; color: var(--ink); }
.billing-toggle a.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* --------------------------------------------------------------- testimonial */

.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; display: flex; flex-direction: column; gap: 16px; height: 100%;
}
.quote p { margin: 0; font-size: 1rem; color: var(--ink-2); }
.quote__who { display: flex; align-items: center; gap: 11px; margin-top: auto; }
.quote__avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand-ink);
  color: #fff; display: grid; place-items: center; font-weight: 750; font-size: .82rem;
}
.quote__name { font-weight: 650; color: var(--ink); font-size: .92rem; line-height: 1.3; }
.quote__role { font-size: .82rem; color: var(--muted); }

/* ---------------------------------------------------------------- metrics */

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.metric b { display: block; font-size: 2.3rem; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.metric span { font-size: .9rem; color: #94a3b8; }

/* --------------------------------------------------------------------- FAQ */

.faq { display: grid; gap: 12px; max-width: 800px; margin-inline: auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 20px;
}
.faq summary {
  cursor: pointer; padding: 17px 0; font-weight: 650; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.35rem; color: var(--muted); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 17px; margin: 0; font-size: .95rem; }

/* -------------------------------------------------------------------- CTA */

.cta-band {
  background: linear-gradient(135deg, var(--brand-ink) 0%, #2f4676 100%);
  border-radius: var(--r-lg); padding: 54px 44px; text-align: center; color: #cbd5e1;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { max-width: 56ch; margin-inline: auto; margin-bottom: 26px; }
.cta-band .btn { }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--brand-ink); color: #94a3b8; padding: 56px 0 30px; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; margin-bottom: 40px; }
.footer__links { display: grid; gap: 9px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem;
}

/* ------------------------------------------------------------------ forms */

.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-page__aside {
  background: linear-gradient(160deg, var(--brand-ink) 0%, #2f4676 100%);
  color: #cbd5e1; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center;
}
.auth-page__aside h2 { color: #fff; margin-bottom: 16px; }
.auth-page__main { padding: 48px; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 470px; }

.checklist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 13px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; }
.checklist .tick { color: #60a5fa; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label { font-size: .88rem; font-weight: 650; color: var(--ink-2); }
.field__help { font-size: .82rem; color: var(--muted); }
.field__error { font-size: .82rem; color: var(--red); font-weight: 550; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: .96rem; font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color .12s ease, box-shadow .12s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.13);
}
textarea { resize: vertical; min-height: 100px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.checkbox { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--brand); }

.alert { padding: 13px 16px; border-radius: var(--r-sm); font-size: .92rem; margin-bottom: 16px; border: 1px solid transparent; }
.alert--error { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.alert--success { background: var(--green-soft); color: #065f46; border-color: #a7f3d0; }
.alert--info { background: var(--brand-soft); color: #1e40af; border-color: #bfdbfe; }
.alert--warning { background: #fef3c7; color: #92400e; border-color: #fde68a; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .plan--featured { transform: none; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .auth-page { grid-template-columns: minmax(0, 1fr); }
  .auth-page__aside { display: none; }
  .site-nav { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .cta-band { padding: 38px 22px; }
  .auth-page__main { padding: 28px 20px; }
  .mock__stats { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
