/* ==========================================================================
   landing.css — публичната страница.
   Йерархия: едно обещание, едно доказателство, едно действие на екран.
   ========================================================================== */

/* ------------------------------------------------------------ Навигация -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  transition: background-color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgb(255 255 255 / 82%);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5);
  height: 68px;
}
.site-nav { display: flex; align-items: center; gap: .3rem; }
.site-nav__link {
  padding: .5rem .8rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}
.site-nav__link:hover { color: var(--text); background: rgb(var(--ink-rgb) / 0.05); }
.site-header__cta { display: flex; align-items: center; gap: .5rem; }

.nav-toggle { display: none; }

@media (max-width: 880px) {
  .site-nav, .site-header__cta .btn--ghost { display: none; }
  .nav-toggle {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    color: var(--text);
  }
}

/* Мобилно меню: цял екран, големи цели за пръст */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: var(--z-overlay);
  display: flex; flex-direction: column;
  padding: var(--sp-5) var(--gutter) var(--sp-8);
  background: var(--surface);
  animation: fade-in 180ms var(--ease-out);
}
.mobile-menu__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-7);
}
.mobile-menu__list { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.mobile-menu__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem .4rem;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -.02em;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.mobile-menu__link svg { color: var(--text-faint); }
.mobile-menu__foot { display: flex; flex-direction: column; gap: .6rem; }

/* ---------------------------------------------------------------- Hero -- */

.hero {
  position: relative;
  padding-top: clamp(3rem, 1.5rem + 6vw, 6.5rem);
  padding-bottom: var(--section-y);
  overflow: hidden;
}
/* Топъл ореол зад заглавието — единственият голям светлинен акцент в сайта. */
.hero::before {
  content: "";
  position: absolute;
  top: -28%; left: 50%;
  width: min(1100px, 130vw); aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgb(var(--brand-rgb) / 0.16), rgb(var(--brand-rgb) / 0.05) 42%, transparent 68%);
  pointer-events: none;
}
/* Ситна мрежа — намеква за тетрадка, без да е клише */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(var(--ink-rgb) / 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--ink-rgb) / 0.022) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(70% 55% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 2; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-7); }
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--track-display);
  margin-top: var(--sp-4);
}
.hero__title em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-600);
  letter-spacing: -.02em;
}
.hero__lead {
  margin-top: var(--sp-5);
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 46ch;
  line-height: 1.6;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: .7rem;
  margin-top: var(--sp-6);
}
.hero__note {
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
}
.hero__note svg { color: var(--ok-500); }

/* Демонстрационен панел вдясно — прозорец към продукта */
.hero-demo {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--sh-xl);
  overflow: hidden;
}
.hero-demo__bar {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem .95rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.hero-demo__dots { display: flex; gap: .32rem; }
.hero-demo__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-200); }
.hero-demo__label {
  font-size: var(--fs-micro);
  color: var(--text-faint);
  font-family: var(--font-mono);
  margin-left: auto;
}
.hero-demo__body { padding: var(--sp-5); }

/* Изписване на заявката знак по знак — показва как се говори на продукта */
.typeline {
  min-height: 3.6em;
  padding: .8rem .95rem;
  background: var(--ink-50);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text);
}
.typeline__caret {
  display: inline-block;
  width: 2px; height: 1.05em;
  background: var(--brand-500);
  vertical-align: text-bottom;
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-demo__out {
  margin-top: var(--sp-4);
  display: flex; flex-direction: column; gap: .55rem;
}
.demo-line {
  display: flex; align-items: center; gap: .6rem;
  padding: .58rem .8rem;
  background: var(--surface-inset);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.demo-line.is-in { opacity: 1; transform: none; }
.demo-line__time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--brand-600);
  flex: none;
}
.demo-line svg { color: var(--brand-600); flex: none; }

/* ------------------------------------------------------------ Секции ---- */

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .62); }
.section--line { border-top: 1px solid var(--line); }

.section-intro { max-width: 62ch; }
.section-intro--center { margin-inline: auto; text-align: center; }
.section-intro__title {
  font-size: var(--fs-h2);
  letter-spacing: var(--track-tight);
  margin-top: var(--sp-4);
}
.section-intro__text {
  margin-top: var(--sp-4);
  color: var(--text-muted);
  font-size: var(--fs-lead);
  line-height: 1.6;
}

/* ------------------------------------------------------- Лента доверие -- */

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.strip__cell {
  background: var(--ink-50);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: .3rem;
}
.strip__k {
  font-size: var(--fs-micro);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--text-faint);
}
.strip__v { font-size: var(--fs-sm); color: var(--text); font-weight: 500; }

/* ---------------------------------------------------- Интерактивно демо - */

