/* Tideform design system. Light canvas; dark "lightbox" panels are where the
   x-ray happens (maps, live interview).
   Type: Schibsted Grotesk (text and headings) and Spline Sans Mono (labels), both OFL, self-hosted. */

@font-face { font-family: 'Schibsted Grotesk'; src: url('/fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('/fonts/schibsted-grotesk-latin-wght-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: 'Spline Sans Mono'; src: url('/fonts/spline-sans-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Spline Sans Mono'; src: url('/fonts/spline-sans-mono-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Warm neutrals: white page, greige cards, white tiles inside them */
  --bg: #ffffff;
  --bg-glow: #ffffff;
  --surface: #f2f1ed;
  --surface-2: #ffffff;
  --surface-3: #e8e7e1;
  --ink: #161616;
  --ink-2: #3d3d3a;
  --muted: #6b6b66;
  --line: rgba(22, 22, 22, 0.08);
  --line-strong: rgba(22, 22, 22, 0.14);
  /* actions are black pills with a lime arrow */
  --action: #161616;
  --action-hover: #000;
  --imessage: #161616;
  --bubble-grey: #f2f1ed;
  /* brand accent: lime. Fill only; text on lime is always ink. Where a line or
     text needs contrast on white, use --accent-strong (olive). */
  --lime: #dff24a;
  --accent: #dff24a;
  --accent-strong: #4f5c00;
  --accent-line: #9fb41c;
  --accent-soft: rgba(223, 242, 74, 0.38);
  --cream: #f2f1ed;
  --pill: #161616;
  --pill-ink: #ffffff;

  /* "lightbox" panels (maps, live interview) are greige cards too */
  --lb: #f2f1ed;
  --lb-2: #ffffff;
  --lb-ink: #161616;
  --lb-muted: #6b6b66;
  --lb-line: rgba(22, 22, 22, 0.08);
  --glow: #9fb41c;

  /* automation heat: warm grey (human work) -> lime (automatable) */
  --heat-0: oklch(93% 0.006 100);
  --heat-1: oklch(92% 0.05 108);
  --heat-2: oklch(91.5% 0.1 112);
  --heat-3: oklch(91% 0.15 115);
  --heat-4: oklch(90% 0.19 118);

  --ok: #34c759;
  --warn: #ff9f0a;
  --hard: #ff3b30;

  --radius: 24px;
  --radius-sm: 14px;
  --glass: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(22, 22, 22, 0.06);
  --blur: saturate(180%) blur(20px);
  /* flat: cards are separated by colour, not by shadow */
  --shadow-sm: none;
  --shadow: none;
  --shadow-lb: none;
  --shadow-pop: 0 18px 50px rgba(22, 22, 22, 0.12);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--accent-soft); }

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
/* section labels: a small lime pill, like a product tag */
.eyebrow { display: inline-flex; align-items: center; gap: 7px; width: fit-content; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--surface); font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--ink); }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px rgba(22, 22, 22, 0.25); }
.card .eyebrow, .lime .eyebrow { background: #fff; }
.muted { color: var(--muted); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 56ch; }
.num { font-variant-numeric: normal; }

/* pills & buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--action); color: #fff;
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  box-shadow: none;
  transition: transform 0.3s var(--spring), background 0.2s;
}
.btn:hover { background: var(--action-hover); }
.btn:active { transform: scale(0.96); }
.btn:has(.arrow) { padding-right: 7px; }
/* the arrow sits in a lime circle at the end of the pill */
.btn .arrow { width: 34px; height: 34px; margin-left: 4px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--lime); color: var(--ink); font-size: 15px; transition: transform 0.4s var(--spring); }
.btn:hover .arrow { transform: rotate(-45deg); }
.btn.ghost .arrow { background: var(--ink); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.ghost:hover { background: var(--surface); }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.lime .arrow { background: var(--ink); color: var(--lime); }
.btn.dark { background: var(--pill); color: var(--pill-ink); }
.btn.small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.small:has(.arrow) { padding-right: 5px; }
.btn.small .arrow { width: 28px; height: 28px; font-size: 13px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 13px; color: var(--ink-2); white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px oklch(72% 0.15 150 / 0.18); }

.card {
  background: var(--surface); border-radius: var(--radius);
}
/* highlight cards are lime, with ink text */
.card.lime, .lime-card { background: var(--lime); color: var(--ink); }
.card.lime .muted { color: rgba(22, 22, 22, 0.62); }
/* round lime icon badge, like a product spec */
.badge-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); flex: none; }
.badge-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile { background: #fff; border-radius: var(--radius-sm); }
.glass {
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 0 0 1px var(--glass-border), 0 1px 0 rgba(255, 255, 255, 0.8) inset, var(--shadow);
}
.lightbox {
  position: relative; isolation: isolate;
  background: var(--lb);
  color: var(--lb-ink); border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lb), inset 0 0 0 1px var(--lb-line);
  overflow: hidden;
}
.lightbox::before { /* faint dot grid */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: radial-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1px);
  background-size: 18px 18px; mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent);
}

/* nav */
.nav { position: sticky; top: 0; z-index: 50; padding: 14px 0; transition: background 0.3s, box-shadow 0.3s; }
.nav.scrolled { background: rgba(255, 255, 255, 0.8); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 14px; color: var(--ink-2); transition: background 0.2s; }
.nav-links a:not(.btn):hover { background: oklch(0% 0 0 / 0.05); }
.lang-toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); }
.lang-toggle button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; cursor: pointer; color: var(--ink); transition: background 0.2s; }
.lang-toggle button[aria-pressed='true'] { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: 0.08s; }
.reveal[data-delay='2'] { transition-delay: 0.16s; }
.reveal[data-delay='3'] { transition-delay: 0.24s; }

/* forms */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.input {
  height: 48px; padding: 0 16px; border-radius: 14px; border: 0; width: 100%;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow 0.2s;
}
.input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px var(--accent-soft); }

.footer { padding: 48px 0 40px; color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.footer a { display: inline-block; padding-block: 4px; text-decoration: none; }
.footer a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .nav-links .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* site footer (homepage and content pages) */
.site-foot { margin: 40px auto 16px; width: min(1192px, 100% - 16px); border-radius: var(--radius); padding: 56px 0 36px; background: var(--surface); font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin: 12px 0 0; max-width: 30ch; line-height: 1.5; }
.site-foot .foot-h { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--ink); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
.site-foot .brand { color: var(--ink); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.lang-toggle a { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--ink); text-decoration: none; }
.lang-toggle a[aria-current='page'] { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
