/* MeowOS website. Jet black and white. */

:root {
  --bg: #040405;
  --ink: #f6f6f8;
  --ink-2: rgba(246, 246, 248, 0.68);
  --ink-3: rgba(246, 246, 248, 0.44);
  --ink-4: rgba(246, 246, 248, 0.24);
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-hi: rgba(255, 255, 255, 0.09);
  --edge: rgba(255, 255, 255, 0.2);
  --edge-soft: rgba(255, 255, 255, 0.075);
  --ok: oklch(0.82 0.15 155);
  --warn: oklch(0.84 0.14 80);
  --bad: oklch(0.72 0.17 25);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 1, 0.5, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;

  --max: 1180px;
  --pad: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(255, 255, 255, 0.85); color: #000; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--max), 100% - var(--pad) * 2); margin-inline: auto; }

/* Ambient light and grain */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient i { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.075), transparent 70%); will-change: transform; }
.ambient i:nth-child(1) { width: 70vmax; height: 70vmax; left: -24vmax; top: -38vmax; animation: drift-a 40s ease-in-out infinite alternate; }
.ambient i:nth-child(2) { width: 56vmax; height: 56vmax; right: -26vmax; top: 22vh; animation: drift-b 48s ease-in-out infinite alternate; opacity: 0.8; }
.ambient i:nth-child(3) { width: 60vmax; height: 60vmax; left: 8vmax; bottom: -50vmax; animation: drift-a 54s ease-in-out infinite alternate-reverse; opacity: 0.7; }
@keyframes drift-a { to { transform: translate3d(9vmax, 7vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-8vmax, 9vmax, 0) scale(0.94); } }
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ------------------------------------------------------------------------ */
/* Glass                                                                    */
/* ------------------------------------------------------------------------ */

.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass);
  -webkit-backdrop-filter: blur(26px) saturate(1.7) brightness(1.05);
  backdrop-filter: blur(26px) saturate(1.7) brightness(1.05);
  box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--edge-soft), 0 24px 60px -28px rgba(0, 0, 0, 0.8);
  border-radius: 28px;
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.glass:hover::before, .glass.lit::before { opacity: 1; }
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 38%);
}
.glass > * { position: relative; z-index: 3; }

/* ------------------------------------------------------------------------ */
/* Nav                                                                      */
/* ------------------------------------------------------------------------ */

.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px; display: flex; align-items: center; transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.nav.scrolled { background: rgba(4, 4, 5, 0.62); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 650; font-size: 18px; letter-spacing: -0.03em; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: 14.5px; font-weight: 520; transition: color 0.25s var(--ease), background-color 0.25s var(--ease); }
.nav-links a:hover { color: var(--ink); background: var(--glass); }
.nav-links a.btn-primary { color: #050506; padding: 0 18px; }
.nav-links a.btn-primary:hover { background: #fff; color: #050506; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15.5px; white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease), box-shadow 0.4s var(--ease), color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.985); transition-duration: 0.12s; }
.btn-primary { background: #f6f6f8; color: #050506; box-shadow: 0 12px 40px -12px rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(0, 0, 0, 0.12); }
.btn-primary:hover { background: #fff; box-shadow: 0 14px 44px -14px rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.12); }
.btn-ghost { background: var(--glass); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--edge-soft); }
.btn-ghost:hover { background: var(--glass-hi); }
.btn-lg { height: 56px; padding: 0 32px; font-size: 17px; }
.btn svg { width: 19px; height: 19px; }
.btn.sm { height: 38px; padding: 0 18px; font-size: 14px; }

.chip { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 15px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--edge-soft); font-size: 13.5px; font-weight: 560; color: var(--ink-2); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 22%, transparent); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }

/* ------------------------------------------------------------------------ */
/* Reveal                                                                   */
/* ------------------------------------------------------------------------ */

[data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(8px); transition: opacity 0.9s var(--ease), transform 1s var(--ease), filter 0.9s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ------------------------------------------------------------------------ */
/* Hero                                                                     */
/* ------------------------------------------------------------------------ */

.hero { position: relative; padding: 150px 0 40px; text-align: center; min-height: 100vh; }
.hero-copy { transform: translateY(calc(var(--p, 0) * -40px)); opacity: calc(1 - var(--p, 0) * 0.9); will-change: transform, opacity; }
.hero .chip { margin-bottom: 30px; }
.hero h1 { font-size: clamp(64px, 12vw, 168px); line-height: 0.92; font-weight: 700; letter-spacing: -0.065em; }
.hero h1 .cat { display: inline-block; width: 0.78em; height: 0.78em; vertical-align: -0.06em; margin-right: 0.08em; filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.28)); }
.hero .tagline { margin-top: 22px; font-size: clamp(22px, 3.3vw, 40px); font-weight: 560; letter-spacing: -0.035em; color: var(--ink); }
.hero .sub { max-width: 560px; margin: 18px auto 0; color: var(--ink-2); font-size: clamp(16px, 1.5vw, 19px); text-wrap: balance; }
.hero .cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero .fine { margin-top: 16px; color: var(--ink-3); font-size: 14px; }

