:root {
  --paper: #F6F7F9;
  --ink: #141B2D;
  --slate: #5B6478;
  --belief: #3446C9;
  --surface: #E6E9F0;
  --obs: #D2493A;
  --line: #D5DAE3;
  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --measure: 62ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--belief); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--belief); outline-offset: 3px; border-radius: 2px; }

/* Type scale: 1.25 ratio */
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); letter-spacing: -0.035em; max-width: 15ch; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
h4 { font-size: .95rem; font-weight: 500; color: var(--slate); }
p, li { max-width: var(--measure); }
.muted { color: var(--slate); }
.center { text-align: center; }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
main > section { padding-block: 72px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--slate); font-weight: 500; padding: 6px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); background: var(--surface); }

/* Hero */
main > .hero { padding-block: 96px 64px; }
main > .hero.small { padding-block: 80px 24px; }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--slate); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font: 500 1rem var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--belief); border-color: var(--belief); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Belief figure: the one animated moment */
.belief { margin: 0; }
.belief svg { width: 100%; height: auto; overflow: visible; }
.belief .axis { stroke: var(--line); stroke-width: 2; }
.belief .prior { fill: none; stroke: var(--slate); stroke-width: 2; stroke-dasharray: 5 6; opacity: .55; }
.belief .posterior { fill: color-mix(in srgb, var(--belief) 12%, transparent); stroke: var(--belief); stroke-width: 3; stroke-linejoin: round; }
.belief .posterior-wrap { transform-box: fill-box; transform-origin: 50% 100%; animation: sharpen 1.6s cubic-bezier(.2,.7,.2,1) .9s both; }
.belief .obs { stroke: var(--obs); stroke-width: 2.5; stroke-linecap: round; animation: arrive .3s ease-out both; animation-delay: calc(var(--i) * 90ms + .1s); }
.belief figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; font-size: .9rem; color: var(--slate); }
.belief .k { display: inline-block; width: 22px; height: 0; border-top: 2px dashed var(--slate); }
.belief .k.post-k { border-top: 3px solid var(--belief); margin-left: 12px; }
@keyframes sharpen { from { transform: scale(3.2, .3); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1, 1); opacity: 1; } }
@keyframes arrive { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .belief .posterior-wrap, .belief .obs { animation: none; }
}

/* Industries strip */
main > .logos { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; padding-block: 28px; border-block: 1px solid var(--line); }
.logos b { font-weight: 500; color: var(--ink); }

/* Content blocks: separated by an ink rule, not floating cards */
.features, .product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 48px; }
.features article, .card { border-top: 2px solid var(--ink); padding-top: 20px; }
.features p, .card p { color: var(--slate); }
.card ul { padding-left: 1.1em; color: var(--slate); margin: 0; }
.card li { margin-bottom: 4px; }
.price { font-weight: 700; color: var(--belief) !important; }

.band { background: var(--surface); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; align-items: start; }
.stats { display: grid; gap: 28px; margin: 0; }
.stats div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; align-items: baseline; }
.stats dt { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; color: var(--belief); }
.stats dd { margin: 0; color: var(--slate); }

.quote blockquote { margin: 0 0 14px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; max-width: 34ch; }

.steps { padding-left: 1.3em; }
.steps li { margin-bottom: 12px; padding-left: 4px; }
.steps li::marker { color: var(--belief); font-weight: 700; }
.code pre { margin: 0; padding: 24px; border-radius: 14px; background: var(--ink); color: #DCE2F0; overflow-x: auto; font: .88rem/1.6 ui-monospace, 'SF Mono', Menlo, monospace; }
#security h2, .pricing h2 { margin-bottom: 32px; }
.plans-cta { margin-top: 44px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 36px; margin-top: 32px; }
.person img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 18px; margin-bottom: 18px; background: var(--surface); }
.person h3 { margin-bottom: 2px; }
.person .role { margin: 0 0 10px; color: var(--belief); font-weight: 500; font-size: .95rem; }
.person p:last-child { margin: 0; color: var(--slate); font-size: .97rem; }

/* Careers */
.roles { list-style: none; padding: 0; margin: 24px 0 0; border-top: 2px solid var(--ink); }
.roles li { max-width: none; display: grid; grid-template-columns: 1fr auto auto; gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.roles li span:first-child { font-weight: 500; }

/* Contact */
.form { display: grid; gap: 18px; max-width: 520px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.form input, .form select, .form textarea { font: inherit; color: var(--ink); padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--belief); outline-offset: 0; border-color: var(--belief); }
.form button { justify-self: start; }
.notice { padding: 20px 24px; border-radius: 12px; background: var(--surface); border-left: 4px solid var(--belief); max-width: 520px; }
.contact-info h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-info p { margin-top: 0; color: var(--slate); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-grid a:not(.brand) { display: block; color: var(--slate); text-decoration: none; margin-bottom: 6px; }
.footer-grid a:not(.brand):hover { color: var(--ink); }
.legal { margin-top: 40px; font-size: .88rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  main > .hero { padding-block: 64px 40px; }
  main > section { padding-block: 56px; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .header-inner { flex-direction: column; align-items: flex-start; padding-block: 12px; }
  .nav { margin-left: -12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .roles li { grid-template-columns: 1fr; gap: 4px; }
  .stats div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 860px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }
.hero-grid > *, .split > * { min-width: 0; }
