/*
 * Lumio, WIP страница: „Преди Lumio / След Lumio“.
 * Цветовете са от темата „Lumio glass“ (apps/web/src/app/globals.css).
 * Шареният градиент е само в логото. Шрифтът Inter е локален (assets/fonts).
 */
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --background: oklch(0.975 0.012 270);
  --foreground: oklch(0.22 0.035 268);
  --muted-foreground: oklch(0.52 0.03 268);
  --primary: oklch(0.57 0.21 262);
  --primary-soft: oklch(0.57 0.21 262 / 10%);

  --panel: oklch(1 0 0 / 70%);
  --panel-border: oklch(1 0 0 / 85%);
  --panel-shadow: 0 1px 2px oklch(0.4 0.05 268 / 5%), 0 24px 48px -24px oklch(0.4 0.1 268 / 22%);
  --row-border: oklch(0.92 0.015 268);
  --toggle: oklch(1 0 0 / 60%);
  --thumb: oklch(1 0 0);
  --row: oklch(1 0 0 / 92%);
  --input: oklch(0.9 0.02 268);
  --check-bg: oklch(0.975 0.012 270);
  --amber-text: #b45309;
  --destructive: oklch(0.58 0.22 25);
  --row-shadow: 0 1px 2px oklch(0.4 0.05 268 / 6%), 0 4px 12px -6px oklch(0.4 0.08 268 / 14%);
  --chip: oklch(0.95 0.01 268);
  --t-blue: oklch(0.57 0.21 262);
  --t-violet: oklch(0.56 0.2 295);
  --t-amber: oklch(0.68 0.16 60);
  --t-green: oklch(0.6 0.15 155);
  --desk: oklch(0.955 0.015 268 / 70%);
  --desk-dot: oklch(0.55 0.05 268 / 22%);
  --desk-line: oklch(1 0 0 / 60%);

  --photo-opacity: 0.8;
  --blob-1: oklch(0.86 0.08 255 / 40%);
  --blob-2: oklch(0.87 0.07 295 / 50%);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --background: oklch(0.17 0.03 270);
  --foreground: oklch(0.95 0.005 268);
  --muted-foreground: oklch(0.72 0.025 268);
  --primary: oklch(0.7 0.16 262);
  --primary-soft: oklch(0.7 0.16 262 / 14%);

  --panel: oklch(0.23 0.03 270 / 70%);
  --panel-border: oklch(1 0 0 / 7%);
  --panel-shadow: 0 1px 2px oklch(0 0 0 / 20%), 0 24px 48px -24px oklch(0 0 0 / 60%);
  --row-border: oklch(1 0 0 / 7%);
  --toggle: oklch(1 0 0 / 6%);
  --thumb: oklch(1 0 0 / 12%);
  --row: oklch(0.27 0.03 270 / 80%);
  --input: oklch(1 0 0 / 14%);
  --check-bg: oklch(1 0 0 / 4%);
  --amber-text: #fbbf24;
  --destructive: oklch(0.72 0.18 22);
  --row-shadow: 0 1px 2px oklch(0 0 0 / 25%);
  --chip: oklch(1 0 0 / 6%);
  --t-blue: oklch(0.72 0.15 262);
  --t-violet: oklch(0.72 0.15 295);
  --t-amber: oklch(0.8 0.14 70);
  --t-green: oklch(0.75 0.14 155);
  --desk: oklch(0.21 0.03 270 / 60%);
  --desk-dot: oklch(1 0 0 / 9%);
  --desk-line: oklch(1 0 0 / 3%);

  --photo-opacity: 0.1;
  --blob-1: oklch(0.38 0.11 260 / 45%);
  --blob-2: oklch(0.35 0.1 295 / 35%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden; /* една страница, без скрол */
}

html {
  font-size: 15px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--foreground);
  background: var(--background);
  height: 100svh;
  display: grid;
  place-items: center;
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right))
    env(safe-area-inset-bottom) max(16px, env(safe-area-inset-left));
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
}