.mock-wrap { margin: 70px auto 0; width: min(1000px, 100%); perspective: 1600px; }
.mock-tilt { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(calc(var(--p, 0) * 30px)); transition: transform 0.6s var(--ease); transform-style: preserve-3d; }
.mock-tilt.tracking { transition: transform 0.1s linear; }

/* The app, in miniature */
.mk { border-radius: 26px; overflow: hidden; text-align: left; font-size: 13px; line-height: 1.4; background: rgba(8, 8, 10, 0.78); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--edge-soft), 0 60px 120px -40px rgba(0, 0, 0, 0.95), 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.mk-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; position: relative; }
.mk-lights { display: flex; gap: 7px; }
.mk-lights i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.mk-dock { position: relative; display: flex; padding: 3px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--edge-soft); margin-left: 12px; }
.mk-dock button { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 999px; color: var(--ink-2); font-weight: 560; font-size: 12.5px; transition: color 0.3s var(--ease); }
.mk-dock button.on { color: var(--ink); }
.mk-dock button svg { width: 15px; height: 15px; }
.mk-thumb { position: absolute; z-index: 1; top: 3px; bottom: 3px; left: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 var(--edge), 0 4px 14px -4px rgba(0, 0, 0, 0.5); transition: transform 0.5s var(--ease), width 0.5s var(--ease); }
.mk-grow { flex: 1; }
.mk-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 3px 3px 3px 12px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--edge-soft); color: var(--ink-2); }
.mk-pill > svg { width: 15px; height: 15px; }
.mk-pill .mk-avatar { width: 30px; height: 30px; }
.mk-avatar { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); display: grid; place-items: center; font-weight: 700; font-size: 12px; }

.mk-stage { position: relative; height: 430px; margin: 0 12px 12px; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px var(--edge-soft); }
.mk-screen { position: absolute; inset: 0; opacity: 0; transform: scale(0.985); filter: blur(6px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease), filter 0.6s var(--ease); pointer-events: none; padding: 38px 40px; }
.mk-screen.on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.mk-hello small { color: var(--ink-3); font-weight: 560; font-size: 13px; }
.mk-hello b { display: block; margin-top: 6px; font-size: 36px; line-height: 1; letter-spacing: -0.05em; font-weight: 700; }
.mk-hello b span { color: var(--ink-3); }
.mk-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.mk-tile { height: 150px; border-radius: 22px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; background: var(--glass); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--edge-soft); transition: opacity 0.6s var(--ease), filter 0.6s var(--ease), transform 0.5s var(--ease); }
.mk-tile .g { width: 40px; height: 40px; border-radius: 13px; background: rgba(255, 255, 255, 0.09); display: grid; place-items: center; }
.mk-tile .g svg { width: 20px; height: 20px; }
.mk-tile b { font-size: 21px; letter-spacing: -0.035em; }
.mk-tile span { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
/* The update banner on Home, shown in the tour's last step. */
.mk-banner { display: none; align-items: center; gap: 12px; margin-bottom: 18px; padding: 10px 12px; border-radius: 20px; background: var(--glass); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--edge-soft); }
.mk-banner .ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); }
.mk-banner .ic svg { width: 17px; height: 17px; }
.mk-banner b { display: block; font-size: 13.5px; letter-spacing: -0.01em; }
.mk-banner span { display: block; color: var(--ink-3); font-size: 12px; }
.mk-banner em { margin-left: auto; flex: none; height: 28px; padding: 0 14px; border-radius: 999px; display: grid; place-items: center; background: #f6f6f8; color: #050506; font-style: normal; font-weight: 640; font-size: 12px; }
.mk[data-scene="update"] .mk-banner { display: flex; animation: banner-in 0.8s var(--ease) both; }
.mk[data-scene="update"] .mk-banner em { animation: nudge 2.2s var(--ease) 1s infinite; }
@keyframes banner-in { from { opacity: 0; transform: translateY(-12px); filter: blur(6px); } }
@keyframes nudge { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } 30% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.18); } }

