@import url("/assets/fonts/satoshi.css");

:root {
  /* Privately brand tokens: navy wordmark, sky accent, pale blue surfaces. */
  --ink: #354268;
  --ink-soft: #5a6a8c;
  --sky: #64c2ee;
  --sky-soft: #e1ebf5;
  --sky-tint: #f2f8fd;
  --page: #f6fbff;
  --surface: #ffffff;
  --pink: #ff809e;
  --pink-soft: #ffe9ee;
  --link: #0082f3;
  --live: #34c77b;
  --radius: 18px;
  --shadow: 5px 5px 0 var(--ink);
  --max: 72rem;
  --prose: 68ch;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* Short pages (404) would otherwise tile the body box down the canvas, so
     the blobs are painted once over at least a full screen. */
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 4%, rgba(100, 194, 238, 0.3), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(53, 66, 104, 0.1), transparent 34%),
    var(--page);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: Satoshi, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 20;
}

.skip:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  border-bottom: 2px solid var(--ink);
}

/* The frosted surface sits on a pseudo-element: a backdrop-filter on the
   header itself would anchor the fixed mobile menu to the header box. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 251, 255, 0.75);
  backdrop-filter: blur(8px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.logo img {
  display: block;
  width: auto;
}

.logo-privately {
  height: 2rem;
}

/* logo-compact.svg is the small-size cut of the wordmark: same design as
   logo.svg but with larger hanging words, so WHAT IS and .INFO still read
   at this height. */
.logo-mark {
  height: 2.4rem;
}

.logo-divider {
  width: 2px;
  height: 2rem;
  background: var(--sky);
}

@media (max-width: 30rem) {
  .logo {
    gap: 0.55rem;
  }

  .logo-privately {
    height: 1.7rem;
  }

  .logo-mark {
    height: 2rem;
  }

  .logo-divider {
    height: 1.6rem;
  }
}

/* The panel only frames the links on phones; on wide screens it steps out of
   the layout so the nav stays a direct flex child of the header. */
.nav-panel {
  display: contents;
}

.nav-panel-top {
  display: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--sky);
}

/* The hamburger is a phone-only control, so it stays out of the header until
   the links no longer fit beside the logo. */
.nav-toggle {
  display: none;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--sky-soft);
}

