@font-face {
  font-family: "Funnel Display";
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/funnelDisplay.woff2") format("woff2");
  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: "Funnel Display";
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/funnelDisplayExt.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Funnel Sans";
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/funnelSans.woff2") format("woff2");
  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: "Funnel Sans";
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/funnelSansExt.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "JetBrains Mono";
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/jetbrainsMono.woff2") format("woff2");
}

@font-face {
  font-family: "Fira Code";
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/firaCode.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/ibmPlexMono.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  --colorBase: light-dark(#f0f0f0, #0f0e15);
  --colorSurface: light-dark(#ffffff, #1a1824);
  --colorBrand: light-dark(#5b3cff, #6a4dff);
  --colorBrandText: light-dark(#5b3cff, #a594ff);
  --colorBrandDeep: #4527e0;
  --colorAction: #ff5fd2;
  --colorInk: light-dark(#15131c, #f1eff8);
  --colorMuted: light-dark(#5e5b6b, #a39fb4);
  --colorNumeral: light-dark(#8a8698, #77738a);
  --colorLine: light-dark(rgba(21, 19, 28, 0.09), rgba(255, 255, 255, 0.09));
  --colorBorder: light-dark(rgba(21, 19, 28, 0.18), rgba(255, 255, 255, 0.16));
  --colorPass: light-dark(#1a7a50, #4fd391);
  --colorFail: light-dark(#c4373a, #ff6b6e);
  --colorPaper: light-dark(#f4f3f8, #221f2d);
  --colorFill: light-dark(#e4e3ea, #2a2737);
  --colorFillSoft: light-dark(#f1f0f4, #24212f);
  --colorTrack: light-dark(#eceaf2, #2e2b3c);
  --colorTint: light-dark(#f2efff, #2b2448);
  --colorSwitchOff: light-dark(#d9dce3, #3b3849);
  --colorSuccessSoft: light-dark(#e3f3ea, rgba(79, 211, 145, 0.14));
  --colorToast: light-dark(#15131c, #2a2738);
  --colorOnInk: light-dark(#ffffff, #15131c);
  --colorInkHover: light-dark(#2b2836, #ffffff);
  --colorOnAccent: #15131c;
  --colorWhite: #ffffff;
  --colorOnBrand: #ffffff;
  --colorOnBrandSoft: rgba(255, 255, 255, 0.96);
  --colorDark: #15131c;
  --colorWarn: #b7791f;
  --colorGold: #f5b82e;
  --colorSilver: #aeb4c2;
  --colorBronze: #d38b5d;
  --colorPassBright: #4fd391;
  --colorFailBright: #ff6b6e;

  --shadowSoft: 0 1px 2px light-dark(rgba(21, 19, 28, 0.04), rgba(0, 0, 0, 0.35)), 0 8px 24px -12px light-dark(rgba(21, 19, 28, 0.12), rgba(0, 0, 0, 0.6));
  --shadowLift: 0 2px 4px light-dark(rgba(21, 19, 28, 0.05), rgba(0, 0, 0, 0.35)), 0 24px 48px -20px light-dark(rgba(21, 19, 28, 0.28), rgba(0, 0, 0, 0.8));
  --shadowMenu: 0 16px 40px -12px rgba(0, 0, 0, 0.45);
  --shadowPressed: 0 1px 3px rgba(21, 19, 28, 0.12);
  --borderQuiet: inset 0 0 0 1px var(--colorBorder);
  --borderStrong: inset 0 0 0 1px var(--colorInk);
  --borderSelected: inset 0 0 0 2px var(--colorBrandText);

  --fontDisplay: "Funnel Display", sans-serif;
  --fontText: "Funnel Sans", sans-serif;
  --fontCode: "JetBrains Mono", monospace;
  --textSmall: 0.8125rem;
  --textBody: 0.9375rem;
  --textLead: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --textHeading: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --textSubtitle: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --textTitle: clamp(1.75rem, 1.1rem + 2.6vw, 3rem);
  --textDisplay: clamp(3rem, min(1rem + 7vw, 15vh), 8rem);

  --spaceXs: 4px;
  --spaceS: 8px;
  --spaceM: 12px;
  --spaceL: 16px;
  --spaceXl: 24px;
  --space2xl: 32px;
  --space3xl: 48px;
  --space4xl: 64px;
  --space5xl: 96px;
  --pageGutter: clamp(var(--spaceL), 4vw, var(--space3xl));
  --sectionGap: clamp(96px, 14vh, 168px);
  --paddingCard: var(--spaceXl);
  --paddingCardLarge: var(--space2xl);
  --paddingRow: var(--spaceM) var(--spaceL);

  --radiusTiny: 4px;
  --radiusSmall: 8px;
  --radiusControl: 12px;
  --radiusSurface: 20px;
  --radiusStage: 32px;
  --radiusPill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --speedFast: 0.15s;
  --speedNormal: 0.25s;
  --speedSlow: 0.4s;
  --speedReveal: 1.2s;

  --trackTight: -0.02em;
  --trackTighter: -0.035em;
  --trackTightest: -0.055em;
  --lineTight: 0.95;
  --lineHeading: 1.15;
  --lineSnug: 1.4;
  --lineBody: 1.6;
  --iconTiny: 14px;
  --iconSmall: 16px;
  --iconMedium: 20px;
  --iconLarge: 28px;
  --controlSmall: 32px;
  --controlMedium: 44px;
  --controlLarge: 48px;
}

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

html {
  scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background: var(--colorBase);
  color: var(--colorInk);
  font-family: var(--fontText);
  font-size: var(--textLead);
  line-height: var(--lineBody);
}

img,
svg {
  display: block;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--colorBrand);
  outline-offset: 2px;
}

.siteHeader {
  view-transition-name: topBar;
  position: relative;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-auto-rows: minmax(44px, auto);
  align-items: center;
  gap: var(--spaceL);
  padding: var(--spaceXl) var(--pageGutter);
}

.wordmark {
  font-family: var(--fontDisplay);
  font-size: var(--textHeading);
  font-weight: 700;
  letter-spacing: var(--trackTighter);
}

.headerNav {
  display: flex;
  gap: var(--space2xl);
}

.headerNav a {
  padding: var(--spaceS) 0;
  font-size: var(--textBody);
  font-weight: 500;
  white-space: nowrap;
  color: var(--colorMuted);
  transition: color var(--speedNormal) ease;
}

.headerNav a:hover,
.headerNav a.isActive {
  color: var(--colorInk);
}

.headerActions {
  grid-column: -2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--spaceS);
}

.headerActions .textLink {
  font-size: var(--textBody);
}

.headerActions .menuToggle {
  display: none;
}

.menuOverlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space2xl);
  padding: var(--space5xl) var(--pageGutter);
  background: var(--colorBase);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--speedNormal) ease, visibility var(--speedNormal);
}

.menuOpen .menuOverlay {
  opacity: 1;
  visibility: visible;
}

.menuOverlay .btn {
  align-self: flex-start;
}

.overlayList a {
  display: block;
  font-family: var(--fontDisplay);
  font-size: var(--textTitle);
  font-weight: 600;
  letter-spacing: var(--trackTighter);
  line-height: var(--lineTight);
}

.overlayList a.isActive {
  color: var(--colorBrandText);
}

.appFooter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spaceS) var(--spaceXl);
  padding: var(--spaceXl) var(--pageGutter) var(--space4xl);
  font-size: var(--textSmall);
  color: var(--colorMuted);
}

.appFooter a:hover {
  color: var(--colorInk);
}

.appMain {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(var(--space2xl), 5vh, var(--space4xl)) clamp(var(--spaceL), 3.5vw, var(--space4xl)) var(--space5xl);
}

.appMain.isCentered {
  max-width: 1040px;
  text-align: center;
}

.pageTitle {
  font-family: var(--fontDisplay);
  font-size: var(--textTitle);
  letter-spacing: var(--trackTighter);
  line-height: var(--lineTight);
}

.heroHead {
  display: grid;
  justify-items: center;
  gap: var(--spaceL);
  margin-bottom: var(--space3xl);
}

.heroHeadTitle {
  font-family: var(--fontDisplay);
  font-size: min(var(--textDisplay), 12.5vw);
  text-transform: uppercase;
  letter-spacing: var(--trackTightest);
  line-height: var(--lineTight);
}

.card {
  padding: var(--paddingCard);
  border-radius: var(--radiusSurface);
  background: var(--colorSurface);
  box-shadow: var(--shadowSoft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spaceS);
  height: var(--controlLarge);
  padding: 0 var(--spaceXl);
  border-radius: var(--radiusControl);
  font-size: var(--textBody);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--speedNormal) ease, color var(--speedNormal) ease, transform var(--speedNormal) var(--ease), box-shadow var(--speedNormal) ease;
}

.btn svg {
  width: var(--iconSmall);
  height: var(--iconSmall);
  transition: transform var(--speedNormal) var(--ease);
}

.btn:not(:disabled):hover {
  transform: translateY(-2px);
}

.btn:not(:disabled):active {
  transform: scale(0.97);
}

.btn:hover svg[data-icon="arrowRight"] {
  transform: translateX(3px);
}

.btn:hover svg[data-icon="arrowUpRight"] {
  transform: translate(2px, -2px);
}

.btn.isSmall {
  height: var(--controlMedium);
  min-height: var(--controlMedium);
  padding: 0 var(--spaceL);
}

.btnAccent {
  background: var(--colorAction);
  color: var(--colorOnAccent);
}

.btnAccent:hover {
  box-shadow: var(--shadowLift);
}

.btnQuiet {
  box-shadow: var(--borderQuiet);
}

.btnQuiet:hover {
  background: var(--colorFillSoft);
  box-shadow: var(--borderStrong);
}

.btnOutline {
  height: var(--controlMedium);
  padding: 0 var(--spaceL);
  border-radius: var(--radiusPill);
  box-shadow: var(--borderStrong);
}

.btnOutline:hover {
  background: var(--colorInk);
  color: var(--colorBase);
}

.btnDark {
  background: var(--colorInk);
  color: var(--colorOnInk);
}

.btnDark:hover {
  background: var(--colorInkHover);
}

.btnLight {
  background: var(--colorWhite);
  color: var(--colorOnAccent);
}

.btnDanger {
  background: var(--colorFail);
  color: var(--colorSurface);
}

.btnDanger:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btnDangerQuiet {
  color: var(--colorFail);
  box-shadow: inset 0 0 0 1px var(--colorFail);
}

.btnDangerQuiet:hover {
  background: var(--colorFillSoft);
}

.textLink {
  display: inline-flex;
  align-items: center;
  gap: var(--spaceS);
  min-height: var(--controlMedium);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--colorLine);
  text-underline-offset: 4px;
  transition: color var(--speedNormal) ease;
}

.textLink:hover {
  color: var(--colorBrandText);
  text-decoration-color: currentColor;
}

.textLink svg {
  width: var(--iconSmall);
  height: var(--iconSmall);
}

.tabGroup {
  display: flex;
  gap: var(--spaceXs);
  padding: var(--spaceXs);
  border-radius: var(--radiusPill);
  background: var(--colorFill);
}

.tab {
  min-height: var(--controlMedium);
  padding: var(--spaceS) var(--spaceL);
  border-radius: var(--radiusPill);
  font-size: var(--textBody);
  font-weight: 500;
  color: var(--colorMuted);
  transition: color var(--speedNormal) ease;
}

.tab.isActive {
  background: var(--colorSurface);
  color: var(--colorInk);
  box-shadow: var(--shadowPressed);
}

.isSliding {
  position: relative;
  isolation: isolate;
}

.slideMark {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
}

.canSlide > .slideMark {
  transition: left var(--speedSlow) var(--ease), top var(--speedSlow) var(--ease), width var(--speedSlow) var(--ease), height var(--speedSlow) var(--ease);
}

[data-slider="pill"] > .slideMark {
  border-radius: var(--radiusPill);
  background: var(--colorSurface);
  box-shadow: var(--shadowPressed);
}

[data-slider="line"] > .slideMark {
  top: auto;
  bottom: 0;
  height: 2px;
  background: var(--colorBrand);
}

.isSliding > .isActive,
.isSliding > [aria-pressed="true"] {
  background-color: transparent !important;
  box-shadow: none !important;
}

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--colorBrand);
  color: var(--colorOnBrand);
  font-weight: 600;
  transition: transform var(--speedNormal) var(--ease);
}

a.avatar:hover {
  transform: scale(1.06);
}

.flag {
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  outline: 1px solid var(--colorLine);
  outline-offset: -1px;
  vertical-align: -3px;
}

.flag.isSmall {
  width: 16px;
  height: 16px;
}

.logoTile {
  display: flex;
  flex: none;
  justify-content: center;
  align-items: center;
  gap: var(--spaceXs);
  width: 64px;
  height: 64px;
  border-radius: var(--radiusSurface);
  background: var(--colorFillSoft);
}

.logoTile img {
  width: 36px;
  height: 36px;
}

.logoTile.isPair img {
  width: 26px;
  height: 26px;
}

.iconTile {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radiusSmall);
  background: var(--colorTint);
  color: var(--colorBrandText);
}

.iconTile svg {
  width: var(--iconMedium);
  height: var(--iconMedium);
}

.bar {
  display: block;
  height: 6px;
  border-radius: var(--radiusPill);
  background: var(--colorTrack);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--colorBrand);
}

.spinner {
  flex: none;
  width: 40px;
  height: 40px;
  animation: spinnerTurn 0.9s linear infinite;
}

.spinner circle {
  fill: none;
  stroke: var(--colorBrand);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 94 126;
}

.spinner.isSmall {
  width: 18px;
  height: 18px;
}

.spinner.isSmall circle {
  stroke: currentColor;
  stroke-width: 6;
}

@keyframes spinnerTurn {
  to {
    transform: rotate(360deg);
  }
}

.toastRegion {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 1200;
  width: max-content;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
}

.toast {
  padding: var(--spaceM) var(--spaceL);
  border-radius: var(--radiusSurface);
  background: var(--colorToast);
  color: var(--colorOnBrand);
  font-size: var(--textBody);
  font-weight: 500;
  box-shadow: var(--shadowMenu);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--speedNormal) ease, transform var(--speedNormal) var(--ease);
}

.toast.isShown {
  opacity: 1;
  transform: none;
}

.tipBubble {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  max-width: 240px;
  padding: var(--spaceS) var(--spaceM);
  border-radius: var(--radiusSmall);
  background: var(--colorInk);
  color: var(--colorBase);
  font-size: var(--textSmall);
  font-weight: 600;
  line-height: var(--lineSnug);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--speedFast) ease;
}

.tipBubble.isShown {
  opacity: 1;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: none;
}

::view-transition-new(root) {
  animation: pageIn var(--speedNormal) var(--ease) both;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--speedSlow) var(--ease), transform var(--speedSlow) var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.isApp .reveal {
  transition-delay: calc(var(--i, 0) * 30ms);
}

.reveal.isVisible {
  opacity: 1;
  transform: none;
}

.isThemeSwitching * {
  transition: background-color var(--speedNormal) ease, color var(--speedNormal) ease !important;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes enterUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

.mascot {
  --mascotSkin: var(--colorBrand);
  --mascotTummy: #d9d1ff;
  --mascotDark: #1d1250;
  --mascotPink: var(--colorAction);
  --mascotGold: var(--colorGold);
  --mascotWhite: #ffffff;
  --mascotDrop: #a594ff;
  display: block;
  flex: none;
  line-height: 0;
}

.mascot.onViolet {
  --mascotSkin: #cfc6ff;
  --mascotTummy: #ffffff;
}

.mascot svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.mascot svg.isCropped {
  overflow: hidden;
}

.mascotBody {
  fill: var(--mascotSkin);
}

.mascotBelly {
  fill: var(--mascotTummy);
}

.mascotBrace,
.mascotLimb,
.mascotLine,
.mascotBrow,
.mascotSpark,
.mascotGoldSpark,
.mascotQuestion,
.mascotSpine,
.mascotCoverLine {
  fill: none;
  stroke-linecap: round;
}

.mascotBrace {
  stroke: var(--colorBrand);
  stroke-width: 2.6;
}

.mascotLimb {
  stroke: var(--mascotSkin);
  stroke-width: 10;
}

.mascotLimb.isThick {
  stroke-width: 11;
}

.mascotLimb.isArm {
  stroke-width: 9;
}

.mascotSpine {
  stroke: color-mix(in srgb, var(--mascotPink) 70%, var(--mascotDark));
  stroke-width: 2;
}

.mascotCoverLine {
  stroke: var(--mascotWhite);
  stroke-width: 2.2;
}

.mascotHand {
  fill: var(--colorBrandDeep);
}

.mascotCheek,
.mascotSparkDot {
  fill: var(--mascotPink);
}

.mascotWhite {
  fill: var(--mascotWhite);
}

.mascotPupil,
.mascotMouth {
  fill: var(--mascotDark);
}

.mascotLine {
  stroke: var(--mascotDark);
  stroke-width: 3.2;
}

.mascotBrow {
  stroke: var(--mascotTummy);
  stroke-width: 3.4;
}

.mascotSpark {
  stroke: var(--mascotPink);
  stroke-width: 3;
}

.mascotQuestion {
  stroke: var(--mascotPink);
  stroke-width: 3.6;
}

.mascotCrown {
  fill: var(--mascotGold);
  stroke: var(--mascotGold);
  stroke-width: 2;
  stroke-linejoin: round;
}

.mascotGoldSpark {
  stroke: var(--mascotGold);
  stroke-width: 3;
}

.mascotDrop {
  fill: var(--mascotDrop);
}

.mascotShadow {
  fill: currentColor;
  opacity: 0.18;
}

.mascotEyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: mascotBlink 5.2s infinite;
}

.mascotGaze {
  transition: transform var(--speedFast) ease-out;
}

.mascotWaveArm {
  transform-origin: 106px 92px;
  animation: mascotWave var(--speedReveal) ease-in-out 0.6s 2;
}

.isLeaping .mascotJumper {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: mascotJump var(--speedReveal) var(--ease) both;
}

@keyframes mascotBlink {
  0%,
  94%,
  100% {
    transform: scaleY(1);
  }

  97% {
    transform: scaleY(0.08);
  }
}

@keyframes mascotWave {
  0%,
  100% {
    transform: rotate(0deg);
  }

  30% {
    transform: rotate(12deg);
  }

  65% {
    transform: rotate(-8deg);
  }
}

@keyframes mascotJump {
  0% {
    transform: translateY(26px) scale(1.06, 0.86);
  }

  45% {
    transform: translateY(-14px) scale(0.97, 1.04);
  }

  100% {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .siteHeader {
    grid-template-columns: 1fr auto;
  }

  .headerNav {
    display: none;
  }

  .headerActions .menuToggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .headerActions .btn:not(.menuToggle) {
    display: none;
  }

  .toastRegion {
    bottom: 132px;
  }
}
