/* Konsensi — site styles
   One stylesheet for every page. Pages set their accent with a theme class on <body>:
   theme-konsensi (default), theme-fingine, theme-accountassist. */

/* Source Serif 4 for headings and Source Sans 3 for text, both by Adobe under the SIL Open Font License
   (fonts/OFL-source.txt). Self-hosted, so no visitor data goes to a font CDN. */
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Kobalt, as in the brand book: navy text, cobalt blue as the brand colour, green only for the point of light */
  --ink: #0f1d3a;
  --ink-2: #27344f;
  --muted: #535e77;
  --paper: #fbfcfd;
  --surface: #ffffff;
  --line: rgba(15, 29, 58, 0.12);
  --line-strong: rgba(15, 29, 58, 0.55);

  /* Konsensi */
  --accent: #0f4fa8;
  --accent-strong: #0b3c80;
  --accent-soft: #e9effa;
  --accent-on-dark: #8db3ff;
  --point: #12995a;
  --point-on-dark: #3fcf86;

  /* Product brand colours */
  --fg-navy: #102a4c;
  --fg-sky: #3399dd;
  --fg-sky-dark: #4fafeb;
  --aa-blue: #1d3c8b;
  --aa-yellow: #e3d400;

  /* What components use; themes override these */
  --tint: var(--accent);
  --tint-strong: var(--accent-strong);
  --tint-soft: var(--accent-soft);
  --btn: var(--accent);
  --btn-hover: var(--accent-strong);
  --bullet: var(--point);

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Square corners: round is kept for the brandpunt and points */
  --radius: 0;
  --radius-sm: 0;
  --max: 1160px;
  --header-h: 72px;
  --shadow: none;
}

.theme-fingine {
  --tint: var(--fg-sky);
  --tint-strong: var(--fg-navy);
  --tint-soft: #e7f2fb;
  --btn: var(--fg-navy);
  --btn-hover: #0a1c33;
  --bullet: var(--fg-sky);
}

.theme-accountassist {
  --tint: var(--aa-blue);
  --tint-strong: var(--aa-blue);
  --tint-soft: #e9eef9;
  --btn: var(--aa-blue);
  --btn-hover: #152d6b;
  --bullet: var(--aa-blue);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--tint-strong);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 4.2vw + 1rem, 4.25rem);
  letter-spacing: -0.015em;
}

/* The headline comes into focus once, word by word: from 10px blur and 25% visible to sharp in 1.1 s, each word
   0.12 s after the one before (each page sets --i on its words). The words are sharp unless the animation runs, so
   with reduced motion, which turns animations off above, the headline simply stands. */
h1 .w {
  display: inline-block;
  animation: focus-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; /* blurred while waiting, no filter after */
  animation-delay: calc(var(--i, 0) * 0.12s);
}

@keyframes focus-in {
  from {
    filter: blur(10px);
    opacity: 0.25;
  }
  to {
    filter: none;
    opacity: 1;
  }
}

h2 {
  font-size: clamp(1.9rem, 2.2vw + 1rem, 2.75rem);
}

h3,
h4 {
  font-family: var(--font-body);
  letter-spacing: 0;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--tint);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 253, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--ink);
}

.brand img,
.brand svg {
  display: block;
  height: 26px;
  width: auto;
}

/* The point of light in the logo's o, in the header and the footer, looks around now and then: left, right, then
   back to its place at the upper right. In the lockup's units the ring's hole has radius 157.9 and the point 70, so
   it may move 88 from the centre; it rests at (34, -34). Hovering the logo brings it into focus, in the middle. */
.brand .focal-point {
  transition: transform 0.35s ease;
  animation: brand-look 12s ease-in-out 1s infinite;
}

@keyframes brand-look {
  0%, 8% { transform: translate(0, 0); }
  13%, 21% { transform: translate(-100px, 38px); }   /* looks left */
  27%, 35% { transform: translate(32px, 34px); }     /* looks right, towards the menu */
  41%, 100% { transform: translate(0, 0); }
}

.brand:hover .focal-point,
.brand:focus-visible .focal-point {
  animation: none;
  transform: translate(-34px, 34px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.975rem;
  padding: 0.5rem 0.85rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(15, 29, 58, 0.06);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(15, 29, 58, 0.07);
}

.nav a.btn-primary {
  color: #fff;
  background: var(--btn);
  margin-left: 0.5rem;
}

.nav a.btn-primary:hover {
  background: var(--btn-hover);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem 1.25rem 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
  }

  .nav a.btn-primary {
    margin: 0.5rem 0 0;
    justify-content: center;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--btn);
  color: #fff;
}

