@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  color-scheme: dark;
  --ink: #fffdf7;
  --ink-soft: rgb(255 253 247 / 0.74);
  --ink-faint: rgb(255 253 247 / 0.52);
  --blue: #a9d8ff;
  --lime: #dff1ae;
  --night: #1d1b46;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --glass-fill: linear-gradient(
    180deg,
    rgb(255 255 255 / 0.2),
    rgb(255 255 255 / 0.07)
  );
  --glass-blur: blur(24px) saturate(1.7);
  --glass-rim: linear-gradient(
    150deg,
    rgb(255 255 255 / 0.75),
    rgb(255 255 255 / 0.14) 32%,
    rgb(255 255 255 / 0.03) 58%,
    rgb(255 255 255 / 0.32)
  );
  --glass-depth:
    inset 0 1px 1px rgb(255 255 255 / 0.35),
    inset 0 -1px 1px rgb(255 255 255 / 0.06),
    0 14px 36px -10px rgb(16 10 48 / 0.5);
  /* SF Pro on Apple devices; its license forbids serving it as a webfont. */
  font-family: -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  color: var(--ink);
  background: #26235a;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease-out);
}
::selection {
  background: var(--lime);
  color: var(--night);
}

/* Liquid glass */
.glass {
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-depth);
}
.glass {
  position: relative;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--glass-rim);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: var(--ink);
  color: var(--night);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
}

/* Laid out for a 1920 × 1080 window, then scaled so it keeps its place
   relative to the characters in the video at any window size. */
.site-header,
.intro {
  zoom: var(--ui-scale, 1);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 36px;
  pointer-events: none;
}
.site-header > * {
  pointer-events: auto;
}
.wordmark {
  text-decoration: none;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 16px rgb(20 16 60 / 0.4);
}
/* Scene */
/* Exactly the window, never scrolled: the tools page's valley covers the same box,
   so the scene lines up with it at any window size. */
.stage {
  position: relative;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.landscape {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: #2b2a6b;
}
.scene-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Eases down to the tools page's framing as the clip hands over to it. */
  object-position: 50% calc(50% + 20% * var(--handoff, 0));
  pointer-events: none;
}
#still {
  z-index: 0;
}
#greeting {
  z-index: 1;
}
#transition {
  z-index: 2;
  opacity: 0;
  will-change: transform, opacity;
}
/* The evening haze of the tools page (instrumente.css, .valley::before); it
   settles over the last frames so the page that opens continues the picture. */
.scene-haze {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(28 20 92 / 0.62) 0%, rgb(40 24 110 / 0.34) 30%, rgb(60 30 110 / 0.08) 52%, transparent 64%);
  opacity: var(--handoff, 0);
}
/* Shown while the clip plays; app.js fades it in and out with the frames. */
.scene-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      70% 55% at 50% 45%,
      rgb(22 16 60 / 0.3),
      transparent 75%
    ),
    linear-gradient(180deg, rgb(24 18 70 / 0.35), transparent 25% 70%, rgb(10 20 20 / 0.35));
  opacity: 0;
}

