/* Crowd Counter marketing site — shared styles. Static, no build step. */

:root {
  --blue: #1272d4;
  --blue-dark: #0d5cab;
  --blue-deep: #083a6e;
  --blue-soft: #e8f1fb;
  --ink: #0b1524;
  --ink-secondary: #475467;
  --ink-faint: #98a2b3;
  --border: #e4e7ec;
  --surface: #ffffff;
  --surface-muted: #f7f9fc;
  --amber: #ffd166;
  --radius: 18px;
  --max-width: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.header-cta {
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.header-cta:hover {
  background: var(--blue-dark);
}

/* Hero */
.hero {
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(18, 114, 212, 0.16), transparent 60%),
    linear-gradient(180deg, var(--blue-soft) 0%, #ffffff 78%);
  padding: 72px 0 64px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(36px, 5.2vw, 54px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -1.6px;
  margin-bottom: 18px;
}

h1 .accent {
  color: var(--blue);
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--ink-secondary);
  font-weight: 500;
  max-width: 480px;
  margin-bottom: 30px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-row.center {
  justify-content: center;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.18);
}

.app-store-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.22);
}

.cta-note {
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 600;
}

/* Hero phone mockup */
.hero-visual {
  position: relative;
  justify-self: center;
}

.phone {
  width: min(330px, 82vw);
  border-radius: 42px;
  background: #0c1220;
  padding: 12px;
  box-shadow:
    0 30px 60px rgba(8, 25, 50, 0.35),
    0 4px 14px rgba(8, 25, 50, 0.2);
  transform: rotate(2.5deg);
}

.phone-screen {
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  background: #0c1220;
}

.phone-screen img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.count-pill {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 18px;
  padding: 12px 22px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(8, 25, 50, 0.35);
  white-space: nowrap;
}

.count-pill .num {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.count-pill .lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.float-chip {
  position: absolute;
  top: 26px;
  right: -18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(8, 25, 50, 0.14);
  transform: rotate(2.5deg);
}

.float-chip span {
  color: var(--blue);
}

.hero-proof {
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-faint);
  font-weight: 600;
}

/* Sections */
section {
  padding: 76px 0;
}

section.alt {
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.9px;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--ink-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 16.5px;
}

/* Before / After */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.ba-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.ba-card.after {
  border-color: rgba(18, 114, 212, 0.45);
  box-shadow: 0 14px 40px rgba(18, 114, 212, 0.16);
}

.ba-media {
  position: relative;
}

.ba-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.ba-card.before .ba-media img {
  filter: grayscale(0.85) brightness(0.82);
}

.ba-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
}

.ba-card.before .ba-tag {
  background: rgba(11, 21, 36, 0.82);
  color: #e8edf5;
}

.ba-card.after .ba-tag {
  background: var(--blue);
  color: #fff;
}

.ba-overlay-quote {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-overlay-quote span {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.55);
  font-style: italic;
  letter-spacing: -0.5px;
}

.ba-count {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 14px;
  padding: 8px 16px;
  box-shadow: 0 8px 22px rgba(8, 25, 50, 0.3);
}

.ba-count .num {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
}

.ba-count .lbl {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.ba-body {
  padding: 20px 22px 22px;
}

.ba-body h3 {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 8px;
}

.ba-body ul {
  list-style: none;
}

.ba-body li {
  font-size: 14.5px;
  color: var(--ink-secondary);
  padding: 4px 0 4px 26px;
  position: relative;
}

.ba-body li::before {
  position: absolute;
  left: 0;
  font-weight: 900;
}

.ba-card.before li::before {
  content: '✗';
  color: #d92d20;
}

.ba-card.after li::before {
  content: '✓';
  color: var(--blue);
}

.ba-footnote {
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 600;
  margin-top: 22px;
}

/* Identity cards */
.identity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.identity {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.identity .who {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.identity h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.identity p {
  font-size: 14.5px;
  color: var(--ink-secondary);
}

.identity a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 800;
  font-size: 14px;
}

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

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.step p {
  font-size: 14px;
  color: var(--ink-secondary);
}

/* FAQ */
.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}

.faq summary {
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 800;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  font-size: 15px;
  color: var(--ink-secondary);
  padding: 0 0 16px;
  max-width: 640px;
}

/* Pricing */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.price-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  background: var(--surface);
}

.price-card.highlight {
  border-color: var(--blue);
  box-shadow: 0 8px 28px rgba(18, 114, 212, 0.14);
}

.price-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.price {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1px;
}

.price small {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.price-sub {
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 600;
  margin-top: 4px;
}

/* Final CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  text-align: center;
  border: none;
}

.cta-band h2 {
  color: #fff;
}

.cta-band .section-sub {
  color: rgba(255, 255, 255, 0.85);
}

.cta-band .app-store-btn {
  background: #fff;
  color: var(--ink);
}

.cta-band .cta-note {
  color: rgba(255, 255, 255, 0.75);
}

/* Article pages */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px;
}

.article h1 {
  text-align: left;
  font-size: clamp(30px, 5vw, 42px);
  margin: 0 0 10px;
}

.article .byline {
  color: var(--ink-faint);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 36px;
}

.article h2 {
  text-align: left;
  font-size: 24px;
  margin: 40px 0 12px;
}

.article p,
.article li {
  font-size: 16.5px;
  color: #253044;
  margin-bottom: 14px;
}

.article ul,
.article ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

.article figure {
  margin: 26px 0;
}

.article figure img {
  border-radius: 14px;
  border: 1px solid var(--border);
}

.article figcaption {
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 600;
  margin-top: 8px;
}

.article-ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 26px 0 8px;
}

.article-ba img {
  border-radius: 14px;
  border: 1px solid var(--border);
}

.article-cta {
  margin: 44px 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--blue-soft);
  border: 1px solid rgba(18, 114, 212, 0.25);
  text-align: center;
}

.article-cta p {
  font-weight: 700;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--ink-secondary);
  font-weight: 700;
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .float-chip {
    right: 4px;
  }

  .identity-grid,
  .steps,
  .ba-grid,
  .pricing-cards {
    grid-template-columns: 1fr;
  }

  section {
    padding: 54px 0;
  }

  .hero {
    padding: 56px 0 48px;
  }
}
