/* Hablar's public site. The tokens are lifted verbatim from the app's index.css so
   the site and the product are visibly one thing: a visitor who clicks through to
   app.hablar.orion-solution.net should not feel they have gone somewhere else.

   Static CSS on purpose. A marketing page that needs a build step is a marketing
   page that breaks on the day you want to change a sentence. */

:root {
  color-scheme: light;
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --soft: #F2F0EC;
  --sink: #E7E3DD;
  --ink: #24221F;
  --ink-2: #55504A;
  --ink-3: #8A847C;
  --line: #E6E2DC;
  --line-soft: #F0EDE8;
  --brand: #0E9384;
  --brand-2: #0A7266;
  --brand-soft: #D8F2EC;
  --brand-tint: #EEF9F6;
  --on-brand: #FFFFFF;
  --es: #E8623A;
  --es-ink: #B4431E;
  --es-soft: #FFEBE2;
  --fr: #C2447E;
  --fr-ink: #9C2F62;
  --fr-soft: #FBE6EF;
  --sun: #F0A92E;
  --sun-soft: #FFF3D6;
  --ok: #2B9A58;
  --ok-soft: #E0F4E7;
  --warn: #A86A0B;
  --warn-soft: #FFF1D4;
  --info: #2A7FA0;
  --info-soft: #E1F1F7;
  --sh: 0 1px 2px rgba(36, 34, 31, .05), 0 8px 22px -12px rgba(36, 34, 31, .16);
  --r: 18px;
  --r-sm: 12px;
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --read: "Atkinson Hyperlegible", Verdana, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Sticky footer: body is a column and main grows, so a short page still puts the
   footer at the bottom of the viewport rather than half way up it. */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

main { flex: 1 0 auto; }

.wrap {
  width: min(1060px, 100% - 32px);
  margin-inline: auto;
}

a { color: var(--brand-2); }
a:hover { color: var(--brand); }

/* ---------------------------------------------------------------- site header */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}

.mark svg { display: block; }

.site-brand b { font-size: 20px; letter-spacing: -.01em; }
.site-brand span { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.2; }

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }

.site-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
}

.site-nav a:hover { background: var(--soft); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-2); }

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: none;
  font-weight: 700;
  font-size: 15.5px;
  border: 1px solid var(--brand);
}

.btn:hover { background: var(--brand-2); color: var(--on-brand); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn.ghost:hover { background: var(--soft); color: var(--ink); }

/* ------------------------------------------------------------------- sections */

.hero { padding: 72px 0 40px; }

.hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 800;
  margin: 0 0 18px;
  max-width: 22ch;
  text-wrap: balance;
}

.lede {
  font-family: var(--read);
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0 0 26px;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; padding: 0; list-style: none; }

.tag {
  font-size: 13px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink-2);
}

.tag.es { background: var(--es-soft); color: var(--es-ink); }
.tag.fr { background: var(--fr-soft); color: var(--fr-ink); }

section { padding: 40px 0; }

h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 0 0 14px;
  max-width: 34ch;
  /* Let the browser even out the lines. Without it, a 24ch cap dropped single
     words onto their own line: "Het probleem is de tijd, niet het / oordeel". */
  text-wrap: balance;
}

h3 { font-size: 19px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }

p { max-width: 68ch; }

.read { font-family: var(--read); color: var(--ink-2); }

/* Deliberately not a three-up every time. The number of cards is the number the
   content needs, and auto-fit means two facts render as two, not as two and a gap. */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--sh);
}

.card p:last-child { margin-bottom: 0; }

.card .read { font-size: 15.5px; }

.note {
  border-radius: var(--r);
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--read);
  font-size: 15.5px;
  color: var(--ink-2);
}

.note b { color: var(--ink); font-family: var(--sans); }
.note.warn { background: var(--warn-soft); border-color: #F0DCAE; }
.note.info { background: var(--info-soft); border-color: #C6E3EE; }
.note.brand { background: var(--brand-tint); border-color: var(--brand-soft); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-2);
  font-weight: 800;
  display: grid;
  place-items: center;
}

.steps h3 { margin-bottom: 2px; }
.steps p { margin: 0; font-family: var(--read); color: var(--ink-2); font-size: 15.5px; }

.cannot { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }

.cannot li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  font-family: var(--read);
  color: var(--ink-2);
  font-size: 15.5px;
}

.cannot li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 5px;
  background: var(--sink);
}

.cannot b { font-family: var(--sans); color: var(--ink); }

dl.facts { display: grid; gap: 0; margin: 0; }

dl.facts > div {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
}

dl.facts > div:first-child { border-top: 0; }
dl.facts dt { font-weight: 700; font-size: 15px; }
dl.facts dd { margin: 0; font-family: var(--read); color: var(--ink-2); font-size: 15.5px; }

.band { background: var(--surface); border-block: 1px solid var(--line); }

/* -------------------------------------------------------------------- footer */

.site-foot {
  flex: none;
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  font-size: 14px;
  color: var(--ink-3);
}

.site-foot .wrap { display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center; }
.site-foot a { color: var(--ink-3); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.site-foot .spacer { margin-left: auto; }

:where(a, .btn):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (max-width: 640px) {
  .hero { padding: 44px 0 28px; }
  section { padding: 30px 0; }
  dl.facts > div { grid-template-columns: 1fr; gap: 2px; }
  .site-foot .spacer { margin-left: 0; width: 100%; }
}
