/* Landing visual language — umami-grade minimal. Tokens from theme.css. */
/* Лендинг на чисто белом фоне; тёмные значения повторены, иначе :root ниже
   перебил бы [data-theme="dark"] из theme.css (одинаковая специфичность). */
:root { --bg: #FFFFFF; --tg: #E9F3FB; --tg-ink: #1F5E8C; --demo-brand: #C2410C; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0E0E0E; --tg: #13243A; --tg-ink: #8EC5F0; --demo-brand: #F97316; }
}
:root[data-theme="dark"] { --bg: #0E0E0E; --tg: #13243A; --tg-ink: #8EC5F0; --demo-brand: #F97316; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
a { color: inherit; }
img { max-width: 100%; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.brand-name { display: flex; }
.brand-name em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 24px; margin: 0 auto 0 16px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lp-theme-btn { background: none; border: 1px solid var(--border); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 7px; border-radius: 9px; padding: 9px 16px; font-size: 14px; font-weight: 500; font-family: inherit; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: opacity .15s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn:hover { opacity: .9; }

/* Hero */
.lp-hero { padding: 64px 0 72px; }
.lp-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.lp-hero-grid > * { min-width: 0; }
.lp-hero-title { font-size: clamp(34px, 5vw, 52px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin: 0; text-wrap: balance; }
.lp-hero-title em { font-style: normal; color: var(--accent); }
.lp-hero-sub { font-size: 17px; color: var(--muted); line-height: 1.5; margin: 20px 0 0; max-width: 32em; }
.lp-hero-form { display: flex; gap: 10px; margin-top: 28px; max-width: 480px; }
.lp-hero-form input { flex: 1; min-width: 0; border: 1px solid var(--border-strong); border-radius: 9px; padding: 12px 14px; font-size: 14px; background: var(--surface); color: var(--ink); font-family: inherit; }
.lp-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 13px; color: var(--faint); }
.lp-hero-meta span::before { content: "✓ "; color: var(--up); }

/* Hero: путь одного сбоя */
.lp-chain-step { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.lp-chain-step > * { min-width: 0; }
.lp-chain-time { font-family: var(--mono); font-size: 11px; color: var(--faint); padding-top: 14px; text-align: right; }
.lp-chain-body { padding-bottom: 14px; position: relative; }
.lp-chain-body::before { content: ""; position: absolute; left: -7px; top: 18px; bottom: -4px; width: 1px; background: var(--border-strong); }
.lp-chain-step:last-child .lp-chain-body::before { display: none; }
.lp-chain-body::after { content: ""; position: absolute; left: -10px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--faint)); }
.lp-chain-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }

/* Demo UI pieces */
.lp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; font-size: 13px; }
.lp-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lp-tg { background: var(--tg); border-color: transparent; }
.lp-tg-from { font-weight: 600; color: var(--tg-ink); font-size: 12px; margin-bottom: 3px; }
.lp-tg-btns { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.lp-tg-btns span { flex: 1; text-align: center; font-size: 12px; color: var(--tg-ink); background: color-mix(in srgb, var(--tg-ink) 10%, transparent); border-radius: 6px; padding: 5px 8px; white-space: nowrap; }
.lp-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; border-radius: 99px; padding: 2px 9px; white-space: nowrap; }
.lp-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lp-pill-down { color: var(--down); background: var(--danger-soft); }
.lp-pill-warn { color: var(--warn); background: var(--warn-soft); }
.lp-pill-up { color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent); }
.lp-demo-brand { font-weight: 700; color: var(--demo-brand); }
.lp-mono { font-family: var(--mono); }
.lp-bars { display: flex; gap: 2px; height: 22px; margin: 8px 0 4px; }
.lp-bars i { flex: 1; border-radius: 1px; background: var(--up); }
.lp-bars i.w { background: var(--warn); }
.lp-bars i.d { background: var(--down); }
.lp-bars-legend { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--faint); }
.lp-checks-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lp-checks-table td { padding: 9px 0; border-bottom: 1px solid var(--border); }
.lp-checks-table td:last-child { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); }
.lp-checks-table tr:last-child td { border-bottom: 0; }
.lp-tl { display: flex; flex-direction: column; gap: 12px; border-left: 2px solid var(--border); padding-left: 14px; margin-top: 10px; }
.lp-tl-time { font-family: var(--mono); font-size: 11px; color: var(--faint); }

/* Section heads */
section { border-top: 1px solid var(--border); }
.lp-hero { border-top: 0; }
.lp-section-head { margin-bottom: 40px; }
.lp-section-label { font-size: 13px; font-weight: 500; color: var(--accent); margin-bottom: 10px; }
.lp-section-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; margin: 0; text-wrap: balance; }

