/* Rollster marketing landing — extends the same brand tokens as auth.css
   (ink/paper/violet/cyan, Fraunces/Source Sans 3/IBM Plex Mono) so the
   funnel (landing -> signup -> app) reads as one continuous brand. */

:root {
  --ink: #090c1a;
  --ink-panel: #121732;
  --ink-mute: #8b93b8;
  --hairline-dark: rgba(148, 163, 255, 0.16);
  --paper: #f5f6fb;
  --paper-ink: #12142a;
  --paper-mute: #676c88;
  --paper-faint: #9497ad;
  --hairline-light: #e1e3f0;
  --signal: #7c6cff;
  --signal-700: #5744c9;
  --accent-cyan: #22d3ee;
  --accent-gradient: linear-gradient(135deg, #7c6cff 0%, #22d3ee 100%);
  --confirm: #2fd48f;
  --radius: 10px;
  --radius-lg: 16px;
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Connecteam-style saturated accent set, kept in the brand's own hue
     family (violet/cyan/amber) rather than borrowed pink/orange/yellow —
     used only for the stat tiles, never for body text. */
  --pop-1: #6d5bff;
  --pop-2: #0ea5c4;
  --pop-3: #e8590c;
  --pop-4: #0f9d58;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--font-body);
  line-height: 1.55;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.75rem; }

/* Content sections always nest .wrap as a child, never apply it to the
   <section> itself — .wrap's horizontal padding (higher specificity, same
   `padding` shorthand) would silently cancel .content-section's vertical
   rhythm if the two classes ever landed on the same element. */
.content-section { padding: 5.5rem 0; }
.content-section.tight { padding: 5rem 0; }

.section-band { border-top: 1px solid var(--hairline-light); }
.section-band-paper { background: var(--paper); }
.section-band-white { background: #fff; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 0.6rem;
}

h2.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--paper-mute);
  max-width: 54ch;
  margin: 0 0 2.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: box-shadow 0.18s ease, transform 0.1s ease, filter 0.14s ease;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(109, 91, 255, 0.55);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--paper-ink);
  border: 1.5px solid var(--hairline-light);
}
.btn-ghost:hover { border-color: var(--signal); color: var(--signal-700); }

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1.5px solid var(--hairline-dark);
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.1); }

a:focus-visible, button:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* ---------- Top nav ---------- */

.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 246, 251, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline-light);
}

.topnav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 0.9rem; padding-bottom: 0.9rem; }

.topnav-wordmark { display: inline-flex; align-items: center; gap: 0.45em; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--paper-ink); }
.brand-ll { color: var(--signal); }

.topnav-links { display: flex; align-items: center; gap: 1.8rem; }
.topnav-links a:not(.btn) { font-size: 0.88rem; font-weight: 600; color: var(--paper-mute); text-decoration: none; }
.topnav-links a:not(.btn):hover { color: var(--paper-ink); }

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

.hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 420px at 85% -10%, rgba(109, 91, 255, 0.35), transparent 62%),
    radial-gradient(520px 400px at -10% 110%, rgba(34, 211, 238, 0.2), transparent 60%);
  pointer-events: none;
}

.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }

.hero-eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-cyan); margin: 0 0 1.1rem; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
}

.hero-sub { font-size: 1.05rem; color: #cbd0dc; max-width: 46ch; margin: 0 0 2rem; }

.hero-ctas { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.hero-note { font-size: 0.82rem; color: var(--ink-mute); margin: 0 0 2.25rem; }

.trust-row { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.trust-row span { display: flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; color: #cbd0dc; }
.trust-row svg { flex: none; width: 15px; height: 15px; color: var(--confirm); }

/* Hero product screenshot — same browser-chrome framing as the mid-page
   preview, tuned for sitting on the dark hero instead of a paper section. */
.hero-visual .preview-frame {
  border-color: var(--hairline-dark);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.55), 0 0 40px -12px rgba(109, 91, 255, 0.35);
}
.hero-visual .preview-chrome { background: var(--paper); }

/* ---------- Logo strip ---------- */

.strip { padding: 2.25rem 0; border-bottom: 1px solid var(--hairline-light); }
.strip-text { text-align: center; font-size: 0.85rem; color: var(--paper-mute); }
.strip-text strong { color: var(--paper-ink); }

/* ---------- Product preview ---------- */
/* A real screenshot of the actual reports dashboard, not a mockup — in a
   plain browser-chrome frame so it reads as "this is the real product,"
   the thing Bitly's embedded live tool does in its own hero. */

.preview-frame {
  background: #fff;
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(9, 12, 26, 0.25);
}

.preview-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline-light);
}
.preview-chrome span { width: 9px; height: 9px; border-radius: 50%; background: var(--hairline-light); }
.preview-chrome .url {
  margin-left: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--paper-faint);
  background: #fff;
  border: 1px solid var(--hairline-light);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
}

.preview-frame img { display: block; width: 100%; }

/* ---------- Pillars (3 core products) ---------- */

.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