.nav-toggle span {
  display: block;
  width: 1.3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.nav-close span {
  position: absolute;
}

.nav-close span:first-of-type {
  transform: rotate(45deg);
}

.nav-close span:last-of-type {
  transform: rotate(-45deg);
}

/* On phones the links move behind a hamburger: tapping it lifts a full-screen
   sheet with the same frosted surface as the sticky header. Without scripting
   the sheet can never open, so the links stay in a scrollable header row. */
@media (max-width: 46rem) {
  .site-header {
    padding: 0.6rem 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-panel {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: none;
    grid-template-rows: auto 1fr;
    padding: 0.6rem 1rem max(1.5rem, env(safe-area-inset-bottom));
    background: rgba(246, 251, 255, 0.8);
    backdrop-filter: blur(18px);
  }

  .site-header.is-menu-open .nav-panel {
    display: grid;
    animation: menu-in 160ms ease-out;
  }

  .nav-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .nav {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: 0.35rem;
    padding-block: 2rem;
    /* A list taller than the sheet still scrolls rather than being clipped. */
    overflow-y: auto;
  }

  .nav a {
    padding: 0.55rem 0;
    font-size: 1.5rem;
    font-weight: 900;
  }

  body.has-menu-open {
    overflow: hidden;
  }

  /* The consent chip is fixed to the viewport and would float over the sheet. */
  body.has-menu-open .cookie-dock {
    display: none;
  }

  .no-js .nav-toggle,
  .no-js .nav-panel-top {
    display: none;
  }

  .no-js .nav-panel {
    position: static;
    display: contents;
  }

  .no-js .nav {
    flex: 1 0 100%;
    flex-direction: row;
    gap: 0.9rem;
    /* Bleeds to the screen edges so a scrolled link is not clipped mid-word. */
    margin-inline: -1rem;
    padding-inline: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .no-js .nav::-webkit-scrollbar {
    display: none;
  }

  .no-js .nav a {
    padding: 0.45rem 0;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header.is-menu-open .nav-panel {
    animation: none;
  }
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.prose {
  max-width: var(--prose);
}

.hero {
  display: grid;
  gap: 2rem;
  padding: 2.75rem 0 2.25rem;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.8rem;
  background: var(--sky);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0 0 0.8rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

.lede {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 42ch;
}

.hero-art {
  position: relative;
}

.browser {
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  background: var(--ink);
  color: var(--sky-soft);
  font-size: 0.8rem;
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}

.dot.red { background: var(--pink); }
.dot.yellow { background: var(--sky); }
.dot.green { background: var(--sky-soft); }

.browser-url {
  flex: 1;
  margin-left: 0.5rem;
  background: #4b5a83;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  user-select: none;
}

/* The browser body mimics the FaceAssure check screen: dark surround, a
   circular selfie crop, a liveness ring, and the guidance captions. */
.browser-body {
  position: relative;
  padding: 1.5rem 1.25rem 1.25rem;
  min-height: 19rem;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 38%, #2b3348 0%, #171b26 70%);
}

.check {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.check-ring {
  --sweep: 62%;
  width: 11.5rem;
  aspect-ratio: 1;
  padding: 0.3rem;
  border-radius: 50%;
  background: conic-gradient(
    var(--live) 0 var(--sweep),
    rgba(255, 255, 255, 0.28) var(--sweep) 100%
  );
  animation: sweep 4s ease-in-out infinite;
}

.check-selfie {
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(180deg, #5d6f96, #3f4c6d);
  display: grid;
  place-items: end center;
  overflow: hidden;
}

/* Illustrated stand-in for the camera feed, framed like the real check. */
.face {
  position: relative;
  width: 8.2rem;
  height: 9.4rem;
  /* Overshoots the circle so the frame crops the chin like a selfie. */
  margin-bottom: -1.1rem;
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: 50% 50% 44% 44% / 52% 52% 28% 28%;
  background: var(--sky-soft);
  animation: bob 3.6s ease-in-out infinite;
}

.face::before {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 50%;
  width: 0.62rem;
  height: 0.75rem;
  top: 3.2rem;
  left: 2.15rem;
  box-shadow: 3.4rem 0 0 var(--ink);
}

.smile {
  position: absolute;
  width: 2.2rem;
  height: 1.1rem;
  border: 3px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 2rem 2rem;
  left: 50%;
  bottom: 2.6rem;
  transform: translateX(-50%);
}

.check-hint,
.check-sub {
  margin: 0;
  color: #fff;
  text-align: center;
}

.check-hint {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.check-sub {
  padding: 0.2rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 30rem) {
  /* Keep the decorative tab small on phones so the explainer band below it
     starts within the first screen. */
  .hero {
    gap: 1.5rem;
    padding: 1.75rem 0 1.5rem;
  }

  .browser-body {
    min-height: 0;
    padding: 1.15rem 1rem 1rem;
  }

  .check {
    gap: 0.55rem;
  }

  .check-ring {
    width: 8.5rem;
  }

  .face {
    width: 6rem;
    height: 6.9rem;
    margin-bottom: -0.8rem;
  }

  .face::before {
    width: 0.48rem;
    height: 0.58rem;
    top: 2.35rem;
    left: 1.55rem;
    box-shadow: 2.5rem 0 0 var(--ink);
  }

  .smile {
    width: 1.6rem;
    height: 0.8rem;
    bottom: 1.9rem;
  }

  .check-hint {
    font-size: 1rem;
  }
}

@keyframes bob {
  50% { transform: translateY(-6px); }
}

/* Registering the property is what lets the conic-gradient stop animate;
   without support the ring just sits at its initial 62%. */
@property --sweep {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 62%;
}

@keyframes sweep {
  0% { --sweep: 6%; }
  70%, 100% { --sweep: 82%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .face,
  .check-ring {
    animation: none;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-weight: 700;
  font-size: 0.9rem;
}

section,
.hero {
  scroll-margin-top: 4.75rem;
}

/* The header is two rows deep once the nav wraps under the logo. */
@media (max-width: 46rem) {
  section,
  .hero {
    scroll-margin-top: 7rem;
  }
}

section {
  padding: 2.75rem 0;
}

.section-head {
  max-width: var(--prose);
  margin-bottom: 1.5rem;
}

.promises {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .promises {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.35rem;
  box-shadow: 4px 4px 0 var(--ink);
}

.card.leaf {
  background: var(--sky-soft);
}

/* Small drawing above each promise, sized from its own aspect ratio. */
.card-icon {
  display: block;
  width: 7.75rem;
  height: auto;
  margin-bottom: 0.7rem;
}

.card ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.card li + li {
  margin-top: 0.35rem;
}

/* The how-it-works explainer leads the page, so it sits in a full-bleed band
   instead of another row of cards. */
.band {
  background: var(--sky-tint);
  border-block: 3px solid var(--ink);
}

.band .section-head {
  margin-bottom: 2rem;
}

/* Quieter than the hero eyebrow directly above it. */
.band .eyebrow {
  background: var(--surface);
}

/* Numbers and the line between them come from CSS, so the markup stays an
   ordered list that still reads in order without styles. */
.stepper {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.stepper li {
  position: relative;
  counter-increment: step;
  padding-left: 3.5rem;
}

.stepper li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--sky);
  border: 3px solid var(--ink);
  border-radius: 50%;
  font-weight: 900;
}

.stepper li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 2.5rem;
  bottom: -1.75rem;
  width: 3px;
  margin-left: -1.5px;
  background: var(--sky);
}

.stepper p {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Across in one row only when the columns can still hold a readable line.
   Six tracks, with the wordiest step - the receipt - taking two, keeps the
   heights even. */
@media (min-width: 75rem) {
  .stepper {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }

  .stepper li:nth-child(3) {
    grid-column: span 2;
  }

  .stepper li {
    padding-left: 0;
    padding-top: 3.4rem;
  }

  .stepper p {
    font-size: 1rem;
  }

  /* Same 0.4rem breathing room at both ends of the connector. */
  .stepper li:not(:last-child)::after {
    left: 2.9rem;
    right: -1.1rem;
    top: 1.25rem;
    bottom: auto;
    width: auto;
    height: 3px;
    margin: -1.5px 0 0;
  }
}

/* Slideshow of the five scenes. Every moving part shares one --cycle-long
   timeline and its scene's --t delay, so each animation plays only while its
   own slide is on screen. Base styles are the resting, end-of-scene state,
   which is what reduced-motion users see as a static strip. */
.stage {
  --cycle: 15s;
  position: relative;
  overflow: hidden;
  display: grid;
  width: min(44rem, 100%);
  margin: 2.25rem auto 0;
  padding: 1.25rem 1.25rem 2.75rem;
  background: var(--surface);
  border: 3px dashed var(--ink);
  border-radius: var(--radius);
}

/* Every scene shares one grid cell, so the stage is as tall as the tallest
   slide at whatever width it lands on — no fixed height to outgrow. */
.scene {
  grid-area: 1 / 1;
  width: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation-name: scene;
  animation-duration: var(--cycle);
  animation-delay: var(--t);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.scene:nth-child(1) { --t: 0s; }
.scene:nth-child(2) { --t: 3s; }
.scene:nth-child(3) { --t: 6s; }
.scene:nth-child(4) { --t: 9s; }
.scene:nth-child(5) { --t: 12s; }

@keyframes scene {
  0% { opacity: 0; transform: translateX(14px); }
  2%, 17% { opacity: 1; transform: translateX(0); }
  19%, 100% { opacity: 0; transform: translateX(-14px); }
}

.scene-cap {
  margin: 0;
  text-align: center;
}

.scene-cap b {
  display: block;
  font-weight: 900;
  font-size: 1rem;
}

.scene-cap span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Dark props are on your device; light props are somewhere else. */
.tab {
  width: 13rem;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  overflow: hidden;
}

.tab-bar {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.4rem 0.5rem;
  background: var(--ink);
}

.tab-bar i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #4b5a83;
}

.tab-body {
  display: grid;
  place-items: center;
  height: 8.5rem;
  background: radial-gradient(circle at 50% 40%, #2b3348 0%, #171b26 72%);
}

.tab-body-slim {
  height: 3.2rem;
  align-content: center;
  gap: 0.5rem;
}

.tab-note {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Busy light: solid while the paper feeds, blinking once the slip is done. */
.led {
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #ffc53d;
  box-shadow: 0 0 0.3rem rgba(255, 197, 61, 0.8);
}

@keyframes led-done {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0.15; }
  100% { opacity: 1; }
}

.slot {
  width: 10.5rem;
  height: 0.45rem;
  border-radius: 3px;
  background: #0d1017;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18);
}

.stage .check-ring {
  width: 6.4rem;
  padding: 0.22rem;
}

.stage .face {
  width: 4.4rem;
  height: 5.3rem;
  margin-bottom: -0.6rem;
  border-width: 2px;
}

.stage .face::before {
  width: 0.36rem;
  height: 0.44rem;
  top: 1.8rem;
  left: 1.15rem;
  box-shadow: 1.85rem 0 0 var(--ink);
}

.stage .smile {
  width: 1.2rem;
  height: 0.62rem;
  border-width: 2px;
  bottom: 1.35rem;
}

.gears {
  display: flex;
  align-items: center;
}

/* Teeth are a repeating conic slice; the round clip trims their tips.
   closest-side keeps the radial stops relative to the radius, not the
   corner, so the body stops short of the teeth. */
.gear {
  width: 4.4rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, var(--ink) 0 26%, transparent 26%),
    repeating-conic-gradient(from 11deg, var(--sky) 0 13deg, transparent 13deg 45deg),
    radial-gradient(circle closest-side, var(--sky) 0 76%, transparent 76%);
  animation: spin 7s linear infinite;
}

.gear-sm {
  width: 3rem;
  margin: 1.5rem 0 0 -0.4rem;
  background:
    radial-gradient(circle closest-side, var(--ink) 0 26%, transparent 26%),
    repeating-conic-gradient(from 15deg, var(--pink) 0 17deg, transparent 17deg 60deg),
    radial-gradient(circle closest-side, var(--pink) 0 74%, transparent 74%);
  animation: spin 5s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

.printer {
  display: grid;
  justify-items: center;
}

.paper-out {
  overflow: hidden;
  margin-top: -2px;
  padding-bottom: 2px;
}

.receipt {
  --tooth: 0.44rem;
  --tear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 7' preserveAspectRatio='none'%3E%3Cpath d='M0 1.25 L6 5.75 L12 1.25' fill='none' stroke='%23000' stroke-width='2.5'/%3E%3C/svg%3E");
  position: relative;
  width: 10rem;
  display: grid;
  gap: 0.1rem;
  padding: 0.9rem 0.55rem 1rem;
  background: var(--surface);
  border-left: 2.5px solid var(--ink);
  border-right: 2.5px solid var(--ink);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

/* Torn off a printer: both ends are a sawtooth drawn as an ink-filled strip
   masked to a zigzag stroke. Twelve teeth across whatever width the slip has,
   so a tooth tip - not a half tooth - always meets the side edges. The paper
   behind the tips is white on a white stage, so only the zigzag reads. */
.receipt::before,
.receipt::after {
  content: "";
  position: absolute;
  left: -2.5px;
  right: -2.5px;
  height: var(--tooth);
  background: var(--ink);
  -webkit-mask: var(--tear) repeat-x;
  -webkit-mask-size: calc(100% / 12) 100%;
  mask: var(--tear) repeat-x;
  mask-size: calc(100% / 12) 100%;
}

.receipt::before {
  top: 0;
}

.receipt::after {
  bottom: 0;
  transform: scaleY(-1);
}

.receipt b {
  font-size: 0.72rem;
}

.receipt span {
  color: var(--ink-soft);
}

.receipt em {
  margin-top: 0.15rem;
  padding: 0.12rem 0.3rem;
  border-radius: 4px;
  background: rgba(52, 199, 123, 0.18);
  color: #1b6b45;
  font-style: normal;
}

/* Stepped, not smooth: the slip is fed out a chunk at a time, the way a till
   printer advances the paper. */
.receipt-print {
  animation-name: print;
  animation-duration: var(--cycle);
  animation-delay: var(--t);
  animation-timing-function: steps(6, end);
  animation-iteration-count: infinite;
}

@keyframes print {
  0%, 3% { transform: translateY(-100%); }
  13%, 100% { transform: translateY(0); }
}

.stack {
  position: relative;
}

.receipt-travel {
  animation-name: travel;
  animation-duration: var(--cycle);
  animation-delay: var(--t);
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes travel {
  0%, 2% { transform: translateX(-5.5rem) scale(0.9); }
  7%, 100% { transform: translateX(0) scale(1); }
}

.mark,
.stamp {
  display: grid;
  place-items: center;
  border: 3px solid var(--live);
  border-radius: 50%;
  color: var(--live);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mark {
  position: absolute;
  right: -0.5rem;
  bottom: 0.3rem;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.82);
  transform: rotate(-9deg);
}

/* Lands exactly on .mark, so lifting the stamp reveals the signature. */
.stamp {
  position: absolute;
  right: -0.85rem;
  bottom: -0.05rem;
  width: 3.2rem;
  height: 3.2rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 3px 3px 0 var(--ink);
  opacity: 0;
  animation-name: stamp-down;
  animation-duration: var(--cycle);
  animation-delay: var(--t);
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
}

@keyframes stamp-down {
  0%, 7% { opacity: 0; transform: translateY(-2.6rem) rotate(-14deg) scale(1.12); }
  10%, 13% { opacity: 1; transform: translateY(0) rotate(-9deg) scale(1); }
  17%, 100% { opacity: 0; transform: translateY(-2.6rem) rotate(-9deg) scale(1.06); }
}

.receipt-travel .mark {
  animation-name: mark-in;
  animation-duration: var(--cycle);
  animation-delay: var(--t);
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes mark-in {
  0%, 9% { opacity: 0; transform: rotate(-9deg) scale(1.7); }
  11%, 100% { opacity: 1; transform: rotate(-9deg) scale(1); }
}

.server {
  display: grid;
  gap: 0.3rem;
  width: 7rem;
  padding: 0.55rem 0.5rem;
  background: var(--sky-tint);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink);
}

.server b {
  font-size: 0.7rem;
  text-align: center;
}

.server i {
  height: 0.6rem;
  background: var(--sky-soft);
  border: 2px solid var(--ink);
  border-radius: 3px;
}

.wire {
  position: relative;
  width: 3.2rem;
  border-top: 3px dashed var(--ink);
}

.wire::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -7px;
  border: 6px solid transparent;
  border-right: 0;
  border-left-color: var(--ink);
}

.receipt-hand {
  width: 9rem;
  animation-name: hand;
  animation-duration: var(--cycle);
  animation-delay: var(--t);
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes hand {
  0%, 3% { transform: translateX(-3.5rem) rotate(-8deg); }
  12%, 100% { transform: translateX(0) rotate(-4deg); }
}

/* Sits on the paper, clear of the wording and inside the torn edge. */
.receipt-hand .mark {
  right: 0.3rem;
  bottom: 0.5rem;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 0.48rem;
}

.site {
  width: 10.5rem;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  overflow: hidden;
}

.site-url {
  flex: 1;
  margin-left: 0.3rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #4b5a83;
  color: var(--sky-soft);
  font-size: 0.52rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-body {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1.1rem 0.5rem;
  background: var(--sky-tint);
}

.site-pill {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--live);
  color: #0f3d28;
  font-size: 0.62rem;
  font-weight: 900;
}

.site-note {
  color: var(--ink-soft);
  font-size: 0.58rem;
  font-weight: 700;
}

.stage-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.1rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.stage-dots i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--surface);
  animation-name: dot;
  animation-duration: var(--cycle);
  animation-delay: var(--t);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.stage-dots i:nth-child(1) { --t: 0s; }
.stage-dots i:nth-child(2) { --t: 3s; }
.stage-dots i:nth-child(3) { --t: 6s; }
.stage-dots i:nth-child(4) { --t: 9s; }
.stage-dots i:nth-child(5) { --t: 12s; }

@keyframes dot {
  0%, 1% { background: var(--surface); }
  3%, 17% { background: var(--sky); }
  19%, 100% { background: var(--surface); }
}

/* Below this the widest scene no longer fits, so tighten the spacing and
   shrink the whole composition. Scale composes with the scenes' own
   transform animations rather than fighting them. */
@media (max-width: 30rem) {
  .row {
    gap: 0.6rem;
  }

  .wire {
    width: 2.2rem;
  }

  .site {
    width: 9.5rem;
  }

  .scene {
    scale: 0.78;
  }
}

@media (max-width: 23rem) {
  .scene {
    scale: 0.66;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage {
    gap: 1.75rem;
    padding-bottom: 1.25rem;
  }

  .scene {
    grid-area: auto;
    scale: 1;
    opacity: 1;
    transform: none;
    animation: none;
  }

  .gear,
  .receipt-print,
  .receipt-travel,
  .receipt-travel .mark,
  .receipt-hand,
  .stamp,
  .stage-dots i {
    animation: none;
  }

  .stage-dots {
    display: none;
  }
}

/* Interactive slideshow. JavaScript selects one scene at a time and restarts
   only that scene's small illustrative motions. */
.stage {
  --slide-time: 5s;
  margin-bottom: 2.75rem;
  padding-bottom: 4.5rem;
}

.stage > noscript,
.stage-noscript {
  display: none;
}

.no-js .stage > noscript {
  display: contents;
}

.no-js .stage-noscript {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(10px);
}

.stage-noscript p {
  margin: 0;
  max-width: 36ch;
  text-align: center;
  font-weight: 700;
}

.no-js .stage .scene,
.no-js .stage .scene.is-active,
.no-js .stage .scene.is-active * {
  animation: none;
}

.no-js .stage-controls {
  visibility: hidden;
}

.scene {
  scale: 1;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  animation: none;
}

.scene.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  animation: scene-enter 280ms ease-out both;
}

@keyframes scene-enter {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

.gear,
.receipt-print,
.receipt-travel,
.receipt-travel .mark,
.stamp,
.receipt-hand {
  animation: none;
}

.scene.is-active .gear {
  animation: spin 7s linear infinite;
}

.scene.is-active .gear-sm {
  animation: spin 5s linear infinite reverse;
}

.scene.is-active .receipt-print {
  animation: print-active 1.5s steps(6, end) both;
}

@keyframes print-active {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Solid while the six chunks feed out, then blinking to say the slip is done. */
.scene.is-active .led {
  animation: led-done 0.9s 1.5s linear infinite;
}

.scene.is-active .receipt-travel {
  animation: travel-active 1.1s ease-out both;
}

@keyframes travel-active {
  from { transform: translateX(-5.5rem) scale(0.9); }
  to { transform: translateX(0) scale(1); }
}

.receipt-travel .mark {
  opacity: 0;
}

.scene.is-active .receipt-travel .mark {
  animation: signature-in 350ms 1.45s ease-out both;
}

@keyframes signature-in {
  from { opacity: 0; transform: rotate(-9deg) scale(1.7); }
  to { opacity: 1; transform: rotate(-9deg) scale(1); }
}

.scene.is-active .stamp {
  animation: stamp-active 1.2s 650ms ease-in-out both;
}

@keyframes stamp-active {
  0% { opacity: 0; transform: translateY(-2.6rem) rotate(-14deg) scale(1.12); }
  35%, 68% { opacity: 1; transform: translateY(0) rotate(-9deg) scale(1); }
  100% { opacity: 0; transform: translateY(-2.6rem) rotate(-9deg) scale(1.06); }
}

.scene.is-active .receipt-hand {
  animation: hand-active 1.35s ease-out both;
}

@keyframes hand-active {
  from { transform: translateX(-3.5rem) rotate(-8deg); }
  to { transform: translateX(0) rotate(-4deg); }
}

.server img {
  display: block;
  width: 100%;
  height: 1.25rem;
  object-fit: contain;
  margin-bottom: 0.15rem;
}

.mark svg,
.stamp svg {
  width: 82%;
  height: auto;
  overflow: visible;
}

.mark svg path,
.stamp svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stage-controls {
  position: absolute;
  right: 0;
  bottom: 0.8rem;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}

.stage-controls button {
  display: inline-grid;
  place-items: center;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

.stage-controls button:hover {
  background: var(--sky-soft);
}

.stage-pages {
  display: flex;
  gap: 0.35rem;
}

.stage-pages button {
  --progress: 0deg;
  border-radius: 50%;
  background: conic-gradient(var(--sky) var(--progress), var(--surface) 0);
}

.stage-pages button[aria-current="step"] {
  animation: slide-progress var(--slide-time) linear forwards;
}

@property --progress {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes slide-progress {
  to { --progress: 360deg; }
}

.stage.is-paused .stage-pages button[aria-current="step"],
.stage.is-paused .scene.is-active *,
.stage.is-paused .scene.is-active {
  animation-play-state: paused;
}

@media (max-width: 30rem) {
  .stage {
    padding: 1rem 0.75rem 5.6rem;
  }

  .scene {
    scale: 1;
    gap: 1rem;
  }

  .scene-cap b {
    font-size: 1.05rem;
  }

  .scene-cap span {
    max-width: 28ch;
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .row {
    width: 100%;
    gap: 0.35rem;
    justify-content: center;
  }

  .wire {
    width: 1.4rem;
    flex: 0 0 1.4rem;
  }

  .receipt-travel {
    width: 8.4rem;
  }

  .server {
    width: 5.7rem;
    padding-inline: 0.35rem;
  }

  .receipt-hand {
    width: 7.2rem;
  }

  /* Too little paper left at this width, so the signature goes back over the
     corner rather than across the wording. */
  .receipt-hand .mark {
    right: -0.55rem;
    bottom: -0.5rem;
    width: 1.9rem;
    height: 1.9rem;
  }

  .site {
    width: 8rem;
  }

  .site-url {
    font-size: 0.45rem;
  }

  .site-pill {
    font-size: 0.53rem;
  }

  .stage-controls {
    row-gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage {
    display: grid;
    gap: 1.75rem;
    padding-bottom: 5.25rem;
  }

  .scene {
    grid-area: auto;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .scene:not(.is-active) {
    display: none;
  }

  /* A light that never stops blinking is the one thing here worth switching
     off; it rests lit instead. */
  .scene.is-active .led {
    animation: none;
  }

  .stage-pages button[aria-current="step"] {
    animation: none;
    background: var(--sky);
  }
}

.split {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.stay-card {
  background: var(--sky-soft);
}

.leave-card {
  background: var(--sky-tint);
}

/* The camera frames pile up on the device: a diagonal stack where only the
   top frame is a live view and the others show as edges under it. */
.frame-stack {
  position: relative;
  height: 10.55rem;
  margin: 0.9rem 0 1.3rem 0.4rem;
}

.shot {
  position: absolute;
  top: 0;
  left: 0;
  width: 9rem;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: end center;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: radial-gradient(circle at 50% 42%, #2b3348 0%, #171b26 74%);
  box-shadow: 3px 3px 0 var(--ink);
}

.shot:nth-child(1) { transform: rotate(-11deg); }
.shot:nth-child(2) { transform: translate(1.25rem, 0.95rem) rotate(-7deg); }
.shot:nth-child(3) { transform: translate(2.5rem, 1.9rem) rotate(-3deg); }
.shot:nth-child(4) { transform: translate(3.75rem, 2.85rem) rotate(1deg); }

.shot-live {
  transform: translate(5rem, 3.8rem) rotate(5deg);
}

/* Viewfinder brackets: one inset outline masked down to its four corners. */
.shot-live::after {
  --corner: linear-gradient(#000 0 0) no-repeat;
  content: "";
  position: absolute;
  inset: 0.45rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  -webkit-mask:
    var(--corner) top left / 0.9rem 0.9rem,
    var(--corner) top right / 0.9rem 0.9rem,
    var(--corner) bottom left / 0.9rem 0.9rem,
    var(--corner) bottom right / 0.9rem 0.9rem;
  mask:
    var(--corner) top left / 0.9rem 0.9rem,
    var(--corner) top right / 0.9rem 0.9rem,
    var(--corner) bottom left / 0.9rem 0.9rem,
    var(--corner) bottom right / 0.9rem 0.9rem;
}

.shot .face {
  width: 4.45rem;
  height: 5.1rem;
  margin-bottom: -0.6rem;
  border-width: 2px;
}

.shot .face::before {
  width: 0.34rem;
  height: 0.41rem;
  top: 1.74rem;
  left: 1.17rem;
  box-shadow: 1.85rem 0 0 var(--ink);
}

.shot .smile {
  width: 1.19rem;
  height: 0.6rem;
  border-width: 2px;
  bottom: 1.41rem;
}

.card-slip {
  margin: 0.6rem 0 1.25rem;
}

/* Same till paper as the animation, at reading size and tipped as if the
   slip had just been set down on the card. */
.receipt-leave {
  --tooth: 0.5rem;
  width: 13rem;
  /* Blank paper at the foot so the signature has somewhere to sit. */
  padding: 1rem 0.85rem 2.3rem;
  gap: 0.15rem;
  font-size: 0.78rem;
  transform: rotate(-1.5deg);
}

.receipt-leave b {
  font-size: 0.92rem;
}

.receipt-leave .mark {
  right: 0.75rem;
  bottom: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
}

/* The spread stack is wider than a phone-width card, so it shrinks as a whole
   rather than having every offset retuned. */
@media (max-width: 30rem) {
  .frame-stack {
    height: 8.45rem;
    scale: 0.8;
    transform-origin: top left;
  }
}

.table-wrap {
  overflow-x: auto;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

th,
td {
  text-align: left;
  padding: 0.85rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(53, 66, 104, 0.16);
}

thead th {
  background: var(--ink);
  color: #fff;
}

th {
  font-weight: 700;
}

tbody th {
  background: var(--sky-soft);
}

.compare .cloud {
  color: #d0416a;
  font-weight: 700;
}

/* Three columns of prose do not fit a phone, so each row becomes a block:
   the row heading, then the two answers under their own column labels. */
@media (max-width: 46rem) {
  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .compare table,
  .compare tbody,
  .compare tr,
  .compare tbody th,
  .compare td {
    display: block;
  }

  .compare tr + tr {
    border-top: 3px solid var(--ink);
  }

  .compare tbody th {
    font-size: 1.05rem;
    font-weight: 900;
    border-bottom: 0;
  }

  .compare td {
    border-bottom: 0;
    padding-block: 0.5rem;
  }

  .compare td:last-child {
    padding-bottom: 1rem;
  }

  .compare td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.1rem;
    color: var(--ink-soft);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

.faq details {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  margin: 0.65rem 0;
}

.faq details[open] {
  background: var(--sky-tint);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq details p {
  margin: 0.6rem 0 0.2rem;
  color: var(--ink-soft);
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  background: var(--sky);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn:hover {
  color: var(--ink);
  background: #8ad3f4;
}

.btn.ghost {
  background: var(--surface);
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 3rem;
  border-top: 2px solid var(--ink);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  height: 1.9rem;
  width: auto;
}

/* Sticker under the wordmark. Privately is a Swiss company, so this one keeps
   the flag's red instead of a brand colour. */
.swiss-made {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: -0.25rem 0 1.15rem;
  padding: 0.32rem 0.85rem 0.32rem 0.6rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

/* One path rather than two crossed bars, so both arms keep the same thickness
   and centre whatever the sticker is scaled to. */
.swiss-cross {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: #d52b1e;
}

/* Axis-aligned arms, so skipping anti-aliasing keeps them even at this size. */
.swiss-cross svg {
  width: 100%;
  height: 100%;
  fill: #fff;
  shape-rendering: crispEdges;
}

/* Holds the short page open so the header, message, and footer sit where a
   reader expects them rather than bunching at the top of a tall screen. */
.page-404 {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: min(60vh, 28rem);
  padding: 3rem 0;
}

.page-404 h1 {
  max-width: 14ch;
}

.page-404 .btn {
  margin-top: 0.75rem;
}

.llm-note {
  font-size: 0.9rem;
  margin-top: 1rem;
}

.gen-ai-disclosure {
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.cookie-dock {
  position: fixed;
  z-index: 30;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(22rem, calc(100vw - 2rem));
  font-size: 0.95rem;
  line-height: 1.4;
}

.cookie-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  margin: 0;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 900;
  cursor: pointer;
  float: right;
}

.cookie-chip:hover {
  background: var(--sky-soft);
}

.cookie-chip[hidden],
.cookie-panel[hidden] {
  display: none;
}

.cookie-panel {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem 1rem 1rem;
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cookie-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions .btn {
  padding: 0.4rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.cookie-dock[data-state="closed"] {
  width: auto;
}

.cookie-dock[data-state="prompt"] .cookie-panel,
.cookie-dock[data-state="open"] .cookie-panel {
  animation: cookie-in 180ms ease-out;
}

@keyframes cookie-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-dock[data-state="prompt"] .cookie-panel,
  .cookie-dock[data-state="open"] .cookie-panel {
    animation: none;
  }
}

@media (max-width: 30rem) {
  .cookie-dock {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    width: calc(100vw - 1.5rem);
  }

  .cookie-copy {
    font-size: 0.88rem;
  }
}