/* ==========================================================================
   converters.cv - Global Stylesheet

   PALETTE   accent #0439C3 | ink #0F172A | grey #F7F7F7 | white #FFFFFF | line #E4E7EC
   SHAPE     5px radius everywhere
   TYPE      one family, one body size, h1-h6 from variables
   SPACING   GAP ONLY. Every parent is a grid/flex with a gap from the scale.
             No margin is used for layout anywhere in this file.
   SECTIONS  same padding top and bottom, backgrounds alternate white / grey
   BUTTONS   exactly two styles, exactly one height
   BANNED    gradients, box-shadow, transform, uppercase, opacity on colour,
             max-width on content, layout margins
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. FONT
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  --c-main:  #0439C3;
  --c-ink:   #0F172A;
  --c-grey:  #F7F7F7;
  --c-white: #FFFFFF;
  --c-line:  #E4E7EC;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-h1: clamp(2.125rem, 4.2vw, 3rem);
  --fs-h2: 2.125rem;
  --fs-h3: 1.625rem;
  --fs-h4: 1.25rem;
  --fs-h5: 1.125rem;
  --fs-h6: 1rem;
  --fs-body: 0.9375rem;
  --fs-menu: 0.875rem;   /* header dropdown only */

  --lh-heading: 1.22;
  --lh-body:    1.65;

  /* THE gap scale. Every gap in the file comes from here. */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  --r: 5px;
  --t: 150ms ease;
  --t-slow: 300ms ease;

  --container: 1180px;
  --header-h: 68px;
  --btn-h: 48px;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-5));
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

/* No element carries its own layout margin. Parents own the spacing. */
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, table, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 { color: var(--c-ink); line-height: var(--lh-heading); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }
p  { font-size: var(--fs-body); line-height: var(--lh-body); }

a { color: var(--c-main); text-decoration: none; transition: color var(--t); }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--c-main); outline-offset: 2px; border-radius: var(--r); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation: none !important; }
}

/* --------------------------------------------------------------------------
   3. LAYOUT  -  section > container is a grid, its gap spaces the blocks
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }

.section { padding-block: var(--sp-9); }
.section--alt { background: var(--c-grey); }
.section > .container { display: grid; gap: var(--sp-6); align-content: start; }

.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-6); }
.section__head-main { display: grid; gap: var(--sp-4); justify-items: start; }
.section__eyebrow { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-body); font-weight: 700; color: var(--c-main); }
.section__eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--c-main); flex: none; }
.section__title { font-size: var(--fs-h2); }
.section__text { font-size: var(--fs-body); color: var(--c-ink); }

.grid { display: grid; gap: var(--sp-4); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: stretch; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--sp-4); top: -100px; z-index: 200; background: var(--c-main); color: var(--c-white); padding: var(--sp-3) var(--sp-5); border-radius: var(--r); transition: top var(--t); }
.skip-link:focus { top: var(--sp-4); color: var(--c-white); }

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  height: var(--btn-h); min-height: var(--btn-h); padding-inline: var(--sp-5);
  border-radius: var(--r); border: 1px solid transparent;
  font-size: var(--fs-body); font-weight: 600; white-space: nowrap;
  transition: background-color var(--t), color var(--t), border-color var(--t);
}
.btn svg { width: 16px; height: 16px; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.btn--dark  { background: var(--c-main);  color: var(--c-white); border-color: var(--c-main); }
.btn--dark:hover  { background: var(--c-white); color: var(--c-main);  border-color: var(--c-main); }
.btn--light { background: var(--c-white); color: var(--c-main);  border-color: var(--c-white); }
.btn--light:hover { background: var(--c-main);  color: var(--c-white); border-color: var(--c-white); }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   5. ICON BOX
   -------------------------------------------------------------------------- */
