@property --hl { syntax: "<percentage>"; inherits: false; initial-value: 100%; }

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Night blue, white and blue-tinted greys, plus one lamp amber: the light left on.
     Amber marks replies and the window in the mark; use it as a fill or on
     dark surfaces, never as text on white. */
  --lamp: oklch(0.82 0.16 72);
  --bg: oklch(1 0 0);
  --bg-alt: oklch(0.97 0.004 262);
  --ink: oklch(0.15 0.025 262);
  --ink-muted: oklch(0.44 0.02 262);
  --line: oklch(0.90 0.006 262);
  --line-strong: oklch(0.80 0.01 262);
  --hover: oklch(0.28 0.035 262);
  --amber-deep: oklch(0.68 0.16 58);  /* lines and strokes on light surfaces */
  --amber-soft: oklch(0.95 0.05 82);  /* highlighted rows and soft fills */
  --ink-soft: oklch(0.30 0.03 262);   /* secondary text on amber */
  --card-shadow: 0 1px 2px oklch(0.15 0.025 262 / 0.06), 0 24px 48px -28px oklch(0.15 0.025 262 / 0.28);
  --header-h: 4.25rem;

  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 0.75rem;
  --space-section: clamp(3.5rem, 7vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 5rem; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }
figure { margin: 0; }

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 3; padding: 0.6rem 1rem; background: var(--ink); color: var(--bg); border-radius: 0.5rem; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 2; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.mark { width: 1.7rem; height: 1.7rem; }
.mark path { fill: var(--ink); }
.mark .pane { fill: var(--lamp); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-header nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.site-header nav :is(a, button) { white-space: nowrap; }
@media (max-width: 420px) {
  .site-header nav ul { gap: 0.75rem; }
  .site-header .btn-small { padding-inline: 0.8rem; }
  .brand { font-size: 1.1rem; }
}
@media (max-width: 360px) {
  .site-header .brand span { display: none; }
}
.site-header nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--ink-muted); transition: color 0.2s var(--ease); }
.site-header nav a:not(.btn):hover { color: var(--ink); }
.nav-trigger { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 2.75rem; padding: 0; border: 0; background: none; font: inherit; font-weight: 500; font-size: 0.95rem; color: var(--ink-muted); cursor: pointer; transition: color 0.2s var(--ease); }
.nav-trigger:hover, .nav-trigger:has(+ .nav-menu:popover-open) { color: var(--ink); }
.nav-trigger svg { transition: rotate 0.2s var(--ease); }
.nav-trigger:has(+ .nav-menu:popover-open) svg { rotate: 180deg; }
.nav-menu { position: fixed; inset: calc(var(--header-h) + 1px) 0 auto; width: 100%; height: auto; margin: 0; padding: 1rem 0 1.5rem; border: 0; border-bottom: 1px solid var(--line); background: var(--bg); color: var(--ink); box-shadow: 0 24px 48px -28px oklch(0.15 0.025 262 / 0.35); opacity: 0; transform: translateY(-0.5rem); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), overlay 0.2s allow-discrete, display 0.2s allow-discrete; }
.nav-menu:popover-open { opacity: 1; transform: none; }
@starting-style { .nav-menu:popover-open { opacity: 0; transform: translateY(-0.5rem); } }
.site-header .nav-menu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 0.5rem; }
.site-header nav a.nav-menu-link { display: grid; align-content: start; gap: 0.3rem; height: 100%; min-height: 0; padding: 0.9rem 1rem; border-radius: 0.75rem; color: var(--ink); transition: background-color 0.2s var(--ease); }
.site-header nav a.nav-menu-link:hover { background: var(--bg-alt); }
.site-header nav a.nav-menu-link[aria-current="page"] { background: var(--amber-soft); }
.nav-menu-name { font-weight: 700; }
.nav-menu-summary { font-size: 0.875rem; line-height: 1.45; color: var(--ink-muted); }
@media (prefers-reduced-motion: reduce) { .nav-menu, .nav-trigger svg { transition: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.75rem 1.5rem;
  background: var(--lamp); color: var(--ink); border-radius: 0.5rem;
  font-weight: 600; text-decoration: none; transition: background-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { background: oklch(0.77 0.16 66); }
.btn:active { transform: scale(0.98); }
.btn-small { min-height: 2.5rem; padding: 0.45rem 1.1rem; font-size: 0.95rem; }
.btn-ink { background: var(--ink); color: var(--bg); }  /* on amber surfaces only */
.btn-ink:hover { background: var(--hover); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-outline:hover { background: var(--bg-alt); }

/* Type */
h1 { font-weight: 800; font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); line-height: 1.05; letter-spacing: -0.035em; }
h1 span { display: block; }
h2 { font-weight: 800; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.lede { margin-top: 1.25rem; max-width: 34rem; color: var(--ink-muted); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }
.lede a { color: var(--ink); text-underline-offset: 0.2em; }
.governance .lede a { color: var(--bg); }

/* Hero (homepage and market pages) */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: 2.25rem; }
.hero-note { margin-top: 1.25rem; font-size: 0.9rem; color: var(--ink-muted); }
h1 .mark-amber { display: inline; }
.market-hero { padding-block: clamp(3.5rem, 8vw, 6rem) !important; }
.market-name { margin-bottom: 1rem; font-weight: 600; color: var(--ink-muted); }
.market-name a { text-decoration: none; }
.market-name a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.market-hero .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.market-hero h1 { font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.038em; }
.market-hero .lede { margin-top: 1.5rem; max-width: 32rem; }

/* Amber */
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: 0.25em; text-decoration-color: oklch(0.15 0.025 262 / 0.35); }
.text-link:hover { text-decoration-color: currentColor; }
/* Amber highlighter, drawn under a phrase (--hl is its length) */
.mark-amber { background: linear-gradient(var(--lamp), var(--lamp)) no-repeat 0 88% / var(--hl) 0.3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@keyframes draw-mark { from { --hl: 0%; } }

/* Product card: a site dashboard with one conversation */
.product-card { display: flex; flex-direction: column; padding: clamp(1rem, 2.5vw, 1.75rem); border-radius: 1.5rem; background: var(--bg-alt); box-shadow: 0 0 0 1px var(--line); }
.office { padding: 1rem 1.1rem 0.5rem; border-radius: 1.1rem; background: var(--bg); box-shadow: 0 0 0 1px var(--line), var(--card-shadow); }
.office-label { padding: 0 0.75rem 0.5rem; font-size: 0.8rem; font-weight: 600; color: var(--ink-muted); }
.office-table { font-size: 0.9rem; }
.office-table th, .office-table td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); }
.office-table thead th { font-size: 0.75rem; font-weight: 600; color: var(--ink-muted); }
.office-table tbody tr:last-child > * { border-bottom: 0; }
.office-table td { font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.office-table tbody th { font-weight: 600; }
.row-flag { background: var(--amber-soft); }
.row-flag td { color: var(--ink); }
.theme { display: inline-block; white-space: nowrap; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--lamp); color: var(--ink); font-size: 0.8rem; font-weight: 700; }
.product-card .bubble { max-width: 88%; }
.product-card .hero-in { margin-top: 1rem; }
.product-card .hero-out { margin-top: 0.6rem; }
.bubble { position: relative; max-width: 27rem; padding: 0.85rem 1rem; font-size: 0.95rem; line-height: 1.5; box-shadow: 0 10px 30px -12px oklch(0.15 0.025 262 / 0.35); }
.hero-in { align-self: flex-start; background: var(--bg); color: var(--ink); border-radius: 1.1rem 1.1rem 1.1rem 0.3rem; }
.hero-out { align-self: flex-end; background: var(--lamp); color: var(--ink); border-radius: 1.1rem 1.1rem 0.3rem 1.1rem; }
@keyframes bubble-up { from { opacity: 0; transform: translateY(1rem) scale(0.97); } }
.bubble-meta { margin-top: 0.35rem; font-family: var(--sans); font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .hero-in { animation: bubble-up 0.7s var(--ease) 0.5s both; }
  .hero-out { animation: bubble-up 0.7s var(--ease) 1.3s both; }
  .market-hero .mark-amber { animation: draw-mark 0.9s var(--ease) 0.35s both; }
}