/* Pretend pages */
.mk-page { display: grid; place-items: center; height: 100%; }
.mk-phone { width: 250px; height: 100%; max-height: 380px; border-radius: 26px; background: linear-gradient(180deg, #1a1a1f, #0a0a0c); box-shadow: inset 0 0 0 1px var(--edge-soft); position: relative; overflow: hidden; }
.mk-phone .vid { position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 30%, rgba(255, 255, 255, 0.13), transparent 70%); }
.mk-phone .side { position: absolute; right: 12px; bottom: 90px; display: grid; gap: 12px; }
.mk-phone .side i { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.mk-phone .cap { position: absolute; left: 14px; bottom: 18px; right: 70px; }
.mk-phone .cap i { display: block; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, 0.5); margin-bottom: 7px; }
.mk-phone .cap i:last-child { width: 60%; background: rgba(255, 255, 255, 0.25); }
.mk-feed { width: 300px; height: 100%; max-height: 390px; display: grid; gap: 12px; align-content: start; padding-top: 4px; }
.mk-feed .post { border-radius: 18px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--edge-soft); padding: 12px; }
.mk-feed .post .row { display: flex; gap: 10px; align-items: center; }
.mk-feed .post .row i { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.mk-feed .post .row u { display: block; width: 90px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.4); text-decoration: none; }
.mk-feed .post .img { margin-top: 10px; height: 108px; border-radius: 12px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)); }

/* ------------------------------------------------------------------------ */
/* Sections                                                                 */
/* ------------------------------------------------------------------------ */

section { position: relative; }
.section { padding: clamp(90px, 14vw, 170px) 0 0; }
.eyebrow { color: var(--ink-3); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; margin-bottom: 18px; }
.h2 { font-size: clamp(38px, 6.2vw, 80px); line-height: 1; font-weight: 700; letter-spacing: -0.055em; text-wrap: balance; }
.h2 span { color: var(--ink-3); }
.lead { margin-top: 20px; max-width: 600px; color: var(--ink-2); font-size: clamp(17px, 1.6vw, 21px); text-wrap: balance; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 60px; }
.card { padding: 30px; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; transition: transform 0.6s var(--ease); }
.card h3 { font-size: 24px; line-height: 1.1; letter-spacing: -0.04em; font-weight: 650; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; max-width: 420px; }
.card .art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.c1 { grid-column: span 4; min-height: 340px; }
.c2 { grid-column: span 2; }
.c3 { grid-column: span 2; }
.c4 { grid-column: span 2; }
.c5 { grid-column: span 2; }
.c6 { grid-column: span 6; min-height: 220px; flex-direction: row; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
@media (max-width: 880px) { .bento { grid-template-columns: 1fr 1fr; } .c1, .c6 { grid-column: span 2; } .c2, .c3, .c4, .c5 { grid-column: span 1; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .c1, .c2, .c3, .c4, .c5, .c6 { grid-column: span 1; } }

.art-dock { position: absolute; left: 30px; top: 30px; right: 30px; display: flex; justify-content: center; }
.art-dock .mk-dock { margin: 0; transform: scale(1.25); transform-origin: top center; }
.art-tiles { position: absolute; left: 30px; right: 30px; top: 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; opacity: 0.85; }
.art-tiles i { display: block; height: 100px; border-radius: 20px; background: var(--glass); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--edge-soft); }

.art-sync { position: absolute; right: 26px; top: 26px; display: grid; gap: 8px; width: 150px; }
.art-sync span { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); font-size: 12px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--edge-soft); }
.art-sync span i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