.ico {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center;
  border-radius: var(--r); background: var(--c-grey); border: 1px solid var(--c-line);
  color: var(--c-main);
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.ico svg { width: 20px; height: 20px; }
.ico--sm { width: 26px; height: 26px; flex: 0 0 26px; }
.ico--sm svg { width: 14px; height: 14px; }
.section--alt .ico, .page-head .ico { background: var(--c-white); }

/* --------------------------------------------------------------------------
   6. HEADER
   -------------------------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 100; background: var(--c-white); border-bottom: 1px solid var(--c-line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); height: var(--header-h); }

.logo { display: inline-flex; align-items: center; flex: none; }
.logo__img { height: 36px; width: auto; }
.footer .logo__img, .drawer .logo__img { height: 34px; }

.nav__list { display: flex; align-items: center; gap: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  height: 36px; padding-inline: var(--sp-2); border-radius: var(--r);
  font-size: var(--fs-menu); font-weight: 600; color: var(--c-ink); white-space: nowrap;
  transition: background-color var(--t), color var(--t);
}
.nav__item:hover > .nav__link, .nav__link:hover { background: var(--c-grey); color: var(--c-main); }
.nav__link svg { width: 12px; height: 12px; }

/* The panel starts at its own menu item. The last two menus sit close to the
   right edge, so those flip to right aligned instead of running off screen. */
.dropdown {
  position: absolute; top: calc(100% + var(--sp-3)); left: 0; right: auto;
  width: max-content; max-width: min(92vw, 640px);
  display: grid; gap: var(--sp-2); padding: var(--sp-2);
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r);
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
}
.nav__item:nth-last-child(-n+3) .dropdown { left: auto; right: 0; }
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--sp-3) * -1); height: var(--sp-3); }
.nav__item:hover > .dropdown, .nav__item:focus-within > .dropdown { opacity: 1; visibility: visible; }
.dropdown__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.dropdown__link {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 6px var(--sp-2); border-radius: var(--r);
  font-size: var(--fs-menu); font-weight: 600; color: var(--c-ink);
  line-height: 1.2; white-space: nowrap;
  transition: background-color var(--t), color var(--t);
}
.dropdown__link:hover { background: var(--c-grey); color: var(--c-main); }
.dropdown__link:hover .ico { background: var(--c-main); border-color: var(--c-main); color: var(--c-white); }
.dropdown__foot { display: grid; gap: 2px; padding-top: var(--sp-2); border-top: 1px solid var(--c-line); }
.dropdown__all { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 6px var(--sp-2); border-radius: var(--r); font-size: var(--fs-menu); font-weight: 600; color: var(--c-main); transition: background-color var(--t); }
.dropdown__all:hover { background: var(--c-grey); }
.dropdown__all svg { width: 15px; height: 15px; }

.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--c-line); border-radius: var(--r); place-items: center; transition: background-color var(--t); }
.burger:hover { background: var(--c-grey); }
.burger svg { width: 19px; height: 19px; color: var(--c-ink); }

/* --------------------------------------------------------------------------
   7. MOBILE DRAWER
   -------------------------------------------------------------------------- */
.scrim { position: fixed; inset: 0; z-index: 110; background: var(--c-ink); opacity: 0; visibility: hidden; transition: opacity var(--t-slow), visibility var(--t-slow); }
.scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: -340px; z-index: 120;
  width: 320px; max-width: 86vw; height: 100%;
  background: var(--c-white); border-left: 1px solid var(--c-line);
  display: flex; flex-direction: column; transition: right var(--t-slow);
}
.drawer.is-open { right: 0; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-inline: var(--sp-5); height: var(--header-h); flex: none; border-bottom: 1px solid var(--c-line); }
.drawer__close { width: 40px; height: 40px; flex: none; border: 1px solid var(--c-line); border-radius: var(--r); display: grid; place-items: center; color: var(--c-ink); transition: background-color var(--t); }
.drawer__close:hover { background: var(--c-grey); }
.drawer__close svg { width: 19px; height: 19px; }
.drawer__body { flex: 1; overflow-y: auto; padding-inline: var(--sp-5); padding-block: var(--sp-2) var(--sp-6); -webkit-overflow-scrolling: touch; }

.macc { border-bottom: 1px solid var(--c-line); }
.macc__btn { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); width: 100%; padding-block: var(--sp-4); font-size: var(--fs-body); font-weight: 600; color: var(--c-ink); text-align: left; }
.macc__panel { max-height: 0; overflow: hidden; transition: max-height var(--t-slow); }
.macc__panel-inner { display: grid; gap: var(--sp-1); padding-bottom: var(--sp-4); }
.macc__panel a { display: block; padding: var(--sp-3); border-radius: var(--r); font-size: var(--fs-body); font-weight: 500; color: var(--c-ink); background: var(--c-grey); }
.drawer__link { display: block; padding-block: var(--sp-4); font-size: var(--fs-body); font-weight: 600; color: var(--c-ink); border-bottom: 1px solid var(--c-line); }
.drawer__foot { padding: var(--sp-5); border-top: 1px solid var(--c-line); flex: none; }

.pm { position: relative; width: 14px; height: 14px; flex: none; }
.pm::before, .pm::after { content: ""; position: absolute; background: var(--c-main); border-radius: 1px; }
.pm::before { left: 0; top: 6px; width: 14px; height: 2px; }
.pm::after { top: 0; left: 6px; width: 2px; height: 14px; transition: opacity var(--t); }
[aria-expanded="true"] .pm::after { opacity: 0; }

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero { padding-block: var(--sp-9); }
.hero > .container { display: grid; gap: var(--sp-8); }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: stretch; }
.hero__copy { display: grid; gap: var(--sp-5); align-content: center; justify-items: start; }