.btn-primary:hover {
  background: var(--btn-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.925rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-tight {
  padding-block: clamp(3rem, 5vw, 4.5rem);
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 740px;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tint-strong);
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1.125rem, 0.4vw + 1.02rem, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}

.muted {
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.hero h1 {
  max-width: 15ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lead {
  margin-bottom: 2.1rem;
}

.hero-logo {
  height: 46px;
  width: auto;
  margin-bottom: 1.75rem;
}

.hero-note {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .focus {
    max-width: 620px;
  }
}

/* ---------- Hero statement ---------- */

/* A sample profit and loss account. The eye in the gutter slides to the row in focus, and the trail below shows
   what is behind that figure (assets/js/main.js). Without JavaScript the gross margin stays in focus and the eye
   stays hidden. Rows out of focus are faded, not hidden: they stay readable and every row is a button. */
.focus {
  margin: 0;
}

.focus-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0 0 12px 56px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.875rem;
  color: var(--muted);
}

.focus-head b {
  color: var(--ink);
  font-weight: 600;
}

.statement {
  position: relative;
}

.focus-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.focus-rows button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  width: 100%;
  padding: 11px 4px 11px 56px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  opacity: 0.7;
  filter: blur(0.5px);
  transition: opacity 0.45s ease, filter 0.45s ease;
}

.focus-rows button > span:first-child {
  hyphens: auto;
  overflow-wrap: anywhere;
}

.focus-rows button:hover,
.focus-rows button:focus-visible {
  opacity: 0.9;
  filter: none;
}

.focus-rows .sum button {
  border-top: 1px solid var(--ink);
  font-weight: 600;
  color: var(--ink);
}

.focus-rows button.on {
  opacity: 1;
  filter: none;
  color: var(--ink);
}

.focus-rows .fig {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.focus-rows button.on .fig {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* The brandpunt in the logo's proportions; on its way to a row it looks where it is going */
.focus-eye {
  display: none;
  position: absolute;
  top: 0;
  left: 4px;
  width: 38px;
  height: 38px;
  transition: transform 0.55s cubic-bezier(0.45, 0.05, 0.25, 1);
  pointer-events: none;
}

.focus.is-live .focus-eye {
  display: block;
}

.focus-eye .ring {
  fill: none;
  stroke: var(--ink);
}

.focus-eye .pt {
  fill: var(--point);
  transform: translate(10.7px, 0);
  transition: transform 0.35s ease;
}

.trail {
  margin-top: 26px;
  padding-left: 56px;
  min-height: 186px;
}

.trail-title {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

.trail-fig {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.trail-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trail-steps::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line-strong);
}

.trail-steps li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.trail-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--point);
}

.trail-steps .src {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--accent);
  white-space: nowrap;
}

.trail.fresh .trail-steps li {
  animation: sharpen 0.5s ease both;
}

.trail.fresh .trail-steps li:nth-child(2) {
  animation-delay: 0.08s;
}

.trail.fresh .trail-steps li:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes sharpen {
  from { opacity: 0.2; filter: blur(4px); }
  to { opacity: 1; filter: none; }
}

.focus-note {
  margin: 18px 0 0 56px;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .focus-head,
  .focus-rows button,
  .trail {
    padding-left: 48px;
  }

  .focus-note {
    margin-left: 48px;
  }
}

/* ---------- What we do: the head with the Venn diagram ---------- */

.products-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.products-head .section-head {
  margin-bottom: 0;
}

.products-venn {
  width: 100%;
  max-width: 440px;
  justify-self: end;
}

@media (max-width: 920px) {
  .products-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .products-venn {
    max-width: 380px;
    justify-self: start;
  }
}