.pillar-card {
  background: #fff;
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Tiny CSS-drawn UI mockup above each pillar — Bitly tops every product
   card with a mini product preview rather than just an icon; these are
   schematic (bars/dots standing in for a roster row, a scan flash, a bar
   chart) since we don't have three more real screenshots to crop. */
.pillar-preview {
  height: 108px;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem;
}

.pillar-preview .mock-row { display: flex; flex-direction: column; gap: 0.4rem; width: 100%; }
.pillar-preview .mock-line { height: 8px; border-radius: 4px; background: var(--hairline-light); }
.pillar-preview .mock-line.fill { background: var(--signal); width: 60%; }
.pillar-preview .mock-line.short { width: 40%; }

.pillar-preview .mock-badge {
  width: 64px;
  height: 80px;
  background: #fff;
  border: 1.5px solid var(--hairline-light);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}
.pillar-preview .mock-badge .qr { width: 30px; height: 30px; border-radius: 4px; background: var(--ink); }
.pillar-preview .mock-badge .ln { width: 36px; height: 5px; border-radius: 3px; background: var(--hairline-light); }

.pillar-preview .mock-bars { display: flex; align-items: flex-end; gap: 7px; height: 64px; }
.pillar-preview .mock-bars span { width: 13px; border-radius: 3px 3px 0 0; background: var(--accent-gradient); }

.pillar-card .pillar-body { padding: 1.5rem 1.6rem 1.75rem; }

.pillar-card .pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.pillar-card .pillar-icon svg { width: 18px; height: 18px; }

.pillar-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 0 0 0.5rem; }
.pillar-card p { font-size: 0.89rem; color: var(--paper-mute); margin: 0; }

/* ---------- Stats band (honest product facts, not fabricated usage) ---------- */

.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }

.stat-pop {
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  color: #fff;
}
.stat-pop:nth-child(1) { background: var(--pop-1); }
.stat-pop:nth-child(2) { background: var(--pop-2); }
.stat-pop:nth-child(3) { background: var(--pop-3); }
.stat-pop:nth-child(4) { background: var(--pop-4); }

.stat-pop .n { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; line-height: 1; }
.stat-pop .l { font-size: 0.82rem; margin-top: 0.5rem; opacity: 0.92; }

/* ---------- Statement band (bold color moment) ---------- */

.statement-band {
  background: var(--accent-gradient);
  color: #fff;
  text-align: center;
  padding: 4.5rem 0;
}

.statement-band p.eyebrow { color: rgba(255, 255, 255, 0.85); }

.statement-band blockquote {
  margin: 0 auto;
  max-width: 44ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.28;
}

/* ---------- How it works ---------- */
/* A manifest rail: a hairline runs behind the stamped step numbers, like a
   checklist being worked through left to right rather than four floating
   marketing tiles. */

.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }

.steps::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  height: 1px;
  background: var(--hairline-light);
  z-index: 0;
}

.step { position: relative; padding-top: 3rem; }

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--signal-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--paper);
  border: 1.5px solid var(--signal);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin: 0 0 0.45rem; }
.step p { font-size: 0.9rem; color: var(--paper-mute); margin: 0; }

/* ---------- Personas ---------- */

.persona-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.persona {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--hairline-light);
}
.persona .tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); margin-bottom: 0.6rem; display: block; }
.persona h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0 0 0.5rem; }
.persona p { font-size: 0.88rem; color: var(--paper-mute); margin: 0; }

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

.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }

.price-card {
  background: #fff;
  border: 1.5px solid var(--hairline-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured { border-color: var(--signal); box-shadow: 0 16px 40px -20px rgba(109, 91, 255, 0.35); position: relative; }

.price-card .plan-tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-mute); margin-bottom: 0.7rem; }
.price-card.featured .plan-tag { color: var(--signal); }

.price-card .amount { font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; letter-spacing: -0.01em; }
.price-card .amount span { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--paper-mute); }

.price-card .plan-desc { font-size: 0.88rem; color: var(--paper-mute); margin: 0.5rem 0 1.4rem; }

.price-card ul { list-style: none; margin: 0 0 1.6rem; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.87rem; }
.price-card li { display: flex; gap: 0.65rem; align-items: baseline; }
.price-card li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--confirm);
  transform: translateY(-2px);
}

.price-card .btn { margin-top: auto; justify-content: center; }

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

.faq-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 3.5rem; }

.faq-item { border-bottom: 1px solid var(--hairline-light); }
.faq-item summary {
  padding: 1.15rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.97rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.1rem; color: var(--signal); flex: none; margin-left: 1rem; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0 0 1.25rem; font-size: 0.9rem; color: var(--paper-mute); max-width: 62ch; }

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

.cta-band {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 320px at 50% 0%, rgba(109, 91, 255, 0.3), transparent 65%);
}
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 0 0 0.75rem; position: relative; }
.cta-band p { color: var(--ink-mute); margin: 0 0 1.9rem; position: relative; }
.cta-band .hero-ctas { justify-content: center; position: relative; margin-bottom: 0; }

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

footer { padding: 3rem 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; }
.footer-wordmark { display: inline-flex; align-items: center; gap: 0.45em; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }.footer-tag { font-size: 0.82rem; color: var(--paper-mute); max-width: 32ch; }
.footer-links { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-links h4 { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-faint); margin: 0 0 0.75rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.85rem; color: var(--paper-mute); text-decoration: none; }
.footer-links a:hover { color: var(--paper-ink); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline-light); font-size: 0.78rem; color: var(--paper-faint); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps, .pillar-grid, .persona-row, .stats-band { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .topnav-links { gap: 1rem; }
}

@media (max-width: 640px) {
  .content-section { padding: 3.5rem 0; }
  .steps, .pillar-grid, .persona-row, .stats-band, .faq-list { grid-template-columns: 1fr; }
  .topnav-links a:not(.btn) { display: none; }
  .footer-grid { flex-direction: column; }
}
