/* The home page and the header and footer every page shares. Loaded after site.css.
   Black and white; the only colour on the page is the real player's covers. Headings are set in Dela Gothic One, with a grey second voice.
   No inline styles anywhere: the site's CSP allows stylesheets from 'self' only. */

:root {
  --glass: color-mix(in srgb, var(--paper) 62%, transparent);
  --glass-line: color-mix(in srgb, var(--ink) 12%, transparent);
  --soft: color-mix(in srgb, var(--ink) 7%, transparent);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: var(--grain);
  opacity: 0.035;
}

:root { --dela: "Dela Gothic One", var(--font-display); }
.h-giant em,
.h-big em { font-family: inherit; font-style: normal; font-weight: inherit; color: var(--muted); }

/* ---- header: one flat line, the mark on the left and what a visitor can do on the right ---- */
.top {
  position: fixed;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 18px max(20px, calc((100% - 1200px) / 2));
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, var(--paper) 30%, transparent);
  box-shadow: none;
}
.top .wordmark { height: 22px; }
.top .switchers { display: flex; align-items: center; gap: 4px; }
.top .auth { display: flex; align-items: center; gap: 4px; margin-right: 6px; }
.top .auth[hidden] { display: none; }
.top .auth-link,
.top .auth-button {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.top .auth-link { color: var(--secondary); background: transparent; }
.top .auth-link:hover { color: var(--ink); }
.top .auth-button { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.top .icon-button { width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--secondary); }
.top .icon-button:hover { background: var(--soft); color: var(--ink); }
.page:not(#home) { padding-top: 96px; }

/* ---- buttons ---- */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 260ms var(--ease), background 160ms, box-shadow 260ms;
}
.pill-btn:hover { transform: translateY(-2px); background: var(--soft); }
.pill-btn.solid { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: 0 12px 40px -12px color-mix(in srgb, var(--ink) 50%, transparent); }
.pill-btn.solid:hover { background: var(--ink); box-shadow: 0 18px 50px -12px color-mix(in srgb, var(--ink) 60%, transparent); }
.pill-btn .i { width: 18px; height: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- type ---- */
.h-giant {
  margin: 0;
  font-family: var(--dela);
  font-size: clamp(52px, 10vw, 148px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h-big {
  margin: 0;
  font-family: var(--dela);
  font-size: clamp(38px, 6.4vw, 92px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h-mid { margin: 0 0 16px; font-size: clamp(30px, 3.8vw, 52px); font-weight: 650; line-height: 1.05; letter-spacing: -0.04em; }
.kicker { margin: 0 0 22px; font-size: 13px; color: var(--muted); }

/* ---- hero: the headline, then the real player ---- */
.hero2 {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(140px, 18vw, 200px) 20px 0;
  text-align: center;
  overflow: hidden;
}
.hero2-light {
  position: absolute;
  z-index: -1;
  top: -30%;
  left: 50%;
  width: min(1400px, 140%);
  aspect-ratio: 1.6;
  translate: -50% 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) 13%, transparent), transparent);
  filter: blur(20px);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass);
  font-size: 13.5px;
  color: var(--secondary);
}
.tag .pulse { background: var(--ink); }
.h-sub { max-width: 54ch; margin: 30px auto 36px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--secondary); text-wrap: balance; }
.hero2 .cta-row { justify-content: center; }

.window {
  position: relative;
  width: min(1180px, 100%);
  margin: clamp(56px, 8vw, 96px) auto 0;
}
.window::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% 6% -6%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) 22%, transparent), transparent);
  filter: blur(60px);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--glass-line);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: color-mix(in srgb, var(--paper) 80%, var(--ink) 6%);
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--glass-line); }
.window-bar span { margin: 0 auto; padding-right: 50px; font-size: 12px; color: var(--muted); }
.window-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 0 0 16px 16px;
  background: #060606;
}
.window-screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 800px;
  border: 0;
  transform-origin: 0 0;
}
.window figcaption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.window figcaption .i { width: 12px; height: 12px; }

