/* Shared styles for every page: tokens, base type, buttons, header menu, CTA band and footer,
   plus the case study pages. Page-specific styles stay inline in each page. */
:root {
  --bg: #f6f7fb;           /* page ground, cool white */
  --surface: #ffffff;      /* cards, frames */
  --sunk: #eef0f7;         /* inset areas inside UI mocks */
  --line: #e2e5ef;
  --fg: #10132a;
  --muted: #5d6480;
  --faint: #8d93ab;
  --blue: #4562f5;         /* brand blue, from the deck gradient */
  --rose: #e2649a;         /* gradient end */
  --go: #ff5a1f;           /* donate orange used on SmartRaise forms */
  --ok: #10a870;
  --ok-soft: #e3f7ee;
  --blue-soft: #e9edff;
  --rose-soft: #fdebf3;
  --shadow: 0 1px 2px rgba(16,19,42,.05), 0 12px 32px -12px rgba(16,19,42,.14);
  --shadow-lg: 0 2px 4px rgba(16,19,42,.04), 0 40px 80px -30px rgba(40,50,120,.30);
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0e1a; --surface: #151829; --sunk: #1c2035; --line: #272c45; --fg: #eef0fa; --muted: #a0a7c2; --faint: #6f7694;
    --blue: #7d93ff; --rose: #f08cb8; --go: #ff6a32; --ok: #3fd49a; --ok-soft: #133528; --blue-soft: #1d2448; --rose-soft: #3a1d2c;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0e1a; --surface: #151829; --sunk: #1c2035; --line: #272c45; --fg: #eef0fa; --muted: #a0a7c2; --faint: #6f7694;
  --blue: #7d93ff; --rose: #f08cb8; --go: #ff6a32; --ok: #3fd49a; --ok-soft: #133528; --blue-soft: #1d2448; --rose-soft: #3a1d2c;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--body); letter-spacing: .02em; color: var(--blue); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.lede { color: var(--muted); font-size: 19px; max-width: 60ch; }
section { padding-block: 104px; }
.sec-head { display: grid; gap: 18px; margin-bottom: 52px; max-width: 760px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head h2 { font-size: clamp(34px, 4.6vw, 54px); }
.grad { background: linear-gradient(95deg, var(--blue) 10%, var(--rose) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.tnum { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font: 600 15.5px/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: var(--fg); color: var(--bg); box-shadow: 0 8px 20px -8px rgba(16,19,42,.5); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--faint); }
.btn svg { width: 16px; height: 16px; }


/* Nav: shared header and menu on every page. Desktop shows the links inline; below 920px the links collapse behind a menu button. */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--display); letter-spacing: .02em; }
.menu { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex: 1; }
.menu > ul { display: flex; gap: 30px; list-style: none; margin: 0 auto; padding: 0; font-size: 15px; font-weight: 500; color: var(--muted); }
.menu > ul > li { position: relative; }
.menu a { text-decoration: none; }
.menu > ul > li > a { display: inline-flex; align-items: center; gap: 6px; padding-block: 8px; }
.menu > ul > li > a:hover, .menu > ul > li > a[aria-current] { color: var(--fg); }
.menu .v3link { color: var(--fg); }
.menu .v3link b { font: 600 10px/1 var(--mono); padding: 3px 6px; border-radius: 6px; background: var(--rose-soft); color: var(--rose); margin-left: 0; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav .btn { padding: 11px 18px; font-size: 14.5px; }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--fg); border-radius: 12px; cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .x { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 920px) {
  .menu-btn { display: grid; }
  .nav.open .menu-btn .bars { display: none; } .nav.open .menu-btn .x { display: block; }
  /* absolute, not fixed: the header's backdrop-filter makes it the containing block for fixed children */
  .menu { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 68px); height: calc(100dvh - 68px - env(safe-area-inset-top, 0px)); z-index: 19; display: none; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 8px 20px 32px; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
  .nav.open .menu { display: flex; }
  .menu > ul { flex-direction: column; gap: 0; margin: 0; font-size: 19px; color: var(--fg); }
  .menu > ul > li { border-bottom: 1px solid var(--line); }
  .menu > ul > li > a { display: flex; padding-block: 16px; font-family: var(--display); font-weight: 600; }
  .nav-cta { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 24px; }
  .nav .nav-cta .btn { justify-content: center; padding: 15px 24px; font-size: 16px; }
  body.menu-open { overflow: hidden; }
}

/* Shared section bits used outside the homepage */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--fg); }
.crumbs span[aria-hidden] { color: var(--faint); }

