/* Neiro website
   Ink on warm paper, chalk on night: the interface stays quiet so colour can belong to the
   seven skills, as in the app (Core/DesignSystem/Theme.swift). */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-var.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --night: #0B0C0F;
  --night-top: #10131F;
  --night-bottom: #090B14;
  --slate: #16171C;
  --slate-2: #1D1F25;
  --chalk: #F3F3F5;
  --chalk-2: #A2A5B0;
  --chalk-3: #6A6D78;

  --paper: #F4F3EF;
  --paper-2: #EAE8E2;
  --card: #FFFFFF;
  --ink: #14151A;
  --ink-2: #5D606B;
  --ink-3: #9C9EA6;

  --gold: #F5C04A;
  --starlight: #FFF4D6;
  --ice: #9FD8EE;
  --flame: #FF8A3D;
  --correct: #34D27B;
  --wrong: #FF6369;

  --radius-card: 26px;
  --radius-tile: 18px;
  --radius-small: 12px;

  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(96px, 11vw, 168px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
}

/* Each section owns its theme; skill colours follow, tuned for light and dark as in the app. */
.night, [data-theme="night"] {
  --bg: var(--night);
  --text: var(--chalk);
  --text-2: var(--chalk-2);
  --text-3: var(--chalk-3);
  --line: rgba(255, 255, 255, .08);
  --surface: var(--slate);
  --surface-2: var(--slate-2);
  --em: #F6E6C4;
  --memory: #9479FF;
  --attention: #FF7262;
  --speed: #FFB534;
  --flexibility: #F266B3;
  --problem: #5B85FF;
  --math: #3CCB7C;
  --words: #2EC1E6;
  color-scheme: dark;
}
.paper, [data-theme="paper"] {
  --bg: var(--paper);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --text-3: var(--ink-3);
  --line: rgba(20, 21, 26, .09);
  --surface: var(--card);
  --surface-2: var(--paper-2);
  --em: #5D606B;
  --memory: #7B5CFA;
  --attention: #F25C4B;
  --speed: #F29D12;
  --flexibility: #DE4C9C;
  --problem: #3B6BF5;
  --math: #22A861;
  --words: #139FC4;
  --gold: #D69E14;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--chalk);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2.5px solid var(--problem, #5B85FF); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

section { position: relative; background: var(--bg); color: var(--text); padding-block: var(--section-y); }

/* Type ------------------------------------------------------------------------------- */

.display, h2, .h3, .demo h3, .duo-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text);
}
.display {
  font-size: clamp(46px, 6.4vw, 94px);
  line-height: .98;
  letter-spacing: -.042em;
}
h2 {
  font-size: clamp(36px, 4.7vw, 66px);
  line-height: 1.02;
  letter-spacing: -.036em;
  text-wrap: balance;
}
.h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.06; letter-spacing: -.03em; }
.display em, h2 em, .h3 em, h3 em, .promise-quote em, .lead em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.012em;
  color: var(--em);
  font-size: 1.07em;
  line-height: .9;
}
.lead em { font-size: 1.1em; line-height: 1; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--memory) 0 14.28%, var(--attention) 0 28.57%, var(--speed) 0 42.85%, var(--flexibility) 0 57.14%, var(--problem) 0 71.42%, var(--math) 0 85.71%, var(--words) 0);
}
.center .eyebrow { justify-content: center; }
.lead {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 36em;
  text-wrap: pretty;
}
.lead.small { font-size: 17px; }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); max-width: 780px; }
.section-head h2 + .lead { margin-top: 22px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }

/* Navigation ------------------------------------------------------------------------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 64px;
  color: var(--chalk);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .4s var(--ease);
}
.nav.scrolled {
  background: rgba(11, 12, 15, .7);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07);
}
.nav[data-on="paper"].scrolled {
  background: rgba(244, 243, 239, .78);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(20, 21, 26, .08);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 999px;
  opacity: .78; transition: opacity .2s, background-color .2s;
}
.nav-links a:hover { opacity: 1; background: rgba(127, 127, 127, .12); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 16px 0 13px; border-radius: 999px;
  background: var(--chalk); color: var(--ink);
  font-size: 14.5px; font-weight: 600;
  transition: transform .2s var(--ease), background-color .3s;
}
.nav-cta svg { width: 16px; height: 16px; margin-top: -2px; }
.nav-cta:hover { transform: translateY(-1px); }
.nav[data-on="paper"].scrolled .nav-cta { background: var(--ink); color: #fff; }

/* Buttons ---------------------------------------------------------------------------- */

.appstore {
  display: inline-flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 24px 0 18px; border-radius: 16px;
  background: #000; color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 14px 34px -14px rgba(0, 0, 0, .8);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.appstore svg { width: 28px; height: 28px; margin-top: -3px; }
.appstore span { display: flex; flex-direction: column; line-height: 1.05; }
.appstore small { font-size: 11.5px; font-weight: 500; letter-spacing: .01em; opacity: .92; }
.appstore strong { font-family: var(--font-text); font-size: 23px; font-weight: 600; letter-spacing: -.02em; }
.appstore:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .32), 0 18px 40px -14px rgba(0, 0, 0, .9); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16.5px; color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color .25s, box-shadow .25s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
.play-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--chalk); position: relative; flex: none;
}
.play-dot::after {
  content: ""; position: absolute; left: 10px; top: 8px;
  border-left: 8px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}

/* The app's main button: a capsule with depth, light along its top edge, a soft gloss, and a
   shadow in its own colour. */
.btn-primary {
  --c: var(--hue, var(--memory));
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 28px 0 11px; border: 0; border-radius: 999px;
  background: #fff; color: #14151A;
  font-family: var(--font-display); font-weight: 800; font-size: 17.5px; letter-spacing: -.01em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -2px 0 rgba(20, 21, 26, .08), 0 14px 30px -10px color-mix(in srgb, var(--c) 70%, transparent);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0 0 50% 0; border-radius: 999px 999px 0 0; z-index: -1;
  background: linear-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px) scale(.985); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 6px 14px -8px color-mix(in srgb, var(--c) 70%, transparent); }