/* ---- sources: a typographic list ---- */
.sources,
.story,
.notify {
  width: min(1200px, 100% - 40px);
  margin: 0 auto;
  padding-top: clamp(110px, 14vw, 190px);
}
.src-list { margin: 56px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.src-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 300ms var(--ease);
}
.src-list li:hover { padding-left: 18px; }
.src-list b { font-size: clamp(26px, 4.2vw, 58px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; }
.src-list .mono { font-size: 13px; color: var(--muted); }
.src-list .soon b { color: var(--muted); }

/* ---- stories: text on one side, a picture of the feature on the other ---- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.story.flip .story-text { order: 2; }
.story-text p { max-width: 42ch; margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: var(--secondary); }
.story-text p.muted { color: var(--muted); font-size: 15px; }
.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 6%, var(--paper)), var(--paper));
  box-shadow: 0 40px 100px -50px rgba(0, 0, 0, 0.8);
}

.catalog .row { display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 10px; border-radius: 12px; }
.catalog .row.on { background: var(--soft); }
.catalog .cv { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 8px; }
.catalog b { font-size: 15px; font-weight: 600; }
.catalog small { grid-column: 2; font-size: 13px; color: var(--muted); }
.catalog em { grid-column: 3; grid-row: 1 / 3; font: 600 11px ui-monospace, monospace; font-style: normal; letter-spacing: 0.06em; padding: 4px 8px; border: 1px solid var(--glass-line); border-radius: 999px; color: var(--secondary); }
.cv { background: linear-gradient(135deg, #e9e9e9, #5a5a5a); }
.cv.c2 { background: linear-gradient(200deg, #2b2b2b, #bdbdbd); }
.cv.c3 { background: radial-gradient(circle at 30% 30%, #fff, #333 70%); }
.cv.c4 { background: repeating-linear-gradient(45deg, #1f1f1f 0 6px, #3a3a3a 6px 12px); }
.cv.c5 { background: linear-gradient(0deg, #0d0d0d, #8a8a8a); }

.moods { display: grid; place-items: center; min-height: 380px; overflow: hidden; }
.orb { position: relative; width: 200px; height: 200px; }
.orb i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); animation: breathe 5s ease-in-out infinite; }
.orb i:nth-child(2) { inset: 30px; animation-delay: -1.6s; }
.orb i:nth-child(3) { inset: 64px; background: radial-gradient(circle at 35% 30%, var(--ink), color-mix(in srgb, var(--ink) 20%, transparent) 70%); border: 0; animation-delay: -3.2s; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: 0.6; } }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.chips span { padding: 9px 16px; border: 1px solid var(--glass-line); border-radius: 999px; font-size: 14px; color: var(--secondary); }
.chips .on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.lab { display: flex; flex-direction: column; gap: 18px; }
.knob-row { display: grid; grid-template-columns: 120px 1fr 64px; align-items: center; gap: 16px; font-size: 14px; color: var(--secondary); }
.knob-row b { text-align: right; font-size: 13px; color: var(--ink); }
.track { position: relative; height: 4px; border-radius: 4px; background: var(--glass-line); }
.track i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--ink); }
.track i::after { content: ""; position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink) 15%, transparent); }
.track .v1 { width: 62%; }
.track .v2 { width: 38%; }
.track .v3 { width: 32%; }
.toggle { justify-self: start; width: 44px; height: 24px; padding: 3px; border-radius: 999px; background: var(--ink); }
.toggle i { display: block; width: 18px; height: 18px; margin-left: auto; border-radius: 50%; background: var(--paper); }
.eq-label { margin-top: 8px; font-size: 14px; color: var(--secondary); }
.eq2 { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.eq2 i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--ink), color-mix(in srgb, var(--ink) 18%, transparent)); animation: eq 2.6s ease-in-out infinite alternate; transform-origin: bottom; }
.eq2 i:nth-child(1) { height: 55%; }
.eq2 i:nth-child(2) { height: 78%; animation-delay: -0.4s; }
.eq2 i:nth-child(3) { height: 92%; animation-delay: -0.9s; }
.eq2 i:nth-child(4) { height: 70%; animation-delay: -1.3s; }
.eq2 i:nth-child(5) { height: 48%; animation-delay: -0.2s; }
.eq2 i:nth-child(6) { height: 40%; animation-delay: -1.7s; }
.eq2 i:nth-child(7) { height: 58%; animation-delay: -0.6s; }
.eq2 i:nth-child(8) { height: 74%; animation-delay: -2.1s; }
.eq2 i:nth-child(9) { height: 66%; animation-delay: -1.1s; }
.eq2 i:nth-child(10) { height: 50%; animation-delay: -0.3s; }
@keyframes eq { to { transform: scaleY(0.72); } }

.looks { position: relative; min-height: 420px; }
.mini { position: absolute; display: flex; flex-direction: column; gap: 10px; width: 56%; padding: 16px; border-radius: 18px; border: 1px solid var(--glass-line); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); transition: transform 500ms var(--ease); }
.mini .cv { width: 100%; aspect-ratio: 1.5; border-radius: 10px; }
.mini b { display: block; width: 62%; height: 12px; border-radius: 4px; background: currentColor; }
.mini s { display: block; width: 38%; height: 8px; border-radius: 4px; background: currentColor; opacity: 0.4; }
.m-dark { top: 0; left: 0; background: #0b0b0b; color: #f5f5f5; transform: rotate(-6deg); }
.m-light { top: 60px; left: 22%; background: #f5f5f5; color: #171717; transform: rotate(3deg); z-index: 1; }
.m-light .cv { background: linear-gradient(135deg, #d6d6d6, #8b8b8b); }
.m-big { top: 150px; right: 0; width: 48%; background: #171717; color: #f5f5f5; transform: rotate(9deg); z-index: 2; }
.m-big .cv { background: radial-gradient(circle at 60% 40%, #fafafa, #1b1b1b 75%); border-radius: 50%; aspect-ratio: 1; }
.looks:hover .m-dark { transform: rotate(-9deg) translate(-10px, -6px); }
.looks:hover .m-big { transform: rotate(12deg) translate(10px, 6px); }

/* ---- notify: the message people get on release day ---- */
.notify { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.notify-text p { max-width: 44ch; margin: 26px 0 32px; font-size: 18px; line-height: 1.6; color: var(--secondary); }
.phone {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--glass-line);
  border-radius: 34px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 7%, var(--paper)), var(--paper));
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.9);
  transform: rotate(2deg);
}
.phone-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; border-bottom: 1px solid var(--line); }
.phone-head small { margin-left: auto; font-size: 12px; color: var(--muted); }
.ava { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); }
.ava .i { width: 16px; height: 16px; }
.bubble { padding: 14px; border-radius: 18px 18px 18px 6px; background: var(--soft); }
.bubble p { margin: 0 0 12px; font-size: 15px; }
.kbd { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.kbd span { padding: 10px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 10%, transparent); text-align: center; font-size: 13.5px; font-weight: 600; }
.kbd .wide { grid-column: 1 / -1; }
.mail { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.mail .i { width: 20px; height: 20px; color: var(--secondary); }
.mail b { display: block; font-size: 14px; }
.mail small { font-size: 12px; color: var(--muted); }

/* ---- footer: one line, only what is needed ---- */
footer {
  width: 100%;
  margin-top: clamp(110px, 14vw, 180px);
  padding: 0 max(20px, calc((100% - 1200px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.foot2 { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; padding: 28px 0; font-size: 14px; }
.foot2-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; font-size: 16px; text-decoration: none; }
.foot2-brand .i { width: 20px; height: 20px; }
.foot2-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot2-links a { color: var(--secondary); text-decoration: none; }
.foot2-links a:hover { color: var(--ink); }
.foot2-copy { color: var(--muted); }

/* ---- small screens ---- */
@media (max-width: 860px) {
  .top .auth-link { display: none; }
  .story, .notify { grid-template-columns: 1fr; }
  .story.flip .story-text { order: 0; }
  .looks { min-height: 340px; }
  .knob-row { grid-template-columns: 96px 1fr 52px; }
  .foot2-links { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .orb i, .eq2 i { animation: none; }
}

/* ---- hero, after spoteeq: the words on the left, a collage of what the player does on the right ---- */
.hero3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: min(1200px, 100% - 40px);
  min-height: min(860px, 100svh);
  margin: 0 auto;
  padding: 110px 0 40px;
}
.hero3 .h-giant { font-size: clamp(44px, 6.4vw, 96px); line-height: 1.02; }
.hero3 .h-sub { margin: 26px 0 34px; text-align: left; }

.collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 14px;
  aspect-ratio: 1.05;
}
.cl {
  border-radius: 26px;
  background: #161616;
  border: 1px solid var(--glass-line);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
  animation: float 7s ease-in-out infinite;
}
:root[data-theme="light"] .cl { background: #ffffff; }
@keyframes float { 50% { translate: 0 -8px; } }
.cl-disc { grid-area: 1 / 3 / 5 / 6; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #0b0b0b 0 14%, #e8e8e8 14.5% 19%, #0b0b0b 19.5%), repeating-radial-gradient(circle, #111 0 2px, #1c1c1c 2px 4px); animation: spin 14s linear infinite; }
.cl-disc span { width: 6%; aspect-ratio: 1; border-radius: 50%; background: #0b0b0b; }
@keyframes spin { to { rotate: 360deg; } }
.cl-sc, .cl-yt, .cl-dz { display: grid; place-items: center; background: #0b0b0b; }
.cl-sc img, .cl-yt img, .cl-dz img { width: 52%; height: auto; }
:root[data-theme="light"] .cl-sc, :root[data-theme="light"] .cl-yt, :root[data-theme="light"] .cl-dz { background: #171717; }
.cl-sc { grid-area: 1 / 1 / 3 / 3; animation-delay: -1s; }
.cl-yt { grid-area: 1 / 6 / 2 / 7; border-radius: 18px; animation-delay: -2.5s; }
.cl-dz { grid-area: 2 / 6 / 3 / 7; border-radius: 18px; animation-delay: -4s; }
.cl-now { grid-area: 3 / 1 / 5 / 3; display: flex; flex-direction: column; gap: 10px; padding: 14px; animation-delay: -3s; }
.cl-now .cv { width: 100%; flex: 1; border-radius: 14px; }
.cl-now b { display: block; font-size: 14px; }
.cl-now small { font-size: 12px; color: var(--muted); }
.cl-now i { display: block; height: 3px; margin-top: 8px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) 45%, var(--glass-line) 45%); }
.cl-files { grid-area: 5 / 1 / 7 / 3; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; border-style: dashed; border-width: 2px; animation-delay: -5s; }
.cl-files .i { width: 34px; height: 34px; }
.cl-files .mono { font-size: 11px; color: var(--muted); text-align: center; padding: 0 10px; }
.cl-eq { grid-area: 3 / 6 / 5 / 7; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 14px 12px; border-radius: 20px; animation-delay: -1.8s; }
.cl-eq i { height: 5px; border-radius: 3px; background: var(--ink); width: 60%; }
.cl-eq i:nth-child(2) { width: 85%; } .cl-eq i:nth-child(3) { width: 40%; } .cl-eq i:nth-child(4) { width: 95%; }
.cl-eq i:nth-child(5) { width: 55%; } .cl-eq i:nth-child(6) { width: 75%; } .cl-eq i:nth-child(7) { width: 30%; }
.cl-msg { grid-area: 5 / 3 / 7 / 7; display: flex; align-items: center; gap: 14px; padding: 18px; align-self: center; height: max-content; animation-delay: -6s; }
.cl-msg b { display: block; font-size: 15px; }
.cl-msg small { font-size: 14px; color: var(--secondary); }

/* ---- the four facts under the hero ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1200px, 100% - 40px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.stats li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border-radius: 22px;
  background: #161616;
  border: 1px solid var(--glass-line);
}
:root[data-theme="light"] .stats li { background: #ffffff; }
.stats b { display: block; margin-bottom: 6px; font-size: 18px; letter-spacing: -0.02em; }
.stats span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.stats .i { flex: none; width: 22px; height: 22px; color: var(--ink); }

.live-wrap { width: min(1200px, 100% - 40px); margin: 0 auto; padding-top: clamp(90px, 11vw, 150px); text-align: center; }
.live-wrap .window { margin-top: 0; }

/* the feature pictures sit on the same flat grey cards */
.card { background: #161616; }
:root[data-theme="light"] .card { background: #ffffff; }

@media (max-width: 960px) {
  .hero3 { grid-template-columns: 1fr; min-height: 0; padding-top: 120px; }
  .collage { max-width: 560px; width: 100%; margin: 0 auto; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cl, .cl-disc { animation: none; }
}
.cl-disc { width: auto; height: 100%; aspect-ratio: 1; justify-self: center; }

/* ---- header: a dark rounded bar; the mark, three places in the middle, sign up and sign in on the right ---- */
.top {
  top: 12px;
  left: 50%;
  right: auto;
  translate: -50% 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: min(1100px, 100% - 24px);
  padding: 8px;
  padding-left: 18px;
  border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
  border-radius: 26px;
  background: color-mix(in srgb, #0c0c0c 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
:root[data-theme="light"] .top { background: color-mix(in srgb, #ffffff 92%, transparent); }
.top .brand { justify-self: start; display: inline-flex; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; }
.menu2 { display: flex; gap: 4px; }
.menu2 a { padding: 9px 14px; border-radius: 999px; font-size: 15px; color: var(--secondary); text-decoration: none; transition: color 140ms, background 140ms; }
.menu2 a:hover, .menu2 a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.top .switchers { justify-self: end; }
.top .auth { gap: 8px; margin-right: 4px; }
.top .auth-link,
.top .auth-button { gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font-size: 15px; }
.top .auth-link { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); }
.top .auth-link:hover { background: color-mix(in srgb, var(--ink) 15%, transparent); }
.top .auth-link .i,
.top .auth-button .i { width: 17px; height: 17px; }
.top .icon-button { width: 36px; height: 36px; }
@media (max-width: 860px) {
  .top { grid-template-columns: auto 1fr; }
  .menu2 { display: none; }
  .top .auth-link span { display: none; }
  .top .auth-link { display: inline-flex; padding: 0 13px; }
}

/* ---- a smaller header ---- */
.top { top: 10px; width: min(820px, 100% - 24px); padding: 5px 5px 5px 14px; border-radius: 18px; }
.brand-mark { width: 22px; height: 22px; }
.menu2 a { padding: 6px 12px; font-size: 13.5px; }
.top .auth { gap: 5px; margin-right: 2px; }
.top .auth-link,
.top .auth-button { height: 34px; padding: 0 14px; font-size: 13.5px; gap: 6px; }
.top .auth-link .i,
.top .auth-button .i { width: 14px; height: 14px; }
.top .icon-button { width: 32px; height: 32px; }
.top .icon-button .i { width: 16px; height: 16px; }

/* hero centred: the words in the middle, the collage under them; the logo in the message card has no disc behind it */
.hero3 { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; min-height: 0; padding-top: 140px; }
.hero3 .h-sub { margin: 26px auto 34px; text-align: center; max-width: 56ch; }
.hero3 .cta-row { justify-content: center; }
.hero3 .collage { width: min(640px, 100%); margin-top: 48px; }
.cl-msg .ava { background: none; color: var(--ink); width: 32px; height: 32px; }
.cl-msg .ava .i { width: 26px; height: 26px; }

/* pleasant motion across the site: things rise in, buttons and cards answer the pointer, lower sections fade up as they scroll into view */
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(14px); } to { opacity: 1; transform: none; } }
.top { animation: rise .8s cubic-bezier(.23, 1, .32, 1) both; }
.hero3-text > * { animation: rise .9s cubic-bezier(.23, 1, .32, 1) both; }
.hero3-text > :nth-child(1) { animation-delay: .08s; } .hero3-text > :nth-child(2) { animation-delay: .22s; } .hero3-text > :nth-child(3) { animation-delay: .36s; }
.collage .cl { animation: pop .9s cubic-bezier(.23, 1, .32, 1) both, float 7s ease-in-out infinite; }
.collage .cl:nth-child(1) { animation-delay: .3s, 0s; } .collage .cl:nth-child(2) { animation-delay: .4s, -1s; } .collage .cl:nth-child(3) { animation-delay: .5s, -2.5s; }
.collage .cl:nth-child(4) { animation-delay: .6s, -4s; } .collage .cl:nth-child(5) { animation-delay: .7s, -3s; } .collage .cl:nth-child(6) { animation-delay: .8s, -5s; }
.collage .cl:nth-child(7) { animation-delay: .9s, -1.8s; } .collage .cl:nth-child(8) { animation-delay: 1s, -6s; }
.collage .cl-disc { animation: pop .9s .3s cubic-bezier(.23, 1, .32, 1) both, spin 14s linear infinite; }
.pill-btn { transition: transform .25s cubic-bezier(.23, 1, .32, 1), box-shadow .25s, background-color .2s; }
.pill-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--ink) 50%, transparent); }
.pill-btn:active { transform: scale(.96); }
.card, .stats > * { transition: transform .35s cubic-bezier(.23, 1, .32, 1), box-shadow .35s; }
.card:hover, .stats > *:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .8); }
.menu2 a { transition: color .2s, background-color .2s, transform .2s; }
.menu2 a:hover { transform: translateY(-1px); }
@supports (animation-timeline: view()) {
  .stats > *, .card { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
}
@media (prefers-reduced-motion: reduce) {
  .top, .hero3-text > *, .collage .cl, .stats > *, .card { animation: none; }
}

/* ---- home hero, after concept D: covers turning behind a centred headline, two Telegram buttons, a slim cookie notice ---- */
#home { position: relative; }
.orbit { position: fixed; inset: 0; z-index: 0; pointer-events: none; transform: perspective(1200px) rotateX(15deg); transform-origin: center bottom; }
.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: ring-spin 70s linear infinite; will-change: transform; }
.ring.rev { animation-name: ring-spin-rev; }
.ring.slow { animation-duration: 120s; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes ring-spin-rev { to { transform: rotate(-360deg); } }
.tile { position: absolute; border-radius: 6%; background: color-mix(in srgb, var(--ink) 14%, var(--paper)) center / cover; opacity: var(--op); transform: rotate(var(--rot)); filter: grayscale(1) brightness(.7) blur(var(--blur)); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9); transition: filter .5s cubic-bezier(.23, 1, .32, 1), transform .5s cubic-bezier(.23, 1, .32, 1); }
:root[data-theme="light"] .tile { filter: grayscale(1) brightness(1.05) blur(var(--blur)); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .4); }
.tile.near { transform: rotate(var(--rot)) scale(1.08); filter: grayscale(0) brightness(.95) blur(var(--blur)); }
.shade { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, var(--paper) 16%, color-mix(in srgb, var(--paper) 82%, transparent) 42%, color-mix(in srgb, var(--paper) 35%, transparent) 100%); }
.hero4 { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; min-height: calc(100svh - 66px); padding: 80px 20px 30px; text-align: center; pointer-events: none; }
.hero4 > * { pointer-events: auto; }
.hero4 .app { display: grid; place-items: center; width: 68px; height: 68px; color: var(--ink); }
/* the application icon itself, as the app shows it: a dark tile with the mark */
.hero4 .app img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .45)); }
.hero4 .h-giant { margin: 0; font-size: clamp(42px, 5.6vw, 78px); line-height: 1.04; text-align: center; }
.hero4 .h-sub { margin: 0 auto; max-width: 46ch; text-align: center; }
.swap { display: inline-block; transition: opacity .45s cubic-bezier(.23, 1, .32, 1), transform .45s cubic-bezier(.23, 1, .32, 1), filter .45s; }
.swap.out { opacity: 0; transform: translateY(-.35em); filter: blur(8px); }
.swap.in { opacity: 0; transform: translateY(.35em); filter: blur(8px); transition: none; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 24px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); transition: background-color .25s, transform .2s cubic-bezier(.23, 1, .32, 1); }
.btn:hover { background: color-mix(in srgb, var(--ink) 12%, var(--paper)); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); color: var(--paper); box-shadow: none; }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 85%, var(--paper)); }
.btn .tgi { width: 20px; height: 20px; flex: none; }
.btn .arr { width: 16px; height: 16px; flex: none; }
.btn:hover .arr { animation: btn-arrow .5s cubic-bezier(.23, 1, .32, 1); }
@keyframes btn-arrow { 0% { transform: none; } 45% { transform: translateX(14px); opacity: 0; } 46% { transform: translateX(-14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.cookie { position: fixed; left: 50%; bottom: 60px; z-index: 40; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 32px); padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent), 0 24px 60px -20px rgba(0, 0, 0, .6); color: var(--secondary); font-size: 13px; transform: translateX(-50%); animation: ck-in .8s 1.2s cubic-bezier(.22, 1, .36, 1) backwards; }
.cookie[hidden] { display: none; }
/* it rises in once the headline is up, its contents a beat later; it sinks away when a choice is made (home.js hides it after) */
.cookie > * { animation: ck-item .6s cubic-bezier(.22, 1, .36, 1) backwards; }
.cookie > :nth-child(1) { animation-delay: 1.32s; } .cookie > :nth-child(2) { animation-delay: 1.38s; } .cookie > :nth-child(3) { animation-delay: 1.44s; } .cookie > :nth-child(4) { animation-delay: 1.5s; }
.cookie.bye { pointer-events: none; animation: ck-out .32s cubic-bezier(.4, 0, .6, 1) forwards; }
.cookie .ck-i { width: 18px; height: 18px; flex: none; color: var(--ink); }
.cookie p { margin: 0; flex: none; font-size: 13px; white-space: nowrap; }
.cookie button { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, var(--paper)); color: var(--ink); font: 500 13px inherit; font-family: inherit; cursor: pointer; transition: background-color .2s, transform .2s; }
.cookie button:hover { background: color-mix(in srgb, var(--ink) 18%, var(--paper)); }
.cookie button:active { transform: scale(.96); }
.cookie button.solid { background: var(--ink); color: var(--paper); }
@keyframes ck-in { from { opacity: 0; transform: translate(-50%, 28px) scale(.94); filter: blur(10px); } 60% { opacity: 1; } to { opacity: 1; transform: translateX(-50%); filter: blur(0); } }
@keyframes ck-item { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ck-out { to { opacity: 0; transform: translate(-50%, 18px) scale(.96); filter: blur(6px); } }
@media (max-width: 560px) { .cookie { flex-wrap: wrap; justify-content: center; border-radius: 20px; padding: 12px; } .cookie p { flex-basis: 100%; text-align: center; white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .ring, .btn:hover .arr, .cookie, .cookie > *, .cookie.bye { animation: none; } }

/* ---- header and footer as in concept D: a flat bar with the mark on the left and plain links on the right; a small centred row of links below ---- */
.top { top: 0; left: 0; right: 0; width: 100%; translate: none; display: flex; align-items: center; gap: 22px; padding: 20px 32px; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; font-size: 14px; }
.top .brand { margin-right: auto; }
.top .brand-mark { width: 27px; height: 23px; }
.top .menu2 { order: 1; gap: 22px; }
.top .menu2 a { padding: 0; border-radius: 0; background: none; font-size: 14px; color: var(--muted); transition: color .3s ease; }
.top .menu2 a:hover, .top .menu2 a[aria-current="page"] { color: var(--ink); background: none; transform: none; }
.top .switchers { order: 2; gap: 14px; }
.top .auth { gap: 22px; margin-right: 0; }
.top .auth-link, .top .auth-button { height: auto; padding: 0; border: 0; border-radius: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 400; transition: color .3s ease; }
.top .auth-link:hover, .top .auth-button:hover { background: none; color: var(--ink); }
.top .auth-link .i, .top .auth-button .i { display: none; }
.top .icon-button { width: 32px; height: 32px; }
/* the footer: a hairline, the mark and the copyright on the left, the links on the right; one centred column on phones */
footer { position: relative; z-index: 2; margin-top: 0; padding: 0; border: 0; border-top: 1px solid var(--rule); background: none; }
.foot2 { justify-content: space-between; gap: 12px 24px; padding: 20px 32px; font-size: 12px; color: var(--muted); }
.foot2-start { display: flex; align-items: center; gap: 12px; }
.foot2-brand { display: inline-flex; color: var(--ink); }
.foot2-brand .i { width: 18px; height: 16px; }
.foot2-copy { color: var(--muted); }
.foot2-links { margin-left: 0; justify-content: flex-end; gap: 8px 22px; }
.foot2-links a { color: var(--muted); transition: color .3s ease; }
.foot2-links a:hover { color: var(--ink); }
@media (max-width: 560px) { .top { padding: 14px 16px; gap: 14px; } .top .menu2 { display: none; } }

/* language: two plain letters, the chosen one bright */
.lang { display: flex; gap: 12px; }
.lang button { padding: 0; border: 0; background: none; color: var(--muted); font: 500 14px inherit; font-family: inherit; cursor: pointer; transition: color .3s ease; }
.lang button:hover, .lang button[aria-pressed="true"] { color: var(--ink); }

/* the channel button is glass, like the app's panels: frosted, a hairline edge, a soft light from the top */
.btn:not(.primary) { background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05)); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 32px -14px rgba(0, 0, 0, .7); }
.btn:not(.primary):hover { background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .08)); }

