/* LXVNT · основата на публичните страници lxvnt.php и za-organizatori.php (от прототипа
   docs/design/prototypes/packages/lx.css, одобрен с пакетите).
   Цветовете са 1:1 токените на портала (public/assets/style.css :root + theme.css :root).
   Новите токени (отстъпи, движение, сенки на устройствата) са описани в docs/design/packages.md, раздел 3.
   Шрифтовете идват от assets/planner-fonts.css (Lora, Montserrat, Cormorant Garamond — OFL, с кирилица). */

:root {
  /* — цветове: същите като в портала — */
  --gold: #8f6d23;
  --ink: #292725;
  --line: #e1dcd3;
  --paper: #fff;
  --bg: #f5f5f3;
  --ink-muted: #6c6760;
  --line-strong: #8a8175;
  --paper-sunk: #f1efeb;
  --gold-deep: #764f0f;
  --gold-soft: #ede0c5;
  --gold-ink: #725526;
  --gold-line: #d0c19e;
  --cream: #faf9f7;
  --blush: #f6dfd8;
  --ink-on-blush: #5e5953;
  --blush-line: #e3c9c0;
  --rose: #a8475c;
  --mint: #dfeae3;
  --sage: #7f9f8c;
  --success: #2f6f62;
  --danger: #b42318;
  --ink-hover: #3d3935;
  /* VIS-LND-09: заместват суровите rgba в lx-landing.css */
  --focus-ring: 0 0 0 3px rgb(143 109 35 / 0.14);
  --gold-line-soft: rgb(208 193 158 / 0.5);
  --cream-glass: rgb(250 249 247 / 0.94);
  --on-ink: #fff;

  /* — шрифтове и радиуси: theme.css — */
  --font-body: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-display: 'Lora', Georgia, serif;
  --font-invite: 'Cormorant Garamond', 'Lora', Georgia, serif;
  --radius-card: 12px;
  --radius-field: 8px;
  --radius-pill: 35px;
  --shadow-pop: 0 16px 40px rgba(41, 39, 37, 0.14);
  --gutter: clamp(20px, 5vw, 64px);

  /* — НОВИ токени (предложение, docs/design/packages.md 3.2) — */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --section-y: clamp(72px, 10vw, 136px);
  --measure: 62ch;
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-1: 200ms;
  --dur-2: 280ms;
  --shadow-soft: 0 1px 2px rgba(41, 39, 37, 0.04), 0 18px 40px -24px rgba(41, 39, 37, 0.22);
  --shadow-device: 0 40px 70px -30px rgba(41, 39, 37, 0.45), 0 18px 30px -18px rgba(41, 39, 37, 0.3);
  --device-body: #1f1d1b;
  --paper-warm: #f5f3ef; /* paper от tokens.json на LXVNT – топлият фон на марката */
  --champagne: #fbf7ef; /* bg на палитрата „Шампанско и злато“ */
  /* Височината на закачената шапка (VIS-LND-21): 68px до 1100px, 84px нагоре – за закачените елементи и котвите. */
  --header-h: 68px;
}
@media (min-width: 1100px) {
  :root {
    --header-h: 84px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Атрибутът hidden печели над display на компонентите (.wl-form, .demo-form – grid): скритата форма не остава на
   екрана след изпращане (VIS-LND-02). */
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern', 'liga';
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--gold-deep);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
::selection {
  background: var(--gold-soft);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wrap {
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
}
.wrap--narrow {
  width: min(100% - 2 * var(--gutter), 880px);
  margin-inline: auto;
}

/* ---------- Типография ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 em,
h2 em,
h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-ink);
}
.display {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.012em;
}
.h2 {
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.006em;
}
.h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
}
/* Заглавие на състояние в <p> („Почти готово!“, „Вече сте в списъка.“) – в Lora, като истинските заглавия. */
p.h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0 0 var(--s-4);
  font: 600 11px/1.4 var(--font-body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold-line);
}
.eyebrow--center::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold-line);
}
.lead {
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: var(--measure);
  margin: var(--s-5) 0 0;
  text-wrap: pretty;
}
.fine {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.center {
  text-align: center;
}
/* И самият p.lead.center е центриран като блок, не само наследникът (VIS-LND-06). */
.lead.center,
.center .lead {
  margin-inline: auto;
}

/* ---------- Орнамент: линия · диамант · линия ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gold);
}
.ornament::before,
.ornament::after {
  content: '';
  width: 56px;
  height: 1px;
  background: var(--gold-line);
}
.ornament svg {
  width: 9px;
  height: 9px;
}

/* ---------- Бутони (хапчета; марк. страници 52px, портала 44px) ---------- */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font: 600 15px/1.2 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur-1) var(--ease-soft),
    border-color var(--dur-1) var(--ease-soft),
    color var(--dur-1) var(--ease-soft),
    transform var(--dur-1) var(--ease-soft),
    box-shadow var(--dur-2) var(--ease-soft);
}
.btn:hover {
  border-color: var(--gold);
  background: var(--paper);
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn--primary:hover {
  background: var(--ink-hover);
  border-color: var(--ink-hover);
  box-shadow: 0 10px 24px -14px rgba(41, 39, 37, 0.7);
}
.btn--sm {
  --h: 44px;
  padding: 0 20px;
  font-size: 14px;
}
.btn--block {
  width: 100%;
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-1) var(--ease-soft);
}
.btn:hover svg.arrow {
  transform: translateX(3px);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 2px;
  transition: border-color var(--dur-1) var(--ease-soft);
}
.link-arrow:hover {
  border-color: var(--gold);
}
.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-1) var(--ease-soft);
}
.link-arrow:hover svg {
  transform: translateX(3px);
}

