/* MulticoreLabs · Tappy website. No external fonts or scripts (privacy). */

:root {
  --bg: #0f0e16;
  --surface: #17161f;
  --card: #1c1b27;
  --border: #2b2a3a;
  --text: #ecebf5;
  --muted: #aeabc2;
  --accent: #7d6dff;
  --accent-2: #b3a8ff;
  --accent-deep: #5236f0;
  --tile: #241d5a;
  --radius: 20px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

a:hover {
  color: #fff;
}

main,
.nav-in,
.footer {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* ---- navigation ---- */

/* The bar stays at the top while scrolling (so the logo intro always lands in the same spot). */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.nav-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.by {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.by:hover {
  color: var(--text);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand svg {
  width: 36px;
  height: 36px;
}

.brand span {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.nav nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.nav nav a:hover {
  background: var(--card);
  color: var(--text);
}

.nav nav a.lang {
  border: 1px solid var(--border);
}

/* ---- sections ---- */

section {
  padding: 56px 0;
}

section h2 {
  margin: 0 0 28px;
  font-size: clamp(28px, 4vw, 40px);
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.ico {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  padding-top: 40px;
  text-align: center;
}

.hero h1 {
  max-width: 820px;
  margin: 18px auto 16px;
  font-size: clamp(40px, 7vw, 72px);
}

.hero .lead {
  margin-inline: auto;
}

.hero-note {
  color: var(--muted);
  font-size: 15px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid #3a3366;
  border-radius: 999px;
  background: #1d1938;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 600;
}

.badge .ico {
  width: 16px;
  height: 16px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li,
.card-tile {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.steps h3 {
  margin: 14px 0 6px;
  font-size: 20px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--tile);
  color: var(--accent-2);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

main .card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

main .card .ico {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 12px;
  background: var(--tile);
  color: var(--accent-2);
}

main .card h3 {
  margin: 14px 0 6px;
  font-size: 19px;
}

main .card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.kicker {
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai h2 {
  margin-top: 8px;
}

.ai .lead {
  margin: -12px 0 28px;
}

.chatgpt {
  margin-top: 16px;
  padding: 28px;
  border: 1px solid #3a3366;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #221c4d, #17161f);
}

.chatgpt h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.chatgpt p {
  margin: 0;
  color: var(--muted);
}

.privacy-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.privacy-head h2 {
  margin: 0;
}

.privacy-head .ico {
  width: 36px;
  height: 36px;
  color: var(--accent-2);
}

.priv-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.priv-list li {
  padding: 22px;
  border-left: 3px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: var(--surface);
}

.priv-list h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.priv-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.more {
  font-weight: 600;
}

.contact {
  text-align: center;
}

.contact p {
  color: var(--muted);
}

.mail {
  display: inline-block;
  margin-top: 6px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.mail:hover {
  background: #6a58ff;
  color: #fff;
}

.footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.footer p {
  margin: 4px 0;
}

/* ---- the legal pages ---- */

.legal {
  max-width: 760px;
  padding: 24px 0 64px;
}

.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
}

.legal h2 {
  margin: 36px 0 8px;
  font-size: 22px;
}

.legal .meta {
  color: var(--muted);
}

.legal p,
.legal li {
  color: #d6d4e4;
}

/* ===========================================================================
   The demo: one 21 s loop. Scene 1 (0–33%) Ask, scene 2 (33–67%) Capture,
   scene 3 (67–100%) Organize. Everything is placed in % of the stage.
   =========================================================================== */

.demo {
  margin: 44px auto 0;
  max-width: 1000px;
  container-type: inline-size;
}

.stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #1b1a26;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  text-align: left;
  font-size: 1.6cqw;
  line-height: 1.3;
}

.stage > * {
  position: absolute;
}

.app {
  inset: 0;
}

.app > * {
  position: absolute;
}

.app-bar {
  left: 0;
  right: 0;
  top: 0;
  height: 7%;
  display: flex;
  align-items: center;
  gap: 0.6cqw;
  padding: 0 1.4cqw;
  background: #232233;
  color: #8c89a3;
  font-size: 1.2cqw;
}

.app-bar i {
  width: 0.9cqw;
  height: 0.9cqw;
  border-radius: 50%;
  background: #3a3850;
}

.app-bar span {
  margin-left: 1cqw;
}

.app-tools {
  left: 0;
  top: 7%;
  bottom: 0;
  width: 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2cqw;
  padding-top: 1.6cqw;
  background: #1f1e2d;
}

.app-tools i {
  width: 2.4cqw;
  height: 2.4cqw;
  border-radius: 0.6cqw;
  background: #2e2c42;
}

.app-cube {
  left: 20%;
  top: 16%;
  width: 44%;
  height: 72%;
}

.app-cube path {
  fill: none;
  stroke: #6b6888;
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.app-panel-title {
  left: 76%;
  top: 14%;
  color: #8c89a3;
  font-size: 1.2cqw;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pbtn {
  left: 76%;
  width: 20%;
  height: 7%;
  display: flex;
  align-items: center;
  padding-left: 1.2cqw;
  border-radius: 0.8cqw;
  background: #262537;
  color: #c9c6dc;
}

.b1 { top: 22%; }
.b2 { top: 31%; animation: demo-bevel 21s infinite; }
.b3 { top: 40%; }
.b4 { top: 49%; }

/* Tappy's wheel in the demo */
.dw {
  width: 30%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
}

.dw1 { left: 40%; top: 52%; animation: demo-wheel1 21s infinite; }
.dw2 { left: 55%; top: 62%; animation: demo-wheel2 21s infinite; }

.demo-wheel {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.demo-wheel .slice path {
  fill: rgba(28, 25, 52, 0.94);
  stroke: rgba(179, 168, 255, 0.35);
  stroke-width: 1.5;
}

.demo-wheel .slice-ico {
  fill: none;
  stroke: #d8d3ff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-wheel text {
  fill: #ecebf5;
  font-size: 17px;
  font-weight: 600;
  text-anchor: middle;
}

.demo-wheel .hub {
  fill: #241d5a;
  stroke: #7d6dff;
  stroke-width: 3;
}

.demo-wheel .hub-text {
  fill: #fff;
  font-size: 22px;
  font-weight: 700;
  text-anchor: middle;
}

.dw1 .s0 path { animation: demo-lit1 21s infinite; }
.dw2 .s1 path { animation: demo-lit2 21s infinite; }

/* The question */
.bubble {
  left: 44%;
  top: 13%;
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  padding: 1cqw 1.6cqw;
  border-radius: 1.6cqw 1.6cqw 1.6cqw 0.3cqw;
  background: #fff;
  color: #1b1a24;
  font-weight: 600;
  box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: demo-bubble 21s infinite;
}

.bubble-dot {
  width: 1.4cqw;
  height: 1.4cqw;
  border: 0.35cqw solid #7d6dff;
  border-radius: 50%;
  background: #241d5a;
}

/* Tappy's guide: the logo's ring, gliding to the button and rippling there */
.guide {
  width: 3.6cqw;
  height: 3.6cqw;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: demo-guide 21s infinite;
}

.guide-core {
  position: absolute;
  inset: 0;
  border: 0.5cqw solid #b3a8ff;
  border-radius: 50%;
  background: radial-gradient(circle, #7d6dff 0 38%, #241d5a 39% 100%);
  box-shadow: 0 0 2cqw rgba(125, 109, 255, 0.8);
}

.rip {
  position: absolute;
  inset: 0;
  border: 0.3cqw solid #b3a8ff;
  border-radius: 50%;
  opacity: 0;
}

.r1 { animation: demo-ripple 21s infinite; }
.r2 { animation: demo-ripple2 21s infinite; }

.tip {
  right: 25%;
  top: 31.6%;
  padding: 0.7cqw 1.3cqw;
  border-radius: 1cqw;
  background: #7d6dff;
  color: #fff;
  font-size: 1.4cqw;
  white-space: nowrap;
  opacity: 0;
  animation: demo-tip 21s infinite;
}

/* Capture */
.dim {
  inset: 0;
  background: rgba(8, 7, 14, 0.55);
  opacity: 0;
  animation: demo-dim 21s infinite;
}

.sel {
  left: 20%;
  top: 20%;
  width: 0;
  height: 0;
  border: 0.25cqw solid #7d6dff;
  background: rgba(125, 109, 255, 0.08);
  box-shadow: 0 0 0 999px rgba(8, 7, 14, 0.25);
  opacity: 0;
  animation: demo-sel 21s infinite;
}

.sel svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sel-arrow,
.sel-head {
  fill: none;
  stroke: #ff3b5c;
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.sel-arrow { animation: demo-arrow 21s infinite; }
.sel-head { animation: demo-head 21s infinite; }

.selbar {
  left: 20%;
  top: 66.5%;
  display: flex;
  gap: 0.4cqw;
  padding: 0.5cqw;
  border-radius: 1.2cqw;
  background: #232233;
  font-size: 1.3cqw;
  opacity: 0;
  animation: demo-selbar 21s infinite;
}

.selbar span,
.selbar b {
  padding: 0.5cqw 1cqw;
  border-radius: 0.8cqw;
  color: #c9c6dc;
}

.selbar span:first-child {
  background: #34315a;
  color: #fff;
}

.selbar b {
  background: #7d6dff;
  color: #fff;
}

.toast {
  left: 50%;
  bottom: 6%;
  padding: 1cqw 2cqw;
  border-radius: 999px;
  background: #22c55e;
  color: #052e16;
  font-weight: 700;
  transform: translateX(-50%);
  opacity: 0;
  animation: demo-toast 21s infinite;
}

/* Organize: a Tappy board, its cards drawn like the app's (title bar with ports, fold, icon) */
.board {
  left: 5%;
  top: 9%;
  width: 90%;
  height: 84%;
  border: 1px solid #2b2a3a;
  border-radius: 1.6cqw;
  background-color: #14131c;
  background-image: radial-gradient(#2b2a3a 1px, transparent 1px);
  background-size: 2cqw 2cqw;
  opacity: 0;
  animation: demo-board 21s infinite;
}

.board > * {
  position: absolute;
}

.wires {
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wires path {
  fill: none;
  stroke: #4f8cff;
  stroke-width: 0.32;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.wa { animation: demo-wire 21s infinite; }
.wb { animation: demo-wire2 21s infinite; }

.tcard {
  border: 1px solid #2b2a3a;
  border-radius: 1.4cqw;
  background: #1c1b27;
  box-shadow: 0 0.4cqw 1.6cqw rgba(0, 0, 0, 0.25);
  opacity: 0;
}

.c1 { left: 4%; top: 14%; width: 30%; animation: demo-c1 21s infinite; }
.c2 { left: 42%; top: 8%; width: 24%; height: 28%; animation: demo-c2 21s infinite; }
.c3 { left: 42%; top: 50%; width: 31%; animation: demo-c3 21s infinite; }

.t-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6cqw;
  height: 3.4cqw;
  padding: 0 1.2cqw 0 0.9cqw;
  border-bottom: 1px solid #2b2a3a;
  color: #9a97ad;
  font-size: 1.05cqw;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.t-fold {
  width: 1.4cqw;
  height: 1.4cqw;
  fill: none;
  stroke: #9a97ad;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t-ico {
  width: 1.4cqw;
  height: 1.4cqw;
  fill: none;
  stroke: #b8afff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t-title {
  flex: 1;
  color: #ecebf5;
  font-size: 1.15cqw;
  font-weight: 700;
}

/* Ports: rings on the card's edges, colored by what they carry. */
.tp {
  position: absolute;
  top: 50%;
  width: 1.15cqw;
  height: 1.15cqw;
  border: 0.22cqw solid var(--port);
  border-radius: 50%;
  background: #1c1b27;
  transform: translate(-50%, -50%);
}

.tp.l { left: 0; }
.tp.r { left: 100%; }
.tp.img { --port: #4f8cff; }
.tp.task { --port: #22c55e; }
.tp.txt { --port: #ff8a3d; }

.t-media {
  margin: 0.8cqw 1cqw 0.6cqw;
  overflow: hidden;
  border-radius: 0.9cqw;
  background: #1b1a26;
  aspect-ratio: 5 / 3;
}

.t-media svg {
  display: block;
  width: 100%;
  height: 100%;
}

.t-cube {
  fill: none;
  stroke: #6b6888;
  stroke-width: 1;
  stroke-linejoin: round;
}

.t-arrow {
  fill: none;
  stroke: #ff3b5c;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.t-cap {
  margin: 0 1.2cqw 0.9cqw;
  color: #9a97ad;
  font-size: 1.15cqw;
}

/* Sticky note, the app's shape: rounded with a softer bottom-right corner. */
.tnote {
  box-sizing: border-box;
  padding: 1.2cqw;
  border-radius: 0.4cqw 0.4cqw 1.4cqw 0.4cqw;
  background: #fff4a8;
  color: #2a2618;
  font-size: 1.4cqw;
  box-shadow: 0 0.4cqw 1.4cqw rgba(0, 0, 0, 0.25);
  opacity: 0;
}

.tnote .tp {
  border-color: #ff8a3d;
  background: #fff4a8;
}

.t-progress {
  height: 0.4cqw;
  margin: 0.9cqw 1.2cqw 0.5cqw;
  overflow: hidden;
  border-radius: 0.2cqw;
  background: #2b2a3a;
}

.t-progress span {
  display: block;
  width: 50%;
  height: 100%;
  background: #22c55e;
}

.t-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  padding: 0.55cqw 1.2cqw;
  color: #ecebf5;
  font-size: 1.3cqw;
}

.t-item:last-child {
  padding-bottom: 1.1cqw;
}

.t-box {
  flex: none;
  width: 1.3cqw;
  height: 1.3cqw;
  border: 0.18cqw solid #6b6888;
  border-radius: 0.3cqw;
}

.t-item.done {
  color: #8c89a3;
  text-decoration: line-through;
}

.t-item.done .t-box {
  border-color: #22c55e;
  background: #22c55e;
}

.due {
  padding: 0.15cqw 0.8cqw;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  font-size: 1cqw;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  transform: scale(0.5);
  animation: demo-due 21s infinite;
}

/* The user's pointer and the hold-to-open ring */
.pointer {
  width: 2.6%;
  left: 62%;
  top: 82%;
  z-index: 5;
  filter: drop-shadow(0 0.3cqw 0.4cqw rgba(0, 0, 0, 0.5));
  animation: demo-pointer 21s infinite;
}

.pointer path {
  fill: #fff;
  stroke: #111;
  stroke-width: 1.3;
  stroke-linejoin: round;
}

.press {
  width: 4cqw;
  height: 4cqw;
  border: 0.35cqw solid #b3a8ff;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  z-index: 4;
  animation: demo-press 21s infinite;
}

/* Scene captions */
.caps {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.caps li {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.cap1 { animation: demo-cap1 21s infinite; }
.cap2 { animation: demo-cap2 21s infinite; }
.cap3 { animation: demo-cap3 21s infinite; }

/* ---- the timeline ---- */

@keyframes demo-pointer {
  0% { left: 62%; top: 82%; opacity: 0; }
  2% { opacity: 1; }
  4% { left: 40%; top: 52%; }
  9.5% { left: 40%; top: 52%; }
  13% { left: 40%; top: 37.5%; }
  25.5% { left: 40%; top: 37.5%; }
  29% { left: 86.3%; top: 35.5%; }
  34% { left: 86.3%; top: 35.5%; }
  37% { left: 55%; top: 62%; }
  42% { left: 55%; top: 62%; }
  45.5% { left: 62.9%; top: 54.7%; }
  48% { left: 20%; top: 20%; }
  49.5% { left: 20%; top: 20%; }
  55% { left: 60%; top: 64%; }
  67% { left: 60%; top: 64%; }
  84% { left: 74%; top: 72%; }
  94% { left: 74%; top: 72%; opacity: 1; }
  98% { opacity: 0; }
  100% { left: 62%; top: 82%; opacity: 0; }
}

@keyframes demo-press {
  0%, 4% { left: 40%; top: 52%; opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  5% { opacity: 1; }
  8% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  9.5% { left: 40%; top: 52%; opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
  36.9% { left: 40%; top: 52%; opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  37% { left: 55%; top: 62%; opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  38% { opacity: 1; }
  41% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  42.5%, 100% { left: 55%; top: 62%; opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

@keyframes demo-wheel1 {
  0%, 8% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  10% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  13.5% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  15%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes demo-wheel2 {
  0%, 41% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  43% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  46% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  47.5%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes demo-lit1 {
  0%, 11.5% { fill: rgba(28, 25, 52, 0.94); }
  12.5%, 15% { fill: #7d6dff; }
  16%, 100% { fill: rgba(28, 25, 52, 0.94); }
}

@keyframes demo-lit2 {
  0%, 44.5% { fill: rgba(28, 25, 52, 0.94); }
  45.5%, 47.5% { fill: #7d6dff; }
  48.5%, 100% { fill: rgba(28, 25, 52, 0.94); }
}

@keyframes demo-bubble {
  0%, 15% { opacity: 0; transform: translateY(1cqw) scale(0.96); }
  17% { opacity: 1; transform: none; }
  31% { opacity: 1; transform: none; }
  33%, 100% { opacity: 0; transform: none; }
}

@keyframes demo-guide {
  0%, 17% { left: 40%; top: 37.5%; opacity: 0; }
  18.5% { left: 40%; top: 37.5%; opacity: 1; }
  24% { left: 86%; top: 34.5%; opacity: 1; }
  31% { left: 86%; top: 34.5%; opacity: 1; }
  33%, 100% { left: 86%; top: 34.5%; opacity: 0; }
}

@keyframes demo-ripple {
  0%, 24% { opacity: 0; transform: scale(1); }
  24.5% { opacity: 0.9; transform: scale(1); }
  27% { opacity: 0; transform: scale(2.6); }
  27.5% { opacity: 0.9; transform: scale(1); }
  30%, 100% { opacity: 0; transform: scale(2.6); }
}

@keyframes demo-ripple2 {
  0%, 25.5% { opacity: 0; transform: scale(1); }
  26% { opacity: 0.7; transform: scale(1); }
  28.5%, 100% { opacity: 0; transform: scale(2.6); }
}

@keyframes demo-tip {
  0%, 24.5% { opacity: 0; transform: translateX(-1cqw); }
  25.5% { opacity: 1; transform: none; }
  31% { opacity: 1; transform: none; }
  32.5%, 100% { opacity: 0; }
}

@keyframes demo-bevel {
  0%, 28.8% { background: #262537; color: #c9c6dc; }
  29.2%, 32% { background: #7d6dff; color: #fff; }
  33.5%, 100% { background: #262537; color: #c9c6dc; }
}

@keyframes demo-dim {
  0%, 47% { opacity: 0; }
  48.5%, 63% { opacity: 1; }
  65%, 100% { opacity: 0; }
}

@keyframes demo-sel {
  0%, 48.5% { opacity: 0; width: 0; height: 0; }
  49.5% { opacity: 1; width: 0; height: 0; }
  55% { opacity: 1; width: 40%; height: 44%; }
  63% { opacity: 1; width: 40%; height: 44%; }
  65%, 100% { opacity: 0; width: 40%; height: 44%; }
}

@keyframes demo-arrow {
  0%, 57% { stroke-dashoffset: 100; }
  59.5%, 100% { stroke-dashoffset: 0; }
}

@keyframes demo-head {
  0%, 59.5% { stroke-dashoffset: 100; }
  60.5%, 100% { stroke-dashoffset: 0; }
}

@keyframes demo-selbar {
  0%, 55% { opacity: 0; transform: translateY(1cqw); }
  56.5%, 63% { opacity: 1; transform: none; }
  65%, 100% { opacity: 0; }
}

@keyframes demo-toast {
  0%, 60.5% { opacity: 0; transform: translate(-50%, 1.5cqw); }
  61.5%, 64% { opacity: 1; transform: translate(-50%, 0); }
  66%, 100% { opacity: 0; transform: translate(-50%, 0); }
}

@keyframes demo-board {
  0%, 66.5% { opacity: 0; transform: translateY(2cqw); }
  69%, 95% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; transform: none; }
}

@keyframes demo-c1 {
  0%, 70% { opacity: 0; transform: scale(0.9); }
  72%, 100% { opacity: 1; transform: none; }
}

@keyframes demo-c2 {
  0%, 72.5% { opacity: 0; transform: scale(0.9); }
  74.5%, 100% { opacity: 1; transform: none; }
}

@keyframes demo-c3 {
  0%, 75% { opacity: 0; transform: scale(0.9); }
  77%, 100% { opacity: 1; transform: none; }
}

@keyframes demo-wire {
  0%, 77% { stroke-dashoffset: 100; }
  80%, 100% { stroke-dashoffset: 0; }
}

@keyframes demo-wire2 {
  0%, 79% { stroke-dashoffset: 100; }
  82%, 100% { stroke-dashoffset: 0; }
}

@keyframes demo-due {
  0%, 83% { opacity: 0; transform: scale(0.5); }
  85% { opacity: 1; transform: scale(1.15); }
  86.5%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes demo-cap1 {
  0%, 32% { border-color: #7d6dff; background: #241d5a; color: #fff; }
  34%, 99% { border-color: var(--border); background: transparent; color: var(--muted); }
  100% { border-color: #7d6dff; background: #241d5a; color: #fff; }
}

@keyframes demo-cap2 {
  0%, 32% { border-color: var(--border); background: transparent; color: var(--muted); }
  34%, 65% { border-color: #7d6dff; background: #241d5a; color: #fff; }
  67%, 100% { border-color: var(--border); background: transparent; color: var(--muted); }
}

@keyframes demo-cap3 {
  0%, 65% { border-color: var(--border); background: transparent; color: var(--muted); }
  67%, 98% { border-color: #7d6dff; background: #241d5a; color: #fff; }
  100% { border-color: var(--border); background: transparent; color: var(--muted); }
}

/* Motion turned off in Windows: a still picture of Tappy pointing at the button. */
@media (prefers-reduced-motion: reduce) {
  .stage *,
  .caps li {
    animation: none !important;
  }

  .bubble,
  .guide,
  .tip {
    opacity: 1;
  }

  .guide {
    left: 86%;
    top: 34.5%;
  }

  .pointer {
    left: 70%;
    top: 60%;
  }
}

@media (max-width: 640px) {
  section {
    padding: 40px 0;
  }

  .brand small {
    display: none;
  }

  .caps li {
    padding: 5px 10px;
    font-size: 13px;
  }
}


/* ===========================================================================
   MulticoreLabs: its own colors (teal, orange, blue on dark); Tappy keeps purple.
   =========================================================================== */

.theme-mcl {
  --bg: #0b0f15;
  --surface: #111720;
  --card: #151c27;
  --border: #222b38;
  --text: #e8edf3;
  --muted: #9aa7b8;
  --accent: #14c9ad;
  --accent-2: #5ee8d0;
  --tile: #10302d;
  --teal: #14c9ad;
  --orange: #ff7a1a;
  --blue: #1e90ff;
  background: var(--bg);
}

.brand.mcl span {
  font-weight: 600;
}

.brand.mcl b {
  font-weight: 800;
}

.mcl-mark {
  width: 36px;
  height: 36px;
}

/* ---- the logo intro: big in the middle while it builds, then into the bar ---- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  pointer-events: none;
  animation: intro-bg 3.3s ease forwards;
}

.intro-mark {
  position: absolute;
  left: calc(50% - 110px);
  top: calc(50% - 110px);
  width: 220px;
  height: 220px;
  animation: intro-fly 3.3s cubic-bezier(0.65, 0, 0.25, 1) forwards;
}

/* The bar's own logo waits until the flying one lands exactly on it. */
.page-studio .nav .mcl-mark {
  animation: intro-land 3.3s steps(1, end) forwards;
}

.page-studio .page-body {
  animation: intro-page 3.3s ease forwards;
}

@keyframes intro-fly {
  0%,
  72% {
    left: calc(50% - 110px);
    top: calc(50% - 110px);
    width: 220px;
    height: 220px;
  }
  100% {
    left: calc((100% - min(1120px, 100% - 32px)) / 2);
    top: 14px;
    width: 36px;
    height: 36px;
  }
}

@keyframes intro-bg {
  0%,
  70% {
    background-color: var(--bg);
    visibility: visible;
  }
  92% {
    background-color: transparent;
  }
  100% {
    background-color: transparent;
    visibility: hidden;
  }
}

@keyframes intro-land {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes intro-page {
  0%,
  72% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* Seen this visit, or motion turned off: no intro. */
html.seen .intro {
  display: none;
}

html.seen .page-studio .nav .mcl-mark,
html.seen .page-studio .page-body {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .intro {
    display: none;
  }

  .page-studio .nav .mcl-mark,
  .page-studio .page-body {
    animation: none;
  }
}

/* ---- studio home ---- */

.s-hero {
  padding: 96px 0 64px;
  text-align: center;
}

.s-kicker {
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.s-hero h1 {
  max-width: 880px;
  margin: 16px auto;
  font-size: clamp(40px, 7vw, 76px);
}

.s-hero .lead {
  margin-inline: auto;
}

/* Three short bars in the logo's colors under the headline. */
.s-hero h1::after {
  content: "";
  display: block;
  width: 132px;
  height: 6px;
  margin: 28px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal) 0 32%, transparent 32% 34%, var(--orange) 34% 66%, transparent 66% 68%, var(--blue) 68%);
}

.s-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 13px 24px;
  border-radius: 14px;
  background: var(--accent);
  color: #04221e;
  font-weight: 700;
  text-decoration: none;
}

.s-cta:hover {
  background: var(--accent-2);
  color: #04221e;
}

.apps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px;
}

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

  .app-card {
    grid-row: auto;
  }
}

.app-card {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 32px;
  border: 1px solid #3a3366;
  border-radius: 24px;
  background: radial-gradient(120% 100% at 0% 0%, #241d5a 0%, #141225 55%, #111720 100%);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: #7d6dff;
  color: var(--text);
}

.app-icon svg {
  width: 72px;
  height: 72px;
}

.app-card h3 {
  margin: 4px 0 0;
  font-size: 34px;
}

.app-card p {
  margin: 0;
  color: #c3bfd8;
}

.app-card .badge {
  color: #b8afff;
}

.app-link {
  margin-top: auto;
  padding-top: 12px;
  color: #b8afff;
  font-weight: 700;
}

.lab-card {
  padding: 26px;
  border: 1px dashed var(--border);
  border-radius: 24px;
  background: var(--surface);
}

.lab-card h3 {
  margin: 14px 0 6px;
  font-size: 20px;
}

.lab-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* A small hex ring with a solid center, in that cell's color. */
.lab-hex {
  position: relative;
  display: block;
  width: 40px;
  height: 46px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--c);
}

.lab-hex::before {
  content: "";
  position: absolute;
  inset: 7px 6px;
  clip-path: inherit;
  background: var(--surface);
}

.lab-hex::after {
  content: "";
  position: absolute;
  inset: 14px 12px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--c);
}

.lab-card.orange {
  --c: var(--orange);
}

.lab-card.blue {
  --c: var(--blue);
}

.about-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-list li {
  padding: 26px;
  border-top: 4px solid var(--c);
  border-radius: 6px 6px 20px 20px;
  background: var(--surface);
}

.about-list .a1 {
  --c: var(--teal);
}

.about-list .a2 {
  --c: var(--orange);
}

.about-list .a3 {
  --c: var(--blue);
}

.about-list h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.about-list p {
  margin: 0;
  color: var(--muted);
}

.theme-mcl .mail {
  background: var(--accent);
  color: #04221e;
}

.theme-mcl .mail:hover {
  background: var(--accent-2);
  color: #04221e;
}


/* ---- custom apps ---- */

.s-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.s-cta.ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.s-cta.ghost:hover {
  border-color: var(--accent);
  background: transparent;
  color: var(--accent-2);
}

a.lab-card {
  display: block;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

a.lab-card:hover {
  transform: translateY(-3px);
  border-color: var(--c);
  color: var(--text);
}

.lab-card.yours {
  border-style: solid;
  background: radial-gradient(120% 120% at 100% 0%, rgba(255, 122, 26, 0.14), var(--surface) 60%);
}

.lab-link {
  display: inline-block;
  margin-top: 12px;
  color: #ffa25c;
  font-weight: 700;
}

.custom h2 {
  max-width: 760px;
  margin-top: 10px;
}

.custom .lead {
  margin: -8px 0 28px;
}

.custom-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.custom-steps li {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.custom-steps .a1 {
  --c: var(--teal);
}

.custom-steps .a2 {
  --c: var(--orange);
}

.custom-steps .a3 {
  --c: var(--blue);
}

.step-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  color: var(--c);
  font-weight: 800;
}

.custom-steps h3 {
  margin: 14px 0 6px;
  font-size: 20px;
}

.custom-steps p {
  margin: 0;
  color: var(--muted);
}

.custom-ex {
  margin-bottom: 28px;
}

.custom-ex h3 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.custom-ex ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.custom-ex li {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
}


.lab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: color-mix(in srgb, var(--c) 70%, #fff);
  font-size: 13px;
  font-weight: 700;
}

.lab-card.orange,
.lab-card.blue {
  border-style: solid;
}


/* ---- Tappy: notes & projects as boards ---- */

.nodes h2 {
  margin-top: 8px;
}

.nodes .lead {
  margin: -12px 0 28px;
}

/* Each card's icon wears one of the board's port colors. */
.node-card:nth-child(1) .ico { color: #4f8cff; background: rgba(79, 140, 255, 0.14); }
.node-card:nth-child(2) .ico { color: #b8afff; }
.node-card:nth-child(3) .ico { color: #ff8a3d; background: rgba(255, 138, 61, 0.14); }
.node-card:nth-child(4) .ico { color: #22c55e; background: rgba(34, 197, 94, 0.14); }
.node-card:nth-child(5) .ico { color: #fbbf24; background: rgba(245, 158, 11, 0.14); }
.node-card:nth-child(6) .ico { color: #ff5fa2; background: rgba(255, 95, 162, 0.14); }
