/* Unimation Labs: Switzer, the app's blues and the logo's yellow dot, its glass
   sign-up card, and the dashboards' outlined, rounded, softly tinted cards. */
@font-face {
  font-family: Switzer;
  src: url("fonts/Switzer-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ab-top: #eff5f9;
  --ab-deep: 1;
  --card-tint: #eff5f9;
  --ink: #000000;
  --card-ink: #0b1b33;
  --halo: 0 0 3px rgb(239 245 249 / 0.95), 0 0 9px rgb(239 245 249 / 0.9);
  --edge: rgb(20 50 110 / 0.2);
  --glint: rgb(255 255 255 / 0.9);
  --drop: 0 30px 60px -28px rgb(20 50 110 / 0.35);
  --line: rgb(0 0 0 / 0.72);
  --surface: rgb(239 245 249 / 0.86);
  --blue: #cfe8fc;
  --yellow: #ffe7bd;
  --pale: #e3edfd;
  --tile-ink: #000000;
  --brand: #088df0;
  --brand-fg: #041624;
  --accent-text: #05639f;
  --dot: #ffa403;
  --picture: #c9cfd6;
  --logo-field: rgb(14 144 240 / 0.22);
  --logo-letters: #0e90f0;
  --logo-orange: #ffa403;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ab-top: #000000; --ab-deep: 0; --card-tint: #ffffff;
    --ink: #f2f2f5; --card-ink: #ffffff;
    --halo: 0 1px 2px rgb(0 0 0 / 0.85), 0 0 10px rgb(0 0 0 / 0.7);
    --edge: rgb(255 255 255 / 0.32); --glint: rgb(255 255 255 / 0.35);
    --drop: 0 30px 60px -28px rgb(0 0 0 / 0.75);
    --line: rgb(255 255 255 / 0.28); --surface: rgb(22 22 27 / 0.84);
    --blue: #0f2c46; --yellow: #3d2c08; --pale: #1a2438; --tile-ink: #f2f2f5;
    --brand: #51b3f5; --accent-text: #51b3f5;
    --logo-field: rgb(81 179 245 / 0.14); --logo-letters: #e3edfd;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ab-top: #000000; --ab-deep: 0; --card-tint: #ffffff;
  --ink: #f2f2f5; --card-ink: #ffffff;
  --halo: 0 1px 2px rgb(0 0 0 / 0.85), 0 0 10px rgb(0 0 0 / 0.7);
  --edge: rgb(255 255 255 / 0.32); --glint: rgb(255 255 255 / 0.35);
  --drop: 0 30px 60px -28px rgb(0 0 0 / 0.75);
  --line: rgb(255 255 255 / 0.28); --surface: rgb(22 22 27 / 0.84);
  --blue: #0f2c46; --yellow: #3d2c08; --pale: #1a2438; --tile-ink: #f2f2f5;
  --brand: #51b3f5; --accent-text: #51b3f5;
  --logo-field: rgb(81 179 245 / 0.14); --logo-letters: #e3edfd;
}

/* One unit: a hundredth of a 16:9 stage that fits the window. */
:root { --u: min(1vw, 1.7778vh); --text: max(14px, calc(var(--u) * 1.25)); }

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  background: var(--ab-top);
  color: var(--ink);
  font: 400 var(--text) / 1.45 Switzer, system-ui, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.08; text-wrap: balance; }
h1, h2.huge { font-size: calc(var(--text) * 4.6); letter-spacing: -0.03em; line-height: 1; }
h2 { font-size: calc(var(--text) * 2.9); letter-spacing: -0.025em; }
h3 { font-size: calc(var(--text) * 1.35); }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--dot); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

#dots { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#dots canvas { display: block; }

#loading { position: fixed; inset: 0; z-index: 20; background: var(--ab-top); transition: opacity 0.5s; }
#loading canvas { display: block; width: 100%; height: 100%; }
#loading.gone { opacity: 0; pointer-events: none; }

