/* ─── Reset ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── Typography ─── */
body {
  font-family: 'SF Pro Text', 'SF Pro Icons', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, .sf-display {
  font-family: 'SF Pro Display', 'SF Pro Icons', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
::selection { background: #0071e3; color: #fff; }
::-webkit-scrollbar { width: 0; background: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; }

/* ─── Pill CTAs ─── */
.pill-cta {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 980px;
  font-size: 17px; line-height: 1.47; letter-spacing: -0.022em;
  text-decoration: none; transition: all .2s;
  border: 1px solid transparent;
}
.pill-cta.filled  { background: #0071e3; color: #fff; border-color: #0071e3; }
.pill-cta.filled:hover { background: #0077ed; border-color: #0077ed; }
.pill-cta.white   { background: #fff; color: #1d1d1f; border-color: #fff; }
.pill-cta.white:hover { background: rgba(255,255,255,0.88); }
.pill-cta.outline-light { color: #0066cc; border-color: #0066cc; background: transparent; }
.pill-cta.outline-light:hover { background: #0066cc; color: #fff; }
.pill-cta.outline-dark  { color: #2997ff; border-color: #2997ff; background: transparent; }
.pill-cta.outline-dark:hover  { background: #2997ff; color: #000; }

/* ─── Learn-more links ─── */
.learn-more { color: #0066cc; font-size: 17px; text-decoration: none; letter-spacing: -0.022em; }
.learn-more.on-dark { color: #2997ff; }
.learn-more:hover { text-decoration: underline; }
.learn-more::after { content: " \203A"; }

/* ─── Nav ─── */
.nav-link { transition: opacity .2s; }
.nav-link:hover { opacity: 1 !important; }

/* ─── Cards ─── */
.tile-card { transition: transform .4s cubic-bezier(0.28,0.16,0.22,1), box-shadow .4s; }
.tile-card:hover { transform: translateY(-2px); }

/* ─── Mobile nav ─── */
.nav-hamburger { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; color: #fff; }
.nav-mobile-menu { border-top: 1px solid rgba(255,255,255,0.1); }
.nav-mobile-link {
  display: block; width: 100%; padding: 14px 22px;
  color: rgba(255,255,255,0.86); font-size: 17px; font-weight: 400;
  letter-spacing: -0.022em; text-decoration: none; text-align: left;
  background: transparent; border: none; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-mobile-link:active { background: rgba(255,255,255,0.06); }

/* ─── Responsive grid ─── */
@media (max-width: 860px) {
  .nav-links-desktop { display: none !important; }
  .nav-hamburger { display: flex; align-items: center; justify-content: center; }
  .grid-2col, .grid-3col, .grid-4col { grid-template-columns: 1fr !important; }
  .grid-3col > *, .grid-4col > * { grid-column: span 1 !important; }
  .grid-featured { grid-template-columns: 1fr !important; }
}