.trydemo {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(var(--brand-rgb) / 0.09), transparent 55%),
    var(--surface);
  overflow: hidden;
}
.trydemo__grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
}
@media (max-width: 940px) { .trydemo__grid { grid-template-columns: 1fr; } }

.trydemo__form {
  padding: clamp(1.25rem, .9rem + 1.4vw, 2rem);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
@media (max-width: 940px) {
  .trydemo__form { border-right: 0; border-bottom: 1px solid var(--line); }
}
.trydemo__stage {
  padding: clamp(1.25rem, .9rem + 1.4vw, 2rem);
  min-height: 460px;
  display: flex; flex-direction: column;
  background: var(--surface);
}
.trydemo__placeholder {
  margin: auto;
  text-align: center;
  max-width: 34ch;
  color: var(--text-faint);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-4);
}
.trydemo__result { animation: fade-up 480ms var(--ease-out); }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

/* Меко ограничаване: показваме истински резултат, но не целия */
.peek {
  position: relative;
  max-height: 520px;
  overflow: hidden;
  border-radius: var(--r-lg);
}
.peek::after {
  content: "";
  position: absolute; inset-inline: 0; bottom: 0; height: 190px;
  background: linear-gradient(transparent, var(--bg) 82%);
  pointer-events: none;
}
.peek-cta {
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
}

/* ----------------------------------------------------------- Как работи - */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--sp-5);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--brand-500);
  letter-spacing: .08em;
}
.step__title { font-size: var(--fs-h4); margin-top: var(--sp-3); }
.step__text { color: var(--text-muted); font-size: var(--fs-sm); margin-top: .55rem; }

/* --------------------------------------------------------- Видове ресурси */

.types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .7rem;
}
.type-cell {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--t-base) var(--ease-out),
              background-color var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out);
}
.type-cell:hover {
  border-color: var(--line-brand);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.type-cell__icon {
  display: grid; place-items: center;
  width: 32px; height: 32px; flex: none;
  border-radius: 9px;
  background: rgb(var(--brand-rgb) / 0.1);
  color: var(--brand-600);
}
.type-cell__name { font-size: var(--fs-sm); font-weight: 550; }
.type-cell__blurb { font-size: var(--fs-micro); color: var(--text-faint); margin-top: .18rem; line-height: 1.4; }

/* ------------------------------------------------------------- Разделен -- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.split--reverse > *:first-child { order: 2; }
@media (max-width: 720px) { .split--reverse > *:first-child { order: 0; } }

.feature-list { display: flex; flex-direction: column; gap: var(--sp-5); margin-top: var(--sp-6); }
.feature {
  display: flex; gap: .9rem;
}
.feature__icon {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--brand-600);
}
.feature__title { font-size: var(--fs-h4); font-weight: 600; }
.feature__text { color: var(--text-muted); font-size: var(--fs-sm); margin-top: .3rem; line-height: 1.6; }

/* --------------------------------------------------------- Сравнение ----- */

.versus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 680px) { .versus { grid-template-columns: 1fr; } }
.versus__col { background: var(--ink-50); padding: var(--sp-6) var(--sp-5); }
.versus__col--ours { background: var(--surface); }
.versus__head {
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-4);
}
.versus__col--ours .versus__head { color: var(--brand-600); }
.versus__item {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .6rem 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}
.versus__item:last-child { border-bottom: 0; }
.versus__col--ours .versus__item { color: var(--text); }
.versus__item svg { flex: none; margin-top: .2rem; }
.versus__col--ours .versus__item svg { color: var(--ok-500); }
.versus__col:not(.versus__col--ours) .versus__item svg { color: var(--ink-300); }

/* -------------------------------------------------------------- Примери -- */

.examples__tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: var(--sp-5); }
.example-tab {
  padding: .55rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  background: var(--surface-inset);
  transition: all var(--t-fast) var(--ease-out);
}
.example-tab:hover { border-color: var(--line-strong); color: var(--text); }
.example-tab[aria-selected="true"] {
  background: var(--brand-500);
  border-color: transparent;
  color: var(--text-on-brand);
  font-weight: 600;
}
.example-brief {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .85rem 1rem;
  margin-bottom: var(--sp-4);
  border: 1px dashed var(--line-brand);
  border-radius: var(--r-md);
  background: rgb(var(--brand-rgb) / 0.05);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.example-brief svg { color: var(--brand-600); flex: none; margin-top: .15rem; }

/* --------------------------------------------------------------- Цени ---- */

.pricing__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-5); flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}

/* --------------------------------------------------------------- ЧЗВ ----- */

.faq { display: flex; flex-direction: column; gap: .5rem; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease-out);
}
.faq__item[open] { border-color: var(--line-brand); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding: 1.05rem 1.2rem;
  font-size: var(--fs-body);
  font-weight: 550;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--brand-700); }
