/* Unityzer website. One stylesheet for every page; no scripts, no cookies, nothing loaded from another site.
   No divider lines: sections are told apart by their backgrounds and by space. */

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-standard-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Every text colour is at least 7:1 on the surface it sits on, in both themes (the owner's AAA rule). */
:root {
  color-scheme: light dark;
  --paper: #f3f6fb;
  --surface: #ffffff;
  --tint: #e6eefb;
  --ui: #f6f8fc;
  --ink: #0b1a33;
  --ink-2: #34445e;
  --brand: #0a47b0;
  --on-brand: #ffffff;
  --ok-bg: #dcf2e8;
  --ok-ink: #0a5a3f;
  --warn-bg: #fbecc9;
  --warn-ink: #6a4300;
  --info-bg: #dde8fb;
  --info-ink: #0a3d96;
  --soft: #c9d4e4;
  --field-line: #6b7c96;
  --err-bg: #fde4e4;
  --err-ink: #7a1416;
  --teal: #0b5e56;
  --wash-blue: rgba(10, 71, 176, 0.09);
  --wash-sea: rgba(36, 196, 178, 0.11);
  --dot: rgba(10, 71, 176, 0.13);
  --shadow: 0 1px 2px rgba(11, 26, 51, 0.05), 0 18px 40px -18px rgba(11, 26, 51, 0.22);

  /* The night bands (opening, comparison, closing) look the same in both themes. */
  --night: #071430;
  --night-2: #0c2152;
  --night-ink: #f3f7fd;
  --night-ink-2: #c9d6ec;
  --night-link: #b8cffa;
  --sea: #5fe3d2;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --page: 1180px;
  --gutter: 28px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1424;
    --surface: #131f36;
    --tint: #1a2d55;
    --ui: #0f1b33;
    --ink: #e9eff8;
    --ink-2: #c2cee0;
    --brand: #afc8f6;
    --on-brand: #0b1a33;
    --ok-bg: #173a3a;
    --ok-ink: #a6ecd0;
    --warn-bg: #3a3020;
    --warn-ink: #f6d48f;
    --info-bg: #1a2d55;
    --info-ink: #c4d8fb;
    --soft: #2b3b58;
    --field-line: #6d82a6;
    --err-bg: #3d1d24;
    --err-ink: #ffc2c2;
    --teal: #8fe9dc;
    --wash-blue: rgba(64, 120, 230, 0.12);
    --wash-sea: rgba(95, 227, 210, 0.07);
    --dot: rgba(175, 200, 246, 0.09);
    --shadow: 0 0 0 1px rgba(184, 207, 250, 0.08), 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  /* A short page still fills the window: the main part grows, so the footer sits at the foot of the window and no
     page background shows beneath it. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

/* On the short pages, what they say sits in the middle of the space they fill. */
body > main.done,
body > main.not-found {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

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

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip:focus {
  left: var(--gutter);
  top: 12px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--surface);
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 60;
}

h1 .line {
  display: block;
}

h2 {
  font-size: clamp(2rem, 3.9vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 56;
  max-width: 22ch;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-variation-settings: "opsz" 24;
}

p {
  margin: 0;
  max-width: 64ch;
  text-wrap: pretty;
}

.lede {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 650;
  text-decoration: none;
}

.button:hover {
  text-decoration: underline;
}

/* ---------- Night bands ---------- */

.night {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(900px 520px at 85% 0%, rgba(39, 93, 214, 0.42), transparent 65%),
    radial-gradient(700px 480px at 0% 100%, rgba(22, 64, 160, 0.38), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: var(--night-ink);
}

.night h1,
.night h2,
.night h3 {
  color: var(--night-ink);
}

.night p,
.night .lede {
  color: var(--night-ink-2);
}

.night a {
  color: var(--night-link);
}

.night a:focus-visible,
.night .button:focus-visible {
  outline-color: var(--night-link);
}

.night .button {
  background: var(--sea);
  color: var(--night);
}

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

.site-header {
  position: relative;
  z-index: 2;
  background: var(--night);
  color: var(--night-ink);
}

.home .site-header {
  background: transparent;
  position: absolute;
  inset: 0 0 auto 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--night-link);
  text-decoration: none;
}

.brand svg {
  height: 30px;
  width: auto;
}

.brand span {
  color: var(--night-ink);
  font-weight: 650;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.site-nav ul {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--night-ink);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.site-nav ul {
  align-items: center;
}

.site-nav .nav-cta[aria-current="page"] {
  text-decoration: none;
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--sea);
  color: var(--night);
  font-weight: 650;
}

.site-header a:focus-visible {
  outline-color: var(--night-link);
}

/* The menu for narrow screens: a disclosure, so it works with no script. Hidden where the links fit. */
.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-menu {
  display: none;
  position: relative;
}

.nav-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
  color: var(--night-ink);
  font-weight: 600;
  box-shadow: inset 0 0 0 1.5px rgba(184, 207, 250, 0.45);
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary svg {
  width: 20px;
  height: 20px;
}

.nav-menu summary:focus-visible {
  outline: 2px solid var(--night-link);
  outline-offset: 3px;
}

.nav-menu[open] summary {
  background: rgba(184, 207, 250, 0.14);
}

.site-nav .nav-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  gap: 2px;
  min-width: 230px;
  padding: 10px;
  border-radius: 18px;
  background: var(--night-2);
  box-shadow: 0 0 0 1px rgba(184, 207, 250, 0.18), 0 24px 48px -16px rgba(0, 0, 0, 0.6);
}

.nav-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 1.05rem;
}

.nav-menu a:hover {
  background: rgba(184, 207, 250, 0.1);
}

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

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 12fr);
  gap: 24px;
  align-items: center;
  min-height: min(860px, 100svh);
  padding-top: 120px;
  padding-bottom: 72px;
}