.badge { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-grey); font-size: var(--fs-body); font-weight: 600; color: var(--c-main); }
.badge svg { width: 14px; height: 14px; }
.hero__title { font-size: var(--fs-h1); }
.hero__text { font-size: var(--fs-body); color: var(--c-ink); }

.search-wrap { position: relative; width: 100%; }
.search { display: flex; gap: var(--sp-2); }
.search__field { position: relative; flex: 1; }
.search__field > svg { position: absolute; left: var(--sp-4); top: 50%; margin-top: -9px; width: 18px; height: 18px; color: var(--c-ink); pointer-events: none; }
.search__input { width: 100%; height: var(--btn-h); padding-inline: var(--sp-4) var(--sp-4); padding-left: 44px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-white); font-size: var(--fs-body); transition: border-color var(--t); }
.search__input:focus { outline: none; border-color: var(--c-main); }

.search__results { position: absolute; top: calc(100% + var(--sp-2)); left: 0; right: 0; z-index: 40; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-white); overflow: hidden auto; display: none; max-height: 320px; }
.search__results.is-open { display: block; }
.search__results a { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-body); font-weight: 500; color: var(--c-ink); border-bottom: 1px solid var(--c-line); transition: background-color var(--t); }
.search__results a:last-child { border-bottom: 0; }
.search__results a:hover { background: var(--c-grey); }
.search__results .tag { color: var(--c-main); flex: none; }
.search__empty { padding: var(--sp-4); color: var(--c-ink); }

.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--c-line); border-radius: var(--r); font-size: var(--fs-body); font-weight: 600; color: var(--c-ink); background: var(--c-white); }
.chip svg { width: 13px; height: 13px; color: var(--c-main); }

.media { position: relative; display: block; height: 100%; min-height: 340px; }
.media__img { display: block; width: 100%; height: 100%; min-height: 340px; object-fit: cover; object-position: center; border-radius: var(--r); border: 1px solid var(--c-line); }
/* Drawn panels are shown whole. Cropping a diagram cuts information out of it,
   so these are contained at a fixed frame rather than stretched to the copy. */
.media--art { height: auto; min-height: 0; align-self: center; }
.media--art .media__img {
  height: auto; min-height: 0; aspect-ratio: 3 / 2;
  object-fit: contain; background: var(--c-grey);
}

.media__tag { position: absolute; left: var(--sp-4); bottom: var(--sp-4); display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r); }
.media__tag > span:last-child { display: grid; gap: var(--sp-1); }
.media__tag-num { font-size: var(--fs-h4); font-weight: 700; color: var(--c-main); line-height: 1.15; }
.media__tag-label { font-size: var(--fs-body); font-weight: 600; color: var(--c-ink); line-height: 1.35; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-white); }
.stats__item { display: grid; gap: var(--sp-1); padding: var(--sp-5); border-right: 1px solid var(--c-line); }
.stats__item:last-child { border-right: 0; }
.stats__num { font-size: var(--fs-h3); font-weight: 700; color: var(--c-main); line-height: 1.15; }
.stats__label { font-size: var(--fs-body); font-weight: 600; color: var(--c-ink); }

/* --------------------------------------------------------------------------
   9. CARD / STEP / FEATURE / PILL
   -------------------------------------------------------------------------- */
.card { display: grid; gap: var(--sp-3); align-content: start; padding: var(--sp-5); background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r); transition: border-color var(--t); }
.card:hover { border-color: var(--c-main); }
.card:hover .ico { background: var(--c-main); border-color: var(--c-main); color: var(--c-white); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.card__go { color: var(--c-line); transition: color var(--t); }
.card__go svg { width: 18px; height: 18px; }
.card:hover .card__go { color: var(--c-main); }
.card__title { font-size: var(--fs-h5); }
.card__text { font-size: var(--fs-body); color: var(--c-ink); }
.card__count { font-size: var(--fs-body); font-weight: 600; color: var(--c-main); }

.step { display: grid; gap: var(--sp-3); align-content: start; justify-items: start; padding: var(--sp-5); border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-white); }
.step__num { width: 32px; height: 32px; border-radius: var(--r); background: var(--c-main); color: var(--c-white); display: grid; place-items: center; font-size: var(--fs-body); font-weight: 700; }
.step__title { font-size: var(--fs-h5); }
.step__text { font-size: var(--fs-body); color: var(--c-ink); }

.features { display: grid; gap: var(--sp-5); align-content: center; }
.feature { display: flex; gap: var(--sp-4); align-items: flex-start; }
.feature > div { display: grid; gap: var(--sp-1); }
.feature__title { font-size: var(--fs-h5); }
.feature__text { font-size: var(--fs-body); color: var(--c-ink); }