.faq__icon { flex: none; color: var(--text-faint); transition: transform var(--t-base) var(--ease-out); }
.faq__item[open] .faq__icon { transform: rotate(180deg); color: var(--brand-600); }
.faq__a {
  padding: 0 1.2rem 1.15rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
  max-width: 68ch;
}

/* ------------------------------------------------------------ Финал CTA -- */

.final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 1.5rem + 5vw, 5rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  border: 1px solid var(--line-brand);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 130% at 50% 0%, rgb(var(--brand-rgb) / 0.18), transparent 62%),
    var(--surface);
  text-align: center;
}
.final-cta__title {
  font-size: var(--fs-h1);
  letter-spacing: var(--track-tight);
  max-width: 20ch;
  margin-inline: auto;
}
.final-cta__text {
  margin-top: var(--sp-4);
  color: var(--text-muted);
  font-size: var(--fs-lead);
  max-width: 52ch;
  margin-inline: auto;
}
.final-cta__actions {
  margin-top: var(--sp-6);
  display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap;
}

/* --------------------------------------------------------------- Футър --- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--sp-8) var(--sp-6);
  margin-top: var(--section-y);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-6);
}
.footer-brand__text {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-top: var(--sp-4);
  max-width: 34ch;
}
.footer-col__title {
  font-size: var(--fs-micro);
  font-weight: 650;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-4);
}
.footer-col__list { display: flex; flex-direction: column; gap: .6rem; }
.footer-col__list a { font-size: var(--fs-sm); color: var(--text-muted); }
.footer-col__list a:hover { color: var(--brand-600); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); flex-wrap: wrap;
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--text-faint);
}

/* ------------------------------------------------------- Бисквитки ------- */

.cookie-bar {
  position: fixed;
  bottom: var(--sp-4); left: var(--sp-4); right: var(--sp-4);
  z-index: var(--z-overlay);
  max-width: 520px;
  margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4);
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  animation: toast-in 420ms var(--ease-spring);
}
.cookie-bar__text { flex: 1 1 240px; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.55; }
.cookie-bar__actions { display: flex; gap: .45rem; }

/* ==========================================================================
   Креда 2.0 — поток, групи възможности, конвейер
   ========================================================================== */

/* ------------------------------------------------------- Как работи ------ */
.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-6);
  counter-reset: none;
  position: relative;
}
.flow__step {
  list-style: none;
  position: relative;
  padding-top: var(--sp-5);
}
/* Линията между стъпките показва, че това е поток, а не три отделни карти. */
.flow__step::before {
  content: "";
  position: absolute;
  top: 13px; left: 0; right: calc(-1 * var(--sp-6));
  height: 2px;
  background: linear-gradient(90deg, var(--brand-300), var(--ink-200));
}
.flow__step:last-child::before { right: 0; background: var(--brand-300); }
@media (max-width: 760px) {
  .flow__step::before { right: 0; }
}
.flow__num {
  position: relative;
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background-image: var(--gradient);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0;
}
.flow__title { font-size: var(--fs-h4); margin-top: var(--sp-4); }
.flow__text { color: var(--text-muted); font-size: var(--fs-sm); margin-top: .5rem; }

/* ------------------------------------------------ Работният поток -------- */
.pipeline {
  margin-top: var(--sp-8);
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.pipeline__title {
  font-size: var(--fs-micro);
  font-weight: 650;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--text-faint);
}
.pipeline__list {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: var(--sp-4);
}
.pipeline__item {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .8rem .4rem .4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.pipeline__n {
  display: grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 10px;
  font-weight: 700;
}
.pipeline__note {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 72ch;
  line-height: 1.65;
}

/* --------------------------------------------- Групирани възможности ----- */
.cap-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-4);
}
.cap-group {
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.cap-group:hover { border-color: var(--brand-300); box-shadow: var(--sh-md); }
.cap-group__head { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: var(--sp-4); }
.cap-group__icon {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  border-radius: 10px;
  background: var(--brand-100);
  color: var(--brand-600);
}
.cap-group__name { font-size: var(--fs-h4); font-weight: 650; }
.cap-group__blurb { font-size: var(--fs-xs); color: var(--text-muted); margin-top: .1rem; }
.cap-group__items { display: flex; flex-direction: column; gap: .6rem; }
.cap-item {
  display: flex; flex-direction: column; gap: .1rem;
  padding-left: .9rem;
  border-left: 2px solid var(--ink-100);
}
.cap-item__name { font-size: var(--fs-sm); font-weight: 550; }
.cap-item__blurb { font-size: var(--fs-micro); color: var(--text-muted); line-height: 1.4; }