.hero-text {
  display: grid;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.hero-where {
  font-size: 0.98rem;
}

.hero-map {
  margin: 0 calc(var(--gutter) * -1) 0 -40px;
}

.hero-map svg {
  width: 100%;
  height: auto;
  overflow: visible;
  /* Central America fades out under the words beside it. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}

.hm-land {
  stroke: #3d5f9f;
  stroke-opacity: 0.55;
  stroke-width: 4;
  stroke-linecap: round;
}

.hm-target {
  stroke: var(--sea);
  stroke-width: 5;
  stroke-linecap: round;
}

.hm-ring {
  fill: none;
  stroke: var(--sea);
  stroke-width: 1.3;
  opacity: 0.6;
}

.hm-label {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  fill: #dbe6f7;
  letter-spacing: 0.01em;
}

.hm-sea {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  fill: #9fb4d8;
}

/* The page's one moment of motion: the countries light up one after another when it opens. */
@media (prefers-reduced-motion: no-preference) {
  .hm-target,
  .hm-ring {
    animation: light-up 700ms ease-out both;
  }

  .t1 { animation-delay: 200ms; }
  .t2 { animation-delay: 320ms; }
  .t3 { animation-delay: 440ms; }
  .t4 { animation-delay: 520ms; }
  .t5 { animation-delay: 600ms; }
  .t6 { animation-delay: 680ms; }
  .t7 { animation-delay: 760ms; }
  .t8 { animation-delay: 840ms; }
  .t9 { animation-delay: 920ms; }
  .t10 { animation-delay: 1000ms; }
  .t11 { animation-delay: 1120ms; }

  @keyframes light-up {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

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

.section {
  padding: 120px 0;
}

.section.surface {
  background: var(--surface);
}

/* Light sections carry a soft light of their own, so the cards on them stand forward. */
.section.glow {
  background:
    radial-gradient(900px 520px at 0% 0%, var(--wash-blue), transparent 70%),
    radial-gradient(800px 520px at 100% 100%, var(--wash-sea), transparent 70%),
    var(--surface);
}

/* The hero map's dots return, faint, as the texture of the paper sections. */
.section.dots {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1000px 600px at 100% 0%, var(--wash-blue), transparent 70%),
    radial-gradient(800px 600px at 0% 100%, var(--wash-blue), transparent 70%),
    var(--paper);
}

.section.dots.sea {
  background:
    radial-gradient(1000px 640px at 100% 10%, var(--wash-sea), transparent 70%),
    radial-gradient(800px 600px at 0% 90%, var(--wash-blue), transparent 70%),
    var(--paper);
}

.section.dots::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, var(--dot) 1.3px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
}

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: 64px;
}

/* ---------- One deal, start to finish ---------- */

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 31rem);
  gap: 72px;
  align-items: center;
}