/* ---- loading and phones ---- */
/* tiles wait for their picture, then fade in; the headline and buttons rise in once the page is drawn */
.tile { opacity: 0; transition: opacity .9s ease, filter .5s cubic-bezier(.23, 1, .32, 1), transform .5s cubic-bezier(.23, 1, .32, 1); }
.tile.in { opacity: var(--op); }
.hero4 > * { animation: rise .9s cubic-bezier(.23, 1, .32, 1) both; }
.hero4 > :nth-child(1) { animation-delay: .05s; } .hero4 > :nth-child(2) { animation-delay: .15s; } .hero4 > :nth-child(3), .hero4 > :nth-child(4), .hero4 > :nth-child(5) { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .hero4 > *, .tile { animation: none; transition: none; } }
/* the description: smaller and wider */
.hero4 .h-sub { max-width: 64ch; font-size: 15px; line-height: 1.6; text-wrap: pretty; }
/* phones and tablets: two rings instead of four (home.js), and tiles with no blur or shadow, so the GPU only turns finished pictures */
@media (max-width: 640px), (hover: none) and (pointer: coarse) {
  .tile { filter: grayscale(1) brightness(.7); box-shadow: none; transition: opacity .9s ease; }
  :root[data-theme="light"] .tile { filter: grayscale(1) brightness(1.05); box-shadow: none; }
}

