/* AnyPings marketing site — shared styles
   Used by the landing page, download page, guides and comparison pages. */

:root {
  --bg: #0b0e14;
  --bg-soft: #0e1118;
  --surface: #141925;
  --surface-2: #1a2030;
  --border: #242b3d;
  --border-strong: #33405c;
  --text: #f5f7fb;
  --muted: #a3aec2;
  --primary: #3b82f6;
  --primary-strong: #2563eb;
  --accent: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  --danger: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
img { height: auto; }

a {
  color: #8ab4ff;
  text-decoration: none;
}
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}
.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
.nav .nav-cta {
  color: #fff;
  background: var(--primary);
  padding: 9px 16px;
  border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--primary-strong); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

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

.hero {
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(59, 130, 246, 0.18), transparent 65%),
    radial-gradient(700px 380px at 95% 10%, rgba(34, 211, 238, 0.10), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  color: #bcd3ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -1.6px;
  font-weight: 800;
}
.hero h1 { max-width: 15ch; }
.lede {
  margin: 0 0 28px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}
.hero-note strong { color: var(--text); }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
}

/* Product preview illustration (pure CSS, no screenshot needed) */
.app-preview {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, #121826, #0d1119);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 360px;
}
.app-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at 80% 0%, rgba(59, 130, 246, 0.16), transparent 70%);
  pointer-events: none;
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.preview-dot { width: 9px; height: 9px; border-radius: 50%; background: #3a4256; }
.preview-title {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.preview-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 310px;
}
.preview-side {
  border-right: 1px solid var(--border);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.preview-side .side-active {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
}
.side-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  flex: 0 0 auto;
}
.side-lines { flex: 1; }
.side-lines span {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #2a3246;
}
.side-lines span + span { margin-top: 5px; width: 68%; background: #232a3b; }
.preview-thread {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}
.bubble {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #e9eefb;
}
.bubble-in {
  align-self: flex-start;
  background: #1c2333;
  border: 1px solid #283146;
  border-bottom-left-radius: 4px;
}
.bubble-out {
  align-self: flex-end;
  background: linear-gradient(135deg, #2f6bd6, #2453a8);
  border-bottom-right-radius: 4px;
}
.bubble-meta {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  color: rgba(233, 238, 251, 0.65);
}
.preview-input {
  margin-top: 8px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-tight { padding: 52px 0; }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.9px;
}
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

.grid {
  display: grid;
  gap: 18px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}
.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.2px;
}
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  font-size: 19px;
}

.platform-card { display: flex; flex-direction: column; }
.platform-card .btn { margin-top: 18px; align-self: flex-start; }
.platform-card .small { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  padding: 24px 24px 24px 68px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 14.5px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.steps strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 15.5px; }

/* ---------- Article / guides ---------- */

.breadcrumb {
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #55617a; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

.article-head { padding: 34px 0 26px; border-bottom: 1px solid var(--border); }
.article-head h1 { max-width: 22ch; margin-bottom: 14px; font-size: clamp(32px, 4.4vw, 48px); }
.article-head .lede { margin-bottom: 0; font-size: 18px; }
.article-meta {
  margin-top: 16px;
  color: #7f8ba3;
  font-size: 13px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
  padding: 44px 0 72px;
}
.prose { max-width: 72ch; }
.prose h2 {
  margin: 44px 0 14px;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  scroll-margin-top: 90px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin: 28px 0 10px;
  font-size: 19px;
  letter-spacing: -0.2px;
}
.prose p { margin: 0 0 18px; color: #d6dcea; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; color: #d6dcea; }
.prose li { margin-bottom: 8px; }
.prose strong { color: #fff; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--primary);
  background: rgba(59, 130, 246, 0.07);
  border-radius: 0 10px 10px 0;
  color: #cdd7ea;
}
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: #d6dcea;
  font-size: 14.5px;
}
.callout strong { color: #fff; }
.callout-warn {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.07);
}
.callout-info {
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.06);
}

.key-facts {
  margin: 26px 0;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
}
.key-facts h2 {
  margin: 0 0 12px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
}
.key-facts ul { margin: 0; padding-left: 20px; }
.key-facts li { margin-bottom: 7px; color: #d6dcea; font-size: 14.5px; }

.table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: rgba(255, 255, 255, 0.03);
  color: #cdd7ea;
  font-weight: 700;
}
tr:last-child td { border-bottom: 0; }
td:first-child { color: #cdd7ea; font-weight: 600; }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--danger); font-weight: 700; }
.partial { color: var(--amber); font-weight: 700; }

.toc {
  position: sticky;
  top: 92px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.toc h2 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc li { margin-bottom: 6px; }
.toc a { color: #c9d3e6; font-size: 14px; }

.faq { margin-top: 22px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 10px;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 20px 18px; color: #d6dcea; font-size: 14.5px; }
.faq .faq-body p { margin: 0 0 10px; }

.cta-band {
  margin: 10px 0 0;
  padding: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background:
    radial-gradient(700px 260px at 15% 0%, rgba(59, 130, 246, 0.2), transparent 65%),
    linear-gradient(180deg, #131a28, #0e131d);
  text-align: center;
}
.cta-band h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.6px; }
.cta-band p { margin: 0 auto 22px; max-width: 60ch; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.related { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--border); }
.related h2 { margin: 0 0 16px; font-size: 20px; }
.related ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.related a { font-weight: 600; }

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

.site-footer {
  margin-top: 40px;
  padding: 52px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
}
.footer-brand p { margin: 12px 0 0; max-width: 34ch; }
.footer-col h2 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #cdd7ea;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  font-size: 13px;
  color: #7f8ba3;
}

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

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .app-preview { max-width: 620px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .toc { position: static; order: -1; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { min-height: 60px; }
  .nav a:not(.nav-cta) { display: none; }
  .hero { padding: 48px 0 44px; }
  .hero h1 { letter-spacing: -1px; }
  .lede { font-size: 16.5px; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: minmax(0, 1fr); }
  .cta-band { padding: 28px 20px; }
  .article-head h1 { font-size: 32px; }
  .toc { display: none; }
  .preview-body { grid-template-columns: 1fr; }
  .preview-side { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
