/* site.css: shared by every public page (landing, blog, terms, privacy).
   Tokens are copied from dashboard/src/index.css. Header and footer markup live in scripts/partials/. */
/* Tokens: copied from dashboard/src/index.css, plus page-only ones (page, wash, mark). */
:root {
  --page: #f6f9f7;
  --wash: oklch(0.93 0.06 161 / 0.75);
  --background: #ffffff;
  --card: #ffffff;
  --ink: #08090a;
  --ink-muted: #3c4047;
  --muted-fg: #62666d;
  --ink-tertiary: #8a8f98;
  --surface-2: #f6f7f7;
  --surface-3: #eef0f1;
  --border: #e6e8eb;
  --border-strong: #d5d8dc;
  --primary: oklch(0.56 0.13 161);
  --primary-hover: oklch(0.52 0.13 161);
  --primary-fg: #ffffff;
  --mark: oklch(0.86 0.12 161 / 0.7);
  --bug: #d64545;
  --info: #2f6ed1;
  --warning: #a66a00;
  --status-planned: #2f6ed1;
  --status-progress: #c48a00;
  --status-shipped: #1f8a3a;
  --success-soft: rgb(39 166 68 / 0.08);
  --code-bg: #0f1011; --code-fg: #d0d6e0; --code-dim: #62666d; --code-keyword: #c49cff; --code-string: #8fdc9c; --code-type: #7cc4ff; --code-fn: #6be2e6;
  --panel: #010102; --panel-surface: #0f1011; --panel-surface-2: #141516; --panel-border: #23252a;
  --panel-ink: #f7f8f8; --panel-ink-muted: #8a8f98; --panel-accent: #3ecf8e; --panel-bug: #eb5757;
  --shadow: 0 1px 2px rgb(8 9 10 / 0.04), 0 12px 32px -12px rgb(8 9 10 / 0.14);
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px;
  --display: "Schibsted Grotesk", "Inter", sans-serif;
  --sans: "Inter", ui-sans-serif, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #010102; --wash: oklch(0.45 0.1 161 / 0.22);
    --background: #010102; --card: #0f1011; --ink: #f7f8f8; --ink-muted: #d0d6e0; --muted-fg: #8a8f98; --ink-tertiary: #62666d;
    --surface-2: #141516; --surface-3: #18191a; --border: #23252a; --border-strong: #34343a;
    --primary: #3ecf8e; --primary-hover: #5fdba3; --primary-fg: #06140d; --mark: rgb(62 207 142 / 0.28);
    --bug: #eb5757; --info: #4ea7fc; --warning: #f2c94c;
    --status-planned: #4ea7fc; --status-progress: #f2c94c; --status-shipped: #27a644; --success-soft: rgb(39 166 68 / 0.12);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 40px -16px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #010102; --wash: oklch(0.45 0.1 161 / 0.22);
  --background: #010102; --card: #0f1011; --ink: #f7f8f8; --ink-muted: #d0d6e0; --muted-fg: #8a8f98; --ink-tertiary: #62666d;
  --surface-2: #141516; --surface-3: #18191a; --border: #23252a; --border-strong: #34343a;
  --primary: #3ecf8e; --primary-hover: #5fdba3; --primary-fg: #06140d; --mark: rgb(62 207 142 / 0.28);
  --bug: #eb5757; --info: #4ea7fc; --warning: #f2c94c;
  --status-planned: #4ea7fc; --status-progress: #f2c94c; --status-shipped: #27a644; --success-soft: rgb(39 166 68 / 0.12);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 40px -16px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

/* Theme switch: soft circular reveal from the top-left, carried over from the previous page. */
:root { --expo-out: linear(0 0%, 0.1684 2.66%, 0.3165 5.49%, 0.446 8.52%, 0.5581 11.78%, 0.6535 15.29%, 0.7341 19.11%, 0.8011 23.3%, 0.8557 27.93%, 0.8962 32.68%, 0.9283 38.01%, 0.9529 44.08%, 0.9711 51.14%, 0.9833 59.06%, 0.9915 68.74%, 1 100%); }
::view-transition-group(root) { animation-timing-function: var(--expo-out); }
::view-transition-new(root) {
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><defs><filter id="blur"><feGaussianBlur stdDeviation="2"/></filter></defs><circle cx="0" cy="0" r="18" fill="white" filter="url(%23blur)"/></svg>') top left / 0 no-repeat;
  mask-origin: content-box;
  animation: theme-reveal 1s;
  animation-fill-mode: both;
  transform-origin: top left;
}
::view-transition-old(root) { animation: theme-reveal 1s; animation-fill-mode: both; transform-origin: top left; z-index: -1; }
@keyframes theme-reveal { to { mask-size: 350vmax; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink);
  background-color: var(--page);
  background-image:
    radial-gradient(60rem 36rem at 15% -8rem, var(--wash), transparent 70%),
    radial-gradient(44rem 30rem at 100% 20rem, var(--wash), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-repeat: no-repeat, no-repeat, repeat;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* Buttons: the app's buttons (8px radius, 40px tall). */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-md); font: 500 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: var(--card); border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--border-strong); }
.btn-lg { height: 46px; padding: 0 20px; font-size: 16px; }

/* Header */
/* Header: transparent at the top; on scroll the bar shrinks into a floating pill (class .is-floating set by site.js). */
.top { position: sticky; top: 0; z-index: 50; height: 64px; pointer-events: none; }
.top .wrap { pointer-events: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; height: 56px; max-width: 1180px; margin-top: 4px; padding: 0; border: 1px solid transparent; border-radius: 16px; background: transparent;
  transition: max-width .5s cubic-bezier(.22,1,.36,1), padding .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1), border-radius .5s cubic-bezier(.22,1,.36,1), background-color .3s ease-out, border-color .3s ease-out, box-shadow .4s ease-out, height .5s cubic-bezier(.22,1,.36,1); }
.top.is-floating .wrap { max-width: 760px; height: 50px; padding: 0 7px 0 14px; transform: translateY(8px); border-radius: 999px; border-color: var(--border); background: color-mix(in oklab, var(--page) 78%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); box-shadow: 0 1px 2px rgb(8 9 10 / .05), 0 12px 32px -12px rgb(8 9 10 / .22); }
.top .btn { transition: border-radius .5s cubic-bezier(.22,1,.36,1); }
.top.is-floating .btn { border-radius: 999px; }
.top.is-floating nav a:not(.btn) { border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .top .wrap, .top .btn { transition: none; } }
.brand { display: flex; align-items: center; gap: 9px; font: 600 17px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; margin-right: auto; }
.brand svg { width: 30px; height: 30px; margin: -3px -2px -3px -4px; }
.top nav { display: flex; align-items: center; gap: 2px; }
.top nav a:not(.btn) { padding: 8px 10px; font-size: 14px; font-weight: 500; color: var(--muted-fg); text-decoration: none; border-radius: var(--r-md); }
.top nav a:not(.btn):hover { color: var(--ink); background: var(--surface-3); }
.top .btn { height: 34px; font-size: 14px; padding: 0 12px; margin-left: 6px; }
.theme { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted-fg); border-radius: var(--r-md); cursor: pointer; margin-left: 2px; }
.theme:hover { background: var(--surface-3); color: var(--ink); }
.theme svg { width: 17px; height: 17px; }
.top .brand { margin-right: 0; }
.top .lft { display: flex; align-items: center; gap: 6px; justify-self: start; }
.top .mid { justify-self: center; }
.top .act { justify-self: end; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; } :root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: block; } :root:not([data-theme="light"]) .theme .moon { display: none; } }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; margin: 0; font-optical-sizing: auto; }
h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: 0.98; }
h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.02; }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
/* Highlighter: a background stroke, so it wraps with the text (box-decoration-break). */
.hl { background: linear-gradient(var(--mark), var(--mark)) 0 92% / 100% 58% no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.06em; margin: 0 -0.06em; border-radius: 0.12em; }
.js .hl { background-size: 0% 58%; transition: background-size .8s cubic-bezier(.65,0,.25,1) .35s; }
.js .in .hl, .js .hl.in { background-size: 100% 58%; }
.tag { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-fg); }
.tag i { width: 7px; height: 7px; border-radius: 2px; background: var(--primary); }
.lede { font-size: 18px; color: var(--muted-fg); max-width: 34em; }