@media (max-width: 640px) {
  .orbit { transform: perspective(900px) rotateX(15deg) scale(.5); }
  .top { padding: 12px 16px; gap: 14px; }
  .top .brand-mark { width: 23px; height: 20px; }
  .top .auth { gap: 14px; }
  .top .auth-link, .top .auth-button, .lang button { font-size: 13px; }
  .hero4 { gap: 16px; padding: 64px 20px 150px; min-height: calc(100svh - 56px); }
  .hero4 .app { width: 52px; height: 52px; }
  .hero4 .h-giant { font-size: clamp(34px, 10.5vw, 46px); }
  .hero4 .h-sub { max-width: 34ch; font-size: 14px; }
  .actions { flex-direction: column; align-items: stretch; width: min(320px, 100%); gap: 8px; }
  .btn { height: 48px; padding: 0 14px; gap: 8px; font-size: 13.5px; white-space: nowrap; }
  .cookie { bottom: 10px; width: calc(100% - 20px); max-width: 380px; flex-wrap: wrap; justify-content: center; gap: 8px 10px; padding: 12px; border-radius: 18px; }
  .cookie .ck-i { display: none; }
  .cookie p { flex-basis: 100%; white-space: normal; text-align: center; font-size: 12.5px; }
  .cookie button { flex: 1; height: 36px; }
  .foot2 { justify-content: center; padding: 18px 16px 24px; gap: 6px 16px; }
  .foot2-start { order: 1; flex-basis: 100%; justify-content: center; }
  .foot2-links { justify-content: center; }
}
.cookie { background: #111; }

/* the covers and their shade live outside the page, so the page's fade-in cannot box them in; they show on the home page only */
.orbit, .shade { display: none; }
html[data-start="home"] .orbit, html[data-start="home"] .shade, body.on-home .orbit, body.on-home .shade { display: block; }
body.off-home .orbit, body.off-home .shade { display: none; }

/* the hero: a product headline and one line under it, then the buttons */
.hero4 .h-giant { max-width: 16ch; font-size: clamp(40px, 6vw, 84px); line-height: 1.02; text-wrap: balance; }
.hero4 .h-sub { max-width: 44ch; margin: 0 auto 6px; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.55; color: var(--secondary); text-wrap: balance; }