.proof-text {
  display: grid;
  gap: 24px;
}

.proof-points {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.proof-points li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
  font-size: 1.14rem;
  color: var(--ink);
}

.proof-points svg {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--brand);
}

.deal {
  margin: 0;
  padding: 28px 28px 12px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.deal figcaption {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  font-variation-settings: "opsz" 24;
  margin-bottom: 18px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 14px;
  padding-bottom: 16px;
  counter-increment: step;
}

/* Steps are joined by a line running down from one number to the next. */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 34px;
  bottom: 2px;
  width: 2px;
  border-radius: 2px;
  background: var(--tint);
}

.step::before {
  content: counter(step);
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.step-name {
  font-weight: 650;
  line-height: 30px;
}

.step-text {
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.5;
}

.step .balanced {
  grid-column: 2;
  justify-self: start;
  margin-top: 8px;
}

.figures {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ui);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 0;
  font-size: 0.96rem;
}

.figures > div {
  display: contents;
}

.figures dt {
  color: var(--ink-2);
}

.figures dd {
  margin: 0;
  padding-left: 16px;
  text-align: right;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums lining-nums;
}

.figures .total dt,
.figures .total dd {
  margin-top: 4px;
  padding-top: 7px;
  padding-bottom: 7px;
  background: var(--info-bg);
  color: var(--info-ink);
  font-weight: 700;
}

.figures .total dt {
  padding-left: 10px;
  margin-left: -6px;
  border-radius: 8px 0 0 8px;
}

.figures .total dd {
  padding-right: 10px;
  margin-right: -6px;
  border-radius: 0 8px 8px 0;
}

.balanced {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok-ink);
  font-weight: 650;
  font-size: 0.92rem;
}

.balanced svg {
  width: 16px;
  height: 16px;
}


/* ---------- Problems: one card each, the fix shown as the product shows it ---------- */

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

.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card.wide {
  grid-column: span 2;
}

.who {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.pain {
  font-family: var(--serif);
  font-size: 1.42rem;
  line-height: 1.25;
  font-weight: 600;
  font-variation-settings: "opsz" 32;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.fix {
  color: var(--ink-2);
  font-size: 1rem;
  margin-top: auto;
}

/* A product fragment: the screen the fix happens on, drawn small. */
.ui {
  border-radius: 14px;
  background: var(--ui);
  padding: 16px 18px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink);
}

.ui-title {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-2);
  font-weight: 600;
}

