/* Countly — countly.willsuo.com
   One stylesheet for the whole site. The palette comes from the app:
   the icon is black with silver odometer digits, and the app's accent is
   the system blue it uses for rings, checks and charts. */

:root {
  --ink: #000;
  --ink-2: #07090f;
  --panel: #111318;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --faint: #6b6f7a;
  --blue: #0a84ff;
  --blue-2: #5ac8fa;
  --silver-1: #ffffff;
  --silver-2: #b8bcc6;
  --radius: 22px;
  --wrap: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

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

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; letter-spacing: -0.01em; }
.nav-brand:hover { text-decoration: none; }
.nav-brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 0;
  text-align: center;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(10, 132, 255, 0.28), transparent 70%),
    radial-gradient(40% 30% at 80% 30%, rgba(94, 92, 230, 0.16), transparent 70%),
    var(--ink);
}
.hero-icon { width: 112px; height: 112px; margin: 0 auto 26px; border-radius: 25px; box-shadow: 0 18px 50px rgba(10, 132, 255, 0.25); }
.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.h-hero, .h-sec {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; margin: 0;
  background: linear-gradient(180deg, var(--silver-1) 35%, var(--silver-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h-hero { font-size: clamp(44px, 7.4vw, 84px); line-height: 1.02; }
.h-sec { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; }
.lede { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.45; color: var(--muted); max-width: 720px; margin: 22px auto 0; }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 36px 0 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--text); color: #000; }
.btn-primary:hover { background: #fff; }
.btn-ghost { color: var(--text); border: 1px solid rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.5); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.hero-note { font-size: 14px; color: var(--faint); margin: 0; }
.hero-shot { margin: 64px auto 0; max-width: 560px; padding: 0 24px; }
.hero-shot img { border-radius: 26px 26px 0 0; box-shadow: 0 -10px 80px rgba(10, 132, 255, 0.18); }

/* The icon's rolling digits, as a quiet decoration */
.tally { display: inline-flex; gap: 4px; font: 700 15px/1 var(--rounded); color: var(--silver-2); margin-bottom: 20px; }
.tally span {
  display: inline-block; min-width: 26px; padding: 7px 0; border-radius: 7px;
  background: linear-gradient(180deg, #1c1f26, #0b0c10); border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

/* Bands */
.band { padding: 112px 0; }
.band-alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.body { color: var(--muted); font-size: 18px; margin: 18px 0 0; }
.body strong { color: var(--text); font-weight: 600; }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.points li { position: relative; padding-left: 30px; color: var(--muted); }
.points li strong { color: var(--text); font-weight: 600; }
.points li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z' fill='white'/%3E%3C/svg%3E") center/13px no-repeat;
}
.shot img { border-radius: var(--radius); border: 1px solid var(--line); }
.shot-phone { max-width: 380px; margin: 0 auto; }
.shot-wide { margin-top: 56px; }
.caption { font-size: 13px; color: var(--faint); margin: 12px 0 0; text-align: center; }
.center { text-align: center; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; text-align: left; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin: 16px 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card p + p { margin-top: 12px; }
.card .badge {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(10, 132, 255, 0.14); color: var(--blue-2);
}
.card .badge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Prose (privacy, support) */
.page-head { padding: 88px 0 8px; }
.page-head .lede { margin-left: 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; margin: 56px 0 12px; }
.prose h3 { font-size: 19px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 22px; }
.prose li { margin: 8px 0; }
.prose code { font: 15px ui-monospace, "SF Mono", Menlo, monospace; color: var(--text); }
.updated { color: var(--faint); font-size: 14px; margin-top: 18px; }
.summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px; margin-top: 40px; max-width: 760px; }
.summary ul { margin: 0; padding-left: 20px; }
.summary li { color: var(--muted); margin: 6px 0; }
.summary strong { color: var(--text); }

/* FAQ */
.faq { max-width: 820px; margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 26px/1 var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { color: var(--muted); padding: 0 0 18px; }
.faq .answer p { margin: 0 0 10px; }
.faq .answer strong { color: var(--text); font-weight: 600; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: 14px; color: var(--faint); }
.footer-links { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a { color: var(--muted); }
.foot-note { margin: 0; max-width: 760px; }

@media (max-width: 860px) {
  .split, .cards, .cards.two { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .split { gap: 40px; }
  .band { padding: 80px 0; }
  .nav-hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