/* Case study cards (homepage, case studies index, "more case studies") */
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cs-card { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.cs-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cs-card .cs-img { aspect-ratio: 16 / 10; background: var(--sunk); overflow: hidden; }
.cs-card .cs-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.cs-card:hover .cs-img img { transform: scale(1.03); }
.cs-body { display: grid; gap: 12px; align-content: start; padding: 22px 24px 24px; }
.cs-org { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.cs-org i { width: 10px; height: 10px; border-radius: 50%; }
.cs-card h3 { font-size: 23px; letter-spacing: -0.02em; }
.cs-card .cs-stat { display: flex; align-items: baseline; gap: 10px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); }
.cs-card .cs-stat strong { font: 800 30px/1 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.cs-card .cs-stat span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.cs-card .cs-more { font-size: 14.5px; font-weight: 600; color: var(--blue); }
.cs-card .cs-more::after { content: " \2192"; }
.cs-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 32px; }
.cs-head-row h3 { font-size: clamp(24px, 2.6vw, 30px); }
.link-arrow { font-weight: 600; color: var(--blue); text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 920px) { .cs-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cs-grid { grid-template-columns: 1fr; } }

/* Case study pages */
.page-hero { position: relative; padding-block: 56px 48px; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 700px; z-index: -1;
  background: radial-gradient(480px 340px at 18% 30%, color-mix(in srgb, var(--blue) 16%, transparent), transparent 70%),
              radial-gradient(480px 340px at 84% 18%, color-mix(in srgb, var(--rose) 14%, transparent), transparent 70%); }
.page-hero .wrap { display: grid; gap: 22px; }
.page-hero h1 { font-size: clamp(40px, 6.2vw, 76px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; max-width: 17ch; }
.page-hero .lede { font-size: clamp(18px, 2vw, 21px); }
.cs-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--muted); }
.chip b { color: var(--fg); font-weight: 600; }
.cs-cover { margin: 8px 0 0; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--sunk); aspect-ratio: 21 / 9; }
.cs-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-cover figcaption { display: none; }

.cs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-block: 8px 0; }
.cs-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow); }
.cs-stats strong { font: 800 clamp(34px, 4.4vw, 52px)/1 var(--display); letter-spacing: -0.04em; }
.cs-stats div:nth-child(1) strong { color: var(--blue); } .cs-stats div:nth-child(2) strong { color: var(--rose); } .cs-stats div:nth-child(3) strong { color: var(--ok); }
.cs-stats span { color: var(--muted); font-size: 15.5px; line-height: 1.45; }
@media (max-width: 760px) { .cs-stats { grid-template-columns: 1fr; } }

.cs-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 72px; padding-block: 72px 40px; }
.cs-aside { position: sticky; top: 100px; align-self: start; display: grid; gap: 22px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 15px; }
.cs-aside h2 { font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.cs-aside p { color: var(--fg); }
.cs-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cs-aside li { display: flex; gap: 10px; align-items: start; color: var(--fg); }
.cs-aside li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--blue); }
.cs-aside .btn { justify-content: center; }
.prose { max-width: 70ch; display: grid; gap: 22px; font-size: 18px; color: color-mix(in srgb, var(--fg) 86%, var(--muted)); }
.prose h2 { font-size: clamp(28px, 3.2vw, 38px); color: var(--fg); margin-top: 28px; }
.prose h2:first-child { margin-top: 0; }
.prose h2 .num { display: block; font: 600 13px/1 var(--mono); letter-spacing: .06em; color: var(--blue); margin-bottom: 12px; }
.prose h3 { font-size: 20px; color: var(--fg); letter-spacing: -0.015em; }
.prose strong { color: var(--fg); }
.prose ol, .prose ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: item; }
.prose ol li, .prose ul li { position: relative; padding: 18px 20px 18px 58px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.prose ol li { counter-increment: item; }
.prose ol li::before { content: counter(item); position: absolute; left: 18px; top: 17px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 700 13px/1 var(--mono); background: var(--blue-soft); color: var(--blue); }
.prose ul li::before { content: "\2713"; position: absolute; left: 18px; top: 17px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 700 14px/1 var(--body); background: var(--ok-soft); color: var(--ok); }
.prose li b { display: block; color: var(--fg); font-family: var(--display); font-size: 18px; margin-bottom: 2px; }
.prose figure { margin: 10px 0; display: grid; gap: 10px; }
.prose figure .frame { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--sunk); box-shadow: var(--shadow); }
.prose figure img { display: block; width: 100%; height: auto; }
.prose figcaption { font-size: 14px; color: var(--muted); }
.pull { margin: 18px 0; padding: 30px 32px; border-radius: 22px; background: var(--fg); color: var(--bg); display: grid; gap: 18px; position: relative; overflow: hidden; isolation: isolate; }
.pull::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(400px 220px at 0% 0%, color-mix(in srgb, var(--blue) 40%, transparent), transparent 70%), radial-gradient(400px 220px at 100% 100%, color-mix(in srgb, var(--rose) 34%, transparent), transparent 70%); }
.pull blockquote { margin: 0; font: 600 clamp(22px, 2.6vw, 30px)/1.3 var(--display); letter-spacing: -0.02em; }
.pull figcaption { font-size: 15px; opacity: .8; }
.pull figcaption b { opacity: 1; font-weight: 600; }
@media (max-width: 920px) {
  .cs-layout { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .cs-aside { position: static; }
  .cs-cover { aspect-ratio: 16 / 10; border-radius: 20px; }
}
@media (max-width: 560px) {
  .prose { font-size: 17px; }
  .prose ol li, .prose ul li { padding: 16px 16px 16px 52px; }
  .prose ol li::before, .prose ul li::before { left: 14px; top: 15px; }
  .pull { padding: 24px; }
}
.more-cs { padding-block: 40px 24px; }

.sr-logo { display: block; height: 21px; width: auto; }
footer .sr-logo { height: 18px; }

/* Final CTA */
.final { padding-block: 40px 104px; }
.final-card { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(40px, 7vw, 88px) 24px; text-align: center; background: var(--fg); color: var(--bg); display: grid; gap: 26px; justify-items: center; isolation: isolate; }
.final-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 300px at 20% 0%, color-mix(in srgb, var(--blue) 45%, transparent), transparent 70%), radial-gradient(500px 300px at 85% 100%, color-mix(in srgb, var(--rose) 40%, transparent), transparent 70%); }
.final-card svg.arcs { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); width: 900px; max-width: none; z-index: -1; opacity: .25; }
.final-card h2 { font-size: clamp(36px, 5.6vw, 66px); max-width: 15ch; }
.final-card p { opacity: .75; font-size: 18px; max-width: 50ch; }
.final-card .btn-primary { background: var(--bg); color: var(--fg); }
.final-card .btn-ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 30%, transparent); }