.btn-disc {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--c); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-disc svg { width: 18px; height: 18px; margin-left: 2px; }

.btn-small {
  height: 38px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: var(--text);
  font-size: 14.5px; font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s, transform .15s;
}
.btn-small:hover { background: rgba(255, 255, 255, .14); }
.btn-small:active { transform: scale(.97); }
.btn-small.quiet { background: transparent; color: var(--text-2); }
.paper .btn-small { background: rgba(20, 21, 26, .05); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  padding: 5px 11px 5px 9px; border-radius: 999px;
  color: var(--c, var(--text));
  background: color-mix(in srgb, var(--c, #888) 15%, transparent);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* The phone ------------------------------------------------------------------------- */

.phone { --w: 300px; width: var(--w); flex: none; position: relative; }
.phone-frame {
  position: relative;
  padding: calc(var(--w) * .034);
  border-radius: calc(var(--w) * .165);
  background: linear-gradient(145deg, #3a3c43 0%, #1b1c21 22%, #121317 60%, #2a2b31 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .14),
    inset 0 0 0 calc(var(--w) * .012) #0c0d10,
    0 calc(var(--w) * .1) calc(var(--w) * .22) calc(var(--w) * -.06) rgba(0, 0, 0, .55),
    0 calc(var(--w) * .03) calc(var(--w) * .06) rgba(0, 0, 0, .25);
}
.phone-frame::before, .phone-frame::after {
  /* Side buttons. */
  content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2b2c31;
}
.phone-frame::before { left: -2px; top: 20%; height: 7%; box-shadow: 0 calc(var(--w) * .2) 0 #2b2c31, 0 calc(var(--w) * .34) 0 #2b2c31; }
.phone-frame::after { right: -2px; top: 27%; height: 11%; }
.phone-screen {
  position: relative; overflow: hidden;
  aspect-ratio: 948 / 2052;
  border-radius: calc(var(--w) * .133);
  background: #0b0c0f;
  transform: translateZ(0);
}
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-island {
  position: absolute; left: 50%; top: calc(var(--w) * .058);
  width: calc(var(--w) * .3); height: calc(var(--w) * .088);
  transform: translateX(-50%);
  background: #000; border-radius: 999px;
}
.paper .phone-frame {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .14),
    inset 0 0 0 calc(var(--w) * .012) #0c0d10,
    0 calc(var(--w) * .12) calc(var(--w) * .2) calc(var(--w) * -.08) rgba(20, 21, 26, .38),
    0 calc(var(--w) * .02) calc(var(--w) * .04) rgba(20, 21, 26, .12);
}

/* Hero -------------------------------------------------------------------------------- */

.hero {
  padding-top: clamp(112px, 13vw, 150px);
  padding-bottom: 56px;
  overflow: hidden;
  min-height: min(100svh, 1040px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.hero-sky::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/stars.svg") center / cover no-repeat;
  opacity: .55;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .2; }
.glow-a { width: 520px; height: 520px; left: 48%; top: -180px; background: #FFB534; }
.glow-b { width: 460px; height: 460px; right: -160px; top: 120px; background: #FF7262; opacity: .16; }
.glow-c { width: 520px; height: 520px; left: 58%; bottom: -240px; background: #9479FF; opacity: .22; }

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: 40px;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--chalk-2);
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line);
  margin-bottom: 28px;
}
.spectrum-dots { display: inline-flex; gap: 3px; }
.spectrum-dots i { width: 6px; height: 6px; border-radius: 50%; }
.spectrum-dots i:nth-child(1) { background: var(--memory); }
.spectrum-dots i:nth-child(2) { background: var(--attention); }
.spectrum-dots i:nth-child(3) { background: var(--speed); }
.spectrum-dots i:nth-child(4) { background: var(--flexibility); }
.spectrum-dots i:nth-child(5) { background: var(--problem); }
.spectrum-dots i:nth-child(6) { background: var(--math); }
.spectrum-dots i:nth-child(7) { background: var(--words); }
.hero h1 { max-width: 9.6em; }
.hero .lead { margin-top: 26px; max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 38px; }
.cta-row.center { justify-content: center; }
.hero-facts { display: flex; gap: clamp(22px, 3.4vw, 44px); margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); max-width: 480px; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.03em; }
.hero-facts span { font-size: 14px; color: var(--text-2); margin-top: 6px; }

.hero-visual { position: relative; height: clamp(560px, 52vw, 700px); display: grid; place-items: center; }
.hero-neuron {
  position: absolute; left: 50%; top: 50%;
  width: clamp(700px, 74vw, 960px); aspect-ratio: 1;
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: .95;
  animation: breathe 8.4s ease-in-out infinite alternate;
}
@keyframes breathe { from { transform: translate(-50%, -50%) scale(.994); } to { transform: translate(-50%, -50%) scale(1.012); } }
.hero-phone { --w: clamp(250px, 23vw, 312px); z-index: 2; }
.hero-phone.in .phone-frame { animation: float 7s ease-in-out 1.2s infinite alternate; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-10px); } }

.hero-toasts { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.toast {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 9px; border-radius: 16px;
  background: rgba(22, 23, 28, .72);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 12px 30px -10px rgba(0, 0, 0, .6);
  font-size: 13px; line-height: 1.25; white-space: nowrap;
  opacity: 0; transform: translateY(8px) scale(.96);
  transition: opacity .5s var(--ease), transform .6s var(--spring);
}
.toast.show { opacity: 1; transform: none; }
.toast i { width: 30px; height: 30px; border-radius: 10px; background: var(--c); display: grid; place-items: center; flex: none; box-shadow: 0 0 18px -2px var(--c); }
.toast i::after { content: "+1"; font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: 12px; color: #fff; }
.toast b { display: block; font-weight: 600; color: var(--chalk); }
.toast span { color: var(--chalk-2); }

.skill-ribbon {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  margin-top: clamp(40px, 6vw, 72px); padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 15px; font-weight: 600; color: var(--chalk-2);
}
.skill-ribbon li { display: inline-flex; align-items: center; gap: 9px; }
.skill-ribbon li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }

/* A day in Neiro ------------------------------------------------------------------- */

.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); }
.story-step {
  min-height: 72vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 40px;
  opacity: .32;
  transition: opacity .6s var(--ease);
}
.story-step.is-active { opacity: 1; }
.story-step:first-child { min-height: 56vh; justify-content: flex-start; padding-top: 12vh; }
.story-step:last-child { min-height: 64vh; }
.step-num {
  font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .04em;
  color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 30px; border-radius: 999px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line);
  margin-bottom: 22px;
}
.story-step h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 2.8vw, 38px); line-height: 1.08; letter-spacing: -.03em;
  max-width: 14em; text-wrap: balance;
}
.story-step p { margin-top: 18px; font-size: 18.5px; color: var(--text-2); max-width: 31em; }
.story-step .step-aside {
  margin-top: 22px; font-size: 15.5px; color: var(--text);
  display: flex; gap: 12px; align-items: baseline;
  padding: 14px 18px; border-radius: 16px; background: var(--card);
  box-shadow: 0 1px 2px rgba(20, 21, 26, .04), 0 10px 24px -16px rgba(20, 21, 26, .25);
}
.story-step .step-aside::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--speed); transform: translateY(-1px); }
.story-step:nth-child(2) .step-aside::before { background: var(--ice); box-shadow: 0 0 0 2px #6fbfdc inset; }
.story-step:nth-child(3) .step-aside::before { background: var(--flame); }
.phone-inline { display: none; }
.story-stage { position: relative; }
.story-sticky { position: sticky; top: calc(50vh - 320px); display: flex; align-items: center; justify-content: center; gap: 28px; padding-block: 20px; }
.story-phone { --w: min(300px, 26vw); }
.story-phone img { opacity: 0; transform: scale(1.03); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.story-phone img.is-active { opacity: 1; transform: none; }
.story-progress { display: flex; flex-direction: column; gap: 10px; }
.story-progress i { width: 6px; height: 6px; border-radius: 99px; background: var(--ink-3); opacity: .4; transition: height .4s var(--ease), opacity .4s, background-color .4s; }
.story-progress i.is-active { height: 26px; opacity: 1; background: var(--ink); }
.lang-note { margin-top: 40px; font-size: 14px; color: var(--text-3); text-align: center; }

/* Games wall -------------------------------------------------------------------------- */

.games { background: radial-gradient(1200px 500px at 50% 0%, rgba(148, 121, 255, .07), transparent 70%), var(--night); }
.wall { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.wall-col { display: flex; flex-direction: column; gap: 12px; }
.wall-head { padding: 4px 4px 8px; min-height: 76px; }
.wall-head b {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -.01em;
}
.wall-head b::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); flex: none; }
.wall-head span { display: block; font-size: 12.5px; line-height: 1.35; color: var(--text-3); margin-top: 5px; }
.wall-row { display: flex; flex-direction: column; gap: 12px; }
.tile {
  position: relative; display: block; width: 100%; padding: 0; border: 0; text-align: left; cursor: pointer;
  border-radius: var(--radius-tile); overflow: hidden;
  background: var(--slate);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile .art { width: 100%; aspect-ratio: 4 / 3; height: auto; transition: transform .6s var(--ease); }
.tile-body { display: block; padding: 10px 12px 12px; }
.tile-name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 15.5px; letter-spacing: -.01em; color: var(--chalk); }
.tile-meta { display: block; font-size: 12px; color: var(--chalk-3); margin-top: 2px; }
.tile-badge {
  position: absolute; top: 8px; right: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 10.5px; letter-spacing: .04em;
  padding: 3px 7px; border-radius: 999px;
  background: rgba(10, 11, 16, .45); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tile-badge.start { left: 8px; right: auto; }
.tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 2px var(--c), 0 18px 36px -16px var(--c); }
.tile:hover .art { transform: scale(1.05); }
.tile:focus-visible { outline: 2.5px solid var(--c); outline-offset: 3px; }
.wall-note { text-align: center; color: var(--text-2); margin: 44px auto 0; max-width: 40em; font-size: 16px; }
.wall-hint { color: var(--text-3); }

/* Game dialog */
.game-dialog {
  width: min(820px, calc(100% - 32px)); max-height: calc(100% - 32px);
  padding: 0; border: 0; border-radius: 30px;
  background: var(--slate); color: var(--chalk);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08);
  overflow: auto;
}
.game-dialog::backdrop { background: rgba(5, 6, 10, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.game-dialog[open] { animation: dialog-in .45s var(--spring); }
.game-dialog[open]::backdrop { animation: fade-in .3s ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
.gd-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
/* The art keeps its proportions and sits on the floor of a panel in the same colour. */
.gd-art { position: relative; min-height: 300px; background: var(--c); display: flex; align-items: flex-end; overflow: hidden; }
.gd-art .art { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.gd-body { padding: 36px 36px 30px; }
.gd-skill { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.gd-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -.035em; line-height: 1.05; margin-top: 8px; }
.gd-tagline { font-size: 19px; margin-top: 10px; color: var(--chalk); }
.gd-trains { margin-top: 16px; color: var(--chalk-2); font-size: 16px; }
.gd-meta { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 22px; border-top: 1px solid var(--line); }
.gd-meta div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.gd-meta dt { color: var(--chalk-3); }
.gd-meta dd { text-align: right; font-weight: 600; }
.gd-nav { display: flex; justify-content: space-between; margin-top: 22px; }
.gd-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(10, 11, 16, .45); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.gd-close svg { width: 18px; height: 18px; }
.gd-inner { position: relative; }

/* Craft row */
.craft { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; margin-top: clamp(96px, 11vw, 150px); }
.craft-phones { position: relative; height: clamp(520px, 50vw, 640px); }
.craft-phones .phone { --w: clamp(220px, 21vw, 280px); position: absolute; top: 50%; }
.craft-back { left: 6%; transform: translateY(-54%) rotate(-7deg); opacity: .9; }
.craft-front { left: 40%; transform: translateY(-46%) rotate(4deg); }
.craft-list { margin-top: 30px; border-top: 1px solid var(--line); }
.craft-list li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 170px 1fr; gap: 20px; }
.craft-list strong { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.craft-list span { color: var(--text-2); font-size: 16px; }

/* Try it ------------------------------------------------------------------------------ */

.try { padding-top: 0; }
.demos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.demo {
  background: var(--slate); border-radius: 30px; padding: 26px;
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column;
}
.demo-head { margin-bottom: 20px; }
.demo-head h3 { font-size: 30px; letter-spacing: -.03em; line-height: 1.1; margin-top: 12px; }
.demo-head p { color: var(--text-2); margin-top: 4px; }
.night-well {
  position: relative; overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(var(--night-top), var(--night-bottom));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 20px 40px -20px rgba(0, 0, 0, .6);
}
.board { padding: 16px 18px 18px; display: flex; flex-direction: column; min-height: 520px; flex: 1; }
.hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; }
.hud > div:last-child { text-align: right; }
.hud small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--chalk-3); }
.hud b { font-family: var(--font-display); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.hud-mid { text-align: center; }
.diff { display: inline-flex; align-items: center; gap: 8px; }
.diff i { width: 70px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; }
.diff i::after { content: ""; position: absolute; inset: 0; width: var(--p, 8%); background: var(--hue); border-radius: 5px; transition: width .5s var(--spring); }
.diff.up b { animation: pop .5s var(--spring); color: var(--correct); }
.diff.down b { animation: pop .5s var(--spring); color: var(--wrong); }
@keyframes pop { 50% { transform: scale(1.35); } }
.board-msg { text-align: center; font-size: 14.5px; color: var(--chalk-2); margin-top: auto; padding-top: 14px; min-height: 2.6em; }
.board-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 24px;
  background: radial-gradient(closest-side, rgba(9, 11, 20, .5), rgba(9, 11, 20, .78));
  -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px);
  transition: opacity .35s var(--ease), visibility .35s;
}
.board-overlay.hidden { opacity: 0; visibility: hidden; }
.result-score { font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -.04em; text-shadow: 0 0 40px var(--hue-glow); }
.result-line { color: var(--chalk-2); max-width: 22em; }
.result-line b { color: var(--chalk); }