.pills { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pill { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-white); font-size: var(--fs-body); font-weight: 500; color: var(--c-ink); transition: border-color var(--t), color var(--t); }
.pill:hover { border-color: var(--c-main); color: var(--c-main); }
.pill svg { width: 13px; height: 13px; color: var(--c-line); }
.pill:hover svg { color: var(--c-main); }

.info { display: grid; gap: var(--sp-3); align-content: start; justify-items: start; padding: var(--sp-5); border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-white); transition: border-color var(--t); }
a.info:hover { border-color: var(--c-main); }
a.info:hover .ico { background: var(--c-main); border-color: var(--c-main); color: var(--c-white); }
.info__title { font-size: var(--fs-h5); }
.info__text { font-size: var(--fs-body); color: var(--c-ink); }
.info__value { font-size: var(--fs-body); font-weight: 600; color: var(--c-main); }

/* --------------------------------------------------------------------------
   10. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--sp-2); }
.faq__item { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r); transition: border-color var(--t); }
.faq__item:hover { border-color: var(--c-main); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); width: 100%; padding: var(--sp-4) var(--sp-5); font-size: var(--fs-h5); font-weight: 600; color: var(--c-ink); text-align: left; line-height: 1.45; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--t-slow); }
.faq__a-inner { padding-inline: var(--sp-5); padding-bottom: var(--sp-5); font-size: var(--fs-body); color: var(--c-ink); }

/* --------------------------------------------------------------------------
   11. CTA
   -------------------------------------------------------------------------- */
.cta { background: var(--c-main); border-radius: var(--r); padding: var(--sp-8) var(--sp-7); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-7); flex-wrap: wrap; }
.cta > div { display: grid; gap: var(--sp-3); }
.cta__title { font-size: var(--fs-h3); color: var(--c-white); }
.cta__text { font-size: var(--fs-body); color: var(--c-white); }
.cta__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.footer { background: var(--c-main); color: var(--c-white); padding-block: var(--sp-8) 0; }
.footer > .container { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-6); }
.footer__top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: var(--sp-6); }
.footer__top > div { display: grid; gap: var(--sp-4); align-content: start; justify-items: start; }
.footer__about { font-size: var(--fs-body); color: var(--c-white); }
.footer__mail { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-body); font-weight: 500; color: var(--c-white); }
.footer__mail svg { width: 17px; height: 17px; }
.footer__title { font-size: var(--fs-h6); font-weight: 700; color: var(--c-white); letter-spacing: -0.01em; }
.footer__list { display: grid; gap: var(--sp-3); }
.footer__list a { font-size: var(--fs-body); color: var(--c-white); }
/* full width rule, 16px of breathing room above and below */
.footer__bottom { border-top: 1px solid var(--c-white); }
.footer__bottom > .container { padding-block: var(--sp-4); text-align: center; }
.footer__bottom p { font-size: var(--fs-body); color: var(--c-white); }

/* --------------------------------------------------------------------------
   13. REVEAL
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transition: opacity var(--t-slow); }
.reveal.is-in { opacity: 1; }
.no-js .reveal { opacity: 1; }

/* --------------------------------------------------------------------------
   14. BREADCRUMB
   -------------------------------------------------------------------------- */
.crumb { border-bottom: 1px solid var(--c-line); background: var(--c-white); }
.crumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); padding-block: var(--sp-3); }
.crumb__list li { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-body); color: var(--c-ink); }
.crumb__list a { color: var(--c-main); }
.crumb__list svg { width: 13px; height: 13px; color: var(--c-ink); }
.crumb__list [aria-current] { font-weight: 700; color: var(--c-ink); }

/* --------------------------------------------------------------------------
   15. PAGE HEAD
   -------------------------------------------------------------------------- */
.page-head { background: var(--c-grey); padding-block: var(--sp-9); }
.page-head__inner { display: grid; gap: var(--sp-4); justify-items: start; }
.page-head__title { font-size: var(--fs-h1); }
.page-head__text { font-size: var(--fs-body); color: var(--c-ink); }
.page-head__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* --------------------------------------------------------------------------
   16. PROSE  -  one grid, one gap. Headings carry padding, never margin.
   -------------------------------------------------------------------------- */
.prose { display: grid; gap: var(--sp-4); align-content: start; }
.prose h2 { font-size: var(--fs-h3); padding-top: var(--sp-5); border-top: 1px solid var(--c-line); }
.prose h2:first-child { padding-top: 0; border-top: 0; }
.prose h3 { font-size: var(--fs-h5); padding-top: var(--sp-2); }
.prose p, .prose li { font-size: var(--fs-body); color: var(--c-ink); line-height: var(--lh-body); }
.prose strong { font-weight: 700; }
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { display: grid; gap: var(--sp-3); }
.prose ul li { position: relative; padding-left: var(--sp-5); }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-main); }
.prose ol { counter-reset: prose-ol; }
.prose ol li { position: relative; padding-left: var(--sp-6); counter-increment: prose-ol; }
.prose ol li::before { content: counter(prose-ol) "."; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--c-main); }