/* ---------- Cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1020px) {
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding: 1.9rem 0 0;
}

.product-card {
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--card-bar, var(--card-accent));
}

.product-card:hover .card-link {
  color: var(--accent);
}

.product-card .card-logo {
  height: 34px;
}

.product-card .card-logo.logo-aa {
  height: 40px;
  margin-top: -6px;
  width: auto;
  margin-bottom: 1.6rem;
}

.product-card h3 {
  font-size: 1.4rem;
}

.product-card > p {
  color: var(--ink-2);
}

.card-fingine {
  --card-accent: var(--fg-sky);
}

.card-accountassist {
  --card-accent: var(--aa-blue);
  --card-bar: linear-gradient(90deg, var(--aa-blue) 0 72%, var(--aa-yellow) 72% 100%);
}

.card-analytics {
  --card-accent: var(--accent);
}

.analytics-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 34px;
  margin-bottom: 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.analytics-label svg {
  width: 30px;
  height: 30px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.65rem;
}

.checklist li {
  position: relative;
  padding-left: 1.8rem;
  font-size: 0.975rem;
  color: var(--ink-2);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bullet);
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.card-link::after {
  content: "→";
  transition: transform 0.15s ease;
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* Stretch the card link over the whole card */
.product-card .card-link::before {
  content: "";
  position: absolute;
  inset: 0;
}

/* ---------- Principles ---------- */

.principle {
  border-top: 2px solid var(--ink);
  padding-top: 1.4rem;
}

.principle h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.principle p {
  color: var(--muted);
  font-size: 0.975rem;
  margin: 0;
}

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2.5rem;
}

@media (max-width: 1020px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding: 1.9rem 0 2.1rem;
  border-top: 1px solid var(--line);
}

.feature .icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  background: var(--tint-soft);
  color: var(--tint-strong);
}

.feature .icon svg {
  width: 23px;
  height: 23px;
}

.feature h3 {
  font-size: 1.125rem;
  margin-bottom: 0.45rem;
}

.feature p {
  margin: 0;
  font-size: 0.975rem;
  color: var(--muted);
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}

.steps-5 {
  --steps: 5;
}

@media (max-width: 1020px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps > .step:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  counter-increment: step;
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 0;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--tint-strong);
}

.step h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}

.step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

@media (max-width: 920px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Audience ---------- */

.audience-item {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 0;
}

.audience-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.audience-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
}

/* ---------- Views (Fingine) ---------- */

.views {
  display: grid;
  gap: 0.85rem;
}

.view {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
}

.view-tag {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--tint-strong);
  background: var(--tint-soft);
  padding: 0.3rem 0.55rem;
  min-width: 6.5rem;
  text-align: center;
}

.view p {
  margin: 0;
  font-size: 0.975rem;
  color: var(--ink-2);
}

/* ---------- Mock UI panels ---------- */

.mock {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.mock-bar strong {
  margin-left: 0.6rem;
  font: 600 0.8rem/1 var(--font-body);
  color: var(--muted);
}

.mock-body {
  padding: 1.25rem;
}

.mock svg text {
  font-family: var(--font-body);
}

/* AccountAssist sample mock */
.sample-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sample-head h4 {
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
  letter-spacing: -0.01em;
}

.sample-head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.match-rate {
  text-align: right;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--aa-blue);
}

.match-rate small {
  display: block;
  margin-top: 0.3rem;
  font: 500 0.75rem/1.2 var(--font-body);
  color: var(--muted);
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: #edf0f6;
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--aa-blue);
}

.sample-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.sample-rows li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.875rem;
}

.sample-rows .ref {
  font-weight: 600;
  color: var(--ink);
}

.sample-rows .ref small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.78rem;
}

.sample-rows .amount {
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.chip-ok {
  color: #0d6b4f;
  background: #e1f3ec;
}

.chip-wait {
  color: #8a5a00;
  background: #fbf0d6;
}

.chip-review {
  color: var(--aa-blue);
  background: #e9eef9;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 1rem;
}

.tile {
  border-radius: 10px;
  background: #f3f5fa;
  padding: 0.7rem 0.8rem;
}

.tile b {
  display: block;
  font-family: var(--font-body);
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--aa-blue);
}

.tile span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------- Highlight band (free tool etc.) ---------- */

.highlight {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  background: var(--tint-soft);
  border: 1px solid color-mix(in srgb, var(--tint) 18%, transparent);
}

.highlight .icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--surface);
  color: var(--tint-strong);
}

.highlight .icon svg {
  width: 26px;
  height: 26px;
}

.highlight h3 {
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
}

.highlight p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.975rem;
}

@media (max-width: 760px) {
  .highlight {
    grid-template-columns: 1fr;
  }
}

/* ---------- Toolkit ---------- */