.slide {
  position: fixed; inset: 0; z-index: 1;
  display: flex; overflow-y: auto;
  padding: calc(var(--u) * 3) calc(var(--u) * 6) 5.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s, visibility 0s 0.45s;
}
.slide.on { opacity: 1; visibility: visible; transition: opacity 0.6s 0.2s, visibility 0s; }
.inner { margin: auto; width: 100%; max-width: calc(var(--u) * 88); display: flex; flex-direction: column; gap: calc(var(--u) * 3.2); min-width: 0; }
.inner > * { min-width: 0; }
header { display: flex; flex-direction: column; gap: calc(var(--text) * 0.9); max-width: 44em; text-shadow: var(--halo); }
header h2 { max-width: 18em; }
.split header h2 { max-width: 13em; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: calc(var(--u) * 5); }
.split.reverse > header { order: 2; }

.kicker { display: flex; align-items: center; gap: 0.6em; font-weight: 600; color: var(--accent-text); }
.kicker::before { content: ""; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--dot); }
.lead { font-size: calc(var(--text) * 1.25); max-width: 28em; }

.ticks { display: flex; flex-direction: column; gap: 0.7em; }
.ticks li { display: flex; gap: 0.7em; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--brand); transform: translateY(-0.05em); }
header .ticks { font-size: calc(var(--text) * 1.15); margin-top: 0.4em; }

.cards { display: grid; gap: calc(var(--u) * 1.5); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.35em;
  padding: 1.5em;
  display: flex; flex-direction: column; gap: 0.7em;
  min-width: 0;
  box-shadow: 0 14px 28px -22px rgb(8 50 90 / 0.45);
}
.blue { background: var(--blue); color: var(--tile-ink); }
.yellow { background: var(--yellow); color: var(--tile-ink); }
.pale { background: var(--pale); color: var(--tile-ink); }
.cards.three > article { min-height: calc(var(--u) * 14); }

.step {
  width: 2.2em; height: 2.2em; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--dot); color: #000; font-weight: 700; margin-bottom: 0.8em;
}

.shot { display: flex; flex-direction: column; gap: 0.6em; align-items: center; }
.shot img { height: min(64vh, calc(var(--u) * 40)); width: auto; border-radius: 1.35em; border: 1px solid var(--line); }
.shot figcaption { font-size: 0.75em; text-align: center; max-width: 34em; text-shadow: var(--halo); }

