/*
 * home.css — the page between the two: viberoom's opening and its room of vibemates, dressed in the paper, ink
 * and pastels of the studio version. Solid colour where the old page had glass and gradients; every motion is a
 * transform or an opacity, and all of it is off under prefers-reduced-motion.
 */

:root {
  --paper: #f5f1e9;
  --paper-2: #fbf8f2;
  --card: #fffdf8;
  --ink: #202544;
  --ink-2: #3a3f63;
  --muted: #6f6f80;
  --line: #2025441f;
  --coral: #f6755a;
  --coral-ink: #3a1d17;
  --blue: #343eaa;
  --blue-soft: #a9b0ff;
  --olive: #e2e5b6;
  --olive-ink: #6b7347;
  /* the pastels: one per vibemate and per panel */
  --lavender: #e7e3fb;
  --lavender-ink: #4b44a8;
  --mint: #dcefe3;
  --mint-ink: #2f7a55;
  --butter: #f8ecc4;
  --butter-ink: #8a6512;
  --peach: #fbe1d6;
  --peach-ink: #b34a2c;
  --sky: #dcebf8;
  --sky-ink: #2d6a9e;
  --orchid: #f3e0f1;
  --orchid-ink: #93407f;
  --shadow: 0 1px 0 #2025440f, 0 12px 30px -18px #20254455;
  --shadow-lift: 0 2px 0 #2025440f, 0 24px 60px -24px #20254470;
  --radius: 26px;
  color-scheme: light;
  font-family: Nunito, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  scroll-behavior: smooth;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16182e;
    --paper-2: #1c1f3a;
    --card: #232746;
    --ink: #f1eee6;
    --ink-2: #d6d3e6;
    --muted: #a3a3b8;
    --line: #f1eee61f;
    --coral-ink: #2a120d;
    --blue: #4a55c9;
    --olive: #3a3d2a;
    --olive-ink: #d4d9a6;
    --lavender: #2f2b55;
    --lavender-ink: #c9c3ff;
    --mint: #1f3a2e;
    --mint-ink: #9fe0bd;
    --butter: #3d3420;
    --butter-ink: #f3d68c;
    --peach: #43281f;
    --peach-ink: #ffb79f;
    --sky: #1d3247;
    --sky-ink: #a8d2f5;
    --orchid: #3d2439;
    --orchid-ink: #f0b8e4;
    --shadow: 0 1px 0 #0000002a, 0 12px 30px -18px #000000aa;
    --shadow-lift: 0 2px 0 #0000002a, 0 24px 60px -24px #000000c0;
    color-scheme: dark;
  }
}

/* the page as a whole at 90%, where it reads best; phones keep their own size */
@media (min-width: 760px) { html { zoom: 0.9; } }
* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid #8077ed; outline-offset: 4px; border-radius: 8px; }
::selection { background: #fed573; color: #202544; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 0.98; }
h1 { font-size: clamp(46px, 6.4vw, 88px); font-weight: 900; }
h2 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 900; }
h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h1 em, h2 em { font-style: normal; color: var(--blue); }
@media (prefers-color-scheme: dark) { h1 em, h2 em { color: var(--blue-soft); } }
p { line-height: 1.6; }
main > section { max-width: 1240px; margin: 0 auto; padding: 64px 32px; }
.center { text-align: center; }
.quiet { color: var(--muted); font-size: 15px; }
.lede { color: var(--ink-2); font-size: 19px; max-width: 34em; }
.lede.center { margin: 18px auto 0; }