/* Intro */
.intro {
  position: absolute;
  left: 50%;
  bottom: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
  transition:
    opacity 0.5s ease,
    transform 0.7s var(--ease-out),
    visibility 0.5s;
  animation: rise-in 1.1s 0.5s var(--ease-out) backwards;
}
.intro > p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-shadow: 0 2px 12px rgb(10 24 20 / 0.6);
}
.intro > p span {
  padding: 0 8px;
  opacity: 0.6;
}
:is([data-state="playing"], [data-state="leaving"]) .intro {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 14px);
  animation: none;
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translate(-50%, 18px);
  }
}
.discover {
  display: flex;
  text-decoration: none;
  align-items: center;
  gap: 22px;
  height: 74px;
  padding: 0 10px 0 34px;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 8px rgb(16 10 48 / 0.35);
  transition: transform 0.45s var(--ease-out);
}
.discover::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgb(255 255 255 / 0.28);
  animation: halo 2.8s 1.8s ease-out infinite;
}
@keyframes halo {
  70%,
  100% {
    box-shadow: 0 0 0 14px rgb(255 255 255 / 0);
  }
}
.discover:hover {
  transform: translateY(-2px) scale(1.015);
}
.discover:active {
  transform: scale(0.985);
}
.discover-orb {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #f1efff);
  color: var(--night);
  box-shadow:
    0 6px 16px -4px rgb(16 10 48 / 0.45),
    inset 0 -2px 4px rgb(29 27 70 / 0.08);
}
.discover-orb svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}
.discover:hover .discover-orb svg {
  transform: translateX(3px);
}
.discover[aria-busy="true"] {
  cursor: progress;
}
.discover-orb::after {
  content: "";
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgb(29 27 70 / 0.18);
  border-top-color: var(--night);
  opacity: 0;
}
.discover-orb svg {
  grid-area: 1 / 1;
}
.discover[aria-busy="true"] .discover-orb svg {
  opacity: 0;
}
.discover[aria-busy="true"] .discover-orb::after {
  opacity: 1;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

/* Exam colours, used by the phone layout's cards */
.bac {
  --accent: #ff5773;
  --accent-light: #ff8193;
  --accent-mid: #ec2a4f;
  --accent-deep: #a8102e;
  --accent-glow: rgb(236 42 79 / 0.45);
}
.en {
  --accent: #5cabff;
  --accent-light: #8cc8ff;
  --accent-mid: #3b99ff;
  --accent-deep: #1865e0;
  --accent-glow: rgb(59 153 255 / 0.5);
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bullet-icon {
  flex: none;
  width: 10px;
  height: 10px;
  margin: 0 3px 0 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #fff 0 10%, var(--accent-light) 26%, var(--accent-mid) 55%, var(--accent-deep));
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Social links (official brand logos) */
.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.social-link {
  display: inline-flex;
  transition:
    transform 0.3s var(--ease-out),
    opacity 0.3s;
}
.social-link svg {
  display: block;
  width: 48px;
  height: 48px;
  stroke: none;
  filter: drop-shadow(0 3px 8px rgb(10 8 40 / 0.4));
}
.social-link:hover {
  transform: translateY(-2px) scale(1.06);
}
/* Opening the tools: the next page cross-fades in, as between tool pages. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}
::view-transition-group(*) {
  animation-duration: 0.32s;
  animation-timing-function: var(--ease-out);
}

/* Phone layout */
.mobile {
  display: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .site-header,
  .stage,
  .skip-link {
    display: none;
  }
  .mobile {
    /* Rendered height of the 9:16 scene: it covers the small viewport. */
    --frame: max(100svh, 177.78vw);
    /* The scene is drawn this far above the top of the screen. */
    --frame-lift: calc(var(--frame) * 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    interpolate-size: allow-keywords;
  }
  .m-scene {
    position: fixed;
    inset: 0 0 auto;
    z-index: -1;
    height: 100lvh;
    overflow: hidden;
    background: linear-gradient(
      180deg,
      #3d3cb0,
      #c1629f 20%,
      #f2915f 27%,
      #56733c 40%,
      #253d22
    );
  }
  .m-media {
    position: absolute;
    top: 0;
    left: 50%;
    height: var(--frame);
    width: auto;
    aspect-ratio: 9 / 16;
    transform: translate(-50%, calc(var(--frame-lift) * -1));
  }
  /* Stays invisible until frames actually play, so a blocked autoplay never
     shows the browser's play button over the poster. */
  #m-video {
    opacity: 0;
  }
  #m-video.is-playing {
    opacity: 1;
  }
  #m-video::-webkit-media-controls,
  #m-video::-webkit-media-controls-start-playback-button,
  #m-video::-webkit-media-controls-overlay-play-button {
    display: none !important;
    -webkit-appearance: none;
  }
  .m-replay {
    flex: 1 0 auto;
    width: 100%;
    min-height: calc(var(--frame) * 0.515);
  }
  .m-replay:focus-visible {
    outline-offset: -8px;
  }
  /* On the hills between the title (ending 26.5% down the scene) and the
     characters (from 40%). */
  .m-discover {
    position: absolute;
    top: calc(var(--frame) * 0.335 - var(--frame-lift) - 26px);
    left: 0;
    right: 0;
    width: fit-content;
    height: 52px;
    margin: 0 auto;
    gap: 14px;
    padding: 0 6px 0 22px;
    font-size: 16.5px;
    animation: m-rise 0.9s var(--ease-out) 0.45s both;
  }
  .m-discover .discover-orb {
    width: 40px;
    height: 40px;
  }
  .m-discover .discover-orb svg {
    width: 20px;
    height: 20px;
  }

  .m-sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 16px max(16px, calc(env(safe-area-inset-bottom) + 6px));
    border-radius: 30px 30px 0 0;
    background:
      linear-gradient(180deg, rgb(255 255 255 / 0.17), rgb(255 255 255 / 0.04) 45%),
      rgb(24 20 66 / 0.4);
    -webkit-backdrop-filter: blur(26px) saturate(1.7);
    backdrop-filter: blur(26px) saturate(1.7);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.4),
      inset 0 0 0 1px rgb(255 255 255 / 0.06),
      0 -24px 60px -24px rgb(10 8 40 / 0.55);
    animation: m-rise 0.9s var(--ease-out) 0.25s both;
  }
  @keyframes m-rise {
    from {
      opacity: 0;
      transform: translateY(48px);
    }
  }
  .m-grabber {
    width: 38px;
    height: 5px;
    margin: 0 auto 4px;
    border-radius: 3px;
    background: rgb(255 255 255 / 0.32);
  }

  .m-exam {
    border-radius: 22px;
    background:
      radial-gradient(90% 130% at 0% 50%, var(--accent-glow), transparent 60%),
      linear-gradient(180deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.05));
    box-shadow:
      inset 0 1px 1px rgb(255 255 255 / 0.3),
      inset 0 0 0 1px rgb(255 255 255 / 0.07);
  }
  .m-exam summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px 11px 11px;
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .m-exam summary::-webkit-details-marker {
    display: none;
  }
  .m-exam summary:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
    border-radius: 22px;
  }
  .m-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    color: #fff;
    background: radial-gradient(
      circle at 30% 22%,
      var(--accent-light),
      var(--accent-mid) 48%,
      var(--accent-deep)
    );
    box-shadow:
      inset 0 2px 3px rgb(255 255 255 / 0.5),
      inset 0 -3px 6px rgb(40 10 60 / 0.22),
      0 8px 18px -8px var(--accent-deep);
  }
  .m-icon svg {
    width: 23px;
    height: 23px;
    stroke-width: 2;
    filter: drop-shadow(0 1px 1px rgb(40 10 60 / 0.35));
  }
  .m-exam-text {
    display: grid;
    gap: 2px;
    flex: 1;
    min-width: 0;
  }
  .m-exam-text strong {
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.025em;
  }
  .m-exam-text span {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
  }
  .m-chevron {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--ink-faint);
    stroke-width: 2.2;
  }
  .m-exam[open] .m-chevron {
    transform: rotate(90deg);
  }
  .m-exam::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size 0.4s var(--ease-out),
      content-visibility 0.4s allow-discrete;
  }
  .m-exam[open]::details-content {
    block-size: auto;
  }
  .m-exam ul {
    padding: 0 16px 14px 73px;
  }
  .m-exam li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.4;
    color: rgb(255 253 247 / 0.9);
  }
  .m-exam li:last-child {
    margin-bottom: 0;
  }

  .m-social {
    justify-content: center;
    gap: 24px;
    margin: 8px 0 4px;
  }
  .m-social .social-link svg {
    width: 50px;
    height: 50px;
  }
  .m-social .social-link:active {
    transform: scale(0.92);
  }

  .m-store-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 2px 0;
    font-size: 14px;
    font-weight: 650;
    color: var(--ink-soft);
  }
  .m-store-note::before,
  .m-store-note::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.28));
  }
  .m-store-note::after {
    background: linear-gradient(90deg, rgb(255 255 255 / 0.28), transparent);
  }
  .m-stores {
    display: flex;
    gap: 10px;
  }
  .m-store {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    height: 48px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  .m-store.glass {
    /* Already inside the sheet's blur; a second backdrop pass costs GPU time
       while the video plays. */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.05));
  }
  .m-store svg {
    flex: none;
    width: 20px;
    height: 20px;
    stroke: none;
  }
}

@media ((max-width: 760px) or (max-aspect-ratio: 4/5)) and (max-height: 700px) {
  .m-replay {
    min-height: calc(var(--frame) * 0.495);
  }
  .m-sheet {
    gap: 8px;
  }
  .m-exam summary {
    padding-block: 8px;
  }
  .m-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
  .m-exam ul {
    padding-left: 67px;
  }
  .m-store {
    height: 44px;
  }
}

@media ((max-width: 760px) or (max-aspect-ratio: 4/5)) and (min-width: 600px) {
  .mobile {
    --frame-lift: calc(var(--frame) * 0.08 + 64px);
  }
  .m-replay {
    min-height: calc(var(--frame) * 0.515 - 64px);
  }
  .m-sheet {
    width: min(100% - 48px, 560px);
    margin: 0 auto max(24px, env(safe-area-inset-bottom));
    padding-bottom: 16px;
    border-radius: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
