/* Norware Labs: one stylesheet for every page, in the studio's identity from the approved launch preview
   ("Norware Labs — App Launch Preview", also drawn by packages/shell/src/norware.ts): the faceted mark,
   the Montserrat wordmark, navy ink, electric blue, and a light and a dark look.
   Montserrat is self-hosted (SIL OFL, licence in /assets/fonts). */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-700-normal.woff2") format("woff2");
}

:root {
  --bg: #f7f9fc;
  --glow: #e6eefa;
  --surface: #ffffff;
  --surface-2: #eef3fa;
  --ink: #0b1a33;
  --slate: #5f7590;
  --muted: #50657f;
  --line: #e1e8f2;
  --accent: #0a5fd0;
  --accent-hover: #0a4fe0;
  --on-accent: #ffffff;
  --gap: #f7f9fc;
  --button: linear-gradient(135deg, #0b6fe0 0%, #0a4fe0 100%);
  --tile: linear-gradient(145deg, #18d0f7 0%, #0b7cf0 55%, #0a4fe0 100%);
  --shadow: 0 1px 2px rgb(11 26 51 / 5%), 0 14px 36px -12px rgb(11 26 51 / 16%);
  --shadow-lift: 0 2px 4px rgb(11 26 51 / 6%), 0 22px 44px -14px rgb(11 26 51 / 24%);
  --font: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06101e;
    --glow: #0d2140;
    --surface: #0c1a2e;
    --surface-2: #10223b;
    --ink: #f2f6fc;
    --slate: #8ea3bf;
    --muted: #a3b5cc;
    --line: #1a2a42;
    --accent: #4aa8ff;
    --accent-hover: #7cc0ff;
    --on-accent: #ffffff;
    --gap: #06101e;
    --trace-2: #3a6fc0;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px -12px rgb(0 0 0 / 55%);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / 35%), 0 24px 48px -14px rgb(0 0 0 / 65%);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  font-weight: 600;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 2px solid #1780e8;
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
}

.skip:focus {
  top: 12px;
}

/* The mark and the lockup (as in the launch preview: mark, a gap, "Norware" over tracked-out "Labs") */

.mark {
  overflow: visible;
}

/* stroke is set on the facet groups too, because the animated mark draws its facets through <use> */
.mark polygon,
.mark .p {
  stroke: var(--gap);
  stroke-width: 4;
  stroke-linejoin: round;
}

.mark .stem {
  fill: none;
  stroke-width: 8;
}

.mark .node {
  fill: none;
  stroke-width: 10;
}

.lockup {
  --size: 37px;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--size) * 0.27);
  color: var(--ink);
  text-decoration: none;
}

.lockup:hover {
  color: var(--ink);
}

.lockup .mark {
  width: calc(var(--size) * 2.27);
  height: auto;
  flex: none;
}

.lockup-text {
  display: flex;
  flex-direction: column;
}

.word {
  font-weight: 700;
  font-size: var(--size);
  line-height: 1;
  letter-spacing: -0.01em;
  display: flex;
  overflow: hidden;
  padding: 0.06em 0 0.1em;
}

.word span {
  display: inline-block;
}

.labs {
  font-weight: 400;
  font-size: calc(var(--size) * 0.378);
  line-height: 1.3;
  color: var(--slate);
  letter-spacing: 0.62em;
  margin-top: 0.15em;
  white-space: nowrap;
}

/* The launch animation, unchanged from the preview: the facets build, the circuit draws, the sheen
   sweeps, the letters rise and "Labs" tracks in. It plays once when the page opens. */

.build {
  --e: cubic-bezier(0.2, 0.85, 0.25, 1);
}

.build .p { transform-box: fill-box; }
.build .pA { transform-origin: 50% 100%; animation: nw-rise 0.5s var(--e) 0.1s both; }
.build .pB { transform-origin: 0% 100%; animation: nw-unfold 0.55s var(--e) 0.28s both; }
.build .pC { transform-origin: 0% 0%; animation: nw-grow 0.45s var(--e) 0.48s both; }
.build .pE { transform-origin: 100% 0%; animation: nw-grow 0.4s var(--e) 0.58s both; }
.build .pD { transform-origin: 0% 0%; animation: nw-grow 0.45s var(--e) 0.65s both; }
.build .stem { stroke-dasharray: 140; animation: nw-draw 0.35s ease-out 0.95s both; }
.build .stem.b { animation-delay: 1.02s; }
.build .node { transform-box: fill-box; transform-origin: center; animation: nw-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 1.18s both; }
.build .node.b { animation-delay: 1.25s; }
.build .sheen { animation: nw-sheen 0.7s ease-in-out 1.15s both; }
.build .word span { animation: nw-letter 0.4s var(--e) both; animation-delay: calc(0.95s + var(--i) * 35ms); }
.build .labs { animation: nw-track 0.6s var(--e) 1.3s both; }

