/* Лендинг dialogspy.com. Общие nav/footer/article — в styles.css. */

.landing {
  --bg: #0b0f17;
  --bg-2: #0f1520;
  --surface: #131a26;
  --surface-2: #182131;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --text: #e9eef6;
  --text-dim: #95a1b3;
  --tg: #2aabee;
  --tg-deep: #1689d8;
  --red: #ff5d62;
  --amber: #ffb547;
  --green: #3ddc97;
  --violet: #a78bfa;
  background: var(--bg);
  color: var(--text);
}
.landing::before { display: none; }
.landing .nav { background: rgba(11,15,23,0.78); }
.landing .nav .nav-cta { background: var(--tg); }
.landing .nav-links a.active { color: var(--text); }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 14px; border-radius: 10px; background: var(--tg); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.landing :focus-visible { outline: 2px solid var(--tg); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.l-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.005em;
  transition: transform .15s ease, background-color .2s, box-shadow .2s, border-color .2s;
}
.l-btn:active { transform: translateY(1px); }
.l-btn-primary {
  background: var(--tg); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 30px -12px rgba(42,171,238,0.7);
}
.l-btn-primary:hover { background: #3cb6f2; }
.l-btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.l-btn-ghost:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.03); }
.l-btn-lg { min-height: 58px; padding: 0 32px; font-size: 17px; }
.l-tg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.l-hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
  isolation: isolate;
}
.l-hero::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -10% auto auto;
  width: 900px; height: 700px;
  background: radial-gradient(closest-side, rgba(42,171,238,0.22), transparent 70%);
  pointer-events: none;
}
.l-hero-grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center;
}
.l-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.03);
  font-size: 13px; font-weight: 600; color: var(--text-dim);
}
.l-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(61,220,151,0.15);
}
.l-h1 {
  margin: 22px 0 20px;
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}
.l-strike {
  position: relative; white-space: nowrap; color: var(--tg);
}
.l-strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 54%;
  height: 0.08em; border-radius: 2px; background: var(--red);
  transform-origin: left center; transform: scaleX(0);
  animation: l-strike 4.8s ease-in-out 0.6s infinite;
}
@keyframes l-strike {
  0%, 8% { transform: scaleX(0); }
  22%, 60% { transform: scaleX(1); opacity: 1; }
  75%, 100% { transform: scaleX(1); opacity: 0; }
}
.l-lead {
  max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--text-dim);
}
.l-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.l-trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px;
  font-size: 14px; color: var(--text-dim);
}
.l-trust li { display: inline-flex; align-items: center; gap: 8px; }
.l-trust li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: rgba(61,220,151,0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%233ddc97' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.l-trust b { color: var(--text); font-weight: 700; }

/* hero visual: чат + уведомления бота */
.l-hero-visual { position: relative; padding: 0 0 222px 0; max-width: 460px; justify-self: end; width: 100%; }
.l-chat {
  border-radius: 24px; overflow: hidden;
  background: #0e1621;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8);
}
.l-chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: #17212b; border-bottom: 1px solid rgba(0,0,0,0.4);
}
.l-chat-head b { display: block; font-size: 15px; }
.l-chat-head small { font-size: 12px; color: #7d8b99; }
.l-ava {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; color: #fff;
}
.l-ava-a { background: linear-gradient(135deg, #f78f6b, #e4577a); }
.l-chat-body {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 16px 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(42,171,238,0.06), transparent 40%),
    #0e1621;
  font-size: 14.5px;
}
.l-msg {
  position: relative; max-width: 80%; padding: 8px 12px 18px; border-radius: 14px;
  line-height: 1.4;
}
.l-msg time { position: absolute; right: 10px; bottom: 4px; font-size: 11px; opacity: .55; }
.l-in { align-self: flex-start; background: #182533; border-bottom-left-radius: 4px; padding-right: 48px; }
.l-out { align-self: flex-end; background: #2b5278; border-bottom-right-radius: 4px; padding-right: 48px; }
.l-gone {
  align-self: flex-start; padding: 6px 12px; border-radius: 12px;
  font-size: 13px; font-style: italic; color: #7d8b99;
  border: 1px dashed rgba(255,255,255,0.14);
}
.l-vanish { display: none; }
.l-once { display: inline-flex; align-items: center; gap: 10px; color: #b7c3cf; }
.l-once-ic {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 2px dashed var(--tg); color: var(--tg); font-size: 12px; font-weight: 800;
}

.l-notif {
  position: absolute; width: min(330px, 86%);
  padding: 12px 14px 14px; border-radius: 18px;
  background: rgba(24,33,49,0.92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.9);
  font-size: 14px;
}
.l-notif-1 { left: -56px; bottom: 112px; animation: l-pop .6s cubic-bezier(.2,.9,.3,1.2) .5s both; }
.l-notif-2 { right: -24px; bottom: 0; animation: l-pop .6s cubic-bezier(.2,.9,.3,1.2) 1.1s both; }
@keyframes l-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.l-notif-top { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.l-notif-top img { border-radius: 6px; }
.l-notif-top time { margin-left: auto; color: var(--text-dim); font-size: 12px; }
.l-notif-title { font-weight: 700; margin-bottom: 6px; }
.l-notif blockquote {
  padding: 6px 10px; border-left: 3px solid var(--red); border-radius: 4px;
  background: rgba(255,93,98,0.08); color: #f3d6d7;
}
.l-diff { display: flex; flex-direction: column; gap: 4px; }
.l-diff del { color: var(--text-dim); text-decoration-color: var(--red); }
.l-diff ins { text-decoration: none; padding: 4px 8px; border-radius: 4px; background: rgba(61,220,151,0.1); color: #c9f5e1; border-left: 3px solid var(--green); }

/* ---------- sections ---------- */
.l-section { padding: 104px 0; position: relative; }
.l-section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.l-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.l-head-left { margin-left: 0; text-align: left; }
.l-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tg); margin-bottom: 14px;
}
.l-section h2 {
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.028em;
  font-weight: 800; text-wrap: balance;
}
.l-sub { margin-top: 16px; font-size: 17px; color: var(--text-dim); line-height: 1.6; }

/* ---------- features bento ---------- */
.l-bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
.l-tile {
  padding: 26px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.l-tile:hover { border-color: var(--line-2); }
.l-tile-lg { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.l-tile h3 { font-size: 18px; letter-spacing: -0.01em; margin: 18px 0 8px; }
.l-tile-lg h3 { font-size: 24px; }
.l-tile p { color: var(--text-dim); font-size: 15px; line-height: 1.55; }
.l-tile-lg p { font-size: 16px; }
.l-tile-ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
}
.l-tile-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.l-ic-red { color: var(--red); background: rgba(255,93,98,0.12); }
.l-ic-amber { color: var(--amber); background: rgba(255,181,71,0.12); }
.l-ic-blue { color: var(--tg); background: rgba(42,171,238,0.12); }
.l-ic-green { color: var(--green); background: rgba(61,220,151,0.12); }
.l-ic-violet { color: var(--violet); background: rgba(167,139,250,0.12); }
.l-demo-del {
  margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.l-demo-line {
  padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: #182533; font-size: 15px;
}
.l-demo-line del { text-decoration-color: var(--red); text-decoration-thickness: 2px; color: #c4ced9; }
.l-demo-card {
  width: min(100%, 360px); padding: 12px 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14px;
}
.l-demo-card b { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-dim); font-weight: 600; }
.l-demo-card q {
  display: block; quotes: none; padding: 6px 10px; border-left: 3px solid var(--red); border-radius: 4px;
  background: rgba(255,93,98,0.08); color: #f3d6d7;
}
.l-demo-tag {
  font-family: var(--mono); font-size: 12.5px; color: var(--red);
  padding: 6px 10px; border-radius: 8px; background: rgba(255,93,98,0.1);
}

/* ---------- how ---------- */
.l-how { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.l-note {
  margin: 20px 0 28px; padding: 14px 16px; border-radius: 14px;
  background: rgba(255,181,71,0.08); border: 1px solid rgba(255,181,71,0.25);
  color: #f1dcb8; font-size: 15px; line-height: 1.5;
}
.l-note b { color: #ffd593; }
.l-steps { list-style: none; counter-reset: step; display: grid; gap: 4px; margin-bottom: 32px; }
.l-steps li {
  counter-increment: step; position: relative; padding: 16px 0 16px 60px;
}
.l-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 14px;
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; color: var(--tg);
  background: rgba(42,171,238,0.12); border: 1px solid rgba(42,171,238,0.3);
}
.l-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 20px; top: 58px; bottom: -14px; width: 1px; background: var(--line-2);
}
.l-steps h3 { font-size: 18px; margin-bottom: 4px; }
.l-steps p { color: var(--text-dim); font-size: 15px; }
.l-steps code {
  font-family: var(--mono); font-size: .9em; color: var(--tg);
  padding: 2px 6px; border-radius: 6px; background: rgba(42,171,238,0.1);
}
.l-shot { justify-self: center; max-width: 360px; }
.l-phone {
  width: 340px; max-width: 100%; padding: 18px 14px 26px; border-radius: 36px;
  background: #0f1720; border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.85), 0 0 0 8px #070a0f, 0 0 0 9px rgba(255,255,255,0.08);
  font-size: 14px;
}
.l-phone-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 4px 18px; font-size: 13px; }
.l-phone-bar span { color: var(--tg); }
.l-phone-bar b { font-size: 15px; }
.l-phone-hint { color: var(--text-dim); font-size: 13px; text-align: center; padding: 0 14px 16px; line-height: 1.45; }
.l-phone-cap { margin: 18px 12px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.l-phone-group { border-radius: 14px; background: #17212b; overflow: hidden; }
.l-phone-input { padding: 13px 14px; color: var(--text); border-bottom: 1px solid rgba(255,255,255,0.06); font-family: var(--mono); font-size: 13px; }
.l-phone-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.l-phone-row img { border-radius: 50%; }
.l-phone-row b { display: block; font-size: 15px; }
.l-phone-row small { color: var(--text-dim); font-size: 12.5px; }
.l-phone-ok {
  margin-left: auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tg); color: #fff; font-size: 13px; font-weight: 800;
}
.l-phone-opt { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; }
.l-phone-opt + .l-phone-opt { border-top: 1px solid rgba(255,255,255,0.06); }
.l-phone-opt i {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid #3a4756;
}
.l-phone-opt i.on { border: 6px solid var(--tg); }
.l-shot figcaption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--text-dim); }

/* ---------- safety ---------- */
.l-safe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.l-safe > div { padding: 28px 28px 0 0; }
.l-safe > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.l-safe h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -0.01em; }
.l-safe p { color: var(--text-dim); font-size: 15.5px; line-height: 1.6; }

/* ---------- compare ---------- */
.l-table-wrap {
  overflow-x: auto; border-radius: 20px; border: 1px solid var(--line);
  background: var(--surface); -webkit-overflow-scrolling: touch;
}
.l-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.l-table th, .l-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.l-table tbody tr:last-child > * { border-bottom: 0; }
.l-table thead th { font-size: 14px; color: var(--text-dim); font-weight: 600; }
.l-table tbody th { font-weight: 600; color: var(--text); }
.l-table td { color: var(--text-dim); }
.l-table .l-col-us { background: rgba(42,171,238,0.07); }
.l-table thead .l-col-us { color: var(--tg); font-weight: 800; }
.l-table .y, .l-table .n, .l-table .m { display: inline-flex; align-items: center; gap: 8px; }
.l-table .y::before, .l-table .n::before, .l-table .m::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
}
.l-table .y { color: var(--text); }
.l-table .y::before { background: var(--green); }
.l-table .n::before { background: var(--red); }
.l-table .m::before { background: var(--amber); }

/* ---------- bots ---------- */
.l-bots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.l-bot {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, background-color .2s;
  min-width: 0;
}
.l-bot:hover { border-color: rgba(42,171,238,0.5); background: var(--surface-2); }
.l-bot img { border-radius: 12px; flex: none; }
.l-bot span { display: flex; flex-direction: column; min-width: 0; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.l-bot small { font-size: 12px; font-weight: 600; color: var(--text-dim); margin-bottom: 2px; }
.l-bot-main { border-color: rgba(42,171,238,0.45); background: linear-gradient(180deg, rgba(42,171,238,0.12), rgba(42,171,238,0.04)); }
.l-bot-main small { color: var(--tg); }

/* ---------- prose ---------- */
.l-prose-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.l-prose-wrap .l-head { position: sticky; top: 100px; margin-bottom: 0; }
.l-prose { max-width: 680px; font-size: 16.5px; line-height: 1.75; color: #c3ccd8; }
.l-prose p + p, .l-prose p + h3 { margin-top: 18px; }
.l-prose h3 { font-size: 20px; color: var(--text); margin-top: 32px; margin-bottom: 8px; letter-spacing: -0.01em; }
.l-prose strong { color: var(--text); }
.l-prose a { color: var(--tg); text-decoration: underline; text-decoration-color: rgba(42,171,238,0.4); text-underline-offset: 3px; }
.l-prose a:hover { text-decoration-color: var(--tg); }

/* ---------- blog ---------- */
.l-posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.l-post {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 170px; padding: 22px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.l-post:hover { border-color: var(--line-2); transform: translateY(-2px); }
.l-post h3 { font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; }
.l-post span { font-size: 14px; color: var(--tg); font-weight: 600; }

/* ---------- faq ---------- */
.l-faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.l-faq-wrap .l-head { position: sticky; top: 100px; margin-bottom: 0; }
.l-faq { border-top: 1px solid var(--line); }
.l-faq details { border-bottom: 1px solid var(--line); }
.l-faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
}
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg); transition: transform .2s;
}
.l-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--tg); }
.l-faq summary:hover { color: #fff; }
.l-faq details p { padding: 0 48px 22px 0; color: var(--text-dim); font-size: 16px; line-height: 1.65; }

/* ---------- final ---------- */
.l-final { padding-top: 40px; }
.l-final-box {
  text-align: center; padding: 72px 28px; border-radius: 28px; position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(42,171,238,0.28), transparent 70%),
    var(--surface);
  border: 1px solid rgba(42,171,238,0.3);
}
.l-final-box h2 { max-width: 640px; margin: 0 auto 14px; }
.l-final-box p { color: var(--text-dim); font-size: 17px; margin-bottom: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .l-bento { grid-template-columns: repeat(2, 1fr); }
  .l-posts, .l-bots { grid-template-columns: repeat(2, 1fr); }
  .l-notif-1 { left: -24px; }
  .l-notif-2 { right: -8px; }
}
@media (max-width: 900px) {
  .l-hero { padding: 44px 0 24px; }
  .l-hero-grid, .l-how, .l-prose-wrap, .l-faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .l-hero-visual { justify-self: center; }
  .l-prose-wrap .l-head, .l-faq-wrap .l-head { position: static; }
  .l-safe { grid-template-columns: 1fr; border-top: 0; }
  .l-safe > div, .l-safe > div + div { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .landing .container { padding: 0 16px; }
  .l-section { padding: 72px 0; }
  .l-head { margin-bottom: 36px; }
  .l-lead { font-size: 16.5px; }
  .l-cta-row .l-btn { flex: 1 1 100%; }
  .l-bento, .l-posts, .l-bots { grid-template-columns: 1fr; }
  .l-tile-lg { grid-column: auto; grid-row: auto; }
  .l-post { min-height: 0; }
  .l-hero-visual { padding-bottom: 236px; }
  .l-notif { width: 88%; }
  .l-notif-1 { left: -4px; bottom: 112px; }
  .l-notif-2 { right: -4px; bottom: 0; }
  .l-faq summary { font-size: 16px; padding-right: 36px; }
  .l-faq details p { padding-right: 0; }
  .l-final-box { padding: 48px 20px; }
  .l-final-box .l-btn { width: 100%; }
  .l-table-wrap { overflow: visible; background: none; border: 0; border-radius: 0; }
  .l-table { min-width: 0; }
  .l-table thead { display: none; }
  .l-table, .l-table tbody, .l-table tr, .l-table th, .l-table td { display: block; }
  .l-table tr {
    margin-bottom: 12px; border-radius: 16px; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line);
  }
  .l-table tbody th { padding: 14px 16px; font-size: 16px; }
  .l-table td {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 11px 16px; font-size: 14.5px; border-bottom: 0; border-top: 1px solid var(--line);
  }
  .l-table td::before { content: attr(data-label); color: var(--text-dim); }
  .l-table td.l-col-us::before { color: var(--tg); font-weight: 700; }
  .l-table tbody tr:last-child > * { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .l-strike::after { animation: none; transform: scaleX(1); }
  .l-notif-1, .l-notif-2 { animation: none; }
  .l-post:hover { transform: none; }
}