/* Constellation board */
.stars-grid {
  --n: 3;
  display: grid; grid-template-columns: repeat(var(--n), 1fr);
  width: min(100%, 360px); aspect-ratio: 1; margin: 22px auto 0;
  transition: transform .7s var(--ease);
}
.star-cell { position: relative; border: 0; background: none; padding: 0; cursor: pointer; }
.star-cell::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%;
  transform: translate(-50%, -50%); background: #4A5070;
  transition: all .25s var(--ease);
}
.star-cell:hover::before { background: #8088a8; }
.star-cell.lit::before, .star-cell.found::before {
  width: 18px; height: 18px; background: #fff;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--hue-glow) 30%, transparent), 0 0 26px 6px var(--hue-glow);
}
.star-cell.found::before { width: 14px; height: 14px; }
.star-cell.missed::before { width: 16px; height: 16px; background: transparent; box-shadow: inset 0 0 0 2px var(--hue-glow); opacity: .9; }
.star-cell.wrong::before { width: 18px; height: 18px; background: transparent; box-shadow: inset 0 0 0 2.5px var(--wrong); }
.stars-grid.recall .star-cell::before { background: #5B6283; }
.stars-grid.disabled { pointer-events: none; }
.stars-lines { position: absolute; inset: 0; pointer-events: none; }

/* Ink board */
.ink-stage { position: relative; flex: 1; display: grid; place-items: center; min-height: 200px; }
.ink-deadline { position: absolute; top: 14px; left: 50%; width: 120px; height: 4px; margin-left: -60px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; opacity: 0; transition: opacity .3s; }
.ink-deadline.on { opacity: 1; }
.ink-deadline i { position: absolute; inset: 0; background: var(--chalk-2); transform-origin: left; }
.ink-word {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 5vw, 64px); letter-spacing: .02em;
  padding: 6px 22px; border-radius: 18px; min-height: 1.4em;
  transition: transform .2s var(--ease), opacity .2s;
}
.ink-word.framed { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .82); }
.ink-word.out { opacity: 0; transform: scale(.94); }
.ink-swatches { display: grid; grid-template-columns: repeat(var(--k, 3), 1fr); gap: 10px; margin-top: 12px; }
.swatch {
  height: 60px; border: 0; border-radius: 18px; cursor: pointer;
  background: var(--sw); color: #10131F;
  font-weight: 700; font-size: 13px; letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(0, 0, 0, .14), 0 10px 20px -12px var(--sw);
  transition: transform .15s var(--ease), box-shadow .2s;
}
.swatch:active { transform: scale(.96); }
.swatch.right { box-shadow: 0 0 0 3px #fff, 0 0 26px var(--sw); }
.swatch.wrong { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.fineprint { text-align: center; color: var(--text-3); font-size: 14.5px; margin: 32px auto 0; max-width: 46em; }

/* How it works --------------------------------------------------------------------- */

.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 72px); align-items: center; }
.stair-card {
  background: var(--card); border-radius: 30px; padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 1px 2px rgba(20, 21, 26, .04), 0 24px 60px -30px rgba(20, 21, 26, .25);
}
.stair-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.stair-label { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.stair-sub { color: var(--text-2); font-size: 15px; margin-top: 3px; }
.stair-legend { display: flex; gap: 16px; font-size: 13.5px; color: var(--text-2); }
.stair-legend li { display: flex; align-items: center; gap: 7px; }
.stair-legend i { width: 9px; height: 9px; border-radius: 50%; }
.stair-legend .ok { background: #16A34A; }
.stair-legend .no { background: #E5484D; }
.stair-chart { width: 100%; height: auto; margin-top: 18px; overflow: visible; }
.stair-chart .grid line { stroke: rgba(20, 21, 26, .07); }
.stair-chart .axis text { font-size: 12px; fill: var(--ink-3); font-family: var(--font-text); }
.stair-chart .step-line { fill: none; stroke: var(--flexibility); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.stair-chart .step-area { fill: color-mix(in srgb, var(--flexibility) 10%, transparent); }
.stair-chart .dot.ok { fill: #16A34A; }
.stair-chart .dot.no { fill: #E5484D; }
.stair-chart.drawn .step-line { animation: draw 2.2s var(--ease) forwards; }
@keyframes draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
.stair-foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15.5px; }
.stair-foot strong { color: var(--text); }
.how-phone { --w: clamp(240px, 22vw, 300px); }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(56px, 7vw, 96px); }
.pillar {
  background: var(--card); border-radius: var(--radius-card); padding: 28px;
  box-shadow: 0 1px 2px rgba(20, 21, 26, .04), 0 16px 40px -28px rgba(20, 21, 26, .3);
}
.pillar-icon, .f-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent);
  margin-bottom: 20px;
}
.pillar-icon svg, .f-icon svg { width: 24px; height: 24px; }
.pillar h3, .feature h3 { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; line-height: 1.2; }
.pillar p { color: var(--text-2); margin-top: 10px; font-size: 16px; }

.research { margin-top: 56px; text-align: center; }
.research-title { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.research-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.research-list li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 14px; color: var(--text-2);
}
.research-list li b { color: var(--text); font-weight: 600; }
.research-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }

/* Neuron -------------------------------------------------------------------------------- */

.neuron-sec { overflow: hidden; background: radial-gradient(900px 700px at 72% 50%, rgba(91, 133, 255, .08), transparent 70%), var(--night); }
.neuron-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.neuron-copy h2 { max-width: 9em; }
.neuron-copy .lead { margin-top: 22px; }
.neuron-stage { position: relative; }
.neuron-stage canvas { width: 100%; aspect-ratio: 1; animation: breathe-plain 8.4s ease-in-out infinite alternate; }
@keyframes breathe-plain { from { transform: scale(.994); } to { transform: scale(1.012); } }
.grow-panel { margin-top: 34px; background: var(--slate); border-radius: 24px; padding: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.grow-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.grow-head p { font-size: 14px; font-weight: 600; color: var(--text-2); }
.grow-count b { font-family: var(--font-display); font-weight: 800; color: var(--text); font-size: 18px; font-variant-numeric: tabular-nums; }
.grow-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.grow-btn {
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 12px; border: 0; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, .05); color: var(--chalk);
  font-size: 13.5px; font-weight: 600; text-align: left;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s, transform .12s, box-shadow .2s;
}
.grow-btn::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 10px var(--c); }
.grow-btn:hover { background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.grow-btn:active { transform: scale(.96); }
.grow-btn span { white-space: nowrap; }
.grow-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.neuron-note { margin-top: 18px; font-size: 14px; color: var(--text-3); max-width: 34em; }

/* Sky ---------------------------------------------------------------------------------- */

.sky { padding-top: 0; }
.sky-control {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
  max-width: 640px; margin: 0 auto 40px;
  padding: 16px 22px; border-radius: 999px; background: var(--slate); box-shadow: inset 0 0 0 1px var(--line);
}
.sky-control label { font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.sky-control output { font-family: var(--font-display); font-weight: 800; font-size: 22px; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; color: var(--starlight); }
.sky-status { grid-column: 1 / -1; text-align: center; font-size: 14px; color: var(--chalk-2); margin-top: -4px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold) var(--fill, 12%), rgba(255, 255, 255, .12) var(--fill, 12%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--gold); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--starlight); box-shadow: 0 0 0 5px rgba(245, 192, 74, .2), 0 0 18px rgba(245, 192, 74, .7); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--starlight); box-shadow: 0 0 0 5px rgba(245, 192, 74, .2), 0 0 18px rgba(245, 192, 74, .7); }