.subject { padding: 0; overflow: hidden; gap: 0; }
.subject img { width: 100%; height: min(36vh, calc(var(--u) * 21)); object-fit: contain; border-bottom: 1px solid var(--line); }
.subject:nth-child(1) img { background: #414853; }
.subject:nth-child(n + 2) img { background: #c9ced6; }
.subject figcaption { padding: 1.2em 1.5em 1.4em; display: flex; flex-direction: column; gap: 0.4em; }

.choice { text-align: left; align-items: flex-start; gap: 0.2em; padding: 1.8em; transition: transform 0.2s; }
.choice:hover { transform: translateY(-4px); }
.choice .who { font-size: calc(var(--text) * 1.35); font-weight: 600; margin-bottom: 1.8em; }
.choice strong, .price strong, .tier strong { font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.choice strong { font-size: calc(var(--text) * 3); line-height: 1.1; }

.licences { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: calc(var(--u) * 1.5); }
.price strong { font-size: calc(var(--text) * 2.6); }
.licences .card > .price { margin-block: 0.4em; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8em; margin-block: 0.3em; }
.tier { border: 1px solid var(--line); border-radius: 1em; padding: 1em 1.1em; display: flex; flex-direction: column; }
.tier strong { font-size: calc(var(--text) * 2); }
.ticks.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5em 1em; }
.note { font-size: 0.9em; border-top: 1px solid var(--line); padding-top: 0.8em; margin-top: auto; }

.bill { padding: 2em; }
.bill .who { font-weight: 600; font-size: calc(var(--text) * 1.2); }
.bill table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bill th { text-align: left; font-weight: 400; padding: 0.75em 1em 0.75em 0; }
.bill td { text-align: right; font-weight: 600; padding-block: 0.75em; white-space: nowrap; }
.bill tr { border-top: 1px solid var(--line); }
.bill tfoot th { font-weight: 600; }
.bill tfoot td { font-size: calc(var(--text) * 1.9); letter-spacing: -0.03em; }
.price.big strong { font-size: calc(var(--text) * 4); line-height: 1.1; }

/* The sign-up page's block of clear glass. The dots canvas bends what is behind it. */
.glass-card {
  margin: auto;
  width: min(100%, calc(var(--text) * 42));
  padding: calc(var(--text) * 3);
  display: flex; flex-direction: column; align-items: flex-start; gap: calc(var(--text) * 1.3);
  border-radius: 2em;
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 var(--glint), var(--drop);
  color: var(--card-ink);
  text-shadow: var(--halo);
}
.brand { font-weight: 600; font-size: calc(var(--text) * 1.3); letter-spacing: -0.015em; }
.row { display: flex; flex-wrap: wrap; gap: 0.8em; margin-top: 0.6em; }
.button {
  text-shadow: none; text-decoration: none;
  padding: 0.75em 1.4em; border-radius: 999px;
  border: 1px solid var(--edge);
  background: transparent; color: var(--card-ink);
  font-weight: 600;
  box-shadow: inset 0 1.5px 0 var(--glint);
}
.button.primary { background: var(--brand); color: var(--brand-fg); border-color: transparent; }
.button:hover { filter: brightness(1.08); }

nav {
  position: fixed; z-index: 5; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem max(1.25rem, env(safe-area-inset-right)) calc(0.9rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}
#rail { display: flex; gap: 2px; }
#rail button { width: 18px; height: 24px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
#rail button::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; opacity: 0.3; transition: all 0.25s; }
#rail button[aria-current="true"] { width: 30px; }
#rail button[aria-current="true"]::before { width: 22px; background: var(--dot); opacity: 1; }
.controls { display: flex; align-items: center; gap: 0.4rem; }
a.choice { text-decoration: none; color: var(--tile-ink); }
.choice .open { margin-top: auto; padding-top: 1.6em; font-weight: 600; }
.home .cards.four { align-items: stretch; }
.home #rail, .home #previous, .home #next, .home #counter { display: none; }
.home nav { justify-content: flex-end; }
.controls button, .controls a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--edge); color: inherit;
}
.controls button:disabled { opacity: 0.35; cursor: default; }
.controls svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#counter { min-width: 4.5em; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }

/* Narrow or upright screens: one column, and a long slide scrolls. */
@media (max-width: 800px), (max-aspect-ratio: 1 / 1) {
  :root { --u: 8px; --text: 15px; }
  .slide { padding: 1.5rem 1.1rem 6rem; }
  h1, h2.huge { font-size: 2.6rem; }
  h2 { font-size: 2rem; }
  .split, .licences, .cards.three, .cards.four { grid-template-columns: minmax(0, 1fr); }
  .split.reverse > header { order: 0; }
  .shot img { height: auto; max-height: 55vh; }
  .subject img { height: 180px; }
  .choice .who { margin-bottom: 0.6em; }
  .glass-card { padding: 1.75rem; }
}
@media (min-width: 801px) and (max-width: 1100px) and (min-aspect-ratio: 1 / 1) {
  .home .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cards.two, .tiers, .ticks.columns { grid-template-columns: minmax(0, 1fr); }
  #rail { display: none; }
  nav { justify-content: flex-end; background: linear-gradient(transparent, var(--ab-top) 55%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Saved as a PDF from the browser: one landscape page a slide, without the dots. */
@page { size: 1280px 720px; margin: 0; }
@media print {
  :root { --u: 12.8px; --text: 16px; }
  html, body { height: auto; overflow: visible; }
  #loading, #dots, nav, .row button { display: none; }
  .slide { position: relative; opacity: 1; visibility: visible; width: 1280px; height: 720px; overflow: hidden; break-after: page; print-color-adjust: exact; -webkit-print-color-adjust: exact; background: var(--ab-top); }
  header, .glass-card, .shot figcaption { text-shadow: none; }
  .shot img { height: 480px; }
  .subject img { height: 250px; }
}
