/* The public pages (the landing and pricing): pale blue paper, navy ink, Instrument Serif titles, and
   a wave of blue squares along the page's edges, drawn by site.js on the same 24px grid as the faint
   lines beside it. */
:root {
  color-scheme: light;
  --s-paper: #f3f6fc;
  --s-ink: #0f2f7a;
  --s-ink-soft: #3b4a73;
  --s-blue: #1f5ae0;
  --s-rule: #c8d5ee;
  --s-card: #ffffff;
  --s-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --s-sans: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --s-gutter: 40px;
  --s-band: 200px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: auto; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  position: relative; min-height: 100vh; margin: 0; overflow-x: clip;
  background: linear-gradient(180deg, #f6f8fd 0%, #e9f0fb 24%, #f3f6fc 52%, #edf2fb 100%);
  color: var(--s-ink); font: 400 17px/1.5 var(--s-sans); -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--s-blue); outline-offset: 3px; border-radius: 4px; }

/* The grid shows only near the edges, where the squares are. */
body::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgb(31 90 224 / .08) 1px, transparent 1px),
                    linear-gradient(to bottom, rgb(31 90 224 / .08) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to right, #000, transparent var(--s-band), transparent calc(100% - var(--s-band)), #000),
                      linear-gradient(to bottom, #000, transparent 160px), linear-gradient(to top, #000, transparent 160px);
          mask-image: linear-gradient(to right, #000, transparent var(--s-band), transparent calc(100% - var(--s-band)), #000),
                      linear-gradient(to bottom, #000, transparent 160px), linear-gradient(to top, #000, transparent 160px);
}
.site-squares { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
/* Phones and tablets: no squares, no grid. */
@media (pointer: coarse), (max-width: 760px) { .site-squares, body::before { display: none; } }
.site {
  position: relative; z-index: 1; max-width: 1180px; margin: 0 auto;
  padding-left: max(var(--s-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--s-gutter), env(safe-area-inset-right, 0px));
}

/* --- words ----------------------------------------------------------------------------------- */
.site-caps {
  font: 600 12px/1.2 var(--s-sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--s-ink); text-decoration: none;
}
a.site-caps:hover, .site-caps[aria-current="page"] { color: var(--s-blue); }
.site-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 28px;
  border-radius: 999px; background: var(--s-ink); color: #fff; font: 600 16px/1 var(--s-sans);
  text-decoration: none; transition: background-color .2s;
}
.site-btn:hover { background: var(--s-blue); }

/* --- top: the brand, three links, Download for Mac (on phones the links fold into a menu) ------ */
.site-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 104px; }
.site-brand {
  display: inline-flex; align-items: center; color: var(--s-ink); text-decoration: none;
  font: 400 34px/1 var(--s-serif); letter-spacing: -0.01em;
}
.site-brand svg { width: 52px; height: 52px; margin: -8px -6px -8px -14px; }
.site-nav { position: relative; display: flex; align-items: center; gap: 32px; }
.site-links { display: flex; align-items: center; gap: 32px; }
.site-pill {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 1px solid var(--s-ink);
  border-radius: 999px; background: rgb(255 255 255 / .55); transition: background-color .2s, color .2s;
}
a.site-pill:hover { background: var(--s-ink); color: #fff; }
.site-menu {
  display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--s-ink); border-radius: 999px; background: rgb(255 255 255 / .55); color: var(--s-ink);
  cursor: pointer;
}
.site-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* --- foot ------------------------------------------------------------------------------------ */
.site-foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 24px;
  padding-block: 28px 72px; border-top: 1px solid var(--s-rule); font-size: 14px; color: var(--s-ink-soft);
}
.site-foot a { color: var(--s-ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--s-ink); }
.site-foot__note { flex-basis: 100%; margin: 0; text-align: center; font-size: 12px; }

@media (max-width: 760px) {
  :root { --s-gutter: 24px; }
  .site-top { height: 84px; }
  .site-brand { font-size: 30px; }
  .site-brand svg { width: 44px; height: 44px; }
  .site-nav { gap: 8px; }
  .site-pill { height: 38px; padding: 0 14px; font-size: 11px; }
  .site-menu { display: inline-flex; width: 38px; height: 38px; }
  .site-links {
    display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; min-width: 210px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 6px; background: var(--s-card);
    border: 1px solid var(--s-rule); border-radius: 14px; box-shadow: 0 16px 40px -16px rgb(15 47 122 / .45);
  }
  .site-nav.is-open .site-links { display: flex; }
  .site-links .site-caps { padding: 13px 12px; border-radius: 8px; }
  .site-links .site-caps:hover { background: #eef3ff; }
  .site-foot { gap: 10px 20px; font-size: 13px; }
}