.swatch-row { position: absolute; left: 28px; top: 28px; display: flex; gap: 10px; z-index: 3; }
.swatch-row button { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 14px -6px var(--c); transition: transform 0.35s var(--ease); position: relative; }
.swatch-row button:hover { transform: scale(1.18); }
.swatch-row button.on::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #fff; }

.lock-art { position: absolute; right: 28px; top: 28px; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--edge-soft); font-size: 12.5px; color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.4); }

/* ------------------------------------------------------------------------ */
/* Tour                                                                     */
/* ------------------------------------------------------------------------ */

.tour { --tp: 0; display: grid; grid-template-columns: minmax(300px, 0.78fr) 1.3fr; gap: clamp(36px, 5vw, 72px); margin-top: 80px; align-items: start; }

/* The steps, one after the other as you scroll. */
.tour-steps { position: relative; }
.tour-step { position: relative; min-height: 52vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 0; opacity: 0.26; transform: translateX(-8px); transition: opacity 0.55s var(--ease), transform 0.7s var(--ease); }
.tour-step.done { opacity: 0.5; }
.tour-step.active { opacity: 1; transform: none; }
.tour-step .n { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--ink-3); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.tour-step .n b { color: var(--ink); font-weight: 650; }
.tour-step h3 { font-size: clamp(28px, 3.3vw, 44px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 700; text-wrap: balance; }
.tour-step p { margin-top: 14px; max-width: 440px; color: var(--ink-2); }

/* The window, kept in view while the steps go by: brighter than the page it sits on. */
.tour-sticky { position: sticky; top: 12vh; }
.tour .mk { background: rgba(14, 14, 18, 0.94); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px rgba(255, 255, 255, 0.13), 0 50px 110px -40px rgba(0, 0, 0, 0.95), 0 0 140px -30px rgba(255, 255, 255, 0.14); }
.tour .mk-stage { height: 470px; background: rgba(255, 255, 255, 0.035); }
.tour-caption { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 22px; color: var(--ink-3); font-size: 14px; }
.tour-caption span { padding: 4px 12px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge-soft); font-variant-numeric: tabular-nums; font-weight: 600; }
.tour-caption b { color: var(--ink); font-weight: 620; letter-spacing: -0.02em; }