/* the small numbered divider of the studio version, at a size that leaves the headline the stage */
.label { margin: 0 0 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 11.5px; font-weight: 900; letter-spacing: 0.2em; }
.label.on-band { border-color: #ffffff3d; color: inherit; opacity: 0.8; }

/* a strip of paper stuck on: the labels, the vendors, the names under the bots */
.tape { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 11px; background: var(--card); color: var(--ink); border-radius: 10px; font-size: 14px; font-weight: 800; box-shadow: 0 1px 0 #20254412, 0 6px 14px -8px #20254466; transform: rotate(var(--tilt, -1.2deg)); transition: transform 280ms cubic-bezier(.34, 1.8, .5, 1); }
.tape img { width: 16px; height: 16px; }
.tape small { color: var(--muted); font-weight: 700; }

/* buttons: solid, round, no gradient */
.pill { display: inline-flex; align-items: center; gap: 18px; padding: 18px 30px; border-radius: 999px; font-weight: 900; font-size: 16px; transition: transform 180ms ease, box-shadow 180ms ease; }
.pill span { font-weight: 800; }
.pill:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pill.coral { background: var(--coral); color: var(--coral-ink); }
.pill.ink { background: var(--ink); color: var(--paper); }
.pill.paper { background: var(--paper-2); color: var(--ink); }
.pill.sm { padding: 11px 18px; font-size: 14px; gap: 10px; }
.text-link { display: inline-flex; gap: 10px; padding: 6px 0; border-bottom: 2px solid var(--ink); font-weight: 900; font-size: 15px; }
.btn { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; padding: 15px 22px; border-radius: 999px; font-weight: 900; font-size: 15px; text-align: center; transition: transform 160ms ease, background 160ms ease; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn:hover { transform: translateY(-1px); }
.btn.sm { width: auto; padding: 10px 16px; font-size: 14px; }
.btn.ok { box-shadow: inset 0 0 0 2px var(--mint-ink); color: var(--mint-ink); }

/* ---- the opening ---------------------------------------------------------------------------- */

.boot { position: fixed; inset: 0; z-index: 60; display: grid; justify-items: center; align-content: center; gap: 26px; background: var(--paper); transition: opacity 620ms ease, transform 620ms cubic-bezier(.4, 0, .2, 1); }
.boot.done { opacity: 0; transform: scale(1.06); pointer-events: none; }
html:not(.js) .boot { display: none; }
.boot-art { width: min(240px, 46vw); height: auto; overflow: visible; }
.boot-art .head { fill: var(--card); stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 760ms cubic-bezier(.4, 0, .2, 1) forwards; }
.boot-art .wireless { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw 300ms 620ms ease forwards; }
.boot-art .knob { fill: var(--coral); opacity: 0; animation: pop-in 360ms 820ms cubic-bezier(.2, .9, .3, 1.6) forwards; }
.boot-art .eye { fill: var(--ink); opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop-in 320ms 760ms cubic-bezier(.2, .9, .3, 1.6) forwards, blink 2.4s 1.2s infinite; }
.boot-art .mouth { fill: none; stroke: var(--coral); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 34; stroke-dashoffset: 34; animation: draw 300ms 900ms ease forwards; }
.boot-art .ring { fill: none; stroke: var(--blue); stroke-width: 1.6; opacity: 0; transform-box: fill-box; transform-origin: center; }
.boot-art .ring.r1 { animation: ring-out 1100ms 780ms cubic-bezier(.2, .8, .3, 1) forwards; }
.boot-art .ring.r2 { animation: ring-out 1100ms 960ms cubic-bezier(.2, .8, .3, 1) forwards; }
.boot-art .boot-mates > g { opacity: 0; transform-box: fill-box; transform-origin: center bottom; animation: mate-in 420ms cubic-bezier(.2, .9, .3, 1.6) forwards; }
.boot-art .boot-mates circle { fill: var(--ink); }
.boot-art [data-tint="lavender"] rect { fill: #c9c2f6; }
.boot-art [data-tint="mint"] rect { fill: #b5e0c6; }
.boot-art [data-tint="butter"] rect { fill: #f2d98c; }
.boot-art .boot-mates > g:nth-child(1) { animation-delay: 1000ms; }
.boot-art .boot-mates > g:nth-child(2) { animation-delay: 1090ms; }
.boot-art .boot-mates > g:nth-child(3) { animation-delay: 1180ms; }
.boot-word { margin: 0; display: grid; justify-items: center; gap: 6px; font-weight: 900; }
.boot-who { color: var(--muted); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0; animation: fade-up 480ms 640ms ease forwards; }
.boot-what { font-size: 26px; letter-spacing: -0.02em; opacity: 0; animation: fade-up 520ms 1000ms cubic-bezier(.2, .9, .3, 1.2) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: scale(1); } }
@keyframes mate-in { from { opacity: 0; transform: translateY(14px) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes ring-out { 0% { opacity: 0.55; transform: scale(0.45); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.12); } }

/* the words settle in after the opening, in reading order (home.js adds .ready) */
.js .sk { opacity: 0; transform: translateY(12px); transition: opacity 520ms ease, transform 520ms cubic-bezier(.2, .9, .3, 1); }
.js .sk.ready { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 640ms ease, transform 640ms cubic-bezier(.2, .9, .3, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- the bar -------------------------------------------------------------------------------- */

.bar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 1240px; margin: 0 auto; padding: 16px 32px; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; letter-spacing: -0.02em; }
.brand span { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.bar .pill { white-space: nowrap; }
.bar nav { display: flex; align-items: center; gap: 26px; font-weight: 800; font-size: 15px; }
.bar nav > a:not(.pill):hover { color: var(--blue); }

/* ---- the presentation ----------------------------------------------------------------------- */

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 40px; align-items: center; padding-top: 48px !important; }
.eyebrow { display: inline-flex; align-items: flex-start; gap: 10px; margin: 0 0 22px; color: var(--ink-2); font-size: 12px; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }
.live-dot { flex: none; margin-top: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 #f6755a80; animation: live 2.2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px #f6755a00; } 100% { box-shadow: 0 0 0 0 #f6755a00; } }
.hero .lede { margin: 24px 0 30px; }
.hero .lede strong { color: var(--ink); font-weight: 900; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; }
.vendors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.vendors .tape:nth-child(2n) { --tilt: 1.4deg; }
.vendors .tape:nth-child(3n) { --tilt: -0.4deg; }
.vendors .more { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); }
/* each label straightens on its own under the pointer, with a quick spring, and springs back to its lean when the pointer leaves */
.vendors .tape:hover { transform: rotate(0deg) translateY(-2px); }

/* the stage: one chat in the middle, the vibemates and you around it */
.stage { position: relative; aspect-ratio: 600 / 560; width: 100%; }
.beams { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.beams path { fill: none; stroke: var(--line); stroke-width: 2.2; stroke-dasharray: 5 7; transition: stroke 260ms ease; }
.beams path.live { stroke: var(--coral); stroke-dasharray: 6 6; animation: beam-run 700ms linear infinite; }
@keyframes beam-run { to { stroke-dashoffset: -24; } }

.room-card { position: absolute; left: 28%; top: 18%; width: 44%; height: 64%; display: flex; flex-direction: column; background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lift), 0 0 0 1px var(--line); overflow: hidden; }
.room-top { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.room-top b { color: var(--ink); font-size: 13px; }
.room-top span:last-child { margin-left: auto; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots i:nth-child(1) { background: #f6755a; } .dots i:nth-child(2) { background: #f2c94c; } .dots i:nth-child(3) { background: #6fcf97; }
.msgs { -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%); list-style: none; margin: 0; padding: 12px 12px 6px; display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; flex: 1; overflow: hidden; }
.msg { display: grid; grid-template-columns: 24px 1fr; gap: 7px; align-items: start; animation: msg-in 420ms cubic-bezier(.2, .9, .3, 1.2) both; }
.msg.out { animation: msg-out 360ms ease forwards; }
.msg .av { width: 24px; height: 24px; border-radius: 8px; overflow: hidden; background: var(--tint, var(--paper-2)); }
.msg .av img { width: 100%; height: 100%; object-fit: contain; }
.msg b { display: block; font-size: 11px; font-weight: 900; }
.msg b small { color: var(--muted); font-weight: 700; margin-left: 4px; }
.msg p { margin: 2px 0 0; padding: 8px 11px; border-radius: 4px 12px 12px 12px; background: var(--paper-2); font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.msg p i { font-style: normal; font-weight: 900; color: var(--blue); }
@media (prefers-color-scheme: dark) { .msg p i { color: var(--blue-soft); } }
.msg.me { grid-template-columns: 1fr 24px; }
.msg.me .av { order: 2; }
.msg.me p { background: var(--ink); color: var(--paper); border-radius: 12px 4px 12px 12px; }
.msg.me p i { color: #ffd2c6; }
@media (prefers-color-scheme: dark) { .msg.me p i { color: #b3412a; } }
.msg.me b { text-align: right; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes msg-out { to { opacity: 0; transform: translateY(-8px); } }
.room-input { display: flex; justify-content: space-between; align-items: center; margin: 6px 10px 10px; padding: 9px 12px; border-radius: 12px; background: var(--paper-2); color: var(--muted); font-size: 11.5px; }
.room-input b { color: var(--blue); }
.room-input i { font-style: normal; color: var(--coral); }

.mate { position: absolute; margin: 0; width: 14%; display: grid; justify-items: center; gap: 6px; }
.mate[data-mate="nova"] { left: 2%; top: 2%; }
.mate[data-mate="kai"] { left: 84%; top: 22%; }
.mate[data-mate="rio"] { left: 2%; top: 56%; }
.mate[data-mate="you"] { left: 84%; top: 70%; }
.mate .tape { font-size: 13px; padding: 5px 10px; }
.mate[data-mate="kai"] .tape { --tilt: 1.6deg; }
.mate[data-mate="rio"] .tape { --tilt: -2deg; }
/* you: a label, not a face; nobody has to look like a picture to be in the room */
.mate[data-mate="you"] { align-content: center; }
.mate .you-tag { --tilt: 2deg; position: relative; padding: 14px 24px; border-radius: 16px; background: var(--coral); color: var(--coral-ink); font-size: 22px; font-weight: 900; letter-spacing: -0.01em; box-shadow: 0 2px 0 #20254412, 0 14px 28px -14px #3a1d1799; }
.mate.you.talking .you-tag { transform: rotate(0deg) scale(1.08); }
.typing { position: absolute; top: -4%; right: -6%; display: inline-flex; gap: 3px; padding: 6px 8px; border-radius: 10px 10px 10px 2px; background: var(--card); box-shadow: var(--shadow); opacity: 0; transform: scale(0.6); transition: opacity 180ms ease, transform 220ms cubic-bezier(.2, .9, .3, 1.6); }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: dot 900ms infinite; }
.typing i:nth-child(2) { animation-delay: 150ms; } .typing i:nth-child(3) { animation-delay: 300ms; }
.mate.typing-now .typing { opacity: 1; transform: none; }
@keyframes dot { 40% { transform: translateY(-4px); opacity: 1; } 0%, 80%, 100% { opacity: 0.45; } }

/* the vibemates: the product's own faces, each in a frame of its colour; a picture has no parts to move, so
   the whole of it moves: it floats, it turns toward whoever speaks, and the speaker leans in with its voice showing */
.face { position: relative; display: block; width: 86%; aspect-ratio: 1; border-radius: 32%; background: var(--tint, var(--card)); box-shadow: 0 0 0 4px var(--card), var(--shadow-lift); transform: rotate(var(--turn, 0deg)); transition: transform 420ms cubic-bezier(.2, .9, .3, 1.2), box-shadow 300ms ease; animation: float 4.4s ease-in-out infinite; }
.face img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.mate[data-mate="kai"] .face { animation-delay: -1.4s; }
.mate[data-mate="rio"] .face { animation-delay: -2.6s; }
.mate.talking .face { transform: rotate(var(--turn, 0deg)) scale(1.08); box-shadow: 0 0 0 4px var(--card), 0 0 0 9px color-mix(in srgb, var(--tint-ink) 30%, transparent), var(--shadow-lift); animation: float 4.4s ease-in-out infinite, speak 1.1s ease-in-out infinite; }
.mate.happy .face { animation: hop 520ms cubic-bezier(.3, 1.6, .5, 1) 2; }
/* the voice: three bars beside the speaker */
.voice { position: absolute; top: 34%; right: -10%; display: flex; align-items: center; gap: 3px; height: 22px; opacity: 0; transition: opacity 200ms ease; }
.voice i { width: 4px; height: 30%; border-radius: 4px; background: var(--tint-ink, var(--coral)); }
.mate.talking .voice { opacity: 1; }
.mate.talking .voice i { animation: bar 520ms ease-in-out infinite alternate; }
.mate.talking .voice i:nth-child(2) { animation-delay: 160ms; }
.mate.talking .voice i:nth-child(3) { animation-delay: 320ms; }
.mate[data-mate="nova"] .voice, .mate[data-mate="rio"] .voice { right: -14%; }
.mate[data-mate="kai"] .voice { right: auto; left: -14%; flex-direction: row-reverse; }
/* yours is in your label, just outside its left edge: bars of the label's own coral would vanish on it */
.mate[data-mate="you"] .voice { top: 50%; right: calc(100% + 8px); translate: 0 -50%; flex-direction: row-reverse; }
[data-tint="lavender"] { --tint: var(--lavender); --tint-ink: var(--lavender-ink); }
[data-tint="mint"] { --tint: var(--mint); --tint-ink: var(--mint-ink); }
[data-tint="butter"] { --tint: var(--butter); --tint-ink: var(--butter-ink); }
[data-tint="peach"] { --tint: var(--peach); --tint-ink: var(--peach-ink); }
[data-tint="sky"] { --tint: var(--sky); --tint-ink: var(--sky-ink); }
[data-tint="orchid"] { --tint: var(--orchid); --tint-ink: var(--orchid-ink); }
@keyframes float { 50% { translate: 0 -5px; } }
@keyframes speak { 50% { translate: 0 -3px; } }
@keyframes hop { 40% { translate: 0 -12px; } }
@keyframes bar { from { height: 25%; } to { height: 100%; } }
@keyframes wave-r { 50% { transform: rotate(-70deg); } }

/* ---- the real thing ------------------------------------------------------------------------- */

.real-words { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.real-words p { margin: 0; color: var(--ink-2); font-size: 18px; }
/* the window at a size where its own pixels are not stretched: the 1920-wide picture shown at most 1040 wide */
.window { position: relative; max-width: 1040px; margin: 0 auto; background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lift), 0 0 0 1px var(--line); }
.window-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 800; }
.window-shot { position: relative; display: block; overflow: hidden; border-radius: 0 0 18px 18px; }
.window-shot img { width: 100%; }
.open-demo { position: absolute; right: 18px; bottom: 18px; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 900; font-size: 14px; opacity: 0; transform: translateY(6px); transition: opacity 200ms ease, transform 200ms ease; }
.window-shot:hover .open-demo, .window-shot:focus-visible .open-demo { opacity: 1; transform: none; }
.window .note { position: absolute; z-index: 2; font-size: 13px; }
.window .n1 { left: -34px; top: 18%; --tilt: -3deg; }
.window .n2 { right: -40px; top: 40%; --tilt: 2.5deg; background: var(--butter); }
.window .n3 { left: 24%; bottom: -16px; --tilt: -1deg; background: var(--mint); }
.only-dark { display: none !important; }
@media (prefers-color-scheme: dark) { .only-light { display: none !important; } .only-dark { display: block !important; } }

/* ---- three steps ---------------------------------------------------------------------------- */

.steps-section h2 { margin-bottom: 40px; }
.steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 30px 28px 28px; border-radius: var(--radius); background: var(--tint); }
.step > b { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%; background: var(--card); color: var(--tint-ink); font-size: 20px; font-weight: 900; box-shadow: var(--shadow); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); }

/* ---- six reasons ---------------------------------------------------------------------------- */

.why h2 { margin-bottom: 44px; }
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.panel { position: relative; min-height: 300px; padding: 30px 30px 32px; border-radius: var(--radius); background: var(--tint); overflow: hidden; }
.panel .num { margin: 0 0 18px; color: var(--tint-ink); font-size: 11.5px; font-weight: 900; letter-spacing: 0.2em; }
.panel h3 { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; margin-bottom: 14px; }
.panel p:last-child { margin: 0; color: var(--ink-2); max-width: 26em; }
.panel .art { position: absolute; right: 22px; top: 22px; width: 78px; height: 78px; overflow: visible; }
.panel .panel-face { position: absolute; right: 22px; top: 20px; width: 78px; height: 78px; border-radius: 30%; background: var(--card); box-shadow: var(--shadow); transform-origin: 50% 90%; }
.panel .panel-face img { width: 100%; height: 100%; object-fit: contain; }
.art { fill: none; stroke: var(--tint-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.art .cover, .art .sheet, .art .dial, .art .shield, .art .phone, .art .lock, .art .bubble rect { fill: var(--card); }
.art .page { fill: var(--card); transform-box: fill-box; transform-origin: 0% 50%; }
.art .tick { stroke-dasharray: 16; stroke-dashoffset: 0; }
.art .hand { transform-box: view-box; transform-origin: 32px 34px; }
.art .shackle { transform-box: fill-box; transform-origin: 100% 100%; }
.art .bubble { transform-box: fill-box; transform-origin: 0% 100%; }
.art .bubble path { fill: var(--card); }
/* each picture plays once when its panel arrives, and again on hover */
.panel.in.play[data-art="book"] .page { animation: flip 1.2s cubic-bezier(.4, 0, .2, 1) 2; }
.panel.in.play[data-art="rules"] .tick { animation: tick 1.4s ease both; }
.panel.in.play[data-art="rules"] .t2 { animation-delay: 0.25s; }
.panel.in.play[data-art="rules"] .t3 { animation-delay: 0.5s; }
.panel.in.play[data-art="clock"] .minute { animation: spin 1.6s cubic-bezier(.4, 0, .2, 1); }
.panel.in.play[data-art="clock"] .hour { animation: spin-slow 1.6s cubic-bezier(.4, 0, .2, 1); }
.panel.in.play[data-art="clock"] .bell { animation: ring 160ms ease-in-out 6; transform-box: fill-box; transform-origin: center; }
.panel.in.play[data-art="shield"] .shackle { animation: lock 1.1s cubic-bezier(.3, 1.4, .5, 1); }
.panel.in.play[data-art="phone"] .bubble { animation: pop 900ms cubic-bezier(.2, .9, .3, 1.6); }
.panel.in.play[data-art="bot"] .panel-face { animation: greet 1.4s ease-in-out; }
@keyframes greet { 15%, 45% { transform: rotate(-10deg); } 30%, 60% { transform: rotate(10deg); } 80% { transform: rotate(0) translateY(-4px); } }
@keyframes flip { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
@keyframes tick { from { stroke-dashoffset: 16; } to { stroke-dashoffset: 0; } }
@keyframes spin { from { transform: rotate(-360deg); } }
@keyframes spin-slow { from { transform: rotate(-90deg); } }
@keyframes ring { 50% { transform: rotate(12deg); } }
@keyframes lock { 0% { transform: translateY(-5px) rotate(-24deg); } 60% { transform: translateY(1px); } 100% { transform: none; } }
@keyframes pop { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ---- the band ------------------------------------------------------------------------------- */

main > section.band { max-width: none; padding: 0; }
.band.coral { background: var(--coral); color: #202544; }
.band-inner { max-width: 1240px; margin: 0 auto; padding: 80px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.band h2 em { color: #fff6ea; }
.band-words p:last-child { max-width: 28em; font-size: 18px; color: #3a2420; }
.archive { max-width: 470px; justify-self: end; width: 100%; }
.paper-stack { position: relative; }
.paper-behind { position: absolute; inset: 10px -10px -10px 10px; border-radius: 6px; background: #ead9bd; transform: rotate(2.2deg); }
.memory-note { position: relative; padding: 26px 28px 30px; border-radius: 6px; background: #fff8ec; color: #202544; box-shadow: 0 20px 40px -20px #3a1d1780; transform: rotate(-1deg); transition: transform 300ms ease; }
.note-date { color: #7a7a86; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; }
.note-author { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; font-weight: 900; font-size: 15px; }
.note-author img { border-radius: 10px; }
.note-author small { display: block; color: #7a7a86; font-weight: 700; font-size: 12px; }
.memory-note blockquote { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; transition: opacity 240ms ease; }
.time-travel { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-top: 30px; font-size: 11px; font-weight: 900; letter-spacing: 0.16em; }
.time-travel input { width: 100%; accent-color: #202544; }

/* ---- tools ---------------------------------------------------------------------------------- */

.tools { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.tools-words p:last-child { color: var(--ink-2); font-size: 18px; max-width: 28em; }
.tools-stage { position: relative; aspect-ratio: 520 / 320; }
.tool-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.tool-wires path { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 7; }
.tool-wires path:first-child { stroke: var(--coral); stroke-dasharray: none; animation: wire-glow 3s ease-in-out infinite; }
@keyframes wire-glow { 50% { opacity: 0.45; } }
.hub { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; justify-items: center; gap: 6px; font-weight: 900; font-size: 12px; color: var(--muted); }
.hub img { border-radius: 22px; box-shadow: var(--shadow-lift); animation: breathe 4s ease-in-out infinite; }
.tool { position: absolute; padding: 12px 18px 12px 12px; font-size: 16px; }
.tool b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--paper); font-size: 15px; }
.t-notion { left: 2%; top: 12%; --tilt: -3deg; }
.t-sentry { right: 2%; top: 12%; --tilt: 2.4deg; }
.t-sentry b { background: #4f3d72; }
.t-linear { left: 4%; bottom: 12%; --tilt: 1.6deg; }
.t-linear b { background: #5e6ad2; }
.t-skill { right: 2%; bottom: 12%; --tilt: -1.6deg; background: var(--butter); font-family: ui-monospace, Consolas, monospace; color: var(--blue); }
.t-skill b { background: var(--coral); color: var(--coral-ink); }

/* ---- getting it ----------------------------------------------------------------------------- */

.get { text-align: center; }
.get .label { text-align: left; }
.get h2 { display: inline-flex; align-items: center; gap: 22px; font-size: clamp(54px, 8vw, 112px); }
.get h2 img { width: clamp(64px, 7vw, 96px); border-radius: 26%; box-shadow: var(--shadow-lift); transform: rotate(8deg); animation: breathe 4s ease-in-out infinite; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; text-align: left; }
.dl { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 26px 24px; border-radius: var(--radius); background: var(--tint); transition: transform 200ms ease; }
.dl.is-yours { box-shadow: 0 0 0 3px var(--ink); }
.dl .os { display: flex; align-items: center; gap: 12px; }
.os-badge { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--card); color: var(--tint-ink); box-shadow: var(--shadow); }
.os-badge svg { width: 24px; height: 24px; }
.dl h3 { font-size: 24px; font-weight: 900; }
.yours { margin-left: auto; padding: 5px 10px; border-radius: 8px; background: var(--coral); color: var(--coral-ink); font-size: 12px; font-weight: 900; transform: rotate(4deg); }
.dl .what { margin: 0; color: var(--ink-2); font-size: 15px; flex: 1; }
.dl .alt { display: flex; flex-direction: column; gap: 8px; }
.dl .alt:empty { display: none; }
.dl .aside { margin: 0; color: var(--ink-2); font-size: 13.5px; font-weight: 700; }
.dl .aside a { font-weight: 900; border-bottom: 1.5px solid currentColor; }
.ticket { display: grid; justify-items: center; gap: 12px; max-width: 640px; margin: 44px auto 0; padding: 26px 28px; border-radius: 8px; background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--line); outline: 2px dashed var(--line); outline-offset: -10px; transform: rotate(-0.6deg); }
.ticket small { color: var(--muted); font-weight: 900; font-size: 11px; letter-spacing: 0.18em; }
.ticket code { font-family: ui-monospace, Consolas, monospace; font-size: 22px; font-weight: 700; color: var(--blue); }
@media (prefers-color-scheme: dark) { .ticket code { color: var(--blue-soft); } }
.ticket-actions { display: flex; gap: 10px; }
.ticket > span { color: var(--muted); font-size: 14px; max-width: 34em; }

/* the vibemate's word before Windows' direct installer (download.js builds it) */
.exe-note { width: min(460px, calc(100% - 32px)); border: 0; border-radius: 22px; padding: 24px; background: var(--card); color: var(--ink); box-shadow: var(--shadow-lift); }
.exe-note::backdrop { background: rgba(32, 37, 68, 0.45); }
.exe-note-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); font-size: 24px; line-height: 1; }
.exe-note-x:hover { background: var(--paper-2); color: var(--ink); }
.exe-note-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-right: 30px; }
.exe-note-head img { width: 64px; height: 64px; border-radius: 50%; background: var(--lavender); flex: none; }
.exe-note-who { margin: 0; font-size: 13px; color: var(--muted); }
.exe-note h3 { margin: 2px 0 0; }
.exe-note p { margin: 0 0 12px; line-height: 1.55; }
.exe-note-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---- two doors ------------------------------------------------------------------------------ */

.doors { padding-top: 16px !important; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.door { position: relative; overflow: hidden; padding: 46px 44px 40px; border-radius: 30px; }
.door h2 { font-size: clamp(32px, 3.4vw, 46px); margin-bottom: 20px; }
.door p:not(.label) { max-width: 26em; margin: 0 0 28px; }
.door small { display: block; margin-top: 22px; font-size: 12px; opacity: 0.8; }
.door.blue { background: #343eaa; color: #fff; }
.door.blue h2 em { color: #b9bcff; }
.door.olive { background: var(--olive); color: #202544; }
@media (prefers-color-scheme: dark) { .door.olive { color: var(--ink); } }
.door.olive h2 em { color: var(--olive-ink); }
.door.olive .label { color: var(--olive-ink); border-color: #6b734733; }
.flight { position: absolute; right: -6px; bottom: 12px; width: 190px; fill: none; stroke: #b9bcff; stroke-width: 2; stroke-linecap: round; }
.flight .trail { stroke-dasharray: 4 7; animation: wire-glow 3s ease-in-out infinite; }
.flight .plane { animation: glide 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes glide { 50% { transform: translate(4px, -6px) rotate(-4deg); } }
.braces { position: absolute; right: 22px; bottom: -20px; font-size: 150px; font-weight: 400; color: #6b734726; letter-spacing: -0.1em; }

/* ---- the foot ------------------------------------------------------------------------------- */

footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; max-width: 1240px; margin: 0 auto; padding: 34px 32px 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .brand { color: var(--ink); font-size: 17px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; font-weight: 800; }
footer nav a:hover { color: var(--ink); }

/* ---- the small pages: a download that starts by itself (/get/*), the privacy policy, the page that is not here.
   The front page's paper, bar and foot, one pastel card in the middle; the policy a quiet column to read. */

main > section.page { max-width: 820px; padding-top: 56px; padding-bottom: 96px; }
.page-card { padding: 52px 44px 44px; border-radius: 30px; background: var(--tint, var(--paper-2)); text-align: center; }
.page-card .os-badge { margin: 0 auto 24px; width: 68px; height: 68px; border-radius: 22px; }
.page-card .os-badge svg { width: 32px; height: 32px; }
.page-card h1 { font-size: clamp(38px, 6vw, 60px); margin-bottom: 18px; }
.page-card .lede { margin: 0 auto 28px; }
.page-card .btn { display: inline-flex; width: auto; padding: 16px 28px; }
.page-card .quiet { margin: 24px 0 0; }
.page-card .text-link { font-size: 14px; font-family: ui-monospace, Consolas, monospace; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.page-face { display: block; width: 120px; height: 120px; margin: 0 auto 24px; border-radius: 32%; background: var(--card); box-shadow: 0 0 0 4px var(--card), var(--shadow-lift); animation: float 4.4s ease-in-out infinite; }
.page-face img { width: 100%; height: 100%; object-fit: contain; }
.prose h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 26px; }
.prose h2 { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--coral); }
.prose code { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; padding: 2px 6px; border-radius: 6px; background: var(--paper-2); }
.prose a { font-weight: 800; border-bottom: 1.5px solid currentColor; }

/* ---- smaller screens ------------------------------------------------------------------------ */

@media (max-width: 1020px) {
  .hero, .tools, .band-inner, .real-words { grid-template-columns: 1fr; }
  .archive { justify-self: start; }
  .panels, .dl-grid, .steps { grid-template-columns: 1fr 1fr; }
  .window .note { display: none; }
}
@media (max-width: 680px) {
  .page-card { padding: 40px 22px 34px; }
  main > section { padding: 64px 20px; }
  .bar { padding: 12px 20px; }
  .hide-sm { display: none; }
  .panels, .dl-grid, .steps, .doors { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .bar .pill span { display: none; }
  /* the stage on a phone: the chat on top, the four of you in a row beneath it */
  .stage { aspect-ratio: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
  .beams { display: none; }
  .room-card { position: static; grid-column: 1 / -1; width: auto; height: 340px; }
  .mate, .mate[data-mate] { position: relative; left: auto; top: auto; width: auto; }
  .face { width: 78%; }
  .mate .tape { font-size: 11px; padding: 4px 7px; }
  .mate .you-tag { font-size: 15px; padding: 9px 14px; }
  .typing { right: 0; }
  .door { padding: 36px 26px 32px; }
  .get h2 { flex-direction: column; }
}

/* ---- motion off ------------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .boot { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .sk, .js .reveal { opacity: 1; transform: none; }
}
