@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #1b36c9;
  --ink: #ffffff;
  --dim: #dce4ff;
  --accent: #1b36c9;
  --pale: #dce4ff;
  --pale-ink: #1b36c9;
  --inv: #ffffff;
  --inv-ink: #1b36c9;
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.42);
  --white: #ffffff;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --column: 72rem;
  --side: max(var(--gutter), calc((100% - var(--column)) / 2));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --frames-top: 5.5rem;
  --hero-pb: 3.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--inv); color: var(--inv-ink); padding: 0.5rem 0.75rem; z-index: 200; }
.skip:focus { top: 1rem; }

/* Nav: white pill */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.5rem 0.5rem 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 32px -12px rgba(8, 16, 60, 0.45);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  white-space: nowrap;
  max-width: calc(100vw - 2rem);
  color: var(--accent);
}
.nav__brand { text-decoration: none; font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.nav__links a { display: inline-block; padding: 0.4rem 0.8rem; border-radius: 999px; text-decoration: none; font-size: 0.92rem; font-weight: 600; opacity: 0.72; }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; background: color-mix(in srgb, var(--accent) 9%, transparent); }
.nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}
.nav__toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav__toggle line { transform-origin: 50% 50%; transition: transform 0.3s var(--ease); }
.nav__toggle[aria-expanded="true"] line:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] line:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


/* Badge: a small spinning mark at the top left, the home link on every page */
.badge {
  position: fixed;
  z-index: 101;
  top: 12px;
  left: var(--gutter);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  will-change: transform;
  transform: rotate(calc(var(--sy, 0) * 0.15deg));
}
.badge svg { display: block; width: 100%; height: 100%; overflow: visible; animation: spin 40s linear infinite; }
.badge text { font-size: 24px; font-weight: 700; letter-spacing: 0.12em; fill: var(--ink); text-transform: uppercase; }
.badge circle { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.badge:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero: frames that scale as you scroll, text in the centre */
.hero {
  position: relative;
  min-height: 100svh;
  padding: var(--frames-top) var(--gutter) var(--hero-pb);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  overflow: hidden;
}
.frames {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--frames-top);
  bottom: var(--hero-pb);
  z-index: 1;
  pointer-events: none;
  container-type: size;
}
.frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% - 8vw);
  height: calc(100% - 3rem);
  border: 1px solid var(--line);
  opacity: var(--o, 1);
  transform: translate(-50%, -50%) rotate(calc(var(--r, 0) * 1deg)) scale(var(--s, 1));
  will-change: transform, opacity;
  animation: frame-in 1.6s var(--ease) both;
  animation-delay: var(--delay, 0s);
}
.frame:nth-child(1) { --k: 1; --delay: 0.0s; border-color: var(--line-strong); }
.frame:nth-child(2) { --k: 0.82; --delay: 0.08s; }
.frame:nth-child(3) { --k: 0.66; --delay: 0.16s; }
.frame:nth-child(4) { --k: 0.53; --delay: 0.24s; }
.frame:nth-child(5) { --k: 0.42; --delay: 0.32s; }
@keyframes frame-in {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--r, 0) * 1deg)) scale(calc(var(--s, 1) * 0.94)); }
  to { opacity: var(--o, 1); transform: translate(-50%, -50%) rotate(calc(var(--r, 0) * 1deg)) scale(var(--s, 1)); }
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 44rem;
  will-change: transform;
  transform: translate3d(0, calc(var(--sy, 0) * 0.18px), 0);
}
/* A plate in the page colour behind the text, so no frame line runs through a word */
.hero__inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.25rem 0.5rem;
  border-radius: 2rem;
  background: var(--bg);
  box-shadow: 0 0 48px 36px var(--bg);
  opacity: var(--plate, 1);
}
.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.4rem, 5.1vw, 4.6rem);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero h1 .line > span { display: block; animation: line-up 1.1s var(--ease) both; }
.line:nth-child(1) > span { animation-delay: 0.05s; }
.line:nth-child(2) > span { animation-delay: 0.15s; }
.line:nth-child(3) > span { animation-delay: 0.25s; }
@keyframes line-up {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}
.hero p {
  margin: 0 auto;
  max-width: none;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.4;
  color: var(--dim);
  text-wrap: pretty;
  animation: fade 1s 0.6s ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Bands */
.band { padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter); }
.band--inv { background: var(--inv); color: var(--inv-ink); }
.band--pale { background: var(--pale); color: var(--pale-ink); }
.band__inner { max-width: var(--column); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 40rem); gap: 2rem clamp(2rem, 6vw, 6rem); }
.band__inner + .band__inner { margin-top: clamp(3rem, 7vw, 5.5rem); }
.band h2 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; padding-top: 0.35rem; }
.band p { margin: 0 0 1rem; font-size: 1.5rem; line-height: 1.3; letter-spacing: -0.025em; font-weight: 500; text-wrap: pretty; }
.band p:last-child { margin-bottom: 0; }