.ui-rows {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ui-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* A status at the end of a row stays on one line; the row's label wraps instead. */
.ui-row > .pill:last-child {
  flex-shrink: 0;
  white-space: nowrap;
}

.ui-row .n {
  font-family: var(--serif);
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

.ui-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums lining-nums;
}

.ui-table th {
  text-align: right;
  font-weight: 600;
  color: var(--ink-2);
  padding: 0 0 6px 12px;
}

.ui-table th:first-child,
.ui-table td:first-child {
  text-align: left;
  padding-left: 0;
}

.ui-table td {
  text-align: right;
  padding: 5px 0 5px 12px;
  font-family: var(--serif);
  font-weight: 560;
}

.ui-table td:first-child {
  font-family: var(--sans);
  font-weight: 500;
}

.ui-table tbody tr:nth-child(odd) td {
  background: var(--surface);
}

.ui-table tbody tr td:first-child {
  border-radius: 8px 0 0 8px;
  padding-left: 10px;
}

.ui-table tbody tr td:last-child {
  border-radius: 0 8px 8px 0;
  padding-right: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
}

.pill svg {
  width: 14px;
  height: 14px;
}

.ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.info {
  background: var(--info-bg);
  color: var(--info-ink);
}

.ui-foot {
  margin-top: 12px;
}

.big {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.big b {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 650;
  font-variant-numeric: tabular-nums lining-nums;
}

.big span {
  color: var(--ink-2);
}

.price-change {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-variant-numeric: tabular-nums lining-nums;
}

.price-change s {
  color: var(--ink-2);
  font-size: 1.3rem;
}

.price-change b {
  font-size: 2rem;
  font-weight: 650;
}

.bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  margin: 4px 0 12px;
  background: var(--warn-bg);
}

.bar i {
  display: block;
  width: 99.8%;
  background: var(--ok-ink);
}

.chain {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 6px 0 14px;
}

.chain i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--brand);
}

.chain i + i {
  margin-left: 14px;
  position: relative;
}

.chain i + i::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 15px;
  width: 14px;
  height: 4px;
  background: var(--brand);
}

.chain i:last-child {
  background: var(--brand);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.change {
  display: grid;
  gap: 4px;
}

.change s {
  color: var(--ink-2);
}

.change b {
  font-weight: 650;
}

.switch {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--brand);
  position: relative;
  flex: none;
}

.switch::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--on-brand);
}

.code {
  border-radius: 14px;
  background: #0a1730;
  color: #dbe6f7;
  padding: 16px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
}

.code .verb {
  color: var(--sea);
  font-weight: 700;
}

.code .status {
  color: #b8cffa;
}

/* ---------- Older systems compared (on a night band) ----------
   The old way sits back in a solid panel a step lighter than the night; Unityzer comes forward as a light
   panel, lifted, with ink text and blue ticks. Rows line up across the two panels (subgrid). */

.vs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(7, auto);
  column-gap: 28px;
  align-items: start;
}

.vs-panel {
  display: grid;
  grid-row: 1 / span 7;
  grid-template-rows: subgrid;
  padding: 30px 34px 18px;
  border-radius: 24px;
}

.vs-panel ul {
  display: contents;
}

.vs-panel li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
}

.vs-panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  font-size: 1.35rem;
  font-variation-settings: "opsz" 32;
}

.vs-panel li svg {
  width: 24px;
  height: 24px;
  margin-top: 1px;
}

.vs-old {
  background: #13254d;
  color: #c9d6ec;
}

.vs-old li svg {
  color: #a9bde0;
}

.night .vs-new {
  background: #f4f7fd;
  color: #0b1a33;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 28px 64px -22px rgba(0, 0, 0, 0.6);
}

.night .vs-new h3 {
  color: #0b1a33;
}

.vs-new li svg {
  color: #0a47b0;
}

.vs-new .kn {
  stroke: #ffffff;
}

.vs-mark {
  height: 24px;
  width: auto;
  color: #0a47b0;
}

/* ---------- Open to your systems: the API and single sign-on ---------- */

.open-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.open-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 38px;
  border-radius: 26px;
}

.open-card h3 {
  font-size: 1.7rem;
  font-variation-settings: "opsz" 36;
}

/* The API card is a piece of night on the light page; the sign-in card is white. */
.open-card.api {
  background:
    radial-gradient(520px 300px at 100% 0%, rgba(39, 93, 214, 0.45), transparent 70%),
    linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%);
  color: var(--night-ink-2);
}

.open-card.api h3 {
  color: var(--night-ink);
}

.open-card.api .code {
  margin-top: auto;
  background: rgba(3, 9, 24, 0.55);
}

.open-card.sso {
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink-2);
}

.open-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.open-points li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
}

.open-points svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.open-card.api .open-points li {
  color: var(--night-ink);
}