/* Sections */
section:not(.hero) { padding-block: var(--space-section); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }

.lines { border-top: 1px solid var(--line); }
.lines li { padding-block: 1.1rem; border-bottom: 1px solid var(--line); font-size: 1.1rem; font-weight: 500; }

.hear li { display: flex; gap: 0.9rem; align-items: baseline; }
.hear li::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 0.15rem; background: var(--lamp); transform: translateY(-0.1rem); }

.how { background: var(--bg-alt); border-block: 1px solid var(--line); }
.steps { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.steps li { padding: clamp(1.25rem, 2.5vw, 1.75rem); border-radius: 1.25rem; background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
.step-n { display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 1.25rem; border-radius: 50%; background: var(--lamp); font-weight: 800; font-variant-numeric: tabular-nums; }
.steps p { margin-top: 0.5rem; color: var(--ink-muted); }

.statement p { font-weight: 800; font-size: clamp(2rem, 1.3rem + 3vw, 3.75rem); line-height: 1.1; letter-spacing: -0.035em; color: oklch(0.6 0.012 262); }
.statement strong { color: var(--ink); }

/* Industry tiles (homepage and market pages) */
.places { background: var(--bg-alt); border-top: 1px solid var(--line); }
.places-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem clamp(2rem, 6vw, 5rem); align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.places-head h2 { max-width: 14ch; }
.place-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.place-link { display: flex; flex-direction: column; height: 100%; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 1.25rem; background: var(--bg); color: var(--ink); text-decoration: none; box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.place-link h3 { font-size: 0.95rem; color: var(--ink-muted); }
.place-line { margin-top: 0.5rem; font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.9rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.place-line span { display: block; }
.place-summary { margin-top: 0.75rem; color: var(--ink-muted); }
.place-more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 1.5rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: oklch(0.15 0.025 262 / 0.3); }
.place-more svg { transition: transform 0.25s var(--ease); }
.closing-lamp .closing-row { background: var(--lamp); color: var(--ink); padding-block: clamp(3rem, 7vw, 5.5rem); }
.closing-lamp h2 { font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem); max-width: 16ch; }
.place-list-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (hover: hover) and (pointer: fine) {
  .place-link:hover { box-shadow: 0 0 0 1px var(--line-strong), var(--card-shadow); transform: translateY(-2px); }
  .place-link:hover .place-more { text-decoration-color: currentColor; }
  .place-link:hover .place-more svg { transform: translateX(3px); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .market .statement .mark-amber { animation: draw-mark linear both; animation-timeline: view(); animation-range: entry 60% cover 45%; }
  }
}

.governance { background: var(--ink); color: var(--bg); }
.governance .lede { color: oklch(0.80 0.012 262); }
.governance .lines, .governance .lines li { border-color: oklch(0.32 0.012 262); }

.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; font-weight: 600; font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.35rem; line-height: 1; transition: transform 0.25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 1.1rem; color: var(--ink-muted); max-width: 40rem; }

.closing { padding-top: 0 !important; }
.closing-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: clamp(2rem, 5vw, 3.25rem); background: var(--ink); color: var(--bg); border-radius: 1rem; }