.principles { margin: 0; padding: 0; }
.principles > div + div { margin-top: 1.75rem; }
.principles dt { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 0.25rem; }
.principles dd { margin: 0; font-size: 1.1rem; opacity: 0.8; max-width: 32rem; }

.email {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}
.email:hover { opacity: 0.8; }

.details { margin: 0; padding: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 2rem; font-size: 1.1rem; }
.details dt { opacity: 0.7; }
.details dd { margin: 0; font-weight: 600; }

/* Screenshots on the product page, on the page colour under the title */
.shots { padding: 0 var(--side) clamp(3.5rem, 8vw, 6rem); display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 0.9rem; border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -30px rgba(8, 16, 60, 0.6); background: var(--white); }
.shots figcaption { margin-top: 0.9rem; color: var(--dim); font-size: 1rem; }

/* Long text: the privacy policy. Quieter than the band statements. */
.legal { max-width: 40rem; font-size: 1.075rem; line-height: 1.6; }
.band .legal p { margin: 0 0 1rem; font-size: inherit; line-height: inherit; letter-spacing: normal; font-weight: 400; }
.legal p:last-child, .legal ul:last-child { margin-bottom: 0; }
.legal ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal li + li { margin-top: 0.6rem; }
.legal strong { font-weight: 700; }
.processors { margin: 0; }
.processors dt { font-weight: 700; margin-top: 1.1rem; }
.processors dd { margin: 0.2rem 0 0; }
.page__meta { margin: 1.5rem 0 0; color: var(--dim); font-size: 1rem; }

/* Subpages: the title stands still */
.page { padding: 10rem var(--side) clamp(3rem, 8vh, 5rem); }
.page h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.04em;
  max-width: 16ch;
}
.page h1 .line { display: block; }

/* Footer: the page colour, a line above it */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 3rem var(--side) 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  color: var(--dim);
  font-size: 1rem;
}
.footer p { margin: 0 0 0.3rem; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer__brand { color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.footer__links a { color: var(--ink); font-weight: 600; }

@media (max-width: 760px) {
  :root { --frames-top: 5.75rem; --hero-pb: 3rem; }
  .nav { left: 1rem; right: 1rem; transform: none; max-width: none; flex-wrap: wrap; justify-content: space-between; gap: 0 0.5rem; padding: 0.35rem 0.4rem 0.35rem 1rem; border-radius: 1.5rem; }
  .nav__toggle { display: inline-flex; }
  .nav__links { display: none; flex-basis: 100%; flex-direction: column; gap: 0; margin: 0.35rem 0.6rem 0.2rem 0; padding: 0.35rem 0 0; border-top: 1px solid color-mix(in srgb, var(--accent) 15%, transparent); }
  .nav.is-open .nav__links { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 0.75rem 0; border-radius: 0; font-size: 1.05rem; opacity: 1; }
  .nav__links a:hover, .nav__links a[aria-current="page"] { background: none; }
  .nav__links a[aria-current="page"] { opacity: 0.6; }
  .badge { display: none; }
  .frame { width: calc(100% - 6vw); height: calc(100% - 2rem); }
  .hero__inner { max-width: none; }
  .hero h1 { font-size: clamp(1.5rem, 9vw, 2.3rem); }
  .page h1 { font-size: clamp(1.6rem, 8.6vw, 2.6rem); }
  .band__inner { grid-template-columns: 1fr; gap: 0.75rem; }
  .band p { font-size: 1.25rem; }
  .principles dt { font-size: 1.25rem; }
  .footer { grid-template-columns: 1fr; padding-bottom: 2rem; }
  .footer div:last-child p { font-size: 0.85rem; }
  .details { grid-template-columns: 1fr; gap: 0; }
  .details dd { margin-bottom: 0.6rem; }
  .frame:nth-child(n+4) { display: none; }

}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame, .hero h1 .line > span, .hero p, .badge svg { animation: none; }
  .frame { transform: translate(-50%, -50%) rotate(calc(var(--r, 0) * 1deg)) scale(var(--k, 1)); opacity: 1; }
  .hero__inner, .badge, .frames { transform: none; }
  .nav__toggle line { transition: none; }

}