.toolkit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.toolkit li {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ink-2);
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

@media (max-width: 920px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
  }
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.facts div {
  border-top: 1px solid var(--line);
  padding: 1rem 0 0;
}

.facts dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.facts dd {
  margin: 0;
  font-size: 0.925rem;
  color: var(--muted);
}

@media (max-width: 520px) {
  .facts {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem);
  background: var(--ink);
  color: #c7d1e0;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.6rem;
}

.cta-band p {
  margin: 0;
  max-width: 54ch;
}

.cta-band .btn-row {
  position: relative;
  z-index: 1;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--ink);
}

.cta-band .btn-primary:hover {
  background: var(--accent-on-dark);
  color: var(--ink);
}

.cta-band .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-band .btn-secondary:hover {
  border-color: #fff;
  color: #fff;
}

.cta-band .deco {
  position: absolute;
  right: -150px;
  top: 50%;
  width: 260px;
  height: 260px;
  transform: translateY(-50%);
  opacity: 0.2;
  pointer-events: none;
}

@media (max-width: 820px) {
  .cta-band .deco {
    display: none;
  }
}

.cta-band > div {
  position: relative;
  z-index: 1;
}

@media (max-width: 820px) {
  .cta-band {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

@media (max-width: 920px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-email {
  display: inline-block;
  margin: 0.5rem 0 1.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.contact-email:hover {
  color: var(--accent-strong);
}

/* The contact form: only shown when main.js knows the dashboard's API (see README). */
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 38rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.contact-form[hidden] {
  display: none;
}
.contact-form h3 {
  margin: 0;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 560px) {
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.contact-form .optional {
  color: var(--muted);
  font-weight: 400;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font-body);
}
.contact-form textarea {
  resize: vertical;
}
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.contact-form .btn {
  justify-self: start;
}
.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: default;
}
/* A field people never see; bots fill it in, and the API then stores nothing. */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.form-status {
  margin: 0;
  min-height: 1.5em;
  color: var(--ink);
}
.form-status.is-error {
  color: #b42318;
}

.signin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.signin-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.signin-list a:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.signin-list img {
  height: 26px;
  width: auto;
}

.signin-list span {
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
}

.signin-list span::after {
  content: " ↗";
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 3.5rem 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.925rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer .brand {
  margin-bottom: 0.9rem;
  font-size: 1.25rem;
}

.site-footer .brand img,
.site-footer .brand svg {
  height: 22px;
}

.footer-tagline {
  max-width: 34ch;
  margin: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Illustrations ---------- */

.venn {
  width: 100%;
  height: auto;
  isolation: isolate;
}

.venn-circles circle {
  mix-blend-mode: multiply;
}

.venn .v-name {
  font: 600 17px var(--font-display);
  letter-spacing: -0.01em;
  fill: var(--ink);
}

.venn .v-sub {
  font: 500 12.5px var(--font-body);
  fill: var(--muted);
}

/* The focal point at the heart of the diagram looks at each practice in turn, and the circle it looks at lights
   up. It is the lockup's o scaled to a radius of 30, so its hole has radius 19.1 and its point 8.5. The point sits at
   the ring's centre (260, 246); translate moves it within the hole. Hovering a circle makes it look there. With
   reduced motion it rests, looking up and right. */
.venn text {
  pointer-events: none;
}

.venn .focal-point {
  transform: translate(4.1px, -4.1px);
  transition: transform 0.35s ease;
  animation: focal-look 10s ease-in-out infinite;
}

@keyframes focal-look {
  0%, 10% { transform: translate(4.1px, -4.1px); }    /* resting */
  16%, 32% { transform: translate(0, -8px); }         /* Fingine, above */
  38%, 54% { transform: translate(-6.9px, 4px); }     /* AccountAssist, below left */
  60%, 76% { transform: translate(6.9px, 4px); }      /* Analytics, below right */
  82%, 100% { transform: translate(4.1px, -4.1px); }
}

.venn .v-fg { animation: venn-fg 10s ease-in-out infinite; }
.venn .v-aa { animation: venn-aa 10s ease-in-out infinite; }
.venn .v-an { animation: venn-an 10s ease-in-out infinite; }

@keyframes venn-fg {
  0%, 12% { fill-opacity: 0.26; }
  17%, 31% { fill-opacity: 0.44; }
  37%, 100% { fill-opacity: 0.26; }
}

@keyframes venn-aa {
  0%, 34% { fill-opacity: 0.16; }
  39%, 53% { fill-opacity: 0.32; }
  59%, 100% { fill-opacity: 0.16; }
}

@keyframes venn-an {
  0%, 56% { fill-opacity: 0.22; }
  61%, 75% { fill-opacity: 0.4; }
  81%, 100% { fill-opacity: 0.22; }
}

.venn:has(.venn-circles circle:hover) .venn-circles circle,
.venn:has(.venn-circles circle:hover) .focal-point {
  animation: none;
}

.venn .venn-circles circle:hover {
  fill-opacity: 0.42;
}

.venn:has(.v-fg:hover) .focal-point { transform: translate(0, -8px); }
.venn:has(.v-aa:hover) .focal-point { transform: translate(-6.9px, 4px); }
.venn:has(.v-an:hover) .focal-point { transform: translate(6.9px, 4px); }

.diagram {
  width: 100%;
  height: auto;
}

.diagram .n-name {
  font: 600 14px var(--font-body);
  fill: var(--fg-navy);
}

.diagram .n-name.inv {
  fill: #fff;
}

.diagram .n-sub {
  font: 500 11.5px var(--font-body);
  fill: var(--muted);
}

.diagram .n-sub.inv {
  fill: #b9cbe0;
}

.diagram .e-label {
  font: 600 11.5px var(--font-body);
  fill: var(--fg-navy);
}

.diagram .t-year {
  font: 500 11px var(--font-body);
  fill: var(--muted);
}

.diagram .t-event {
  font: 600 11.5px var(--font-body);
  fill: var(--ink);
}

.diagram .k-label {
  font: 500 10.5px var(--font-body);
  fill: var(--muted);
}

.diagram .k-value {
  font: 600 15px var(--font-body);
  fill: var(--fg-navy);
}

.chart .c-axis {
  font: 500 11px var(--font-body);
  fill: var(--muted);
}

.chart .c-legend {
  font: 500 12px var(--font-body);
  fill: var(--ink-2);
}

.chart .c-title {
  font: 600 14px var(--font-body);
  fill: var(--ink);
}

.signin-list img.logo-aa {
  height: 32px;
}

@media (max-width: 480px) {
  .sample-rows li {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.75rem;
  }

  .sample-rows .amount {
    grid-column: 1;
    grid-row: 2;
    font-size: 0.8rem;
  }

  .sample-rows .chip {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- About: the name and the founder ---------- */

.name-note {
  margin: 2rem 0 0;
  padding: 1.4rem 1.5rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
}

.name-note p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.975rem;
}

.name-note .name-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.name-note .name-meaning {
  margin: 0.1rem 0 0.75rem;
  font-style: italic;
  font-weight: 600;
  color: var(--accent-strong);
}

.founder {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* The founder's photo: square, like everything but the brandpunt */
.avatar {
  flex: none;
  display: block;
  width: 88px;
  height: 88px;
  object-fit: cover;
  background: var(--accent-soft);
}

.founder-name {
  margin: 0;
  font: 600 1.15rem/1.3 var(--font-display);
  color: var(--ink);
}

.founder-role {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Background: timeline and publications ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 1.75rem 1.6rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--tint);
}

.timeline .when {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tint-strong);
}

.timeline h3 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
}

.timeline p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.bio p {
  color: var(--ink-2);
}

.bio .facts {
  margin-top: 1.75rem;
}

.pubs-head {
  margin: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
  font-size: 1.35rem;
}

.pubs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 760px) {
  .pubs {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pubs li {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pubs a,
.pubs strong {
  font-weight: 600;
  color: var(--ink);
}

.pubs a {
  text-decoration-color: var(--line-strong);
}

.pubs a:hover {
  text-decoration-color: var(--ink);
}

.pubs .meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.split-top {
  align-items: start;
}

.bio .founder {
  margin: 1.5rem 0 1.5rem;
}

/* ---------- Language switch ---------- */

.nav a.lang {
  margin-left: 0.35rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-strong);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 860px) {
  .nav a.lang {
    align-self: flex-start;
    margin: 0.35rem 0 0 1rem;
    padding: 0.45rem 0.9rem;
  }
}

/* Logos in flex columns keep their own width instead of stretching (and centring) */
.product-card .card-logo,
.hero-logo {
  align-self: flex-start;
  width: auto;
}