@media (max-width: 900px) {
  .tour { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .tour-sticky { position: sticky; top: 76px; z-index: 5; order: -1; }
  .tour .mk-stage { height: 330px; }
  .tour-caption { display: none; }
  .tour-steps { padding-left: 0; }
  .tour-step { min-height: 40vh; padding: 20px 0; transform: none; }
}

/* Scenes of the tour mock */
.m-layer { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(14px) scale(0.98); filter: blur(6px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease), filter 0.6s var(--ease); pointer-events: none; z-index: 5; }
.mk[data-scene="signin"] .m-signin, .mk[data-scene="welcome"] .m-welcome, .mk[data-scene="look"] .m-sheet { opacity: 1; transform: none; filter: none; }
.mk[data-scene="signin"] .mk-bar, .mk[data-scene="welcome"] .mk-bar { opacity: 0.25; }
.mk-bar { transition: opacity 0.5s var(--ease); }
.m-signin, .m-welcome { background: rgba(4, 4, 5, 0.75); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.gate { text-align: center; }
.gate .tile { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: var(--glass); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--edge-soft); }
.gate .tile svg { width: 34px; height: 34px; }
.gate b { display: block; font-size: 26px; letter-spacing: -0.045em; }
.gate span { display: block; color: var(--ink-3); margin: 4px 0 16px; font-size: 13px; }
.gate .gbtn { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 18px; border-radius: 999px; background: #fff; color: #111; font-weight: 600; font-size: 13px; }
.gate .gbtn svg { width: 16px; height: 16px; }
.gate .note { margin-top: 12px; font-size: 11.5px; color: var(--ink-3); }
.m-welcome .panel { width: 330px; padding: 22px; border-radius: 26px; text-align: center; }
.m-welcome .panel .row { display: flex; gap: 11px; text-align: left; padding: 8px 4px; }
.m-welcome .panel .row i { flex: none; width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, 0.09); display: grid; place-items: center; }
.m-welcome .panel .row i svg { width: 15px; height: 15px; }
.m-welcome .panel .row b { display: block; font-size: 12.5px; }
.m-welcome .panel .row span { display: block; color: var(--ink-3); font-size: 11px; line-height: 1.35; }

.m-sheet { place-items: stretch end; padding: 10px; }
.m-sheet .sheet { width: 62%; border-radius: 22px; padding: 18px; background: rgba(18, 18, 22, 0.92); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--edge-soft), 0 40px 80px -20px #000; }
.sheet h4 { font-size: 15px; margin: 0 0 12px; letter-spacing: -0.03em; }
.sheet .themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sheet .themes i { display: block; height: 46px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--edge-soft); }
.sheet .themes i:nth-child(1) { background: #f4f4f6; }
.sheet .themes i:nth-child(2) { background: #050506; outline: 2px solid #fff; outline-offset: 1px; }
.sheet .themes i:nth-child(3) { background: linear-gradient(90deg, #f4f4f6 50%, #050506 50%); }
.sheet .sw { display: flex; gap: 9px; margin: 14px 0; }
.sheet .sw i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.sheet .row2 { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.sheet .sw-on { width: 34px; height: 20px; border-radius: 999px; background: var(--acc, #f6f6f8); position: relative; transition: background-color 0.5s var(--ease); }
.sheet .sw-on::after { content: ""; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #050506; }

.hl { position: absolute; z-index: 6; border-radius: 999px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.55), 0 0 0 200vmax rgba(0, 0, 0, 0.55), 0 0 34px 2px rgba(255, 255, 255, 0.25); opacity: 0; transition: opacity 0.5s var(--ease), left 0.6s var(--ease), top 0.6s var(--ease), width 0.6s var(--ease), height 0.6s var(--ease); pointer-events: none; }
.mk[data-scene="dock"] .hl { opacity: 1; }

/* ------------------------------------------------------------------------ */
/* Download                                                                 */
/* ------------------------------------------------------------------------ */

.download { padding: clamp(36px, 6vw, 70px); text-align: center; border-radius: 40px; overflow: hidden; }
.download .mark { width: 76px; height: 76px; margin: 0 auto 26px; border-radius: 22px; box-shadow: 0 22px 50px -18px rgba(0, 0, 0, 0.9); }
.download h2 { font-size: clamp(36px, 5.4vw, 68px); letter-spacing: -0.055em; line-height: 1; font-weight: 700; }
.download p { margin: 16px auto 0; max-width: 520px; color: var(--ink-2); }
.download .actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 32px; }
.download .closed { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--edge-soft); color: var(--ink-2); font-size: 14.5px; max-width: 520px; text-align: left; }
.download .closed svg { flex: none; width: 20px; height: 20px; color: var(--warn); }
.install { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 46px; text-align: left; }
.install li { padding: 18px 20px; border-radius: 20px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--edge-soft); font-size: 14.5px; color: var(--ink-2); }
.install li b { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 4px; letter-spacing: -0.02em; }
.install code { font: 500 12.5px ui-monospace, "SF Mono", Menlo, monospace; padding: 2px 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); color: var(--ink); }
@media (max-width: 760px) { .install { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------------ */
/* Footer, dialog                                                           */
/* ------------------------------------------------------------------------ */

footer { margin-top: clamp(90px, 12vw, 150px); padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; flex: none; align-self: flex-start; }
footer .wrap > div { flex: 1 1 260px; min-width: 0; }
footer a:hover { color: var(--ink); }
footer .small { max-width: 520px; line-height: 1.5; }

dialog { border: 0; padding: 0; background: none; color: inherit; max-width: min(520px, 92vw); overscroll-behavior: contain; }
/* While a dialog is up, only the dialog scrolls, never the page behind it. */
html.dialog-open, html.dialog-open body { overflow: hidden; }
.up-last { color: var(--ink-3); font-weight: 500; }
.up-last b { color: var(--ink-2); font-weight: 620; }
dialog::backdrop { background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
dialog .box { padding: 30px; border-radius: 28px; background: rgba(20, 20, 24, 0.9); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--edge-soft), 0 50px 100px -30px #000; }
dialog h3 { font-size: 24px; letter-spacing: -0.04em; margin-bottom: 8px; }
dialog p { color: var(--ink-2); }
dialog .btn { margin-top: 22px; }
dialog[open] .box { animation: pop 0.5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.97); filter: blur(6px); } }

/* ------------------------------------------------------------------------ */
/* Guide and legal pages                                                    */
/* ------------------------------------------------------------------------ */

.page { padding: 150px 0 0; }
.page-head { max-width: 760px; }
.page h1 { font-size: clamp(44px, 7vw, 92px); line-height: 0.98; letter-spacing: -0.06em; font-weight: 700; text-wrap: balance; }
.prose { max-width: 720px; margin-top: 56px; }
.prose h2 { font-size: 28px; letter-spacing: -0.04em; margin: 52px 0 12px; line-height: 1.1; }
.prose h3 { font-size: 19px; letter-spacing: -0.025em; margin: 30px 0 8px; }
.prose p, .prose li { color: var(--ink-2); margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose strong { color: var(--ink); }
.prose code { font: 500 0.9em ui-monospace, "SF Mono", Menlo, monospace; padding: 2px 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.callout { margin-top: 30px; padding: 20px 22px; border-radius: 22px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--edge-soft); color: var(--ink-2); }
.callout b { color: var(--ink); }
.guide-steps { display: grid; gap: 14px; margin-top: 50px; max-width: 820px; counter-reset: s; }
.guide-steps li { counter-increment: s; display: flex; gap: 18px; padding: 22px 24px; }
/* The glass rim is a ring that lights up on hover; the guide does not use it. */
.guide-steps li::before { display: none; }
.guide-steps b { display: block; font-size: 19px; letter-spacing: -0.03em; }
.guide-steps span { display: block; color: var(--ink-2); margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* A VPN pill and a search box, for the two small feature cards. */
.art-vpn { position: absolute; left: 26px; top: 26px; display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--edge-soft); font-size: 13px; font-weight: 600; }
.art-vpn i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent), 0 0 10px var(--ok); }
.art-update { position: absolute; left: 26px; right: 26px; top: 26px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--edge-soft); }
.art-update .ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); }
.art-update .ic svg { width: 17px; height: 17px; }
.art-update > div { flex: 1; min-width: 0; }
.art-update b { display: block; font-size: 13px; letter-spacing: -0.01em; }
.art-update .pb { display: block; height: 4px; margin-top: 9px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.art-update .pb i { display: block; height: 100%; width: 60%; border-radius: inherit; background: #f6f6f8; animation: fill 3.4s var(--ease) infinite alternate; }
@keyframes fill { from { width: 16%; } to { width: 94%; } }

/* ------------------------------------------------------------------------- */
/* Snapchat in the miniature app, download choices, the Update dialog         */
/* ------------------------------------------------------------------------- */

.mk-tiles { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mk-tile { padding: 13px; }
.mk-tile b { font-size: 17px; }
.mk-tile span { font-size: 11px; }
.mk-chat { display: grid; gap: 9px; width: min(260px, 70%); margin: 22px auto 0; }
.mk-chat .b { height: 34px; width: 62%; border-radius: 16px; background: var(--glass); box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px var(--edge-soft); }
.mk-chat .b.r { justify-self: end; background: rgba(255, 255, 255, 0.16); }
.mk-chat .b.s { height: 24px; width: 40%; }

.download .archs { color: var(--ink-3); font-size: 14px; }
.download .archs a { margin-left: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--edge); }
.download .archs a:hover { text-decoration-color: var(--ink); }

footer nav button { color: inherit; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; transition: color 0.2s; }
footer nav button:hover { color: var(--ink); }

.btn.ghost { background: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }

dialog .field {
  width: 100%; height: 46px; margin-top: 18px; padding: 0 16px; border: 0; border-radius: 14px;
  background: rgba(255, 255, 255, 0.07); color: var(--ink); font: inherit; outline: none;
  box-shadow: inset 0 0 0 1px var(--edge-soft); transition: box-shadow 0.2s, background-color 0.2s;
}
dialog .field:focus { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1.5px var(--ink-2); }
dialog select.field { appearance: none; padding-right: 30px; }
dialog select.field option { color: #000; }
.up-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.up-actions .btn { margin-top: 0; }
.up-err { margin-top: 12px; color: var(--bad); font-size: 14px; }
.up-small { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.up-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.up-row label { display: block; margin-top: 18px; color: var(--ink-3); font-size: 13px; font-weight: 560; }
.up-row .field { margin-top: 8px; }
.drop {
  display: grid; justify-items: center; gap: 4px; margin-top: 18px; padding: 24px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1.5px var(--edge-soft); text-align: center; cursor: pointer;
  transition: background-color 0.25s, box-shadow 0.25s;
}
.drop svg { width: 24px; height: 24px; color: var(--ink-2); margin-bottom: 4px; }
.drop b { font-weight: 620; word-break: break-all; }
.drop span { color: var(--ink-3); font-size: 13.5px; }
.drop:hover, .drop.over { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.up-bar { height: 8px; margin-top: 22px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.up-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink); transition: width 0.3s var(--ease); }
.up-step[hidden] { display: none; }

.cmd { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 8px 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--edge-soft); max-width: 100%; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 500 13px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); user-select: all; }
.cmd .copy { flex: none; height: 30px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--ink); font-weight: 600; font-size: 13px; border: 0; cursor: pointer; transition: background-color 0.2s, transform 0.15s; }
.cmd .copy:hover { background: rgba(255, 255, 255, 0.17); }
.cmd .copy:active { transform: scale(0.96); }
.cmd .copy.done { background: var(--ink); color: #050506; }

/* The Update dialog: what is live now, the build date, release notes, "required". */
.released { color: var(--ink-3); font-size: 14px; }
.up-live { margin-bottom: 20px; padding: 13px 15px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--edge-soft); color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.up-live small { display: block; margin-bottom: 4px; color: var(--ink-3); font-size: 12px; font-weight: 640; letter-spacing: 0.05em; text-transform: uppercase; }
.up-live b { color: var(--ink); font-weight: 640; }
.up-live div + div { margin-top: 6px; }
.up-built { margin-top: 12px; color: var(--ink-3); font-size: 13.5px; }
.up-built b { color: var(--ink); font-weight: 600; }
.up-built.warn { color: var(--bad); }
.up-wide { display: block; margin-top: 18px; color: var(--ink-3); font-size: 13px; font-weight: 560; }
.up-wide small { font-weight: 450; }
dialog textarea.field { display: block; height: auto; padding: 12px 16px; resize: none; line-height: 1.45; }
.up-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; color: var(--ink); font-size: 14.5px; font-weight: 560; cursor: pointer; }
.up-check input { appearance: none; -webkit-appearance: none; flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 7px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--edge-soft); cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s; }
.up-check input:checked { background: #f6f6f8; }
.up-check input:checked::after { content: ""; width: 10px; height: 5px; border: 2px solid #050506; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.up-check input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.up-check small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13px; font-weight: 450; }

/* The miniature app on a phone: icons only, so it fits. */
@media (max-width: 640px) {
  .mk-lights, .mk-pill { display: none; }
  .mk-bar { gap: 8px; padding: 10px; justify-content: center; }
  .mk-dock { margin-left: 0; }
  .mk-dock button { gap: 0; padding: 0 11px; font-size: 0; }
  .mk-dock button svg { width: 17px; height: 17px; }
  .mk-grow { display: none; }
  .mk-screen { padding: 20px 16px; }
  .mk-hello b { font-size: 26px; }
  .mk-tiles { gap: 8px; margin-top: 18px; }
  .mk-tile { height: 112px; padding: 10px; border-radius: 16px; }
  .mk-tile .g { width: 32px; height: 32px; border-radius: 10px; }
  .mk-tile b { font-size: 13.5px; }
  .mk-tile span { display: none; }
  .mk-banner { margin-bottom: 12px; padding: 8px 10px; }
  .mk-banner em { height: 24px; padding: 0 10px; font-size: 11px; }
  .gate b { font-size: 21px; }
  .gate .tile { width: 52px; height: 52px; }
  .m-welcome .panel { width: 88%; padding: 16px; }
  .m-sheet .sheet { width: 84%; }
}

.up-count { display: block; margin-top: 6px; text-align: right; color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
#up-notes { resize: vertical; min-height: 110px; white-space: pre-wrap; line-height: 1.5; }