footer { border-top: 1px solid var(--line); padding-block: 48px; color: var(--muted); font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot div { display: grid; gap: 10px; align-content: start; }
.foot h4 { font: 600 14px var(--body); color: var(--fg); letter-spacing: 0; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--fg); }
.foot-base { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot { gap: 28px 20px; } .foot > div:first-child, .foot > div:last-child { grid-column: 1 / -1; } }

/* Demo and get started pages: copy on the left, the Fillout form card on the right */
.signup { padding-block: 56px 72px; }
.signup .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(32px, 6vw, 80px); align-items: start; }
.signup-copy { display: grid; gap: 22px; align-content: start; padding-top: 8px; }
.signup-copy h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.03; max-width: 14ch; }
.signup-copy .lede { font-size: clamp(17px, 1.8vw, 19px); max-width: 46ch; }
.signup-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.signup-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 16px; color: var(--muted); }
.signup-list li b { display: block; color: var(--fg); font-weight: 600; }
.signup-list li::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--ok-soft) no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310a870' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.signup-quote { margin: 8px 0 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); display: grid; gap: 10px; max-width: 520px; }
.signup-quote blockquote { margin: 0; font-size: 16px; line-height: 1.55; color: var(--fg); }
.signup-quote figcaption { font-size: 13.5px; color: var(--muted); }
.signup-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.signup-price strong { font: 800 44px/1 var(--display); letter-spacing: -0.03em; }
.signup-price span { color: var(--muted); font-size: 15px; }
.form-card { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); padding: clamp(8px, 1.5vw, 14px); min-height: 560px; }
.form-card [data-fillout-id] { width: 100%; min-height: 540px; }
.form-card .form-wait { display: grid; place-content: center; gap: 12px; min-height: 540px; padding: 24px; text-align: center; color: var(--muted); font-size: 15px; }
.form-card .form-wait b { color: var(--fg); }
.form-alt { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }
@media (max-width: 920px) { .signup .wrap { grid-template-columns: 1fr; } .signup-copy h1 { max-width: 18ch; } }

/* Legal pages (terms, subprocessors): plain readable text, no card styling */
.legal { max-width: 75ch; display: grid; grid-template-columns: minmax(0, 1fr); overflow-wrap: break-word; gap: 16px; font-size: 17px; color: color-mix(in srgb, var(--fg) 86%, var(--muted)); padding-bottom: 96px; }
.legal h2 { font-size: clamp(22px, 2.4vw, 28px); color: var(--fg); margin-top: 24px; }
.legal h2:first-child { margin-top: 0; }
.legal h2:first-of-type { margin-top: 8px; }
.legal h3 { font-size: 19px; color: var(--fg); letter-spacing: -0.01em; margin-top: 8px; }
.legal strong { color: var(--fg); }
.legal ul, .legal ol { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; }
.legal li::marker { color: var(--blue); }
.legal a { color: var(--blue); }
.legal-updated { font-size: 14px; color: var(--muted); }
.legal h2 .num { margin-right: .4em; color: var(--blue); }
.legal .legal-schedule { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal .cl { font-weight: 600; color: var(--fg); }
.legal p.l1 { padding-left: 1.6em; }
.legal p.l2 { padding-left: 3.2em; }
/* Legal pages: let the hero glow fade out instead of stopping at a hard edge */
.legal-hero { overflow: visible; overflow-x: clip; padding-bottom: 24px; }
.legal-hero::before { -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 85%); mask-image: linear-gradient(to bottom, #000 45%, transparent 85%); }
.legal-section { padding-block: 24px 0; }
