/* ==========================================================================
   ListiPRO marketing site
   Professional / minimalist — targeting affiliate & performance marketers
   ========================================================================== */

:root {
  --ink: #101418;
  --ink-soft: #4b5563;
  --ink-faint: #9ca3af;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --line: #e5e7eb;
  --accent: #2447f5;
  --accent-dark: #1c38c4;
  --accent-soft: #eef1fe;
  --win: #16a34a;
  --loss: #dc2626;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 20, 24, 0.04), 0 8px 24px rgba(16, 20, 24, 0.06);
  --shadow-lg: 0 2px 4px rgba(16, 20, 24, 0.04), 0 16px 48px rgba(16, 20, 24, 0.10);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nav-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 760px; }

.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }

.section__head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}

.section__head p { color: var(--ink-soft); margin-top: 16px; }

/* ---------- Typography ---------- */

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }

h1 em, h2 em { font-style: normal; color: var(--accent); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--ink-soft); padding: 10px 12px; }
.btn--ghost:hover { color: var(--ink); }

.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav--scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(16, 20, 24, 0.05); }

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 500;
}

.nav__logo strong { font-weight: 800; }

.nav__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

/* ---------- Beta badge ---------- */
.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fdecec;
  color: var(--loss);
  border: 1px solid rgba(220, 38, 38, 0.22);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.beta-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--loss);
}

.nav__logo .beta-badge { margin-left: 2px; }

.hero__copy .beta-badge { margin-bottom: 14px; }
.hero__copy .beta-badge + .eyebrow { display: block; }

.nav__links { display: flex; gap: 28px; }

.nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav__links a:hover { color: var(--ink); }

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

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  padding: calc(var(--nav-h) + 80px) 0 96px;
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--accent-soft) 0%, transparent 60%),
    var(--bg);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-top: 24px;
  max-width: 520px;
}

.hero__cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero__note { margin-top: 16px; font-size: 0.85rem; color: var(--ink-faint); }

/* ---------- Mock dashboard card (hero) ---------- */

.mock-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock-card__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }

.mock-card__title {
  margin-left: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.mock-card__body { padding: 24px 18px 18px; }

.mock-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 20px;
}

.mock-row__label { font-size: 0.82rem; font-weight: 600; }

.mock-row__value { font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; }
.mock-row__value--win { color: var(--win); }

.mock-bar {
  height: 8px;
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
}

.mock-bar__fill {
  height: 100%;
  width: var(--w, 0%);
  background: var(--ink-faint);
  border-radius: 4px;
  transform-origin: left;
  animation: barGrow 1s ease-out both;
}

.mock-bar__fill--win { background: var(--accent); }

@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.mock-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.mock-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--win);
  background: #e9f9ef;
  padding: 4px 10px;
  border-radius: 999px;
}

.mock-card__hint { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Stats strip ---------- */

.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }

.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.stat { text-align: center; }

.stat__value, .stat__suffix {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat__suffix { color: var(--accent); }

.stat__label {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: #d8dcf8;
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}

.feature__icon svg { width: 22px; height: 22px; }

.feature p { margin-top: 8px; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.step p { margin-top: 8px; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Embed demo ---------- */

.embed-demo { max-width: 760px; margin: 0 auto; }

.embed-demo__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.embed-demo__code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--ink);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.embed-demo__code code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
  color: #c8d4f5;
  overflow-x: auto;
  white-space: nowrap;
}

.embed-demo__copy {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.embed-demo__copy:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- Split (analytics) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split__copy p { color: var(--ink-soft); margin-top: 16px; }

.split__copy .btn { margin-top: 28px; }

.checklist { list-style: none; margin-top: 24px; }

.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232447f5" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / 10px no-repeat;
}

/* ---------- Mock analytics table ---------- */

.mock-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 0.88rem;
}

.mock-table__head,
.mock-table__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  padding: 13px 20px;
}

.mock-table__head {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.mock-table__row { border-bottom: 1px solid var(--line); }
.mock-table__row:last-child { border-bottom: none; }
.mock-table__row span:first-child { font-weight: 600; }
.mock-table__row--dim { color: var(--ink-faint); }
.mock-table__row--dim span:first-child { font-weight: 500; }

.mock-table .up { color: var(--win); font-weight: 700; }
.mock-table .down { color: var(--loss); font-weight: 700; }

/* ---------- Quote ---------- */

.quote { max-width: 720px; margin: 0 auto; text-align: center; }

.quote blockquote {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.quote figcaption { margin-top: 24px; }

.quote__name { display: block; font-weight: 700; font-size: 0.95rem; }
.quote__role { display: block; font-size: 0.85rem; color: var(--ink-faint); margin-top: 2px; }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.plan--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--accent);
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan__desc { font-size: 0.88rem; color: var(--ink-soft); margin-top: 6px; min-height: 42px; }

.plan__price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 20px 0 24px;
}

.plan__currency { font-size: 1.4rem; font-weight: 700; vertical-align: super; margin-right: 2px; }
.plan__period { font-size: 1rem; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }

.plan__features { list-style: none; margin-bottom: 28px; flex-grow: 1; }

.plan__features li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--bg-alt);
}

.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232447f5" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / 9px no-repeat;
}

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

.faq__item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 48px 18px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  position: relative;
  user-select: none;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink-faint);
  transition: transform 0.2s ease;
}

.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq__item p {
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

.cta {
  background: var(--ink);
  color: #fff;
  padding: 96px 0;
}

.cta__inner { text-align: center; max-width: 640px; }

.cta h2 { color: #fff; }

.cta p { color: #b6bdc9; margin-top: 16px; }

.cta__form {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.cta__form input {
  flex: 1 1 280px;
  max-width: 360px;
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cta__form input::placeholder { color: #7e8694; }

.cta__form input:focus { border-color: var(--accent); background: rgba(255, 255, 255, 0.12); }

.cta__note { font-size: 0.85rem; color: #7e8694 !important; margin-top: 16px !important; }

/* ---------- Footer ---------- */

.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 64px 0 0; }

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__brand p {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 280px;
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }

.footer__links h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.footer__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer__links a:hover { color: var(--ink); }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--delay { transition-delay: 0.15s; }

.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal--delay { opacity: 1; transform: none; transition: none; }
  .mock-bar__fill { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy { text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__visual { max-width: 520px; margin: 0 auto; width: 100%; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .plan--featured { order: -1; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    display: none;
  }

  .nav__links.is-open { display: flex; }

  .nav__links a { padding: 14px 24px; }

  .nav__toggle { display: flex; }
  .nav__actions .btn--ghost { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}