.open-card.api .open-points svg {
  color: var(--sea);
}

.open-card.api .kn {
  stroke: var(--night);
}

.open-card.sso .open-points li {
  color: var(--ink);
}

.open-card.sso .open-points svg {
  color: var(--brand);
}

/* A sign-in box, drawn small: the button the app really shows when single sign-on is on. */
.signin {
  margin-top: auto;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 26px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
}

.signin-mark {
  color: var(--brand);
}

.signin-mark svg {
  height: 30px;
  width: auto;
}

.signin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: min(100%, 18rem);
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 650;
}

/* ---------- The Caribbean ---------- */

.countries {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Each country drawn as its own outline, from public-domain map data. */
.country {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px 14px 18px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.country svg {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, #12306e 0%, var(--night) 75%);
}

.country > span {
  padding: 0 4px;
}

.country path {
  fill: var(--sea);
  stroke: var(--sea);
  stroke-width: 0.6;
  stroke-linejoin: round;
}

.country b {
  display: block;
  font-weight: 650;
  line-height: 1.3;
}

.country span {
  display: block;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.group-name {
  margin: 44px 0 18px;
  font-size: 1.2rem;
}

.group-name.first {
  margin-top: 0;
}

.features {
  list-style: none;
  margin: 72px 0 0;
  padding: 44px;
  border-radius: 26px;
  background: var(--tint);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 44px;
}

.features li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.features strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  font-variation-settings: "opsz" 24;
  margin-bottom: 4px;
}

.features li > span + span {
  color: var(--ink-2);
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--brand);
  color: var(--on-brand);
  flex: none;
}

.icon svg {
  width: 24px;
  height: 24px;
}

.kn {
  fill: none;
  stroke: var(--on-brand);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ln {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- What it covers ---------- */

.covers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.covers li {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;
  border-radius: 20px;
  background: var(--paper);
}

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

/* ---------- Trust: four promises, each with the screen that keeps it ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.promise {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px;
  border-radius: 24px;
  background: rgba(184, 207, 250, 0.07);
  box-shadow: inset 0 0 0 1px rgba(184, 207, 250, 0.12);
}

.promise h3 {
  font-size: 1.5rem;
  font-variation-settings: "opsz" 32;
}

.promise .ui {
  margin-top: auto;
  box-shadow: inset 0 0 0 1px rgba(184, 207, 250, 0.16);
}

/* ---------- Closing band: switching, then the call ---------- */

/* A dark band right above the footer has no glow at its foot: it ends in exactly the footer's colour, so the two read
   as one dark field with no line between them. */
.closing.night,
.done.night {
  background:
    radial-gradient(900px 520px at 85% 0%, rgba(39, 93, 214, 0.42), transparent 65%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}

.closing.night {
  padding: 120px 0 96px;
}

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

.way {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 30px;
  border-radius: 22px;
  background: rgba(184, 207, 250, 0.07);
}

.way .icon {
  background: var(--sea);
  color: var(--night);
}

.call {
  margin-top: 96px;
  padding: 64px;
  border-radius: 28px;
  background:
    radial-gradient(640px 320px at 100% 0%, rgba(184, 207, 250, 0.16), transparent 70%),
    linear-gradient(135deg, #123f9c 0%, #0e3484 55%, #0b2a6e 100%);
  box-shadow: 0 0 0 1px rgba(184, 207, 250, 0.12);
  display: grid;
  gap: 22px;
  justify-items: start;
}

.call h2 {
  color: #ffffff;
}

/* A closing band that holds only the call needs no space above it. */
.closing .wrap > .call:first-child {
  margin-top: 0;
}

.night .call p {
  color: #e6eefb;
  font-size: 1.18rem;
  max-width: 54ch;
}

.night .call .button {
  background: var(--sea);
  color: var(--night);
}


/* ---------- Inner pages: the night band at the top ---------- */

.page-head .wrap {
  display: grid;
  gap: 22px;
  padding-top: 88px;
  padding-bottom: 104px;
}

.page-head h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  max-width: 20ch;
}

.page-head .lede {
  max-width: 56ch;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.night .chips a {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(184, 207, 250, 0.1);
  color: var(--night-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.night .chips a:hover {
  background: rgba(95, 227, 210, 0.2);
}

/* ---------- Feature groups: words on one side, the product on the other ---------- */

.group .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
  grid-template-areas:
    "title shot"
    "lede  shot"
    "list  list";
  gap: 18px 72px;
  align-items: start;
}

.group.flip .wrap {
  grid-template-columns: minmax(0, 27rem) minmax(0, 1fr);
  grid-template-areas:
    "shot title"
    "shot lede"
    "list list";
}

/* The heading, its line and the feature list sit straight on the section's grid. */
.group-text {
  display: contents;
}

.group h2 {
  grid-area: title;
  align-self: end;
}

.group .lede {
  grid-area: lede;
}

.group .shot {
  grid-area: shot;
  align-self: center;
}

.feature-list {
  grid-area: list;
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 40px;
}

.feature-list li {
  display: grid;
  align-content: start;
  gap: 4px;
  padding-left: 18px;
  position: relative;
}

/* A sea-green mark beside each feature, the page's accent on the light sections. */
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sea);
  box-shadow: 0 0 0 3px rgba(95, 227, 210, 0.25);
}

.feature-list b {
  font-weight: 650;
}

.feature-list span {
  color: var(--ink-2);
}

.shot {
  padding: 22px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section.surface .shot {
  background: var(--paper);
}

.more {
  margin-top: 40px;
}

.more a {
  font-weight: 650;
}

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

/* The form rises into the band above it. */
.section.contact-page {
  padding-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  gap: 40px;
  align-items: start;
  margin-top: -72px;
  position: relative;
  z-index: 1;
}

.form {
  display: grid;
  gap: 24px;
  padding: 40px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form h2 {
  font-size: 1.7rem;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.field {
  display: grid;
  /* A field beside a taller one (one with a note under it) keeps its own height, its box in line with its neighbour's. */
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field label,
.field legend {
  font-weight: 650;
  padding: 0;
}

.field .hint {
  font-weight: 400;
  color: var(--ink-2);
}

.field .note {
  margin: -4px 0 2px;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--field-line);
}

/* Every one-line box the same height: a select draws itself shorter than a text box unless told. */
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select {
  min-height: calc(1.6em + 27px);
}

/* A field alone on its row: its box as wide as its neighbours above, its note free to run on one line. */
.field-row.single {
  grid-template-columns: minmax(0, 1fr);
}

.field-row.single input {
  max-width: calc(50% - 10px);
}

/* A browser's autofill keeps the field white like the others, rather than tinting it. */
.form input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--surface) inset;
  caret-color: var(--ink);
}

.form input:autofill {
  box-shadow: 0 0 0 1000px var(--surface) inset;
}

.form input[aria-invalid="true"]:-webkit-autofill {
  box-shadow: 0 0 0 1px var(--err-ink), 0 0 0 1000px var(--surface) inset;
}

.form input[aria-invalid="true"]:autofill {
  box-shadow: 0 0 0 1px var(--err-ink), 0 0 0 1000px var(--surface) inset;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

.choices {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.choice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border-radius: 14px;
  border: 1.5px solid var(--field-line);
  cursor: pointer;
  font-weight: 400;
}

.field .choice {
  font-weight: 400;
}

.choice b {
  display: block;
  font-weight: 650;
}

.choice span span {
  color: var(--ink-2);
}

.choice input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.choice:has(input:checked) {
  border-color: var(--brand);
  background: var(--tint);
}

.choice:has(input:focus-visible) {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* Shown by the server above the form when a message could not be passed on; what was typed is kept. */
.form-alert {
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--err-bg);
  color: var(--err-ink);
  font-weight: 600;
}

.form-alert ul {
  margin: 8px 0 0;
  padding-left: 20px;
  font-weight: 500;
}

.form-alert a {
  color: inherit;
}

.field [aria-invalid="true"] {
  border-color: var(--err-ink);
  box-shadow: 0 0 0 1px var(--err-ink);
}

/* Left empty by people; filled in only by automated form spammers, whose messages are then dropped. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.form .button {
  border: 0;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.form-foot p {
  color: var(--ink-2);
  font-size: 0.94rem;
}

.ways-to-reach {
  display: grid;
  gap: 18px;
}

.reach {
  display: grid;
  gap: 6px;
  padding: 26px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.reach h3 {
  font-size: 1.2rem;
}

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

.reach a {
  font-weight: 650;
  overflow-wrap: anywhere;
}

/* ---------- Message sent / not sent ---------- */

.done .wrap {
  display: grid;
  gap: 22px;
  justify-items: start;
  padding-top: 120px;
  padding-bottom: 140px;
}

.done .badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sea);
  color: var(--night);
}

.done .badge svg {
  width: 32px;
  height: 32px;
}

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

.site-footer {
  font-size: 0.94rem;
  background: var(--night-2);
  color: var(--night-ink-2);
}

.site-footer a {
  color: var(--night-link);
}

.site-footer a:focus-visible {
  outline-color: var(--night-link);
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 40px;
  padding-top: 64px;
  padding-bottom: 56px;
}

.legal {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.legal .brand {
  margin-bottom: 10px;
}

.legal .brand svg {
  height: 26px;
}

.legal .brand span {
  font-size: 1.15rem;
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Text pages (privacy notice, not found) ---------- */

.doc .wrap {
  max-width: 50rem;
  padding-top: 72px;
  padding-bottom: 96px;
}

.doc h1 {
  font-size: clamp(2.2rem, 4.6vw, 3rem);
  margin-bottom: 12px;
}

.doc h2 {
  max-width: none;
  font-size: 1.5rem;
  margin: 44px 0 12px;
}

.doc p + p,
.doc p + ul,
.doc ul + p {
  margin-top: 14px;
}

.doc ul {
  margin: 0;
  padding-left: 1.2em;
  max-width: 64ch;
}

.doc li + li {
  margin-top: 8px;
}

.doc .updated {
  color: var(--ink-2);
}

.not-found .wrap {
  display: grid;
  gap: 20px;
  justify-items: start;
  min-height: 52vh;
  align-content: center;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 1020px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 112px;
  }

  .hero-map {
    margin: 0 -8px;
    max-width: 640px;
  }

  .hm-label {
    font-size: 15px;
  }

  .proof-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .deal {
    max-width: 30rem;
  }

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

  .card.wide {
    grid-column: span 2;
  }

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

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

  .group .wrap,
  .group.flip .wrap {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "lede" "shot" "list";
    gap: 18px;
  }

  .group .shot {
    max-width: 30rem;
    margin-top: 18px;
  }

  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .open-grid,
  .trust-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-nav .wide {
    display: none;
  }

  .nav-menu {
    display: block;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
  }

  .section,
  .closing {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .nav-menu summary {
    padding: 0 12px;
  }

  .nav-menu summary span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .cards,
  .features,
  .covers,
  .ways {
    grid-template-columns: minmax(0, 1fr);
  }

  .card.wide {
    grid-column: auto;
  }

  .countries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .feature-list,
  .field-row,
  .choices {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-row.single input {
    max-width: none;
  }

  .form {
    padding: 24px 20px;
  }

  .open-card,
  .promise {
    padding: 26px 22px;
  }

  .contact-grid {
    margin-top: -48px;
  }

  .card {
    padding: 22px;
  }

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

  .features {
    padding: 26px;
  }

  .vs {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    row-gap: 20px;
  }

  .vs-panel {
    display: block;
    grid-row: auto;
    padding: 24px 22px 12px;
  }

  .vs-panel ul {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .call {
    padding: 36px 24px;
    margin-top: 64px;
  }

  .deal {
    padding: 22px 20px 8px;
  }

  .site-footer .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}