/* Reveal */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .4s ease-out, transform .4s ease-out; transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
/* ---------- Footer ---------- */
.foot { margin-top: 180px; background: var(--panel); color: var(--panel-ink); border-top: 1px solid var(--panel-border); position: relative; overflow: hidden; }
.foot::before { content: ""; position: absolute; inset: -40% 10% auto; height: 520px; background: radial-gradient(closest-side, rgb(62 207 142 / .18), transparent); pointer-events: none; }
.foot .last { position: relative; padding: 110px 0 80px; text-align: center; }
.foot .last svg { width: 64px; height: 64px; margin: 0 auto 20px; }
.foot h2 { font-size: clamp(38px, 5.5vw, 64px); color: var(--panel-ink); }
.foot h2 .hl { --mark: rgb(62 207 142 / .32); }
.foot .last p { margin: 16px auto 0; max-width: 32em; font-size: 17px; color: var(--panel-ink-muted); }
.foot .last .cta { justify-content: center; }
.foot .btn-primary { background: #3ecf8e; color: #06140d; } .foot .btn-primary:hover { background: #5fdba3; }
.foot .btn-outline { background: transparent; border-color: var(--panel-border); color: var(--panel-ink); }
.foot .btn-outline:hover { border-color: #34343a; }
.fgrid { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding: 48px 0 40px; border-top: 1px solid var(--panel-border); font-size: 14px; }
.fbrand p { margin: 10px 0 12px; max-width: 30ch; color: var(--panel-ink-muted); line-height: 1.55; }
.fbrand .fname { font: 600 17px/1 var(--sans); color: var(--panel-ink); text-decoration: none; }
.fgrid a { color: var(--panel-ink-muted); text-decoration: none; } .fgrid a:hover { color: var(--panel-ink); }
.fgrid nav { display: flex; flex-direction: column; gap: 10px; }
.fgrid h3 { margin: 0 0 4px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--panel-ink); }
.fbar { position: relative; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 18px 0 26px; border-top: 1px solid var(--panel-border); font-size: 13px; color: var(--panel-ink-muted); }
.fbar .r { margin-left: auto; }

/* Header + footer, small screens */
@media (max-width: 760px) {
  .top nav .hide-sm { display: none; }
  .fbar .r { margin-left: 0; width: 100%; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .fbrand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  /* Phones: logo + theme on the left, only the Start free button on the right. */
  .top .wrap { grid-template-columns: 1fr auto; }
  .top .mid, .top .act a:not(.btn) { display: none; }
  .top .btn { margin-left: 0; }
}
@media (max-width: 340px) { .brand span { display: none; } }