.site-footer { background: var(--ink); color: var(--bg); font-size: 1rem; }
.site-footer :focus-visible { outline-color: var(--bg); }
.site-footer .mark path { fill: var(--bg); }
.site-footer .mark .pane { fill: var(--lamp); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(3rem, 6vw, 5rem); }
.footer-promise { font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em; }
.footer-description { margin-top: 1.25rem; color: oklch(0.80 0.012 262); }
.footer-contact { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; margin-top: 1rem; text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: oklch(0.55 0.012 262); }
.footer-contact span { display: inline-flex; }
.footer-heading { min-height: 2.75rem; display: flex; align-items: center; margin-bottom: 1rem; font-size: 0.875rem; font-weight: 500; color: oklch(0.70 0.012 262); }
.footer-col a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-block: 0.5rem; text-decoration: none; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 2rem; padding-block: 1.5rem; border-top: 1px solid oklch(0.32 0.012 262); font-size: 0.875rem; }
.footer-legal .brand { margin-right: auto; font-size: 1.5rem; }
.footer-legal p { color: oklch(0.70 0.012 262); }
.footer-legal ul { display: flex; gap: 1.5rem; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover, .footer-legal a:not(.brand):hover { text-decoration: underline; text-underline-offset: 0.25em; }
  .footer-contact:hover { text-decoration-color: currentColor; }
}

/* Legal and 404 pages */
.page { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4rem, 8vw, 6.5rem); }
.page .wrap { max-width: 44rem; }
.page h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); }
.page .updated { margin-top: 0.75rem; color: var(--ink-muted); font-size: 0.95rem; }
.page h2 { margin-top: 2.5rem; font-size: 1.3rem; letter-spacing: -0.015em; }
.page h2 + p, .page p + p { margin-top: 0.75rem; }
.page p { color: var(--ink-muted); }
.page p a { color: var(--ink); text-underline-offset: 0.2em; }
.page .btn { margin-top: 2rem; }
.options { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.options li { padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.options h2 { margin-top: 0; }
.options .btn { margin-top: 1.25rem; }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero-grid, .market-hero .hero-grid, .places-head { grid-template-columns: 1fr; }
  .place-list-3 { grid-template-columns: 1fr; }
  .product-card { max-width: 36rem; }
  .hide-md { display: none; }
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-intro { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .footer-legal .brand { flex-basis: 100%; }
  .footer-legal p { flex-basis: 100%; }
  .steps { grid-template-columns: 1fr; }
  .place-list { grid-template-columns: 1fr; }
  .product-card .office-table :is(th, td):nth-child(2) { display: none; }
  .product-card .office-table :is(th, td) { padding-inline: 0.5rem; }
  .office { padding-inline: 0.6rem; }
}

details p a { color: var(--ink); text-underline-offset: 0.2em; }