.prose table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--c-line); border-radius: var(--r); overflow: hidden; background: var(--c-white); }
.prose thead th { background: var(--c-grey); color: var(--c-ink); font-size: var(--fs-body); font-weight: 700; text-align: left; padding: var(--sp-4); border-bottom: 1px solid var(--c-line); white-space: nowrap; }
.prose tbody td { padding: var(--sp-4); font-size: var(--fs-body); color: var(--c-ink); border-bottom: 1px solid var(--c-line); vertical-align: top; }
.prose tbody td:first-child { font-weight: 600; white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover td { background: var(--c-grey); }
.prose__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose__scroll table { min-width: 560px; }

.note { display: grid; gap: var(--sp-2); padding: var(--sp-5); background: var(--c-grey); border: 1px solid var(--c-line); border-radius: var(--r); }
.note__title { font-size: var(--fs-h5); }

/* --------------------------------------------------------------------------
   17. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .hero__grid, .split { grid-template-columns: 1fr; gap: var(--sp-7); }
  .media, .media__img { height: auto; min-height: 0; }
  .media__img { aspect-ratio: 3 / 2; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: grid; }
}

@media (max-width: 940px) {
  :root {
    --sp-9: 64px; --sp-8: 48px;
    --fs-h1: clamp(1.75rem, 5.5vw, 2.25rem);
    --fs-h2: 1.75rem; --fs-h3: 1.375rem; --fs-h4: 1.1875rem;
    --fs-h5: 1.0625rem; --fs-h6: 0.9375rem; --fs-body: 0.875rem;
  }
  .nav { display: none; }
  .burger { display: grid; }
  .section > .container { gap: var(--sp-5); }
  .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .section__head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
  :root {
    --fs-h1: 1.75rem; --fs-h2: 1.5rem; --fs-h3: 1.25rem;
    --fs-h4: 1.125rem; --fs-h5: 1rem; --fs-h6: 0.9375rem; --fs-body: 0.875rem;
  }
  .container { padding-inline: var(--sp-4); }
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats__item:nth-child(2) { border-right: 0; }
  .stats__item:nth-child(1), .stats__item:nth-child(2) { border-bottom: 1px solid var(--c-line); }
  .search { flex-direction: column; }
  .search .btn { width: 100%; }
  .card, .step, .info { padding: var(--sp-4); }
  .faq__q { padding: var(--sp-4); }
  .faq__a-inner { padding-inline: var(--sp-4); padding-bottom: var(--sp-4); }
  .cta { padding: var(--sp-7) var(--sp-5); }
  .cta__actions { width: 100%; }
  .cta__actions .btn { flex: 1; }
  .btn { padding-inline: var(--sp-4); }
  .prose thead th, .prose tbody td { padding: var(--sp-3); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-4); }
  .footer__brand { grid-column: 1 / -1; }
  .media__tag { left: var(--sp-3); bottom: var(--sp-3); padding: var(--sp-3); }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stats__item { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .stats__item:last-child { border-bottom: 0; }
  .footer__top { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   19. TOOL - the working converter widget shared by every tool page
   -------------------------------------------------------------------------- */
.tool { display: grid; gap: var(--sp-4); }

.tool__drop {
  display: grid; gap: var(--sp-4); justify-items: center;
  padding: var(--sp-8) var(--sp-5);
  background: var(--c-white);
  border: 2px dashed var(--c-line); border-radius: var(--r);
  text-align: center; cursor: pointer;
  transition: border-color var(--t), background-color var(--t);
}
.tool__drop:hover { border-color: var(--c-main); background: var(--c-grey); }
.tool__drop.is-over { border-color: var(--c-main); background: var(--c-grey); }

/* The mark breathes gently so the drop area reads as the live part of the page.
   Only opacity and colour move, never transform. */
.tool__mark {
  position: relative;
  width: 64px; height: 64px; border-radius: var(--r);
  display: grid; place-items: center;
  background: var(--c-main); color: var(--c-white);
}
/* A ripple that grows outward. Driven by inset and opacity, never transform. */
.tool__mark::after {
  content: ""; position: absolute; inset: 0;
  border: 2px solid var(--c-main); border-radius: var(--r);
  animation: tool-halo 2.2s ease-out infinite;
}
@keyframes tool-halo {
  0%   { inset: 0;      opacity: 0.5; }
  100% { inset: -16px;  opacity: 0;   }
}
.tool__mark svg { width: 28px; height: 28px; }
/* The arrow redraws itself so the icon reads as live rather than static. */
.tool__mark svg path {
  stroke-dasharray: 40;
  animation: tool-draw 2.2s ease-in-out infinite;
}
@keyframes tool-draw {
  0%   { stroke-dashoffset: 40; opacity: 0.25; }
  35%  { stroke-dashoffset: 0;  opacity: 1; }
  85%  { stroke-dashoffset: 0;  opacity: 1; }
  100% { stroke-dashoffset: 40; opacity: 0.25; }
}
.tool__drop:hover .tool__mark::after,
.tool__drop.is-over .tool__mark::after { animation-duration: 1.1s; }

.tool__title { font-size: var(--fs-h3); }
.tool__hint { font-size: var(--fs-body); color: var(--c-ink); }
.tool__pick { font-weight: 700; color: var(--c-main); text-decoration: underline; text-underline-offset: 2px; }
.tool__drop .btn { pointer-events: none; }

.tool__opts {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r);
}
.field { display: grid; gap: var(--sp-2); }
.field__label { font-size: var(--fs-body); font-weight: 600; }
.field__row { display: flex; gap: var(--sp-2); }
.input, .select {
  height: var(--btn-h); padding-inline: var(--sp-3);
  border: 1px solid var(--c-line); border-radius: var(--r);
  background: var(--c-white); font-size: var(--fs-body); color: var(--c-ink);
  transition: border-color var(--t);
}