/* Режимите на призива: преди продажбите (списък за чакащи) и след старта (проба). */
body[data-mode='waitlist'] .only-live,
body[data-mode='live'] .only-waitlist {
  display: none !important;
}

/* ---------- Иконки (линейни, 1.75px – като в портала) ---------- */
.ico {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ico-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-ink);
  flex: none;
}

/* ---------- Знакът LXVNT (временен типографски знак – виж packages.md, В-В1) ---------- */
.mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  color: var(--gold);
  text-decoration: none;
}
.mark b {
  font: 500 27px/1 'Playfair Display', var(--font-display);
  letter-spacing: 0.06em;
}
.mark small {
  margin-top: 5px;
  font: 600 7.5px/1 var(--font-body);
  letter-spacing: 0.52em;
  margin-right: -0.52em;
  color: var(--gold-ink);
}

/* ---------- Устройства (чист CSS, без растерни мокъпи) ---------- */
.phone {
  position: relative;
  width: var(--phone-w, 250px);
  aspect-ratio: 9 / 19.2;
  padding: calc(var(--phone-w, 250px) * 0.035);
  border-radius: calc(var(--phone-w, 250px) * 0.16);
  background: var(--device-body);
  box-shadow:
    var(--shadow-device),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone::before {
  content: '';
  position: absolute;
  z-index: 3;
  top: calc(var(--phone-w, 250px) * 0.06);
  left: 50%;
  width: 30%;
  height: calc(var(--phone-w, 250px) * 0.085);
  transform: translateX(-50%);
  border-radius: 99px;
  background: var(--device-body);
}
.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--phone-w, 250px) * 0.125);
  background: var(--champagne);
  container-type: inline-size;
}
.laptop {
  position: relative;
  width: var(--laptop-w, 640px);
}
.laptop__lid {
  padding: calc(var(--laptop-w, 640px) * 0.018) calc(var(--laptop-w, 640px) * 0.018)
    calc(var(--laptop-w, 640px) * 0.026);
  border-radius: calc(var(--laptop-w, 640px) * 0.03) calc(var(--laptop-w, 640px) * 0.03) 0 0;
  background: var(--device-body);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.laptop__screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 3px;
  background: #fff;
  container-type: inline-size;
}
.laptop__base {
  position: relative;
  height: calc(var(--laptop-w, 640px) * 0.026);
  margin-inline: -7%;
  border-radius: 0 0 calc(var(--laptop-w, 640px) * 0.04) calc(var(--laptop-w, 640px) * 0.04);
  background: linear-gradient(#dedad4, #b9b4ad 70%, #a29d96);
  box-shadow: var(--shadow-device);
}
.laptop__base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 16%;
  height: 45%;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: #a9a49c;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 1.4cqi;
  height: 4.6cqi;
  padding: 0 2cqi;
  background: #f1efeb;
  border-bottom: 1px solid #e4e0d9;
}
.browser-bar i {
  width: 1.2cqi;
  height: 1.2cqi;
  border-radius: 50%;
  background: #d6d1c9;
}
.browser-bar span {
  flex: 1;
  max-width: 46%;
  margin: 0 auto;
  padding: 0.5cqi 2cqi;
  border-radius: 99px;
  background: #fff;
  font: 500 1.5cqi/1.4 var(--font-body);
  color: var(--ink-muted);
  text-align: center;
}

/* ---------- Поява при превъртане (само с JS и без reduced-motion) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 600ms var(--ease-soft),
    transform 600ms var(--ease-soft);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
/* Режим за снимки на екрана (?shot): без поява и без закачени елементи. */
.shot .reveal {
  opacity: 1 !important;
  transform: none !important;
}
.shot .sticky-cta {
  display: none !important;
}
