/* Shared look for the pages that still use site.css (legal pages, Autopilot, download page):
   the homepage header, footer and "Cloud" background, so every page looks the same.
   Load it after site.css and give <body> the class "themed". */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-700.woff2") format("woff2"); }

body.themed { --muted:#C3CCDA; --ink:#D5DBE5; --link:#7FD3F5; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #1E4274 0%, #1B3B6B 45%, #1F4479 100%) fixed; }
body.themed .bg-navy, body.themed .bg-deep, body.themed .hero { background: transparent; }
body.themed .legal h1, body.themed .legal h2 { font-family: inherit; letter-spacing: -0.02em; font-weight: 600; }

/* Cloud: soft fog + a faint moving grid (paused on phones and with reduced motion) */
body.themed::before { content: ""; position: fixed; inset: -15%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 32% at 18% 22%, rgba(255,255,255,.10), transparent 70%),
              radial-gradient(44% 36% at 82% 28%, rgba(0,176,240,.13), transparent 72%),
              radial-gradient(52% 42% at 50% 88%, rgba(127,180,240,.20), transparent 72%),
              radial-gradient(32% 28% at 70% 62%, rgba(255,255,255,.08), transparent 70%);
  animation: fog-drift 70s ease-in-out infinite alternate; }
body.themed::after { content: ""; position: fixed; inset: -56px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(127,211,245,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(127,211,245,.07) 1px, transparent 1px);
  background-size: 56px 56px; animation: grid-page 12s linear infinite; }
@keyframes fog-drift { 0% { transform: translate(0,0); } 50% { transform: translate(3%,-2%); } 100% { transform: translate(-3%,2%); } }
@keyframes grid-page { to { transform: translate(56px,56px); } }
@media (max-width: 600px) { body.themed::before, body.themed::after { animation: none; } }
@media (prefers-reduced-motion: reduce) { body.themed::before, body.themed::after { animation: none; } }

/* Header (same as the homepage) */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(14,33,64,0.96); border-bottom: 1px solid rgba(44,74,117,0.9); }
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .bar { background: rgba(14,33,64,0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.bar-inner { max-width: 1180px; margin: 0 auto; min-height: 64px; padding: 0 24px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.bar .brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-family: inherit; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
.bar .links { display: flex; justify-content: center; gap: 28px; }
.bar .links a, .bar .login { color: #D5DEE8; text-decoration: none; font-weight: 500; font-size: 14px; }
.bar .bar-end { display: flex; align-items: center; gap: 16px; justify-self: end; }
.bar .cta { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border-radius: 6px; background: #558ED5; color: #0B1A2F !important; text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.bar .menu-btn { display: none; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; background: transparent; color: #fff; }
.phone-menu { display: none; padding: 4px 24px 12px; border-bottom: 1px solid rgba(44,74,117,0.9); background: rgba(14,33,64,0.95); }
.phone-menu a { display: flex; align-items: center; min-height: 48px; color: #fff; text-decoration: none; font-size: 16px; font-weight: 500; border-top: 1px solid rgba(255,255,255,0.08); }
.bar.open .phone-menu { display: block; }
@media (max-width: 899px) {
  .bar .links, .bar .desk { display: none; }
  .bar .bar-end .cta { font-size: 13px; padding: 0 10px; white-space: nowrap; }
  .bar .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .bar-inner { padding: 0 16px; }
}

/* Footer (same as the homepage) */
.foot { border-top: 1px solid rgba(255,255,255,0.08); }
.foot-inner { max-width: 1120px; margin: 0 auto; padding: 36px 24px 48px; display: grid; gap: 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: var(--link); text-decoration: none; }
.foot p { margin: 0; color: var(--muted); font-size: 13px; }

/* Top bar on phones: "Log in" stays visible next to the trial button; the button says "Free trial" on narrow screens */
.bar .cta-short { display: none; }
@media (max-width: 899px) {
  .bar .bar-end { gap: 10px; }
  .bar .login { font-size: 13px; white-space: nowrap; padding: 8px 2px; }
}
@media (max-width: 359px) {
  .bar .cta-long { display: none; }
  .bar .cta-short { display: inline; }
  .bar .bar-end { gap: 8px; }
}
