/* MRR & Subscription Reports for Pipedrive — marketing pages.
   Hand-ported from the app's Tailwind landing (Baowise/cohortly app/page.tsx),
   so the site matches the plugin people install: indigo #5046E5 on slate. */

:root {
  --brand: #5046e5;
  --brand-hover: #4038c7;
  --brand-soft: rgba(80, 70, 229, 0.1);
  --ink: #0f172a;
  --text: #334155;
  --muted: #475569;
  --faint: #64748b;
  --ghost: #94a3b8;
  --line: #e2e8f0;
  --line-soft: rgba(226, 232, 240, 0.7);
  --wash: #f8fafc;
  --bg: #ffffff;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
main { flex: 1; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 15px;
  padding: 0.875rem 1.5rem;
  transition: background-color .15s, box-shadow .15s, border-color .15s;
}
.btn .arrow { transition: transform .3s; }
.btn:hover .arrow { transform: translateX(2px); }
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 12px 30px -12px rgba(80, 70, 229, 0.7);
}
.btn-primary:hover { background: var(--brand-hover); box-shadow: 0 18px 40px -12px rgba(80, 70, 229, 0.8); }
.btn-ghost { border: 1px solid #cbd5e1; background: #fff; color: #334155; }
.btn-ghost:hover { border-color: var(--ghost); background: var(--wash); }
.btn-sm { padding: 0.5rem 1rem; font-size: 14px; border-radius: 0.5rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.btn-white { background: #fff; color: var(--ink); font-weight: 600; padding: 1rem 1.75rem; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .3); }
.btn-white:hover { background: #f1f5f9; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav .wrap { display: flex; height: 4rem; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.625rem; min-width: 0; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.brand span { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-link { font-size: 14px; color: var(--muted); }
.nav-link:hover { color: var(--ink); }
@media (max-width: 640px) {
  .nav-link { display: none; }
  .brand span { font-size: 14px; }
  .nav .btn-sm { padding: 0.45rem 0.75rem; font-size: 13px; white-space: nowrap; }
}
@media (max-width: 400px) {
  .brand span { display: none; }
}

/* Hero */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .6s cubic-bezier(.21, .7, .28, 1) both; }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(56% 60% at 50% -8%, rgba(80, 70, 229, 0.12), transparent 72%);
}
.hero-copy { text-align: center; padding-top: 5rem; padding-bottom: 3rem; }
.hero h1 {
  margin: 1.5rem auto 0; max-width: 56rem;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.07; font-weight: 600; letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede {
  margin: 1.5rem auto 0; max-width: 42rem;
  font-size: clamp(1rem, 1.6vw, 1.125rem); line-height: 1.65; color: var(--muted);
  text-wrap: pretty;
}
.hero .ctas { margin-top: 2.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.hero .fine { margin: 1.25rem 0 0; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.hero-shot { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem 5rem; }
@media (min-width: 640px) { .hero-copy { padding-top: 7rem; } }

/* Screenshot frame */
.shot { position: relative; margin: 0; }
.shot-frame {
  overflow: hidden; border-radius: 0.75rem; border: 1px solid var(--line); background: #fff;
  box-shadow: 0 22px 55px -26px rgba(15, 23, 42, 0.45);
  transition: transform .5s ease-out;
}
.shot:hover .shot-frame { transform: translateY(-4px); }
.shot-bar { display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid #f1f5f9; padding: 0.625rem 1rem; }
.shot-bar .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--brand); }
.shot-bar span:last-child { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ghost); }
.shot img { width: 100%; height: auto; }

/* Capability strip */
.strip { border-bottom: 1px solid var(--line-soft); background: rgba(248, 250, 252, 0.6); }
.strip .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem 1.5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
@media (min-width: 640px) { .strip .wrap { grid-template-columns: repeat(4, 1fr); } }
.strip .wrap > div { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.strip .wrap > div::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: 999px; background: rgba(80, 70, 229, 0.7); }

/* Feature rows */
.feature { display: grid; align-items: center; gap: 2.5rem; padding: 5rem 0; border-bottom: 1px solid rgba(226, 232, 240, 0.6); }
.feature:last-child { border-bottom: 0; }
.feature > *, .hero-shot, .shot { min-width: 0; }
@media (min-width: 1024px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .feature.flip .feature-copy { order: 2; }
}
.feature-num { display: flex; align-items: baseline; gap: 0.75rem; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand); }
.feature-num span:first-child { color: #cbd5e1; }
.feature h2 { margin: 1rem 0 0; font-size: clamp(1.875rem, 3.5vw, 2.25rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.feature p { margin: 1rem 0 0; color: var(--muted); line-height: 1.65; text-wrap: pretty; }
.points { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.625rem; }
.points li { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 14px; color: #334155; }
.points li::before { content: ""; margin-top: 7px; width: 6px; height: 6px; flex-shrink: 0; border-radius: 999px; background: var(--brand); }

/* Setup */
.setup { border-top: 1px solid var(--line-soft); background: rgba(248, 250, 252, 0.6); }
.setup .wrap { padding-top: 5rem; padding-bottom: 5rem; }
.setup header { text-align: center; }
.setup h2 { margin: 0.75rem 0 0; font-size: clamp(1.875rem, 3.5vw, 2.25rem); font-weight: 600; letter-spacing: -0.02em; }
.steps { margin-top: 3rem; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border-radius: 1rem; border: 1px solid var(--line); background: #fff; padding: 1.5rem; box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03); }
.step .n { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.2em; color: var(--brand); }
.step h3 { margin: 0.75rem 0 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.step p { margin: 0.5rem 0 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.ticks { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ghost); }
.ticks .sep { color: #cbd5e1; }

/* Final CTA */
.final { position: relative; overflow: hidden; background: #020617; }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(58% 120% at 50% -10%, rgba(80, 70, 229, 0.5), transparent 68%); }
.final .wrap-narrow { position: relative; padding-top: 6rem; padding-bottom: 6rem; text-align: center; }
.final h2 { margin: 0; color: #fff; font-size: clamp(2.25rem, 4.5vw, 3rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.final p { margin: 1.25rem auto 0; max-width: 36rem; color: #cbd5e1; line-height: 1.65; }
.final .btn { margin-top: 2.25rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); background: #fff; padding: 1rem 1.5rem; font-size: 12px; color: var(--faint); }
.foot .inner { max-width: 80rem; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.foot a:hover { color: #334155; }

/* Pricing */
.pricing { background: var(--wash); color: #1e293b; }
.pricing .wrap-wide { max-width: 64rem; margin: 0 auto; padding: 3rem 1.5rem; }
@media (min-width: 640px) { .pricing .wrap-wide { padding: 5rem 1.5rem; } }
.pricing main header { max-width: 48rem; margin: 0 auto; text-align: center; }
.pricing h1 { margin: 1rem 0 0; line-height: 1.1; font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 600; letter-spacing: -0.025em; color: #020617; }
.pricing main header p:not(.kicker) { margin: 1.25rem auto 0; max-width: 42rem; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.125rem); line-height: 1.65; }
.plan { max-width: 48rem; margin: 3rem auto 0; overflow: hidden; border-radius: 1.5rem; border: 1px solid var(--line); background: #fff; box-shadow: 0 24px 70px -36px rgba(15, 23, 42, 0.32); }
.plan-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; background: #020617; color: #fff; padding: 2rem 1.75rem; }
@media (min-width: 640px) { .plan-head { padding: 2rem 2.5rem; } .plan-body { padding: 2.25rem 2.5rem !important; } }
.plan-head .label { margin: 0; font-size: 14px; font-weight: 500; color: #a5b4fc; }
.plan-head .price { margin: 0.5rem 0 0; font-size: 3rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
.plan-head .per { margin: 0.5rem 0 0; font-size: 14px; color: #cbd5e1; }
.plan-head .btn { font-size: 14px; padding: 0.75rem 1.25rem; box-shadow: none; }
.plan-body { display: grid; gap: 2.5rem; padding: 2.25rem 1.75rem; }
@media (min-width: 768px) { .plan-body { grid-template-columns: 1fr 1fr; } }
.plan-body h2 { margin: 0; font-size: 1.125rem; font-weight: 600; color: #020617; }
.plan-body h2 + * { margin-top: 1.25rem; }
.plan-body h2.later { margin-top: 2rem; }
.plan-body p { font-size: 14px; line-height: 1.65; color: var(--muted); margin-bottom: 0; }
.plan-body strong { color: #1e293b; font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; font-size: 14px; line-height: 1.6; color: var(--muted); }
.checks li { display: flex; gap: 0.75rem; }
.checks li::before { content: "✓"; color: var(--brand); }
.note { max-width: 48rem; margin: 2.5rem auto 0; border-radius: 1rem; border: 1px solid var(--line); background: #fff; padding: 1.5rem 1.75rem; font-size: 14px; line-height: 1.65; color: var(--muted); }
.note a, .legal a { color: var(--brand); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

/* Legal */
.legal { max-width: 48rem; margin: 0 auto; padding: 3rem 1.5rem; color: #1e293b; }
.legal header { margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.legal h1 { margin: 0; font-size: 1.875rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.legal header p { margin: 0.5rem 0 0; font-size: 14px; color: var(--faint); }
.legal section + section { margin-top: 2.5rem; }
.legal h2 { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.legal p { margin: 0 0 1rem; line-height: 1.65; }
.legal ul { margin: 0 0 1rem; padding-left: 1.5rem; display: grid; gap: 0.375rem; line-height: 1.6; }
.legal .small { font-size: 14px; color: var(--muted); }
.legal .smaller { font-size: 14px; color: var(--faint); }
.legal a { font-weight: 400; }