.sheen {
  transform: translateX(-260px);
}

@keyframes nw-rise { from { opacity: 0; transform: translateY(40px) scaleY(0.15); } }
@keyframes nw-unfold { from { opacity: 0; transform: rotate(-28deg) scale(0.35); } }
@keyframes nw-grow { from { opacity: 0; transform: scale(0); } }
@keyframes nw-draw { from { stroke-dashoffset: 140; } to { stroke-dashoffset: 0; } }
@keyframes nw-pop { from { opacity: 0; transform: scale(0); } }
@keyframes nw-sheen { from { transform: translateX(-260px) skewX(-20deg); } to { transform: translateX(520px) skewX(-20deg); } }
@keyframes nw-letter { from { transform: translateY(115%); } }
@keyframes nw-track { from { opacity: 0; letter-spacing: 1.5em; } }
@keyframes nw-fade { from { opacity: 0; transform: translateY(12px); } }

/* Header */

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: 84px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-header .lockup {
  --size: 22px;
}

.home .site-header .wrap {
  justify-content: flex-end;
}

.site-nav {
  display: flex;
  gap: 2px;
  margin-right: -12px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* Buttons and labels */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--button);
  color: var(--on-accent);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgb(10 79 224 / 60%);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  color: var(--on-accent);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgb(10 79 224 / 70%);
}

.button.quiet {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.button.quiet:hover {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--slate);
}

.eyebrow {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #18d0f7, #0b7cf0);
}

/* Home: hero, with the lockup building itself as it does on every game's launch */

.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background: radial-gradient(ellipse 70% 60% at 50% 38%, var(--glow) 0%, transparent 70%);
}

/* Two circuit traces echo the mark's stems and nodes, drawing on as the logo builds. */
.trace {
  position: absolute;
  z-index: -1;
  width: clamp(120px, 14vw, 180px);
  height: auto;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.trace.left {
  left: max(2%, calc(50% - 600px));
  top: 0;
}

.trace.right {
  right: max(2%, calc(50% - 600px));
  bottom: 12%;
}

.trace path {
  stroke-width: 2;
  stroke-dasharray: 420;
  animation: nw-trace 1s ease-out 0.9s both;
}

.trace circle {
  stroke-width: 3.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: nw-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 1.6s both;
}

.trace.left path,
.trace.left circle {
  stroke: #1a86ee;
  opacity: 0.55;
}

.trace.right path,
.trace.right circle {
  stroke: var(--trace-2, #1e3f7a);
  opacity: 0.45;
}

@keyframes nw-trace { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }

.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(8px, 4vw, 40px);
  padding-bottom: clamp(32px, 5vw, 64px);
}

.hero .lockup {
  --size: clamp(40px, 6.4vw, 60px);
}

.hero h1 {
  max-width: 17em;
  margin-top: clamp(40px, 6vw, 64px);
  font-size: clamp(34px, 5.4vw, 60px);
  animation: nw-fade 0.6s var(--e, ease) 0.5s both;
}

.lede {
  max-width: 36em;
  margin: 22px auto 0;
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--muted);
}

.hero .lede {
  animation: nw-fade 0.6s ease 0.65s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  animation: nw-fade 0.6s ease 0.8s both;
}

/* Home: sections */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section.tint {
  background: var(--surface-2);
}

.section-head {
  max-width: 44em;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section-head h2 {
  margin-top: 12px;
  font-size: clamp(30px, 4vw, 44px);
}

.section-head p:not(.eyebrow) {
  margin-top: 16px;
  font-size: 18px;
  color: var(--muted);
}

.offer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-content: start;
  gap: 6px 20px;
  padding: 30px 30px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offer li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.tile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  grid-row: span 2;
  border-radius: 15px;
  background: var(--tile);
  color: #ffffff;
  box-shadow: 0 10px 22px -10px rgb(11 124 240 / 70%);
}