/* ---------- Фон: две меки петна ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
/* Снимката с облаците (същата като в приложението), бавно плава. */
.photo {
  position: absolute;
  inset: -4%;
  background: url(assets/clouds.jpg) center / cover no-repeat;
  opacity: var(--photo-opacity);
  animation: photo-drift 40s ease-in-out infinite alternate;
  transition: opacity 0.4s ease;
}
.blob {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(70px);
  animation: drift 26s ease-in-out infinite alternate;
}
.b1 {
  background: var(--blob-1);
  left: -20vmax;
  top: -22vmax;
}
.b2 {
  background: var(--blob-2);
  right: -22vmax;
  bottom: -24vmax;
  animation-delay: -13s;
}

/* ---------- Страницата ---------- */

.page {
  width: 100%;
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page > * {
  opacity: 0;
  animation: fade-up 0.9s ease forwards;
}
.page > :nth-child(2) {
  animation-delay: 0.1s;
}
.page > :nth-child(3) {
  animation-delay: 0.2s;
}
.page > :nth-child(4) {
  animation-delay: 0.35s;
}
.page > :nth-child(5) {
  animation-delay: 0.45s;
}
.page > :nth-child(6) {
  animation-delay: 0.55s;
}
.page > :nth-child(7) {
  animation-delay: 0.65s;
}
.page > :nth-child(n + 8) {
  animation-delay: 0.75s;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand img {
  height: 1.9rem;
  width: auto;
}

.eyebrow {
  margin: clamp(1rem, 3svh, 1.75rem) 0 0;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
}

.headline {
  margin: 0.7rem 0 0;
  font-size: clamp(1.6rem, 4.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.sub {
  margin: 0.75rem 0 0;
  max-width: 28rem;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- Сцената ---------- */

.stage {
  position: relative;
  container-type: inline-size;
  margin-top: 0.9rem;
  /* По ширина, но така, че всичко да се събере на височина без скрол. */
  width: min(540px, 100%, calc((100svh - 26rem) * 1.45));
  min-width: 240px;
  aspect-ratio: 1.45;
}

/* Фонът зад бележките: „бюрото“. В „След“ на негово място идва списъкът. */
.desk {
  position: absolute;
  inset: 0;
  border-radius: 4cqw;
  background-color: var(--desk);
  background-image: radial-gradient(var(--desk-dot) 0.35cqw, transparent 0.45cqw);
  background-size: 3.6cqw 3.6cqw;
  border: 1px solid var(--panel-border);
  box-shadow:
    inset 0 0 0 1px var(--desk-line),
    var(--panel-shadow);
  transition:
    opacity 0.6s ease,
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.is-order .desk {
  opacity: 0;
  transform: scale(0.97);
  transition-delay: 0.1s;
}
.is-chaos .desk {
  transition-delay: 0.2s;
}

/* ---------- Превключвателят Преди / След ---------- */

.phase {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  margin-top: clamp(1.25rem, 3.5svh, 2rem);
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--toggle);
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
}
.phase button {
  position: relative;
  z-index: 1;
  padding: 0.45rem 1rem;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.4s ease;
}
.phase button[aria-pressed='true'] {
  color: var(--foreground);
}
.phase:not([data-step='0']) button[aria-pressed='true'] {
  color: #fff;
}
.phase button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 999px;
}
.phase-thumb {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0.25rem;
  width: 0; /* ширината и мястото ги слага скриптът според активния бутон */
  border-radius: 999px;
  background: var(--thumb);
  box-shadow: 0 1px 3px oklch(0.3 0.05 268 / 15%);
  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.5s ease;
}
.phase:not([data-step='0']) .phase-thumb {
  background: var(--primary);
}

/* Тънка линия в бутона: колко остава до смяната. */
.phase-progress {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: color-mix(in oklch, var(--primary) 45%, transparent);
  transform: scaleX(0);
  transform-origin: left;
}
.phase:not([data-step='0']) .phase-progress {
  background: oklch(1 0 0 / 55%);
}
.phase-progress.running {
  animation: progress var(--dur, 4.55s) linear forwards;
}

/* Бележките. Размерите не се менят никога: само прозрачност и движение. */
.scraps {
  position: absolute;
  inset: 0;
}
.scrap {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0 4cqw;
  font-size: 3.3cqw;
  font-weight: 500;
  line-height: 1.35;
  transform: translate(0, 0) rotate(var(--r));
  transition:
    opacity 0.5s ease,
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.sticky {
  left: 7%;
  top: 36%;
  width: 30%;
  height: 40%;
  background: #fff3b0;
  color: #5c4b00;
  border-radius: 1cqw;
  box-shadow: 0 2cqw 5cqw -2.5cqw oklch(0.45 0.08 85 / 45%);
}
.excel {
  left: 5%;
  top: 7%;
  width: 90%;
  height: 21%;
  padding: 0;
  place-items: stretch;
  grid-template-columns: 7% 25% 28% 18% 22%;
  grid-template-rows: 38% 62%;
  background: #fff;
  color: #2d3a32;
  border: 1px solid #d5ddd8;
  border-top: 1cqw solid #2f8a5b;
  border-radius: 1cqw;
  font-size: 2.6cqw;
  box-shadow: 0 2cqw 5cqw -3cqw oklch(0.3 0.05 160 / 40%);
  overflow: hidden;
}
.excel span {
  display: flex;
  align-items: center;
  padding: 0 1.4cqw;
  border-right: 1px solid #e3e9e5;
  white-space: nowrap;
  overflow: hidden;
}
.excel span:nth-child(5n) {
  border-right: 0;
}
.excel .hd {
  justify-content: center;
  padding: 0;
  background: #f1f4f2;
  color: #7a8a80;
  font-size: 2.1cqw;
  border-bottom: 1px solid #e3e9e5;
}
.excel .hl {
  background: #fff6c4;
}
/* Съобщение като в чат: кръгче за снимка и синьо балонче. */
.sms {
  left: 50%;
  top: 38%;
  width: 46%;
  height: 18%;
  padding: 0;
  display: flex;
  align-items: flex-end;
  gap: 1.6cqw;
}
.sms-av {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 6.4cqw;
  height: 6.4cqw;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 1cqw 2.5cqw -1cqw oklch(0.45 0.2 262 / 55%);
}
.bubble {
  flex: 1;
  align-self: stretch;
  display: grid;
  place-items: center start;
  padding: 0 3cqw;
  background: var(--primary);
  color: #fff;
  border-radius: 4cqw 4cqw 4cqw 1cqw;
  box-shadow: 0 2cqw 5cqw -3cqw oklch(0.45 0.2 262 / 55%);
}
.note {
  left: 46%;
  top: 63%;
  width: 42%;
  height: 29%;
  justify-items: start;
  padding-left: 7cqw;
  text-align: left;
  background:
    linear-gradient(90deg, transparent 4.5cqw, #efa3a3 4.5cqw, #efa3a3 4.8cqw, transparent 4.8cqw),
    repeating-linear-gradient(#fdfcf8 0 4.6cqw, #d6e0f2 4.6cqw 4.8cqw);
  color: #2a3654;
  border-radius: 0.8cqw;
  box-shadow: 0 2cqw 5cqw -3cqw oklch(0.3 0.05 260 / 45%);
}

/* Подреденият списък. */
.panel {
  position: absolute;
  inset: 0 3%;
  display: flex;
  flex-direction: column;
  gap: 2.2cqw;
  padding: 4cqw;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4cqw;
  box-shadow: var(--panel-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  text-align: left;
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 0.5cqw 0.5cqw;
  font-size: 3.4cqw;
  font-weight: 600;
}
.count {
  display: grid;
  font-size: 2.8cqw;
  font-weight: 500;
  color: var(--muted-foreground);
  text-align: right;
}
.count > span {
  grid-area: 1 / 1;
  transition: opacity 0.4s ease;
}
.c-left {
  opacity: 0;
}
/* Редът е като TaskItem в приложението: отметка, заглавие, клиент и час, с линия между редовете. */
.row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3.2cqw;
  padding: 0 1cqw;
  border-bottom: 1px solid var(--row-border);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}
.row:last-child {
  border-bottom: 0;
}
.check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3.8cqw;
  height: 3.8cqw;
  border-radius: 1cqw;
  border: 1px solid var(--input);
  background: var(--check-bg);
  color: #fff;
  box-shadow: 0 1px 2px oklch(0 0 0 / 5%);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}
.check svg {
  width: 75%;
  height: 75%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  transition: stroke-dashoffset 0.35s ease;
}
.txt {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.8cqw;
}
.txt b {
  position: relative;
  justify-self: start;
  font-size: 3.1cqw;
  font-weight: 500;
  transition: color 0.4s ease;
}
/* Задраскване, което се „изписва“ отляво надясно. */
.txt b::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 55%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

/* „След“: първата задача сама се отмята, като в приложението. */
.is-order .first .check {
  background: var(--primary);
  border-color: var(--primary);
  transition-delay: 1.9s;
}
.is-order .first .check svg {
  stroke-dashoffset: 0;
  transition-delay: 2s;
}
.is-order .first b {
  color: var(--muted-foreground);
  transition-delay: 2.1s;
}
.is-order .first b::after {
  transform: scaleX(1);
  transition-delay: 2.15s;
}
.is-order .c-all {
  opacity: 0;
  transition-delay: 2.3s;
}
.is-order .c-left {
  opacity: 1;
  transition-delay: 2.3s;
}
.txt small {
  display: flex;
  gap: 2.4cqw;
  font-size: 2.65cqw;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.txt u {
  text-underline-offset: 0.4cqw;
}
.high {
  font-weight: 500;
  color: var(--amber-text);
}

/* ---------- Двете състояния ---------- */

/* Хаос: бележките са на местата си, списъкът е скрит. */
.is-chaos .scrap {
  transition-delay: calc(0.35s + var(--i) * 0.08s);
}
.is-chaos .panel {
  opacity: 0;
  transform: translateY(2cqw);
  transition-delay: 0.15s;
}
.is-chaos .row {
  opacity: 0;
  transform: translateY(1.5cqw);
  transition-delay: 0s;
}

/* Ред: бележките се плъзгат към центъра и изчезват, редовете идват един по един. */
.is-order .scrap {
  opacity: 0;
  transform: translate(var(--tx), var(--ty)) rotate(0deg);
  transition-delay: calc(var(--i) * 0.06s);
}
.is-order .panel {
  opacity: 1;
  transform: none;
  transition-delay: 0.25s;
}
.is-order .row {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.45s + var(--i) * 0.1s);
}

/* Леко полюшване на бележките. */
.is-chaos .scraps {
  animation: float 6s ease-in-out infinite alternate;
}

/* ---------- Смяна на темата ---------- */

.theme-toggle {
  position: fixed;
  z-index: 2;
  top: max(1rem, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--toggle);
  color: var(--muted-foreground);
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.4s ease;
}
.theme-toggle:hover {
  color: var(--foreground);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}
.theme-toggle .moon,
:root[data-theme='dark'] .theme-toggle .sun {
  display: block;
}
.theme-toggle .sun,
:root[data-theme='dark'] .theme-toggle .moon {
  display: none;
}

/* ---------- „Скоро“ ---------- */

.status {
  margin: clamp(1rem, 3svh, 1.75rem) 0 0;
  max-width: 22rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  text-wrap: balance;
}
.dot {
  display: inline-block;
  vertical-align: 0.1em;
  margin-right: 0.5rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--primary);
  animation: breathe 2.4s ease-in-out infinite;
}

/* ---------- Третият таб „Искам да пробвам“ ---------- */

/* Списъкът се скрива, на негово място идва картата с формата. */
.stage.is-try .panel {
  opacity: 0;
  transform: translateY(-2cqw);
  transition-delay: 0s;
}
.stage.is-try .row {
  opacity: 0;
  transition-delay: 0s;
}
.try {
  position: absolute;
  inset: 0 3%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5cqw;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4cqw;
  box-shadow: var(--panel-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(2cqw);
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.6s;
}
.stage.is-try .try {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0.3s, 0.3s, 0s;
}
.try-logo {
  height: 9cqw;
  width: auto;
}
.try-title {
  margin: 3cqw 0 0;
  font-size: max(1.05rem, 4.4cqw);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- Списък за изчакване ---------- */

.waitlist {
  display: flex;
  gap: 0.4rem;
  width: min(100%, 26rem);
  margin-top: 4cqw;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--toggle);
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.waitlist input {
  flex: 1;
  min-width: 0;
  padding: 0 0.9rem;
  border: 0;
  background: none;
  color: var(--foreground);
  font: inherit;
  font-size: 16px; /* без приближаване на iPhone */
  outline: none;
}
.waitlist input::placeholder {
  color: var(--muted-foreground);
}
.waitlist:focus-within {
  outline: 2px solid color-mix(in oklch, var(--primary) 50%, transparent);
  outline-offset: 2px;
}
.waitlist button {
  flex-shrink: 0;
  min-height: 2.6rem;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.waitlist button:hover {
  filter: brightness(1.08);
}
.waitlist button:disabled {
  opacity: 0.6;
  cursor: default;
}
.waitlist button:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}
.wl-msg {
  min-height: 1.3em;
  max-width: 26rem;
  text-wrap: balance;
  margin: 2.2cqw 0 0;
  font-size: 0.85rem;
  color: var(--primary);
}
.wl-msg.is-hint {
  color: var(--muted-foreground);
}
.wl-msg.is-error {
  color: var(--destructive);
}
.wl-msg:empty {
  visibility: hidden;
}

.trap {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Долу: контакт ---------- */

.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(0.9rem, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted-foreground);
}
.foot a {
  color: inherit;
  text-underline-offset: 2px;
}
.foot a:hover {
  color: var(--foreground);
}

/* Телефон: по-компактно, за да се събере без скрол. */
@media (max-width: 767px) {
  .sub {
    font-size: 0.95rem;
  }
  .waitlist button {
    padding: 0 0.9rem;
  }
}

/* Нисък екран: подзаглавието и контактът долу отпадат първи. */
@media (max-height: 700px) {
  .foot {
    display: none;
  }
}
@media (max-height: 680px) {
  .sub {
    display: none;
  }
  .stage {
    width: min(540px, 100%, calc((100svh - 21rem) * 1.45));
  }
}

/* Много ниски екрани (телефон легнал): без сцената. */
@media (max-height: 500px) {
  .phase,
  .stage {
    display: none;
  }
}

/* ---------- Анимации ---------- */

@keyframes breathe {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
@keyframes progress {
  to {
    transform: scaleX(1);
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes float {
  from {
    transform: translateY(-0.8cqw);
  }
  to {
    transform: translateY(0.8cqw);
  }
}
@keyframes photo-drift {
  to {
    transform: scale(1.06) translate(-1.5%, -1%);
  }
}
@keyframes drift {
  to {
    transform: translate(8vmax, 6vmax);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition: none !important;
  }
}

/* Тесен телефон: трите таба да се съберат на един ред. */
@media (max-width: 420px) {
  .phase button {
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
  }
}
