:root, [data-theme="dark-aero"] {
  --bg: #070b1d;
  --glow-1: rgb(124 108 255 / 0.28);
  --glow-2: rgb(60 198 238 / 0.18);
  --top-bg: rgb(7 11 29 / 0.7);
  --title-1: #b9a8ff;
  --shadow: rgb(0 0 0 / 0.5);
  --bg-2: #0d1430;
  --surface: rgb(255 255 255 / 0.06);
  --border: rgb(255 255 255 / 0.12);
  --text: #eef1ff;
  --muted: #a9b1d6;
  --accent: #7c6cff;
  --accent-2: #3cc6ee;
  --radius: 22px;
  color-scheme: dark;
}
[data-theme="aero"] {
  --bg: #e6f3fb; --glow-1: rgb(109 183 239 / 0.45); --glow-2: rgb(124 220 180 / 0.35); --top-bg: rgb(240 248 253 / 0.75);
  --surface: rgb(255 255 255 / 0.7); --border: rgb(15 37 54 / 0.12); --text: #0f2536; --muted: #4a6375;
  --accent: #4f46e5; --accent-2: #0b7fbf; --title-1: #4f46e5; --shadow: rgb(15 37 54 / 0.18); color-scheme: light;
}
[data-theme="technozen"] {
  --bg: #f4efe4; --glow-1: rgb(241 229 204 / 0.9); --glow-2: rgb(74 115 80 / 0.18); --top-bg: rgb(248 244 234 / 0.8);
  --surface: rgb(255 252 245 / 0.8); --border: rgb(42 40 34 / 0.12); --text: #2a2822; --muted: #5f5a4c;
  --accent: #4a7350; --accent-2: #8a5f36; --title-1: #4a7350; --shadow: rgb(42 40 34 / 0.18); color-scheme: light;
}
[data-theme="metro"] {
  --bg: #f2f2f2; --glow-1: transparent; --glow-2: transparent; --top-bg: #1d1d1d;
  --surface: #ffffff; --border: #d4d4d4; --text: #111111; --muted: #525252;
  --accent: #0063b1; --accent-2: #c30052; --title-1: #0063b1; --shadow: rgb(0 0 0 / 0.15); --radius: 0px; color-scheme: light;
}
[data-theme="metro"] .top nav a:not(.btn), [data-theme="metro"] .brand { color: #fff; }
[data-theme="metro"] .btn, [data-theme="metro"] img { border-radius: 0 !important; }
[data-theme="metro"] .btn { background: var(--accent); box-shadow: none; }
[data-theme="metro"] h1, [data-theme="metro"] h2 { text-transform: lowercase; font-weight: 300; letter-spacing: -0.03em; }
body, .top, .steps li, .cards > div { transition: background 0.4s ease, color 0.4s ease; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 10% -10%, var(--glow-1), transparent 60%),
    radial-gradient(800px 600px at 100% 10%, var(--glow-2), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--surface); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(24px, calc((100vw - 1200px) / 2));
  background: var(--top-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: 0.28em; font-size: 14px; }
.brand img { border-radius: 22%; }
.brand:hover { text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgb(124 108 255 / 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 36px rgb(124 108 255 / 0.55); }
.top nav a.btn { color: #fff; }
.btn.small { padding: 8px 16px; font-size: 14px; box-shadow: none; }
.btn.ghost { background: var(--surface); border: 1px solid var(--border); box-shadow: none; color: var(--text); }
.btn.big { padding: 18px 34px; font-size: 19px; }

main > section { max-width: 1200px; margin: 0 auto; padding: 90px 24px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 850; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--title-1), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(30px, 3.6vw, 44px); text-align: center; margin-bottom: 40px; }
h3 { font-size: 23px; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.lead.center { margin: -20px auto 40px; text-align: center; }
.eyebrow { color: var(--accent-2); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }

.hero { display: grid; grid-template-columns: 0.85fr 1.25fr; gap: 56px; align-items: center; padding-top: 70px !important; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.works { color: var(--muted); font-size: 15px; }
.works b { color: var(--text); font-weight: 600; }
figure { margin: 0; }
.hero-shot img, .feature figure img, .wide img, .gallery img, .trio img {
  border-radius: 16px; border: 1px solid var(--border);
  box-shadow: 0 30px 80px var(--shadow);
}
.hero-shot img { transition: opacity 0.3s ease; }
.hero-shot img.swap { opacity: 0; }

.steps ol { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li, .cards > div {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
}
.steps li span {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px;
  font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.steps li p, .cards p, .feature p, .trio p { color: var(--muted); }
.wide { max-width: 1000px; margin: 0 auto; }

.feature { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; margin: 0 0 96px; }
.feature.flip > div { order: 2; }
.feature ul { padding-left: 20px; color: var(--muted); margin: 0; }
.feature li { margin-bottom: 6px; }
.feature b { color: var(--text); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 80px; }
.gallery figcaption { text-align: center; margin-top: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.gallery figure { transition: transform 0.2s ease; }
.gallery figure:hover { transform: translateY(-4px) scale(1.02); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 96px; }
.trio img { margin-bottom: 18px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards h3 { font-size: 19px; }

.download { text-align: center; }
.download p { color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.download .small { font-size: 14px; margin-top: 28px; }

footer { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px 24px 60px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }
footer img { border-radius: 22%; }
footer p { margin: 0; }

@media (max-width: 900px) {
  .top nav a:not(.btn) { display: none; }
  .hero, .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip > div { order: 0; }
  .hero-shot { transform: none; }
  .steps ol, .trio, .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  main > section { padding: 60px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* The themes of the app, tried on the site itself. */
.theme-picker { display: flex; gap: 8px; align-items: center; }
.theme-picker button {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; padding: 0;
  background: var(--sw); box-shadow: 0 2px 6px var(--shadow); transition: transform 0.15s ease;
}
.theme-picker button:hover { transform: scale(1.15); }
.theme-picker button[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.try { text-align: center; margin: -10px 0 36px; color: var(--muted); }
.try .theme-picker { justify-content: center; margin-top: 12px; }
.try .theme-picker button { width: auto; height: auto; padding: 8px 16px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / 0.4); }
.game { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.game img { border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 30px 80px var(--shadow); }
.game figcaption { color: var(--muted); font-size: 15px; margin-top: 12px; text-align: center; }
@media (max-width: 900px) { .game { grid-template-columns: 1fr; } .top .theme-picker { display: none; } }

/* Scroll reveal: in when on screen, out again when it leaves. */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.from-right { transform: translateX(60px) scale(0.97); }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; }
.top.scrolled { box-shadow: 0 10px 30px var(--shadow); }

/* The sentence that types itself. */
.typed-band { text-align: center; padding: 120px 24px 40px !important; }
.typed { font-size: clamp(24px, 3.2vw, 40px); font-weight: 700; line-height: 1.35; max-width: 900px; margin: 0 auto 26px; min-height: 3em; letter-spacing: -0.01em; }
.typed .ghost { opacity: 0.12; }
.typed .caret { display: inline-block; width: 3px; height: 1em; margin: 0 2px -0.12em; background: var(--accent-2); animation: blink 1s steps(2) infinite; }
.typed-after { color: var(--muted); font-size: 18px; }
@keyframes blink { 50% { opacity: 0; } }

/* The simulated team at work. */
.live-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; margin-bottom: 70px; }
h2.left { text-align: left; }
.mini-steps { padding-left: 20px; color: var(--muted); }
.mini-steps li { margin-bottom: 10px; }
.mini-steps b { color: var(--text); }
.feed { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: #0b0f24; box-shadow: 0 30px 80px var(--shadow); color: #dfe4ff; font: 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace; }
.feed-head { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #141a36; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.feed-head span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.feed-head span:nth-child(2) { background: #febc2e; } .feed-head span:nth-child(3) { background: #28c840; }
.feed-head b { margin-left: 10px; font-weight: 600; color: #a9b1d6; font-family: -apple-system, sans-serif; }
.feed ul { list-style: none; margin: 0; padding: 14px 16px 18px; min-height: 380px; }
.feed li { display: flex; align-items: baseline; gap: 10px; padding: 7px 8px; border-radius: 8px; opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease, background 0.4s ease; }
.feed li.on { opacity: 1; transform: none; }
.feed li.now { background: rgb(255 255 255 / 0.06); }
.feed li i { flex: none; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-1px); }
.feed li.now i { animation: pulse 1s ease-in-out infinite; }
.feed li b { flex: none; min-width: 96px; font-weight: 700; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgb(255 255 255 / 0.12); } }
.game figure.phone img { max-width: 300px; margin: 0 auto; border-radius: 28px; border: 6px solid #111; }

/* Tokens. */
.tokens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tokens > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.tokens strong { display: block; font-size: 30px; margin-bottom: 6px; background: linear-gradient(90deg, var(--title-1), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tokens p { color: var(--muted); margin: 0; font-size: 15px; }

@media (max-width: 900px) {
  .live-grid, .tokens { grid-template-columns: 1fr; }
  .feed ul { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---- Small pleasures. */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 30; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.top nav a.active { color: var(--text); position: relative; }
.top nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* A bigger town, bleeding to the right on wide screens. */
@media (min-width: 901px) { .hero { grid-template-columns: 0.8fr 1.4fr; } }
.hero-shot { position: relative; }
@media (min-width: 1100px) { .hero-shot { margin-right: calc((1200px - 100vw) / 2 + 8px); } }
.hero-shot img { border-radius: 22px; }
.bubble {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgb(255 255 255 / 0.92); color: #0f2536; font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.25); opacity: 0; transform: translateY(10px) scale(0.95);
  transition: opacity 0.45s ease, transform 0.45s ease; pointer-events: none;
}
.bubble.on { opacity: 1; transform: none; }
.bubble i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: #fff; font-size: 13px; }
.bubble b { font-weight: 800; }

/* Screenshots open big. */
main figure img, .trio img { cursor: zoom-in; transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease; }
main figure:not(.hero-shot) img:hover, .trio img:hover { transform: translateY(-4px); }
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 4vh 4vw; background: rgb(3 5 15 / 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; cursor: zoom-out; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 14px; box-shadow: 0 40px 120px rgb(0 0 0 / 0.6); transform: scale(0.94); transition: transform 0.35s cubic-bezier(.2,.7,.2,1); }
.lightbox.open img { transform: none; }
.lightbox p { color: #dfe4ff; margin: 14px 0 0; font-size: 15px; text-align: center; }

/* A light that follows the mouse on cards. */
.cards > div, .tokens > div, .steps li { position: relative; overflow: hidden; }
.cards > div::before, .tokens > div::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
.cards > div:hover::before, .tokens > div:hover::before { opacity: 1; }
.cards > div, .tokens > div { transition: transform 0.25s ease, border-color 0.25s ease; }
.cards > div:hover, .tokens > div:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 20; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 20px; cursor: pointer; backdrop-filter: blur(10px); box-shadow: 0 10px 30px var(--shadow); opacity: 0; transform: translateY(12px); transition: opacity 0.3s ease, transform 0.3s ease; }
.to-top.on { opacity: 1; transform: none; }
@media (max-width: 900px) { .bubble { font-size: 12px; } .hero-shot { margin-right: 0; } }

/* The four other themes of the app, for the showcase. */
[data-theme="glacier"] {
  --bg: #ecf3f8; --glow-1: rgb(63 143 203 / 0.3); --glow-2: rgb(255 255 255 / 0.9); --top-bg: rgb(244 249 252 / 0.8);
  --surface: rgb(255 255 255 / 0.75); --border: rgb(27 103 158 / 0.15); --text: #0d2a40; --muted: #4d6577;
  --accent: #1b679e; --accent-2: #3f8fcb; --title-1: #1b679e; --shadow: rgb(13 42 64 / 0.18); color-scheme: light;
}
[data-theme="aurora"] {
  --bg: #0a1330; --glow-1: rgb(14 91 92 / 0.55); --glow-2: rgb(61 42 128 / 0.5); --top-bg: rgb(10 19 48 / 0.75);
  --surface: rgb(255 255 255 / 0.06); --border: rgb(255 255 255 / 0.12); --text: #eef3ff; --muted: #b2bfe6;
  --accent: #5be3c8; --accent-2: #c38bfa; --title-1: #5be3c8; --shadow: rgb(0 0 0 / 0.5); color-scheme: dark;
}
[data-theme="aurora"] .btn:not(.ghost) { color: #062a26; }
[data-theme="eco"] {
  --bg: #eef6ea; --glow-1: rgb(220 243 207 / 0.95); --glow-2: rgb(46 117 49 / 0.15); --top-bg: rgb(246 251 241 / 0.8);
  --surface: rgb(255 255 251 / 0.8); --border: rgb(20 43 23 / 0.12); --text: #142b17; --muted: #48614b;
  --accent: #2e7531; --accent-2: #8a6d00; --title-1: #2e7531; --shadow: rgb(20 43 23 / 0.16); color-scheme: light;
}
[data-theme="dorfic"] {
  --bg: #efefed; --glow-1: rgb(255 230 211 / 0.9); --glow-2: transparent; --top-bg: rgb(246 246 244 / 0.85);
  --surface: #ffffff; --border: #d6d6d2; --text: #1a1a1a; --muted: #575757;
  --accent: #b93d0c; --accent-2: #c25e0a; --title-1: #b93d0c; --shadow: rgb(0 0 0 / 0.12); --radius: 6px; color-scheme: light;
}
[data-theme="dorfic"] h1, [data-theme="dorfic"] h2, [data-theme="dorfic"] h3 { font-family: ui-monospace, "SF Mono", Menlo, monospace; text-transform: uppercase; letter-spacing: 0.02em; }

/* The showcase: it stays on screen while the themes play one by one. */
.showcase { height: 520vh; position: relative; margin-bottom: 60px; }
.show-stick { position: sticky; top: 84px; height: calc(100vh - 100px); display: grid; grid-template-columns: 0.75fr 2fr; grid-template-rows: 1fr auto; gap: 18px 36px; align-items: center; }
.show-head { align-self: center; }
.show-count { color: var(--accent-2); font-weight: 800; letter-spacing: 0.1em; margin: 0 0 6px; }
.show-head h3 { font-size: clamp(28px, 3vw, 40px); }
.show-desc { color: var(--muted); min-height: 3.2em; }
.show-frame { margin: 0; align-self: center; }
.show-frame img { width: 100%; max-height: calc(100vh - 260px); object-fit: contain; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 30px 80px var(--shadow); transition: opacity 0.35s ease, transform 0.35s ease; }
.show-frame img.swap { opacity: 0; transform: scale(0.98); }
.show-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.show-strip button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; opacity: 0.55; transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease; }
.show-strip button img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; cursor: pointer; }
.show-strip button:hover { opacity: 0.9; transform: translateY(-2px); }
.show-strip button[aria-selected="true"] { opacity: 1; border-color: var(--accent); }
@media (max-width: 900px) {
  .showcase { height: auto; }
  .show-stick { position: static; height: auto; grid-template-columns: 1fr; }
  .show-strip { grid-template-columns: repeat(4, 1fr); }
}

/* Make your character. */
.maker { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: stretch; margin: 0 0 96px; padding: 28px; border-radius: calc(var(--radius) + 6px); background: var(--surface); border: 1px solid var(--border); }
.maker-stage { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 360px; background: linear-gradient(180deg, #8fd0ff 0%, #d9f1ff 58%, #7ccf6a 58%, #5bb04c 100%); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 26px; }
.maker-ground { position: relative; display: flex; align-items: flex-end; gap: 6px; margin-bottom: 18px; }
.maker-me { width: 168px; height: 276px; background-repeat: no-repeat; background-size: 672px 276px; image-rendering: pixelated; animation: maker-walk 0.7s steps(4) infinite, maker-bob 0.35s ease-in-out infinite alternate; filter: drop-shadow(0 6px 0 rgb(0 0 0 / 0.15)); }
.maker-pet { width: 96px; height: 80px; background-repeat: no-repeat; background-size: 384px 80px; image-rendering: pixelated; animation: maker-pet 0.6s steps(4) infinite; margin-bottom: 4px; }
.maker-pet.none { display: none; }
@keyframes maker-walk { to { background-position: -672px 0; } }
@keyframes maker-pet { to { background-position: -384px 0; } }
@keyframes maker-bob { to { transform: translateY(-3px); } }
.maker-name { margin: 0; padding: 8px 18px; border-radius: 999px; background: rgb(255 255 255 / 0.9); color: #0f2536; text-align: center; box-shadow: 0 8px 24px rgb(0 0 0 / 0.15); }
.maker-name b { display: block; font-size: 18px; }
.maker-name small { color: #4a6375; }
.maker-tools .muted { color: var(--muted); }
.maker-row { display: flex; gap: 10px; margin: 16px 0; }
.maker-row input { flex: 1; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }
.maker-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.maker-tabs button { flex: 1; padding: 9px; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.maker-tabs button[aria-selected="true"] { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.maker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; max-height: 300px; overflow: auto; padding: 2px; }
.maker-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; border: 2px solid transparent; background: var(--bg); color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease; }
.maker-grid button:hover { transform: translateY(-2px); }
.maker-grid button[aria-pressed="true"] { border-color: var(--accent); color: var(--text); }
.maker-grid span { display: block; width: 42px; height: 69px; background-repeat: no-repeat; background-size: 168px 69px; image-rendering: pixelated; }
.maker-grid span.pet { width: 48px; height: 40px; background-size: 192px 40px; margin: 14px 0 15px; }
.maker-grid span.none { background: none; border: 2px dashed var(--border); border-radius: 8px; width: 40px; height: 40px; margin: 14px 0 15px; }
@media (max-width: 900px) { .maker { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .maker-me, .maker-pet { animation: none; } }
.models { max-width: 460px; margin: 30px auto 0; text-align: center; }
.models img { border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 20px 60px var(--shadow); }
.models figcaption, .chars figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; text-align: center; }
.chars { margin-top: -40px; }
.chars img { border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 20px 60px var(--shadow); }
.flow { list-style: none; padding: 0; margin: 0 0 90px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.flow li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.flow li span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; margin-bottom: 14px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.flow li p { color: var(--muted); flex: 1; }
.flow li img { border-radius: 12px; border: 1px solid var(--border); margin-top: 10px; cursor: zoom-in; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } }

/* NOVARA on the phone. */
.phone-band { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 40px; align-items: center; margin: 0 0 110px; padding: 40px; border-radius: calc(var(--radius) + 8px); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent-2) 12%, transparent)); border: 1px solid var(--border); }
.phone-text p, .phone-text ul { color: var(--muted); }
.phone-text li { margin-bottom: 6px; }
.phones { display: flex; justify-content: center; align-items: center; gap: 0; }
.phone-frame { width: 31%; max-width: 230px; border-radius: 34px; padding: 8px; background: #0b0d18; box-shadow: 0 30px 70px var(--shadow), inset 0 0 0 2px #2a2f45; margin: 0 -14px; transition: transform 0.4s cubic-bezier(.2,.7,.2,1); }
.phone-frame img { border-radius: 26px; display: block; width: 100%; }
.phone-frame.tilt-l { transform: rotate(-6deg) translateY(16px); }
.phone-frame.tilt-r { transform: rotate(6deg) translateY(16px); }
.phone-frame.up { position: relative; z-index: 2; transform: translateY(-14px) scale(1.06); }
.phones:hover .phone-frame.tilt-l { transform: rotate(-3deg) translateX(-18px) translateY(8px); }
.phones:hover .phone-frame.tilt-r { transform: rotate(3deg) translateX(18px) translateY(8px); }
@media (max-width: 900px) { .phone-band { grid-template-columns: 1fr; padding: 24px; } }

/* Support NOVARA: the donate button wears the theme's colours. */
.mug { width: 22px; height: 22px; flex: none; }
.donate { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 800; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 12px 34px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease; position: relative; overflow: hidden; }
.donate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.35) 50%, transparent 70%); transform: translateX(-120%); animation: donate-shine 3.5s ease-in-out infinite; }
.donate:hover { text-decoration: none; transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 60%, transparent); }
.donate:hover .mug { animation: mug-beat 0.6s ease-in-out infinite alternate; }
.donate.small { padding: 9px 18px; font-size: 15px; }
@keyframes donate-shine { 60%, 100% { transform: translateX(120%); } }
@keyframes mug-beat { to { transform: scale(1.18) rotate(-6deg); } }
.top nav a.donate-mini { background: transparent; border: 1.5px solid var(--accent-2); color: var(--accent-2); box-shadow: none; display: inline-flex; align-items: center; gap: 6px; }
.top nav a.donate-mini .mug { width: 18px; height: 18px; }
.top nav a.donate-mini:hover { background: var(--accent-2); color: #fff; }
[data-theme="metro"] .donate, [data-theme="metro"] .top nav a.donate-mini { border-radius: 0; }
[data-theme="metro"] .top nav a.donate-mini { color: #fff; border-color: #fff; }

.free-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: 44px; border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), color-mix(in srgb, var(--accent-2) 14%, var(--surface))); border: 1px solid var(--border); margin-bottom: 30px; }
.free-card p { color: var(--muted); margin-bottom: 24px; }
.free-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.free-list li { display: flex; align-items: baseline; gap: 14px; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.free-list b { font-size: 30px; min-width: 96px; background: linear-gradient(90deg, var(--title-1), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.free-list span { color: var(--muted); }
.privacy { padding: 30px 34px; border-radius: var(--radius); border: 1px dashed var(--border); }
.privacy p { color: var(--muted); }
.privacy .muted { font-size: 15px; opacity: 0.85; margin: 0; }
@media (max-width: 900px) { .free-card { grid-template-columns: 1fr; padding: 26px; } .top nav a.donate-mini span { display: none; } }
@media (prefers-reduced-motion: reduce) { .donate::after { animation: none; } }
.donate span { white-space: nowrap; }
@media (max-width: 420px) { .donate { padding: 12px 18px; font-size: 15px; gap: 8px; } }

/* Listen: the sounds made by the agents. */
.sound-lab { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; margin: 0 0 96px; padding: 36px; border-radius: calc(var(--radius) + 6px); background: var(--surface); border: 1px solid var(--border); }
.sound-text p { color: var(--muted); }
.sound-text .muted { font-size: 15px; }
.mixer { padding: 20px; border-radius: var(--radius); background: #0b0f24; color: #e9edff; box-shadow: 0 24px 60px var(--shadow); }
.mixer-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.mixer-head b { display: block; }
.mixer-head small { color: #a9b1d6; }
.play-big { width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 50%, transparent); flex: none; }
.play-big.playing { font-size: 16px; }
.layers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.layer { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 10px 6px; border-radius: 12px; border: 1px solid rgb(255 255 255 / 0.14); background: rgb(255 255 255 / 0.04); color: #a9b1d6; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s ease; }
.layer i { width: 9px; height: 9px; border-radius: 50%; background: #555b7a; }
.layer.on { color: #fff; border-color: color-mix(in srgb, var(--accent-2) 70%, transparent); background: color-mix(in srgb, var(--accent-2) 18%, transparent); }
.layer.on i { background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.eq { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-top: 16px; }
.eq span { flex: 1; height: 8%; border-radius: 3px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); transition: height 0.08s linear; }
.sfx { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.sfx button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease; }
.sfx button span { font-size: 22px; }
.sfx button:hover { transform: translateY(-2px); border-color: var(--accent); }
.sfx button.playing { border-color: var(--accent-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 30%, transparent); }
@media (max-width: 900px) { .sound-lab { grid-template-columns: 1fr; padding: 22px; } .layers { grid-template-columns: repeat(2, 1fr); } }

/* Autonomous agents, the user's last word. */
.auto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.auto-grid img { border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 24px 60px var(--shadow); }
.auto-grid figcaption { color: var(--muted); font-size: 15px; margin-top: 14px; }
.auto-grid figcaption b { color: var(--text); display: block; font-size: 17px; margin-bottom: 4px; }
.auto-note { text-align: center; color: var(--muted); margin-top: 30px; }
@media (max-width: 900px) { .auto-grid { grid-template-columns: 1fr; } }

/* What's new */
.new { padding-top: 72px; }
.new-tag { display: table; margin: 0 auto 10px; padding: 5px 14px; border-radius: 999px; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.new-combo { position: relative; margin: 0; padding-right: 13%; }
.new-combo > img { display: block; width: 100%; }
.new-combo.tall { padding-right: 0; }
.new-combo.tall > img { width: 58%; margin-left: 6%; }
.new-combo.tall .phone-frame { right: 4%; bottom: 8%; width: 34%; }
.new-combo .phone-frame { position: absolute; right: 0; bottom: -28px; width: 30%; max-width: 200px; margin: 0; transform: rotate(4deg); }
@media (max-width: 900px) { .new-combo { padding-right: 0; padding-bottom: 40px; } .new-combo .phone-frame { width: 38%; bottom: -10px; } }