.tile svg {
  width: 26px;
  height: 26px;
}

.offer h3 {
  align-self: center;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.offer p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.game img {
  width: 76px;
  height: 76px;
  border-radius: 23%;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px -8px rgb(11 26 51 / 35%);
}

.game-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.game-kind {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.game h3 {
  font-size: 22px;
}

.game-text {
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.game-status,
.game-links {
  margin-top: auto;
  padding-top: 16px;
}

.game-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}

.game-links a:hover {
  color: var(--accent);
}

.promises {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 28px;
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.promises li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 2px 12px;
}

.promises svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--accent);
  grid-row: span 2;
}

.promises strong {
  font-size: 16px;
  font-weight: 700;
}

.promises span {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* The contact band: the brand's dark look in both themes */

.band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: clamp(32px, 5vw, 60px);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(ellipse 60% 90% at 88% 20%, rgb(24 208 247 / 16%), transparent 60%),
    radial-gradient(ellipse 80% 80% at 20% 100%, #0d2140, transparent 70%),
    #06101e;
  color: #f2f6fc;
  border: 1px solid #1a2a42;
}

.band .eyebrow {
  color: #4aa8ff;
}

.band h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3.6vw, 40px);
}

.band p:not(.eyebrow) {
  margin-top: 16px;
  font-size: 18px;
  color: #a3b5cc;
}

.band .actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.band .actions a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #f2f6fc;
}

.band .mark {
  --gap: #06101e;
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 260px;
  opacity: 0.12;
  pointer-events: none;
}

/* Text pages: privacy and support */

.page-head {
  padding-top: clamp(20px, 5vw, 56px);
  padding-bottom: 8px;
}

.page-head h1 {
  font-size: clamp(36px, 5.6vw, 54px);
  margin-top: 14px;
}

.page-head .lede {
  margin: 16px 0 0;
}

.prose {
  max-width: 760px;
  padding-top: 24px;
  padding-bottom: clamp(64px, 9vw, 112px);
}

.prose h2 {
  font-size: clamp(24px, 3.2vw, 29px);
  margin-top: 56px;
  margin-bottom: 14px;
  scroll-margin-top: 24px;
}

.prose h3 {
  font-size: 18px;
  letter-spacing: -0.005em;
  line-height: 1.4;
  margin-top: 32px;
  margin-bottom: 6px;
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 14px;
}

.prose ul {
  margin: 12px 0 0;
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 8px;
}

.prose li::marker {
  color: var(--accent);
}

.updated {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.summary,
.contact-card {
  margin-top: 36px;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.summary h2 {
  margin-top: 0;
  font-size: 22px;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.contact-card p {
  flex: 1 1 280px;
  color: var(--muted);
}

.contact-card strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.prose .toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.prose .toc li + li {
  margin-top: 0;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}

.toc a:hover {
  color: var(--accent);
}

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(32px, 8vw, 96px);
  padding-bottom: clamp(80px, 12vw, 160px);
  text-align: center;
}

.not-found .mark {
  width: 120px;
  margin-bottom: 28px;
}

.not-found h1 {
  font-size: clamp(34px, 5.6vw, 54px);
  margin-top: 12px;
}

.not-found .lede {
  margin: 16px auto 32px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 32px;
  padding-bottom: 40px;
}

.site-footer .lockup {
  --size: 19px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0 -12px;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.site-footer nav a:hover {
  color: var(--ink);
}

.copyright {
  width: 100%;
  color: var(--muted);
  font-size: 14px;
}

/* Smaller screens */

@media (max-width: 1000px) {
  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promises {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .band {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .site-header .wrap {
    min-height: 64px;
  }

  .site-nav {
    width: 100%;
    margin: 0 0 0 -12px;
  }

  .home .site-nav {
    justify-content: center;
    margin: 0;
  }

  .site-nav a {
    padding: 0 10px;
  }

  .offer,
  .games,
  .promises {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 4px 16px;
    padding: 24px 22px;
  }

  .tile {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .trace {
    display: none;
  }

  .game {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 16px;
    padding: 22px;
  }

  .game img {
    width: 64px;
    height: 64px;
    margin-bottom: 0;
  }

  .game h3 {
    font-size: 20px;
  }

  .game-status,
  .game-links {
    padding-top: 10px;
  }

  .summary,
  .contact-card {
    padding: 24px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .sheen {
    display: none;
  }
}
