/* Shared by every page: type, colour, header bar, buttons, links, footer and the demo dialog. */
@font-face { font-family: "Host Grotesk"; font-weight: 300 700; font-display: swap;
  src: url("../fonts/host-grotesk-latin.v20261109.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Host Grotesk"; font-weight: 300 700; font-display: swap;
  src: url("../fonts/host-grotesk-latin-ext.v20261109.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #ffffff;        /* the page and the 3D sky: pure white */
  --paper-2: #f1f9fb;      /* fields take a faint teal from the logo, not grey */
  --white: #ffffff;
  /* three text roles, tinted toward the brand's teal-slate */
  --ink: #111c26;          /* primary: headings, running text — 17.2:1 */
  --ink-2: #3d4c59;        /* secondary: supporting lines — 8.8:1 */
  --muted: #66727e;        /* meta and captions only — 4.9:1 */
  --teal: #00a2c2;         /* logo teal: buttons, links, figures, the 3D — 3:1, so as text it is always large (19px bold or more) */
  --teal-on-tint: #009bb9; /* logo teal, a hair deeper, for large text on the blue tint — 3.1:1 on --paper-2 */
  --teal-ink: #00708a;     /* small teal text and hover / press — 5.7:1, white on it 5.7:1 */
  --teal-press: #005d73;   /* press — white on it 7.5:1 */
  --teal-tint: #e3f4f8;    /* active rows */
  --copper: #8a5e33;       /* logo roots as text — 5.6:1 */
  --red: #b42323;          /* 6.6:1 */
  --field-line: #84919c;   /* input borders — 3.2:1 non-text contrast */
  --font: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --margin: clamp(20px, 4vw, 64px);
  --bar-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* five sizes do the work */
  --fs-small: 0.9375rem;   /* 15 */
  --fs-body: 1.0625rem;    /* 17 */
  --fs-lead: 1.1875rem;    /* 19 */
  --fs-head: clamp(1.5rem, 1rem + 1.25vw, 2.125rem);   /* 34 at desktop */
  --fs-title: clamp(1.75rem, 1rem + 1.6vw, 2.5rem);    /* 40 at desktop */
  --fs-display: clamp(2.5rem, 1.4rem + 3.4vw, 4.5rem);
  --fs-section: clamp(2.25rem, 1.1rem + 2.6vw, 3.5rem); /* section openers: 56 at desktop */
  --fs-sub: clamp(1.5rem, 1rem + 1vw, 1.875rem);       /* sub-section titles: 30 at desktop */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #c9d3da var(--paper); color-scheme: light; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.55 var(--font); }
::selection { background: #bfeaf3; color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; }
:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: var(--margin); top: -100px; z-index: 40; padding: 10px 16px; background: var(--ink); color: var(--white); }
.skip:focus { top: 12px; }

/* ---------- bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20; height: var(--bar-h);
  padding: 0 var(--margin); display: flex; align-items: center; gap: 40px;
  background: rgba(255, 255, 255, 0.94);
}
.wordmark { flex-shrink: 0; }
.wordmark img { height: 44px; width: auto; }
.bar__nav { display: flex; gap: 32px; margin-left: auto; }
.bar__nav a, .bar__login { padding: 12px 0; color: var(--ink-2); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1.5px; text-underline-offset: 0.35em; transition: color 180ms ease, text-decoration-color 180ms ease; white-space: nowrap; }
.bar__nav a[aria-current] { color: var(--ink); text-decoration-color: var(--teal); }
.bar__actions { display: flex; align-items: center; gap: 28px; }
@media (hover: hover) and (pointer: fine) { .bar__nav a:hover, .bar__login:hover { color: var(--ink); text-decoration-color: currentColor; } }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  background: var(--teal); color: #ffffff; border: 0; border-radius: 999px; /* white on logo teal: 3:1, large bold label */
  font: 700 1.1875rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 180ms ease;
}
.button:active { transform: scale(0.97); }
.button:active { background: var(--teal-press); }
@media (hover: hover) and (pointer: fine) { .button:hover { background: var(--teal-ink); } }
/* secondary: white with a hairline, ink text */
.button--quiet { background: var(--teal-tint); color: var(--teal-ink); } /* flat tint, deep teal text: 5:1 */
.button--quiet:active { background: #cdebf2; }
@media (hover: hover) and (pointer: fine) { .button--quiet:hover { background: #cdebf2; } }
.button--lg { min-height: 56px; padding: 0 30px; }
.link { font-size: 1.1875rem; font-weight: 700; color: var(--teal); text-decoration: underline; text-decoration-color: rgba(0, 162, 194, 0.35); text-decoration-thickness: 1.5px; text-underline-offset: 0.25em; transition: color 180ms ease, text-decoration-color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { color: var(--teal-ink); text-decoration-color: currentColor; } }

.kicker { margin: 0 0 14px; font-size: var(--fs-small); font-weight: 600; color: var(--copper); }
.display { margin: 0; font: 600 var(--fs-display)/0.98 var(--font); letter-spacing: -0.035em; text-wrap: balance; }
.statement { margin: 16px 0 0; font: 500 var(--fs-head)/1.15 var(--font); letter-spacing: -0.02em; color: var(--teal); text-wrap: balance; } /* logo teal as text: 24px or more */
.h2 { margin: 0; font: 600 var(--fs-title)/1.06 var(--font); letter-spacing: -0.03em; text-wrap: balance; }
.h3 { margin: 0; font: 600 var(--fs-sub)/1.12 var(--font); letter-spacing: -0.02em; text-wrap: balance; }
.lead { margin: 18px 0 0; max-width: 38rem; font-size: var(--fs-lead); }
.note { margin: 12px 0 0; font-size: var(--fs-small); color: var(--muted); }
.actions { margin: 28px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

.points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 22px; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.points a { color: var(--ink); text-decoration-color: var(--teal); text-decoration-thickness: 1.5px; }
.points a:hover { color: var(--teal-ink); }

.foot { position: relative; z-index: 2; background: var(--white); padding: 96px var(--margin) 48px; display: grid; gap: 24px; }
.foot__logo { width: 186px; height: auto; }
.foot__tag { margin: 0; color: var(--ink-2); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.foot__nav a { padding: 10px 0; color: var(--ink-2); text-decoration: none; transition: color 180ms ease; }
.foot__nav a:hover { color: var(--teal-ink); text-decoration: underline; }
.foot__nav--pages a { color: var(--ink); font-weight: 600; } /* the pages of the site, above the contact links */
.foot__legal { margin: 0; color: var(--muted); font-size: var(--fs-small); }

/* demo dialog */
.demo { width: min(34rem, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 36px; border: 0; border-radius: 10px; background: var(--white); color: var(--ink); }
.demo::backdrop { background: rgba(20, 32, 43, 0.45); }
.demo__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); font-size: 1.75rem; line-height: 1; cursor: pointer; }
.demo__close:hover { background: var(--paper-2); }
.form { margin: 24px 0 0; display: grid; gap: 6px; }
.form label { margin-top: 10px; font-size: var(--fs-small); }
.form label span { color: var(--muted); }
.form input:hover, .form textarea:hover { border-color: var(--ink-2); }
.form input, .form textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--field-line); border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--teal-ink); outline-offset: 0; border-color: transparent; }
.form .button { margin-top: 18px; justify-self: start; }
.form__error { margin: 8px 0 0; color: var(--red); }

/* 1024–1199 px: the four links, the login and the button still fit on one line */
@media (max-width: 1199px) {
  .bar { gap: 24px; }
  .bar__nav, .bar__actions { gap: 20px; }
  .bar__nav a, .bar__login { font-size: var(--fs-small); }
}

@media (max-width: 1023px) {
  :root { --bar-h: 64px; --fs-head: 1.375rem; --fs-title: 1.5rem; --fs-lead: 1rem; --fs-body: 1rem; --fs-section: 2rem; --fs-sub: 1.375rem; }
  .bar { gap: 16px; }
  .bar__nav, .bar__login { display: none; }
  .bar__actions { margin-left: auto; }
  .wordmark img { height: 38px; }
  .bar .button { min-height: 44px; padding: 0 18px; }
  .demo { padding: 28px 20px; }
}
/* 320–359 px phones: the demo button keeps its label on one line */
@media (max-width: 359px) { .bar .button { padding: 0 14px; font-size: 1rem; } }
