/* Analysis in Motion — site styles */
:root {
  --bg: #f2f4f7;
  --card: #ffffff;
  --ink: #62656e;
  --ink-soft: rgba(98, 101, 110, 0.81);
  --ink-faint: rgba(98, 101, 110, 0.55);
  --rule: #e6e8ec;
  --pill: rgba(98, 101, 110, 0.14);
  --pill-hover: rgba(98, 101, 110, 0.22);
  --radius: 12px;
  --max: 800px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Header / nav (small, unobtrusive) */
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 4px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-faint);
}
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .brand { font-weight: 400; color: var(--ink); }
.nav .links a { margin-left: 18px; }

/* Hero */
.hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2558 / 1715;
  object-fit: cover;
  max-height: 540px;
}

/* Sections */
.section {
  padding: 56px 72px;
  border-top: 1px solid var(--rule);
}
.section:first-of-type { border-top: 0; }

h1 {
  font-weight: 400;
  color: var(--ink);
  font-size: 44px;
  line-height: 1.2;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
h2 {
  font-weight: 400;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 14px;
}
h3 {
  font-weight: 400;
  color: var(--ink);
  font-size: 17px;
  margin: 32px 0 8px;
}
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: block;
  margin-bottom: 22px;
}

/* Pill buttons */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pill);
  color: var(--ink);
  text-decoration: none;
  font-weight: 400;
  font-size: 14px;
  padding: 0 20px;
  height: 44px;
  border-radius: 30px;
  transition: background 0.15s ease;
}
.pill:hover { background: var(--pill-hover); }
.pill svg { width: 12px; height: 12px; opacity: 0.5; }

/* Policy pages */
.policy .meta {
  font-size: 14px;
  color: var(--ink-faint);
  margin: -6px 0 28px;
}
.policy ul { padding-left: 22px; margin: 0 0 16px; }
.policy li { margin-bottom: 8px; }
.policy li ul { margin-top: 8px; margin-bottom: 0; }
.policy strong { font-weight: 400; color: var(--ink); }
.policy .switch {
  font-size: 14px;
  color: var(--ink-faint);
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 4px 40px;
  font-size: 13px;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer .links a { margin-right: 18px; }

@media (max-width: 860px) {
  .wrap { padding: 0 12px; }
  .nav, .footer { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .section { padding: 36px 24px; }
  h1 { font-size: 32px; }
  h2 { font-size: 20px; }
  .nav { flex-wrap: wrap; row-gap: 6px; }
  .nav .links a { margin-left: 12px; }
}