/* Our own chevron instead of the operating system one, so a select looks the
   same on every platform. The arrow is the same shape used in the header. */
.select {
  appearance: none; -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 9.5l5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
}
.select::-ms-expand { display: none; }
.input:focus, .select:focus { outline: none; border-color: var(--c-main); }
.input { width: 110px; }
.select { min-width: 120px; }
.select--wide { min-width: 230px; }

.presets { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.checks { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.check {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  height: var(--btn-h); padding-inline: var(--sp-4);
  background: var(--c-white); color: var(--c-ink);
  font-size: var(--fs-body); font-weight: 600;
  border: 1px solid var(--c-line); border-radius: var(--r); cursor: pointer;
  transition: border-color var(--t), color var(--t);
}
.check:hover { border-color: var(--c-main); color: var(--c-main); }
.check input { width: 16px; height: 16px; accent-color: var(--c-main); cursor: pointer; }
.check:has(input:checked) { border-color: var(--c-main); color: var(--c-main); }
.result.is-bad { border-color: var(--c-line); }
.result.is-bad .result__to { color: var(--c-ink); font-weight: 600; }
.preset {
  height: var(--btn-h); padding-inline: var(--sp-4);
  border: 1px solid var(--c-line); border-radius: var(--r);
  background: var(--c-white); font-size: var(--fs-body); font-weight: 600; color: var(--c-ink);
  transition: border-color var(--t), color var(--t), background-color var(--t);
}
.preset:hover { border-color: var(--c-main); color: var(--c-main); background: var(--c-grey); }
.preset.is-on { background: var(--c-main); border-color: var(--c-main); color: var(--c-white); }

.tool__list { display: grid; gap: var(--sp-2); }
.result {
  display: grid; grid-template-columns: 56px 1fr auto; gap: var(--sp-4); align-items: center;
  padding: var(--sp-3); background: var(--c-white);
  border: 1px solid var(--c-line); border-radius: var(--r);
  animation: result-in var(--t-slow) ease both;
  transition: border-color var(--t);
}
.result:hover { border-color: var(--c-main); }
/* A row with no thumbnail, which is what a list of documents is: a PDF has no
   picture to show. Without this the name lands in the column reserved for a
   thumbnail and is squeezed to nothing while the rest of the row sits empty. */
.result--plain { grid-template-columns: 1fr auto; }
/* The struck through size means "this was replaced by that". In a list of
   documents nothing is being replaced, so it is just the size. */
.result--plain .result__from { text-decoration: none; }
/* An arrow needs no more room than an arrow. */
.result__actions .btn--icon { padding-inline: var(--sp-3); min-width: 44px; }

@keyframes result-in { from { opacity: 0; } to { opacity: 1; } }
.result__thumb { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--c-line); }
.result__meta { display: grid; gap: var(--sp-1); min-width: 0; }
.fancy { font-size: var(--fs-body); line-height: 1.7; word-break: break-word; overflow-wrap: anywhere; }
.result__name { font-size: var(--fs-body); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result__size { display: flex; flex-wrap: wrap; gap: var(--sp-2); font-size: var(--fs-body); }
.result__from { text-decoration: line-through; }
.result__to { font-weight: 700; color: var(--c-main); }
.result__save { font-weight: 600; }
.result__actions { display: flex; gap: var(--sp-2); }
.result__actions .btn { height: 38px; padding-inline: var(--sp-4); }
.result.is-busy .result__to { color: var(--c-ink); animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.result.is-busy .result__thumb { opacity: 0.55; }

.tool__bar { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between; }
.tool__count { font-size: var(--fs-body); font-weight: 600; }

/* ---- text, data and developer tools ---------------------------------- */
.tool--text { display: grid; gap: var(--sp-4); }
.panes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.pane { display: grid; gap: var(--sp-2); min-width: 0; }
.area {
  width: 100%; min-height: 220px; resize: vertical;
  padding: var(--sp-4);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--fs-body); line-height: 1.55; color: var(--c-ink);
  background: var(--c-white);
  border: 1px solid var(--c-line); border-radius: var(--r);
  transition: border-color var(--t);
}
.area--tall { min-height: 260px; }
.area:focus { outline: none; border-color: var(--c-main); }
.area[readonly] { background: var(--c-grey); }

.tool__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.status { flex: 1 1 auto; min-width: 0; font-size: var(--fs-body); color: var(--c-ink); }
.status.is-bad { color: var(--c-main); font-weight: 600; }
.tool__count.is-bad { color: var(--c-main); font-weight: 600; }

/* The timesheet: a grid so the columns line up down the rows, collapsing to a
   stack on a narrow screen where five columns cannot fit. */
/* The colour picker: a canvas you point at, a row of swatches under it, and
   the picked colour beside its three notations. */
/* Choosing pages by looking at them. A grid of pages, each a button, each
   large enough to recognise and small enough that a long document still fits
   on a screen. A selected page is dimmed and labelled with what will happen to
   it, rather than only outlined, because an outline alone is invisible to
   anyone who cannot separate those two blues. */
/* The page grid, with its own small bar of controls above it. */
.tool__pages { display: grid; gap: var(--sp-4); }

.pagepick {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.pagepick__page {
  display: grid; gap: var(--sp-2); justify-items: center; align-content: start;
  padding: var(--sp-3); background: var(--c-white);
  border: 1px solid var(--c-line); border-radius: var(--r);
  transition: border-color var(--t);
}
.pagepick__page:hover { border-color: var(--c-main); }
.pagepick__page:focus-visible { outline: 2px solid var(--c-main); outline-offset: 2px; }
.pagepick__thumb {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--c-line); border-radius: var(--r);
}
.pagepick__tag { font-size: var(--fs-body); font-weight: 600; color: var(--c-ink); }
.pagepick__page.is-on { border-color: var(--c-main); background: var(--c-grey); }
.pagepick__page.is-on .pagepick__thumb { opacity: 0.35; }
.pagepick__page.is-on .pagepick__tag { color: var(--c-main); }

.stage { display: grid; gap: var(--sp-5); }
/* A checkerboard behind the canvas, so transparency reads as transparency
   rather than as white. Drawn as two solid squares in a tiled SVG rather than
   as crossed gradients: the rule here is no gradients, and one standing in for
   a pattern is still one. */
.stage__canvas--checker {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2218%22%20height%3D%2218%22%3E%3Crect%20width%3D%2218%22%20height%3D%2218%22%20fill%3D%22%23FFFFFF%22%2F%3E%3Crect%20width%3D%229%22%20height%3D%229%22%20fill%3D%22%23F7F7F7%22%2F%3E%3Crect%20x%3D%229%22%20y%3D%229%22%20width%3D%229%22%20height%3D%229%22%20fill%3D%22%23F7F7F7%22%2F%3E%3C%2Fsvg%3E");
  background-size: 18px 18px;
}
/* Shown at whatever size fits, never stretched to the width of the page. A
   tall photograph filled the screen and pushed everything worth reading off
   the bottom, so the height is capped and the width follows the picture. */
.stage__canvas {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 460px;
  border: 1px solid var(--c-line); border-radius: var(--r);
}
/* Only the picker is clickable, so only the picker says so. */
.stage__canvas--pick { cursor: crosshair; }
.swatches { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.swatch { width: 56px; height: 56px; border: 1px solid var(--c-line); border-radius: var(--r); cursor: pointer; padding: 0; }
.swatch:focus-visible { outline: 2px solid var(--c-main); outline-offset: 2px; }
.picked { display: grid; grid-template-columns: 96px 1fr; gap: var(--sp-5); align-items: start; }
.picked__chip { display: block; height: 96px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-grey); }
.picked__out { display: grid; gap: var(--sp-3); }
@media (max-width: 620px) { .picked { grid-template-columns: 1fr; } }

.timesheet { display: grid; gap: var(--sp-3); }
.timerow {
  display: grid; gap: var(--sp-3); align-items: center;
  grid-template-columns: 1.1fr 1fr 1fr 1fr 1.3fr;
}
.timesheet__rows { display: grid; gap: var(--sp-3); }
.timerow--head { font-size: var(--fs-body); font-weight: 600; }
.timerow__day { font-size: var(--fs-body); font-weight: 600; }
.timerow__out { font-size: var(--fs-body); color: var(--c-main); font-weight: 700; }
@media (max-width: 760px) {
  .timerow { grid-template-columns: 1fr 1fr; }
  .timerow--head { display: none; }
  .timerow__day, .timerow__out { grid-column: 1 / -1; }
}

.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.stat {
  display: grid; gap: var(--sp-1); align-content: start;
  padding: var(--sp-4); background: var(--c-white);
  border: 1px solid var(--c-line); border-radius: var(--r);
}
.stat__n { font-size: var(--fs-h4); font-weight: 700; color: var(--c-main); }
.stat__l { font-size: var(--fs-body); }

.diff {
  max-height: 460px; overflow: auto;
  background: var(--c-white);
  border: 1px solid var(--c-line); border-radius: var(--r);
}
.diff__row {
  display: grid; grid-template-columns: 28px 1fr;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--fs-body); line-height: 1.6;
}
.diff__m { text-align: center; color: var(--c-ink); border-right: 1px solid var(--c-line); }
.diff__t { padding-inline: var(--sp-3); white-space: pre-wrap; overflow-wrap: anywhere; }
.diff--add { background: var(--c-grey); }
.diff--add .diff__m, .diff--add .diff__t { color: var(--c-main); font-weight: 600; }
.diff--del .diff__t { text-decoration: line-through; }
.diff--del { background: var(--c-white); }
.diff:empty { display: none; }

@media (max-width: 940px) {
  .statgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .panes { grid-template-columns: 1fr; }
  .area { min-height: 180px; }
  .tool__actions { width: 100%; }
  .tool__actions .btn { flex: 1; }
}


/* ---- unit converter ------------------------------------------------- */
.conv {
  display: grid; gap: var(--sp-4);
  padding: var(--sp-5); background: var(--c-grey);
  border: 1px solid var(--c-line); border-radius: var(--r);
}
.conv__row { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--sp-4); align-items: end; }
.conv__side { min-width: 0; }
.conv__side .field__row { align-items: stretch; }
.input--wide { width: 100%; flex: 1 1 auto; min-width: 0; font-weight: 600; }
.tag {
  display: inline-flex; align-items: center; flex: 0 0 auto;
  height: var(--btn-h); padding-inline: var(--sp-4);
  background: var(--c-white); color: var(--c-ink);
  font-size: var(--fs-body); font-weight: 700;
  border: 1px solid var(--c-line); border-radius: var(--r);
}
.swap {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--btn-h); height: var(--btn-h); flex: 0 0 auto;
  background: var(--c-white); color: var(--c-main);
  border: 1px solid var(--c-line); border-radius: var(--r); cursor: pointer;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.swap:hover { background: var(--c-main); border-color: var(--c-main); color: var(--c-white); }
