/* vrpianist.app landing page, variant 2 "Scroll to play" (designs/site/v2-score.html, owner's pick).
   A pinned keyboard canvas plays the song as you scroll; after the story the brand book web style
   (warm smoked glass, Inter only, blue --accent for actions; designs/brand/BRAND-BOOK.md §3-6). */
@font-face { font-family: Inter; src: url("/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("/fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url("/fonts/Inter-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --text: #ffffff; --muted: #dcd0c8; --faint: #a89a90; --accent: #3d8bff; --left: #f58be9; --success: #34c77b; --line: #ffbe8c; /* the hit line: a1 of the warm theme (designs/screens-concept/tokens.json), like the notes */
  --glass-1: #2e1e19; --glass-2: #160f0e; --rim-dim: rgba(255, 255, 255, 0.12);
  --surface: rgba(255, 255, 255, 0.08); --surface-hi: rgba(255, 255, 255, 0.17); --ink: #05060a;
}
* { box-sizing: border-box; }
html { background: var(--ink); overflow-x: clip; }
body { margin: 0; color: var(--text); font: 400 18px/1.6 Inter, system-ui, sans-serif; overflow-x: clip; }
a { color: inherit; }
html[lang="en"] [data-pl], html[lang="pl"] [data-en] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.ic { display: inline-flex; width: 1em; height: 1em; } .ic svg { width: 100%; height: 100%; }
.wrap { width: min(1280px, 100% - 80px); margin: 0 auto; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 40; padding: 12px 18px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

/* fixed chrome */
.top { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 24px 40px; }
.top::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(5, 6, 10, 0.9), rgba(5, 6, 10, 0.6) 60%, rgba(5, 6, 10, 0)); } /* text scrolling under the bar stays behind it */
.top img { height: 30px; width: auto; display: block; }
.cta, .btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 20px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 24px -8px rgba(61, 139, 255, 0.9); transition: transform 0.3s, box-shadow 0.3s; }
/* white on --accent is 3.3:1, so action labels are WCAG large text (bold, >= 18.66px) */
.cta { height: 48px; padding: 0 22px; font-size: 19px; white-space: nowrap; }
.btn { gap: 12px; height: 60px; padding: 0 28px; font-size: 19px; }
.cta:hover, .btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 16px 40px -8px rgba(61, 139, 255, 1); }
.btn .ic { transition: transform 0.3s; } .btn:hover .ic { transform: translateX(4px); }
.playhead { position: fixed; left: 40px; right: 40px; bottom: 28px; z-index: 30; display: flex; align-items: center; gap: 16px; font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: opacity 0.5s; }
.playhead .track { flex: 1; height: 2px; background: rgba(255, 255, 255, 0.14); border-radius: 2px; position: relative; overflow: hidden; }
.playhead .fill { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--line), #fff); }
.playhead .state { min-width: 8em; text-align: right; color: #fff; }
.playhead.off { opacity: 0; }

/* the score: pinned keyboard + chapters */
.score { position: relative; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: radial-gradient(1200px 700px at 70% 80%, #22101e, var(--ink) 70%); } /* warm bg1 glow behind the keys */
.pin canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pin::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 6, 10, 0.92) 0%, rgba(5, 6, 10, 0.74) 40%, transparent 64%), linear-gradient(0deg, rgba(5, 6, 10, 0.7), transparent 22%); }
.chapters { position: relative; margin-top: -100vh; margin-top: -100svh; z-index: 2; }
.ch { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.ch .wrap > div { max-width: 640px; }
.ch.hero .wrap > div { max-width: 900px; }
.num { font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: 0.16em; color: var(--line); text-transform: uppercase; display: flex; gap: 14px; align-items: center; margin: 0 0 26px; }
.num::before { content: ""; width: 40px; height: 1px; background: currentColor; }
h1 { font-weight: 700; font-size: clamp(64px, 10.5vw, 176px); line-height: 0.86; letter-spacing: -0.055em; margin: 0 0 34px; }
h1 .thin { font-weight: 400; color: rgba(255, 255, 255, 0.55); }
h2 { font-weight: 700; font-size: clamp(44px, 6.2vw, 96px); line-height: 0.92; letter-spacing: -0.045em; margin: 0 0 26px; }
.ch p { color: var(--muted); font-size: clamp(18px, 1.5vw, 22px); max-width: 30em; margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 40px; }
.textbtn { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 17px; font-weight: 600; text-decoration: none; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.textbtn .ic { font-size: 22px; color: var(--line); } .textbtn[hidden] { display: none; }
.hint { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; font-weight: 500; margin-top: 70px; }
.hint i { width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, 0.5); position: relative; }
.hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }
.legend { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.legend > span { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: rgba(5, 6, 10, 0.55); box-shadow: inset 0 0 0 1px var(--rim-dim); font-size: 15px; font-weight: 600; }
.legend b { width: 12px; height: 12px; border-radius: 4px; } .legend .l { background: #e04fd3; } .legend .r { background: var(--accent); }
.frozen { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 12px 18px; border-radius: 14px; background: rgba(52, 199, 123, 0.14); box-shadow: inset 0 0 0 1px rgba(52, 199, 123, 0.5); color: #b9f2d2; font-size: 15px; font-weight: 600; }
.frozen .ic { color: var(--success); }

/* after the score: brand book glass */
.after { position: relative; z-index: 3; background: linear-gradient(180deg, var(--ink) 0%, var(--glass-1) 18%, var(--glass-2) 100%); }
.block { padding: 140px 0 0; position: relative; }
.block, .end, footer { content-visibility: auto; contain-intrinsic-size: auto 1000px; } /* off-screen sections skip layout at load */
.kicker { font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.block h2 { font-size: clamp(40px, 5vw, 80px); }
.block h2.kicker { font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: 0.16em; margin: 0 0 22px; }
.lede { color: var(--muted); font-size: 20px; max-width: 34em; margin: 0; }
.reel { margin-top: 60px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.frame { margin: 0; border-radius: 32px; overflow: hidden; position: relative; box-shadow: inset 0 0 0 1px var(--rim-dim), 0 40px 80px -40px rgba(0, 0, 0, 0.9); background: #0d0908; }
.frame video, .frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel > .frame { aspect-ratio: 16 / 9; align-self: center; }
.frame figcaption { position: absolute; left: 20px; bottom: 18px; padding: 9px 14px; border-radius: 14px; background: rgba(22, 15, 14, 0.8); font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--muted); box-shadow: inset 0 0 0 1px var(--rim-dim); }
.reel .stack { display: grid; gap: 20px; }
.list { margin-top: 70px; border-top: 1px solid var(--rim-dim); }
.item { display: grid; grid-template-columns: 90px 1fr 1.3fr; gap: 30px; padding: 36px 0; border-bottom: 1px solid var(--rim-dim); align-items: baseline; position: relative; }
.item::before { content: ""; position: absolute; inset: 0 -24px; border-radius: 24px; background: var(--surface); opacity: 0; transition: opacity 0.4s; z-index: -1; }
.item:hover::before { opacity: 1; }
.item .k { font-size: 15px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.item h3 { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.item h3 em { font-style: normal; color: #7fb2ff; }
.item p { margin: 0; color: var(--muted); }
.worlds { margin-top: 70px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.world { aspect-ratio: 3 / 4; border-radius: 24px; overflow: hidden; position: relative; box-shadow: inset 0 0 0 1px var(--rim-dim); background: #0d0908 no-repeat var(--x, 50%) 50% / auto 100%; transition: background-position 6s ease-out, transform 0.5s; }
.world:hover { --x: 80%; transform: translateY(-6px); }
.world::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22, 15, 14, 0.9), transparent 50%); }
.w-hall { background-image: url("/media/world-hall.jpg"); } .w-forest { background-image: url("/media/world-forest.jpg"); }
.w-night { background-image: url("/media/world-night.jpg"); } .w-christmas { background-image: url("/media/world-christmas.jpg"); }
.world b { position: absolute; left: 22px; right: 16px; bottom: 20px; z-index: 1; font-size: 20px; font-weight: 600; line-height: 1.2; }
.world small { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--muted); }
.plans { margin-top: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { padding: 40px; border-radius: 32px; background: var(--surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px var(--rim-dim); }
.plan.plus { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 0 0 1.5px var(--accent), 0 30px 80px -40px rgba(61, 139, 255, 0.8); }
.plan h3 { margin: 0 0 4px; font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.plan .for { color: var(--muted); margin: 0 0 26px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; }
.plan li .ic { color: var(--success); flex: none; margin-top: 4px; }
.faq { margin-top: 50px; border-top: 1px solid var(--rim-dim); max-width: 960px; }
details { border-bottom: 1px solid var(--rim-dim); }
summary { list-style: none; cursor: pointer; padding: 28px 50px 28px 0; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 22px; font-size: 32px; font-weight: 400; line-height: 1; color: var(--accent); transition: rotate 0.3s; }
details[open] summary::after { rotate: 45deg; }
details p { margin: -8px 0 28px; color: var(--muted); max-width: 46em; }
details a { color: #7fb2ff; }
.end { padding: 170px 0 0; text-align: center; }
.end h2 { font-size: clamp(46px, 9vw, 150px); line-height: 0.88; margin: 0 auto 40px; }
.badge { display: inline-flex; align-items: center; gap: 14px; height: 64px; padding: 0 26px 0 20px; border-radius: 16px; background: #000; color: #fff; text-decoration: none; text-align: left; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); transition: transform 0.3s, box-shadow 0.3s; }
.badge:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 20px 40px -14px rgba(61, 139, 255, 0.8); }
.badge img { height: 30px; width: auto; } .badge small { display: block; font-size: 11px; font-weight: 500; line-height: 1.1; letter-spacing: 0.04em; color: #ccc; } .badge b { display: block; font-size: 19px; font-weight: 600; line-height: 1.15; }

/* footer: the shared bar from site/build.mjs (legal links, language menu, copyright) */
footer { background: var(--glass-2); padding: 140px 0 46px; color: var(--muted); font-size: 15px; }
footer .wrap { padding-top: 30px; border-top: 1px solid var(--rim-dim); }
.flogo { height: 26px; width: auto; display: block; margin: 0 0 24px; }
footer .bar { display: flex; gap: 24px 32px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
footer nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
footer nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 6px 0; }
footer nav a:hover { color: var(--accent); }
footer .copy-line { margin: 20px 0 0; } footer .copy-line a { color: var(--text); }
.lang { display: inline-flex; padding: 4px; gap: 4px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rim-dim); flex: none; }
.lang button { font: 600 14px Inter, system-ui, sans-serif; color: var(--muted); background: none; border: 0; padding: 8px 14px; border-radius: 14px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--surface-hi); color: #fff; }

/* motion (lp.js adds .js; reduced motion shows everything at once) */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .ch h2 { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .ch.on h2 { clip-path: inset(-10% -5% -20% -5%); }
.js .ch .fade { opacity: 0; transform: translateY(20px); transition: opacity 0.9s 0.25s, transform 0.9s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .ch.on .fade { opacity: 1; transform: none; }
.ch.hero h1 { animation: wipe 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(-10% -5% -20% -5%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .ch h2, .ch.hero h1 { clip-path: none; } .js .ch .fade, .js [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .wrap { width: calc(100% - 40px); }
  .top { padding: 18px 20px; } .cta { height: 44px; padding: 0 16px; }
  .playhead { left: 20px; right: 20px; bottom: 18px; }
  .pin::after { background: linear-gradient(180deg, rgba(5, 6, 10, 0.92) 0%, rgba(5, 6, 10, 0.6) 42%, transparent 64%), linear-gradient(0deg, rgba(5, 6, 10, 0.7), transparent 20%); }
  .ch { align-items: flex-start; padding-top: 110px; }
  .hint, .playhead .opus { display: none; }
  .num { margin-bottom: 20px; }
  .actions { gap: 16px; margin-top: 30px; }
  .reel { grid-template-columns: 1fr; }
  .item { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .item h3 { font-size: 26px; }
  .worlds { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; } .plan { padding: 30px 24px; }
  .block { padding-top: 100px; }
}
@media (max-width: 440px) { .top { gap: 12px; } .top img { height: 24px; } .cta { padding: 0 16px; } .cta .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