/* Steps */
.lp-steps { display: flex; flex-direction: column; gap: 56px; }
.lp-step { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.lp-step > * { min-width: 0; }
.lp-step-num { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 8px; }
.lp-step h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.lp-step p { color: var(--muted); margin: 10px 0 0; line-height: 1.5; }

/* Pricing */
.lp-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-plan { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 28px 24px; display: flex; flex-direction: column; }
.lp-plan-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.lp-plan-head { display: flex; align-items: center; gap: 10px; }
.lp-plan-name { font-size: 15px; font-weight: 600; }
.lp-plan-tag { font-size: 13px; color: var(--muted); margin-top: 4px; }
.lp-plan-price { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; margin: 12px 0; }
.lp-plan-features { list-style: none; padding: 0; margin: 16px 0 20px; font-size: 14px; color: var(--muted); }
.lp-plan-features li { padding: 7px 0; border-top: 1px solid var(--border); }
.lp-plan-badge, .lp-plan-badge-dark { font-size: 11px; border-radius: 99px; padding: 2px 9px; background: var(--accent); color: #fff; }
.lp-billing-toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 24px; }
.lp-billing-toggle button { border: none; background: none; border-radius: 7px; padding: 6px 14px; font-size: 13px; cursor: pointer; color: var(--muted); font-family: inherit; }
.lp-billing-toggle button.active { background: var(--ink); color: var(--bg); }

/* Final CTA */
.lp-cta-final { text-align: center; padding: 88px 0; }
.lp-cta-final h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 26px; }
.lp-cta-final .lp-hero-form { margin: 0 auto; }
.lp-cta-final .lp-hero-meta { justify-content: center; }

/* Footer */
.lp-footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; padding: 56px 0 32px; border-top: 1px solid var(--border); }
.lp-footer-tagline { font-size: 13px; color: var(--muted); max-width: 24em; margin-top: 12px; }
.lp-footer-col h3 { font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.lp-footer-col ul { list-style: none; margin: 0; padding: 0; }
.lp-footer-col a { display: block; font-size: 13px; color: var(--muted); text-decoration: none; padding: 4px 0; }
.lp-footer-col a:hover { color: var(--ink); }
.lp-footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; font-size: 12.5px; color: var(--faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Modals (functional auth/add-site) */
.lp-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100; }
.lp-modal, .auth-modal { position: fixed; z-index: 101; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; width: min(440px, 92vw); }
.auth-head { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.auth-legal { font-size: 12px; line-height: 1.5; color: var(--faint); margin: 4px 0 14px; }
.auth-field { margin-bottom: 12px; }
.auth-field input { width: 100%; border: 1px solid var(--border); border-radius: 9px; padding: 11px 13px; font-size: 14px; background: var(--bg); color: var(--ink); font-family: inherit; }
.auth-submit { width: 100%; justify-content: center; }
.auth-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--faint); cursor: pointer; font-size: 18px; }
.lp-modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.lp-kbd { border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: 12px; color: var(--muted); }

/* Burger menu (mobile) — reuse from prior work, themed */
.nav-burger-toggle, .nav-burger, .nav-overlay, .nav-drawer { display: none; }
@media (max-width: 1080px) {
  .topbar .nav-links, .topbar .nav-right { display: none; }
  .nav-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; margin-left: auto; padding: 9px 8px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; background: var(--surface); }
  .nav-burger span { display: block; height: 2px; width: 100%; border-radius: 2px; background: var(--ink); }
  .nav-overlay { display: block; position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; z-index: 40; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .nav-drawer { display: flex; flex-direction: column; gap: 4px; position: fixed; top: 0; right: 0; z-index: 50; width: min(78vw, 320px); height: 100dvh; padding: 72px 20px 24px; background: var(--bg); border-left: 1px solid var(--border); transform: translateX(100%); transition: transform .22s ease; overflow-y: auto; }
  .nav-drawer-link { font-size: 16px; color: var(--ink); text-decoration: none; padding: 14px 10px; border-radius: 8px; min-height: 44px; display: flex; align-items: center; }
  .nav-drawer-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
  .nav-burger-toggle:checked ~ .nav-overlay { opacity: 1; pointer-events: auto; }
  .nav-burger-toggle:checked ~ .nav-drawer { transform: translateX(0); }
}

/* Mobile */
@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-step { grid-template-columns: 1fr; gap: 20px; }
  .lp-pricing { grid-template-columns: 1fr; }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .lp-hero-form { flex-direction: column; }
  .lp-hero-form input, .lp-hero-form .btn { width: 100%; justify-content: center; }
}


/* Выдвижное меню закреплено внутри шапки с backdrop-filter, поэтому ведёт себя
   как обычный блок и в закрытом состоянии (справа за экраном) раздвигало
   страницу — на телефоне лендинг утягивался вбок. clip, а не hidden: не
   ломает position: sticky. */
html, body { overflow-x: clip; }