.swap svg { width: 20px; height: 20px; }
.swap__label { display: none; font-size: var(--fs-body); font-weight: 600; }
.conv__out {
  padding: var(--sp-4); background: var(--c-white);
  border: 1px solid var(--c-line); border-radius: var(--r);
  font-size: var(--fs-h4); font-weight: 700; color: var(--c-main);
  overflow-wrap: anywhere;
}
.conv__foot { display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: flex-start; }
.conv__foot .field { flex: 0 1 auto; }

.formula {
  display: grid; gap: var(--sp-2);
  padding: var(--sp-4); background: var(--c-white);
  border: 1px solid var(--c-line); border-radius: var(--r);
}
.formula__eq { font-size: var(--fs-h5); font-weight: 700; overflow-wrap: anywhere; }
.formula__note { font-size: var(--fs-body); }

@media (max-width: 680px) {
  .conv { padding: var(--sp-4); }
  .conv__row { grid-template-columns: 1fr; }
  .swap { width: 100%; gap: var(--sp-2); }
  .swap__label { display: inline; }
  .conv__foot { gap: var(--sp-4); }
  .conv__foot .field { width: 100%; }
}


@media (max-width: 680px) {
  .tool__drop { padding: var(--sp-6) var(--sp-4); }
  .tool__opts { padding: var(--sp-4); }
  .result { grid-template-columns: 44px 1fr; }
  .result__thumb { width: 44px; height: 44px; }
  .result__actions { grid-column: 1 / -1; }
  .result__actions .btn { flex: 1; }
  .input { width: 100%; }
  .field, .field__row { width: 100%; }
}