.sky-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sky-card {
  position: relative; border-radius: 22px; padding: 14px 16px 16px;
  background: linear-gradient(var(--night-top), var(--night-bottom));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.sky-card svg { width: 100%; aspect-ratio: 5 / 4; height: auto; overflow: visible; }
.sky-card .line { stroke: var(--starlight); stroke-width: 1.2; stroke-linecap: round; opacity: 0; transition: opacity .6s var(--ease); vector-effect: non-scaling-stroke; }
.sky-card .line.on { opacity: .55; }
.sky-card .halo { fill: var(--gold); opacity: 0; transition: opacity .6s var(--ease); }
.sky-card .halo.on { opacity: .22; }
.sky-card .star { fill: #4A5070; transition: fill .5s var(--ease); }
.sky-card .star.on { fill: var(--starlight); }
.sky-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -.01em; margin-top: 6px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.sky-card h3 small { font-family: var(--font-text); font-weight: 500; font-size: 12.5px; color: var(--chalk-3); white-space: nowrap; }
.sky-card p { font-size: 12.5px; line-height: 1.4; color: var(--chalk-2); margin-top: 6px; min-height: 3.5em; }
.sky-card.current { box-shadow: inset 0 0 0 1px rgba(245, 192, 74, .55), 0 0 40px -12px rgba(245, 192, 74, .5); }
.sky-card.current h3 small { color: var(--gold); }
.sky-card.done h3 small { color: var(--starlight); }
.sky-card.future { opacity: .62; }
.sky-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.sky-note { display: flex; gap: 16px; padding: 22px; border-radius: 22px; background: var(--slate); box-shadow: inset 0 0 0 1px var(--line); }
.sky-note h3 { font-family: var(--font-display); font-weight: 800; font-size: 17.5px; letter-spacing: -.01em; }
.sky-note p { color: var(--text-2); font-size: 15px; margin-top: 4px; }
.note-icon { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; }
.note-icon svg { width: 22px; height: 22px; }
.note-icon.flame { color: var(--flame); background: rgba(255, 138, 61, .14); }
.note-icon.ice { color: var(--ice); background: rgba(159, 216, 238, .12); }
.note-icon.gold { color: var(--gold); background: rgba(245, 192, 74, .13); }

/* Puzzle and duels ----------------------------------------------------------------- */

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.duo-card {
  --text: var(--chalk); --text-2: var(--chalk-2); --text-3: var(--chalk-3); --line: rgba(255, 255, 255, .08); --em: #F6E6C4;
  position: relative; overflow: hidden;
  border-radius: 34px; padding: clamp(26px, 3.4vw, 42px);
  background: var(--night); color: var(--chalk);
  display: flex; flex-direction: column; gap: 32px;
  box-shadow: 0 40px 80px -40px rgba(20, 21, 26, .55);
}
.duo-card h3 { font-size: clamp(30px, 3vw, 42px); letter-spacing: -.035em; line-height: 1.05; margin-top: 16px; color: var(--chalk); }
.duo-copy > p:not(.chip):not(.ladder-cap) { color: var(--chalk-2); margin-top: 14px; font-size: 16.5px; }
.chip-ice { --c: var(--ice); }
.chip-pink { --c: #F266B3; }
.puzzle-card { background: radial-gradient(600px 300px at 80% 100%, rgba(159, 216, 238, .1), transparent 70%), var(--night); }
.duel-card { background: radial-gradient(600px 360px at 50% 110%, rgba(242, 102, 179, .16), transparent 70%), var(--night); padding-bottom: 0; }
.week-ladder { display: flex; align-items: flex-end; gap: 8px; margin-top: 26px; height: 92px; }
.week-ladder li { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.week-ladder b {
  width: 100%; height: calc(var(--n) * 9px + 6px);
  display: grid; place-items: start center; padding-top: 4px;
  border-radius: 8px; font-family: var(--font-display); font-weight: 800; font-size: 13px; color: #0b2430;
  background: var(--ice); opacity: calc(.45 + var(--n) * .06);
}
.week-ladder span { font-size: 11.5px; color: var(--chalk-3); font-weight: 600; }
.ladder-cap { font-size: 13px; color: var(--chalk-3); margin-top: 10px; }

.glide { border-radius: 24px; padding: 16px; background: linear-gradient(var(--night-top), var(--night-bottom)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); margin-top: auto; }
.glide-head { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--chalk-2); font-weight: 600; margin-bottom: 12px; }
.glide-moves b { color: var(--chalk); font-family: var(--font-display); font-weight: 800; }
.glide-board {
  --cols: 6; --rows: 6;
  position: relative; display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: 5px; width: min(100%, 330px); margin: 0 auto;
  touch-action: none; outline: none; border-radius: 14px;
}
.glide-board:focus-visible { box-shadow: 0 0 0 2.5px var(--ice); }
.g-cell { aspect-ratio: 1; border-radius: 9px; background: rgba(159, 216, 238, .06); box-shadow: inset 0 0 0 1px rgba(159, 216, 238, .07); position: relative; }
.g-cell.rock { background: radial-gradient(circle at 35% 30%, #59607e, #2c3148 70%); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35), 0 2px 4px rgba(0, 0, 0, .4); border-radius: 46%; transform: scale(.82); }
.g-cell.goal::after {
  content: ""; position: absolute; inset: 18%;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 6px rgba(245, 192, 74, .8));
  opacity: .95;
}
.g-orb {
  position: absolute; left: 0; top: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--ice) 55%, #5aa8c8);
  box-shadow: 0 0 18px rgba(159, 216, 238, .8), 0 0 0 4px rgba(159, 216, 238, .15);
  transition: transform .32s cubic-bezier(.3, .1, .3, 1);
  pointer-events: none;
}
.g-orb.won { animation: orb-win 1s var(--ease); }
@keyframes orb-win { 40% { box-shadow: 0 0 40px 10px rgba(245, 192, 74, .9), 0 0 0 4px rgba(245, 192, 74, .4); } }
.glide-pad { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.glide-pad button {
  width: 44px; height: 40px; border: 0; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, .07); color: var(--chalk); font-size: 17px; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.glide-pad button:hover { background: rgba(255, 255, 255, .13); }
.glide-pad .glide-reset { margin-left: 8px; color: var(--chalk-2); }
.glide-msg { text-align: center; font-size: 13.5px; color: var(--chalk-2); margin-top: 10px; min-height: 1.5em; }

.ticks { margin-top: 20px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-size: 15.5px; color: var(--chalk); }
.ticks li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: rgba(242, 102, 179, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='%23F266B3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.duel-phone { --w: clamp(250px, 24vw, 330px); margin: auto auto 0; margin-bottom: calc(var(--w) * -.22); }

/* Details ------------------------------------------------------------------------------ */

.details { padding-top: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature {
  background: var(--card); border-radius: 22px; padding: 26px;
  box-shadow: 0 1px 2px rgba(20, 21, 26, .04), 0 14px 34px -26px rgba(20, 21, 26, .3);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(20, 21, 26, .04), 0 22px 44px -26px rgba(20, 21, 26, .38); }
.feature .f-icon { margin-bottom: 18px; }
.feature p { color: var(--text-2); margin-top: 8px; font-size: 15.5px; }

/* What to expect ------------------------------------------------------------------- */

.promise { padding-top: 0; }
.promise-card { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); }
.promise-quote {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -.035em;
  max-width: 15em; text-wrap: balance;
}
.promise-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); margin-top: clamp(36px, 5vw, 64px); max-width: 980px; }
.promise-cols h3 { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.promise-cols p { color: var(--text-2); margin-top: 10px; font-size: 17px; }

/* FAQ ---------------------------------------------------------------------------------- */

.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); }
.faq .section-head { margin-bottom: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 18.5px; font-weight: 600; letter-spacing: -.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: rgba(20, 21, 26, .05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 10v10M10 15h10' stroke='%2314151A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  transition: transform .35s var(--ease), background-color .2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: rgba(20, 21, 26, .09); }
.faq-list details p { color: var(--text-2); padding: 0 48px 24px 0; font-size: 16.5px; }
.faq-list .faq-body { overflow: hidden; }

/* Final call --------------------------------------------------------------------------- */

.final { overflow: hidden; text-align: center; padding-block: clamp(120px, 14vw, 200px); }
.final-neuron {
  position: absolute; left: 50%; top: 50%; width: min(1100px, 140vw); aspect-ratio: 1;
  max-width: none;
  transform: translate(-50%, -50%); opacity: .5; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, rgba(0, 0, 0, .16) 26%, #000 60%, transparent 100%);
  mask-image: radial-gradient(closest-side, rgba(0, 0, 0, .16) 26%, #000 60%, transparent 100%);
}
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.final-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 24px 60px -16px rgba(148, 121, 255, .6); margin-bottom: 34px; }
.final h2 { max-width: 10em; }
.final .lead { margin: 22px auto 0; text-align: center; }
.final-meta { margin-top: 28px; color: var(--text-3); font-size: 14.5px; }

.footer { padding: 40px 0 48px; background: var(--night); color: var(--chalk); border-top: 1px solid rgba(255, 255, 255, .07); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; font-size: 14.5px; color: var(--chalk-2); }
.footer-links a:hover { color: var(--chalk); }
.footer-small { grid-column: 1 / -1; font-size: 12.5px; color: var(--chalk-3); line-height: 1.6; }
.footer .brand img { border-radius: 8px; }

/* Reveal on scroll -------------------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: opacity .4s linear; }
  .hero-neuron, .neuron-stage canvas, .hero-phone.in .phone-frame { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Responsive ------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .wall { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .wall-col { min-width: 0; }
  .wall-col { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: start; }
  .wall-head { min-height: 0; padding-top: 10px; }
  .wall-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .sky-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .craft-list li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav .lang-switch { margin-left: auto; }
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero h1 { margin-inline: auto; }
  .hero .lead { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .hero-facts { justify-content: center; }
  .hero-visual { height: clamp(520px, 120vw, 640px); }
  .hero-neuron { width: clamp(560px, 150vw, 820px); }

  .story { grid-template-columns: 1fr; }
  .story-stage { display: none; }
  .story-step, .story-step:first-child, .story-step:last-child { min-height: 0; opacity: 1; padding: 0 0 72px; justify-content: flex-start; }
  .story-step:last-child { padding-bottom: 0; }
  .phone-inline { display: block; --w: min(250px, 64vw); margin: 40px auto 0; }

  .craft { grid-template-columns: 1fr; }
  .craft-phones { height: clamp(460px, 100vw, 600px); max-width: 560px; width: 100%; margin: 0 auto; }

  .demos { grid-template-columns: 1fr; max-width: 580px; margin-inline: auto; }

  .how-grid { grid-template-columns: 1fr; }
  .how-phone { margin: 0 auto; }
  .pillars { grid-template-columns: 1fr; max-width: 620px; }

  .neuron-grid { grid-template-columns: 1fr; }
  .neuron-stage { order: -1; max-width: 560px; width: 100%; margin: 0 auto; }

  .sky-notes { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .duo { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; }
  .promise-cols { grid-template-columns: 1fr; }
  .gd-inner { grid-template-columns: 1fr; }
  .gd-art { min-height: 0; }
  .gd-art .art { aspect-ratio: 16 / 9; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .wall-col { display: block; }
  .wall-head { padding: 0 0 10px; }
  .wall-head span { display: inline; margin-left: 6px; }
  .wall-head b { display: inline-flex; }
  .wall-row {
    display: flex; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px;
    scrollbar-width: none;
  }
  .wall-row::-webkit-scrollbar { display: none; }
  .wall-row .tile { flex: 0 0 152px; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .sky-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sky-card { padding: 12px; }
  .sky-card p { display: none; }
  .sky-control { border-radius: 24px; grid-template-columns: minmax(0, 1fr) auto; padding: 14px 18px; }
  .sky-control label { grid-column: 1 / -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .board { min-height: 480px; padding: 14px; }
  .demo { padding: 18px; border-radius: 26px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .gd-body { padding: 26px 22px 22px; }
  .gd-body h3 { font-size: 32px; }
  .faq-list details p { padding-right: 0; }
  .hero-facts strong { font-size: 30px; }
  .appstore { height: 54px; }
  .btn-ghost { height: 54px; }
  .duo-card { border-radius: 28px; }
}

@media (max-width: 400px) {
  .hero-facts { gap: 18px; }
  .craft-phones .phone { --w: 190px; }
  .ink-swatches { gap: 8px; }
}


/* On wide screens every skill's header shares one height, so the tiles line up across the
   wall in any language. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1101px) {
    .wall { grid-template-rows: auto auto; row-gap: 12px; }
    .wall-col { display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: 12px; }
    .wall-head { min-height: 0; }
  }
}

/* Languages ---------------------------------------------------------------------------- */

@font-face {
  font-family: "Noto Sans Georgian";
  src: url("../fonts/noto-sans-georgian.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}
@font-face {
  font-family: "Noto Serif Georgian";
  src: url("../fonts/noto-serif-georgian.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}

/* Georgian waits for its words before the page shows, so English never flashes. */
.lang-pending body { visibility: hidden; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; flex: none;
  padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: background-color .3s, box-shadow .3s;
}
.lang-switch button {
  min-width: 38px; height: 30px; padding: 0 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: inherit; opacity: .72;
  font: 600 13px/1 var(--font-text);
  transition: background-color .25s var(--ease), color .25s, opacity .2s;
}
.lang-switch button:hover { opacity: 1; }
.lang-switch button[lang="ka"] { font-family: "Noto Sans Georgian", var(--font-text); font-size: 13.5px; }
.lang-switch button[aria-pressed="true"] { background: var(--chalk); color: var(--ink); opacity: 1; }
.nav .lang-switch { margin-left: 4px; }
.nav[data-on="paper"].scrolled .lang-switch { background: rgba(20, 21, 26, .05); box-shadow: inset 0 0 0 1px rgba(20, 21, 26, .1); }
.nav[data-on="paper"].scrolled .lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lang-switch.small button { height: 26px; min-width: 34px; font-size: 12px; }
.footer-links { align-items: center; }

.inline-link { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.inline-link:hover { text-decoration-color: currentColor; }

/* Georgian, set the way the app sets it: the system's Georgian face where there is one,
   always at zero tracking, never in capitals, and no slanted accent (Georgian has no italic). */
html[lang="ka"] {
  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Nunito", "Noto Sans Georgian", sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "Inter", "Noto Sans Georgian", "Segoe UI", Roboto, sans-serif;
  --font-serif: "Noto Serif Georgian", "Instrument Serif", Georgia, serif;
}
html[lang="ka"] body *:not([lang="en"]) { letter-spacing: 0 !important; }
html[lang="ka"] .eyebrow, html[lang="ka"] .research-title, html[lang="ka"] .gd-skill, html[lang="ka"] .hud small { text-transform: none; }
html[lang="ka"] .eyebrow { font-size: 14px; }
html[lang="ka"] .display em, html[lang="ka"] h2 em, html[lang="ka"] .h3 em, html[lang="ka"] h3 em, html[lang="ka"] .promise-quote em, html[lang="ka"] .lead em {
  font-style: normal; font-weight: 500; font-size: 1em; line-height: inherit;
}
html[lang="ka"] .display { font-size: clamp(38px, 5vw, 72px); line-height: 1.12; }
html[lang="ka"] h2 { font-size: clamp(30px, 3.7vw, 52px); line-height: 1.16; }
html[lang="ka"] .h3 { font-size: clamp(25px, 2.5vw, 34px); line-height: 1.2; }
html[lang="ka"] .promise-quote { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.2; }
html[lang="ka"] .story-step h3, html[lang="ka"] .duo-card h3 { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.2; }
html[lang="ka"] .gd-body h3 { font-size: 34px; line-height: 1.15; }
html[lang="ka"] .lead { font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.65; }
html[lang="ka"] .hero h1 { max-width: 11em; }
html[lang="ka"] .hero-facts span, html[lang="ka"] .tile-meta { line-height: 1.35; }
html[lang="ka"] .wall-head b { font-size: 15px; }
html[lang="ka"] .wall-head span { font-size: 12px; }
/* Georgian names are long single words, so they scale with the tile instead of breaking. */
.tile { container-type: inline-size; }
html[lang="ka"] .tile-name { font-size: 12px; font-size: clamp(10.5px, 7.6cqi, 13px); white-space: nowrap; overflow-wrap: normal; }
html[lang="ka"] .tile-body { padding-inline: 10px; }
.tile, .wall-row { min-width: 0; }
.tile-name { overflow-wrap: anywhere; }
html[lang="ka"] .pill { font-size: 13px; text-align: left; }
html[lang="ka"] .craft-list li { grid-template-columns: 200px 1fr; }
html[lang="ka"] .ink-word { font-size: clamp(36px, 4.2vw, 52px); }
html[lang="ka"] .btn-primary { font-size: 16px; }
html[lang="ka"] .faq-list summary { font-size: 17.5px; line-height: 1.4; }
@media (max-width: 1100px) {
  html[lang="ka"] .craft-list li { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .nav-cta { width: 38px; padding: 0; justify-content: center; }
  .nav-cta span { display: none; }
  .nav-cta svg { margin: -2px 0 0; }
}

/* Privacy policy ----------------------------------------------------------------------- */

.legal-hero { padding-top: clamp(120px, 14vw, 170px); padding-bottom: clamp(56px, 7vw, 90px); overflow: hidden; }
.legal-hero .hero-sky::before { opacity: .35; }
.legal-hero .container { position: relative; max-width: 880px; }
.legal-hero h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.04em; }
html[lang="ka"] .legal-hero h1 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.15; }
.legal-hero .lead { margin-top: 20px; }
.legal-date { margin-top: 18px; color: var(--text-3); font-size: 14.5px; }
.legal-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.legal-points li { padding: 18px 18px 20px; border-radius: 20px; background: var(--slate); box-shadow: inset 0 0 0 1px var(--line); }
.legal-points b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.legal-points span { display: block; margin-top: 4px; color: var(--text-2); font-size: 14.5px; line-height: 1.45; }
.legal-points li::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c); margin-bottom: 14px; }
.legal { padding-top: clamp(56px, 7vw, 96px); }
.legal .container { max-width: 760px; }
.legal article > section { padding: 30px 0; border-top: 1px solid var(--line); }
.legal article > section:first-child { border-top: 0; padding-top: 0; }
.legal h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.025em; line-height: 1.2; }
html[lang="ka"] .legal h2 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.3; }
.legal p, .legal li { color: var(--text-2); font-size: 17px; line-height: 1.65; }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; display: grid; gap: 8px; }
.legal ul li { position: relative; padding-left: 22px; }
.legal ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal-contact { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-weight: 600; color: var(--text) !important; text-decoration: none !important; }
.nav-back { margin-left: auto; font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 999px; opacity: .8; }
.nav-back:hover { opacity: 1; background: rgba(127, 127, 127, .12); }
@media (max-width: 960px) {
  .nav .nav-back + .lang-switch { margin-left: 4px; }
}
@media (max-width: 700px) {
  .legal-points { grid-template-columns: 1fr; }
  .nav-back { display: none; }
  .nav .nav-back + .lang-switch { margin-left: auto; }
}
