/* ==========================================================================
   Landing "Знакомий прогер" — one-page promo.
   Design handoff: SaaS-panel style, accent driven by a single --zp-accent var.
   All classes are zp- prefixed to avoid collisions with Tailwind/magic.css.
   ========================================================================== */

:root {
  --zp-accent: #5B4DF0;
  --zp-bg: #EFF2F9;
  --zp-ink: #232842;
  --zp-ink-2: #5A6178;
  --zp-muted: #8A91A8;
  --zp-faint: #A6ADC2;
  --zp-line: #E7EAF3;
  --zp-term-bg: #1B2032;
}

/* ---- shared primitives -------------------------------------------------- */
.zp-container {
  max-width: 1200px;
  margin: 0 auto;
  /* inline-only: sections layer their own padding-block on the same element,
     so a shorthand here would clobber their vertical padding (and vice-versa). */
  padding-inline: 32px;
}
.zp-section { scroll-margin-top: 84px; }
.zp-accent { color: var(--zp-accent); }

/* декоративная уральская гряда (разделитель хиро → боты) */
.zp-ridge svg { display: block; width: 100%; height: 76px; }
.zp-ridge polyline { fill: none; stroke: var(--zp-faint); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.zp-ridge .zp-ridge-far { opacity: 0.35; }
.zp-ridge .zp-ridge-near { opacity: 0.65; }

.zp-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zp-muted);
}

.zp-h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--zp-ink);
  margin: 0;
}
.zp-h2-sub {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--zp-muted);
  margin: 8px 0 0;
  max-width: 640px;
}

.zp-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* buttons */
.zp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 14px;
  padding: 14px 22px;
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease,
              border-color .15s ease, background-color .15s ease, filter .15s ease;
  white-space: nowrap;
}
.zp-btn-accent {
  background: var(--zp-accent);
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--zp-accent) 35%, transparent);
}
.zp-btn-accent:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--zp-accent) 35%, transparent);
}
.zp-btn-ghost {
  background: #fff;
  color: var(--zp-ink);
  border: 1px solid var(--zp-line);
}
.zp-btn-ghost:hover { border-color: var(--zp-accent); color: var(--zp-accent); }

/* green check bullets */
.zp-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--zp-ink-2);
}
.zp-check-dot {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E4F8EC;
  color: #23A55A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

/* ---- root wrapper ------------------------------------------------------- */
.zp-landing {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--zp-bg);
  color: var(--zp-ink-2);
  -webkit-font-smoothing: antialiased;
  /* Decorative terminal shadow deliberately overhangs; clip so it never
     produces a horizontal scrollbar (handoff Responsive note). */
  overflow-x: clip;
}

/* ==========================================================================
   Header (shared component, used site-wide)
   ========================================================================== */
.zp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--zp-line);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}
.zp-header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 40px;
}
.zp-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--zp-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.zp-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.zp-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--zp-muted);
  text-decoration: none;
  transition: color .15s ease;
  white-space: nowrap;
}
.zp-nav a:hover { color: var(--zp-ink); }
.zp-header-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.zp-login {
  position: relative;
  color: var(--zp-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid var(--zp-line);
  background: #fff;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.zp-login:hover { border-color: var(--zp-accent); color: var(--zp-accent); }
.zp-login-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #FF3B3B;
}
.zp-header-write {
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 14px;
}

/* ==========================================================================
   Hero (#top)
   ========================================================================== */
.zp-hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(380px, 5fr);
  gap: 64px;
  align-items: center;
  padding-block: 88px 72px;
}
.zp-hero-left { display: flex; flex-direction: column; gap: 28px; }
.zp-h1 {
  margin: 0;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(38px, 3.9vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--zp-ink);
}
.zp-h1--bold { font-size: clamp(48px, 5.4vw, 76px); }
.zp-hero-lead {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--zp-ink-2);
  max-width: 520px;
  margin: 0;
}
.zp-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.zp-hero-checks { display: flex; flex-wrap: wrap; gap: 18px; }

/* terminal */
.zp-hero-right { position: relative; }
.zp-term-shadow {
  position: absolute;
  inset: 40px -12px -12px 40px;
  background: #fff;
  border-radius: 24px;
  opacity: 0.6;
}
.zp-term {
  position: relative;
  background: var(--zp-term-bg);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(50, 58, 96, 0.30);
  overflow: hidden;
}
.zp-term-head {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.zp-term-lights { display: flex; gap: 8px; }
.zp-term-lights i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.zp-term-cap {
  margin-left: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #6B7390;
}
.zp-term-body {
  height: 296px;
  overflow: hidden;
  padding: 16px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.85;
}
.zp-term-body > div {
  color: #C9D0E4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zp-term-t { color: #6B7390; }
.zp-term-ok { color: #3DDC84; }
.zp-term-cursor { color: #8F9BFF; }
.zp-term-cursor i { animation: zpblink 1.1s step-end infinite; font-style: normal; }
@keyframes zpblink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ==========================================================================
   Bots (#panel)
   ========================================================================== */
.zp-bots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.zp-bot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-radius: 18px;
  padding: 20px 22px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(93, 102, 142, 0.07);
  box-sizing: border-box;
  transition: transform .15s ease, box-shadow .15s ease;
}
.zp-bot:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(93, 102, 142, 0.07),
              inset 0 0 0 2px var(--zp-accent);
}
.zp-bot-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; row-gap: 10px; }
.zp-bot-ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #F1F3FA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.zp-bot-name {
  flex: 1 1 auto;
  min-width: 8.5rem; /* readable floor: chips wrap below instead of crushing the name */
  font-size: 16.5px;
  font-weight: 800;
  color: var(--zp-ink);
}
.zp-bot-chips { display: flex; gap: 5px; flex: none; }
.zp-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.zp-bot-desc { font-size: 13.5px; font-weight: 500; color: var(--zp-muted); line-height: 1.5; margin: 0; }

.zp-bot--empty {
  border: 2px dashed #C9CFE2;
  box-shadow: none;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  color: var(--zp-muted);
  transition: border-color .15s ease, color .15s ease;
}
.zp-bot--empty:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--zp-accent);
  color: var(--zp-accent);
}
.zp-bot--empty .zp-bot-plus { font-size: 28px; font-weight: 800; line-height: 1; }
.zp-bot--empty b { font-size: 15px; font-weight: 800; color: inherit; }

/* ==========================================================================
   Pricing (#pricing)
   ========================================================================== */
.zp-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.zp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 8px 24px rgba(93, 102, 142, 0.08);
  box-sizing: border-box;
}
.zp-plan--featured {
  box-shadow: 0 14px 36px color-mix(in srgb, var(--zp-accent) 22%, transparent),
              inset 0 0 0 2px var(--zp-accent);
}
.zp-plan-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--zp-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}
.zp-plan .zp-kicker { margin-bottom: 12px; }
.zp-plan--featured .zp-kicker { color: var(--zp-accent); }
.zp-plan-price {
  font-size: 34px;
  font-weight: 800;
  color: var(--zp-ink);
  white-space: nowrap;
  line-height: 1;
}
.zp-plan-price span { font-size: 15px; font-weight: 600; color: var(--zp-muted); }
.zp-plan-sub { font-size: 13px; font-weight: 600; color: var(--zp-muted); margin: 8px 0 0; }
.zp-plan-sep { height: 1px; background: #EEF0F7; margin: 18px 0; }
.zp-plan-features { display: flex; flex-direction: column; gap: 10px; margin: 0 0 22px; }
.zp-plan-features .zp-check { align-items: flex-start; font-size: 13.5px; }
.zp-plan-features .zp-check-dot { margin-top: 1px; }
.zp-plan-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: #F4F6FB;
  color: var(--zp-ink);
  transition: background-color .15s ease, filter .15s ease, color .15s ease;
}
.zp-plan-btn:hover { background: color-mix(in srgb, var(--zp-accent) 10%, #F4F6FB); color: var(--zp-accent); }
.zp-plan--featured .zp-plan-btn { background: var(--zp-accent); color: #fff; }
.zp-plan--featured .zp-plan-btn:hover { filter: brightness(1.08); color: #fff; }

.zp-gift {
  display: flex;
  align-items: center;
  gap: 14px;
  background: color-mix(in srgb, var(--zp-accent) 8%, #fff);
  border-radius: 16px;
  padding: 18px 22px;
  margin-top: 20px;
  font-size: 15px;
  color: var(--zp-ink-2);
}
.zp-gift-ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.zp-gift b { color: var(--zp-ink); }

.zp-notes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 36px;
  background: #fff;
  border-radius: 22px;
  padding: 32px;
  margin-top: 20px;
}
.zp-note-k {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zp-accent);
  margin-bottom: 6px;
}
.zp-note-v { font-size: 13.5px; font-weight: 500; color: var(--zp-ink-2); line-height: 1.5; }
.zp-note-v a { color: var(--zp-accent); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Custom development (#custom)
   ========================================================================== */
.zp-custom {
  display: grid;
  grid-template-columns: minmax(320px, 5fr) 7fr;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(93, 102, 142, 0.08);
}
.zp-custom-left {
  background: color-mix(in srgb, var(--zp-accent) 8%, #fff);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.zp-custom-price { font-size: 52px; font-weight: 800; color: var(--zp-ink); line-height: 1; letter-spacing: -0.02em; }
.zp-custom-lead { font-size: 15px; font-weight: 500; line-height: 1.55; color: var(--zp-ink-2); margin: 0; }
.zp-custom-right {
  background: var(--zp-term-bg);
  padding: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  line-height: 1.7;
}
.zp-build-prompt { color: #C9D0E4; margin-bottom: 18px; }
.zp-build-prompt span { color: #8F9BFF; }
.zp-step { display: flex; gap: 16px; padding: 8px 0; }
.zp-step-tag { color: #8F9BFF; min-width: 104px; flex: none; }
.zp-step-desc { color: #C9D0E4; font-family: 'Manrope', sans-serif; font-weight: 500; }
.zp-build-deploy { color: #3DDC84; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.08); }

/* ==========================================================================
   Contacts (#contacts)
   ========================================================================== */
.zp-contacts-main {
  max-width: 560px;
  margin: 0 auto;
  background: var(--zp-accent);
  border-radius: 22px;
  padding: 32px 36px;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--zp-accent) 35%, transparent);
  text-decoration: none;
  display: block;
  transition: transform .15s ease;
}
.zp-contacts-main:hover { transform: translateY(-3px); }
.zp-contacts-main-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.zp-contacts-main .zp-kicker { color: rgba(255,255,255,0.75); }
.zp-pill {
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.zp-contacts-main-h { font-size: 32px; font-weight: 800; color: #fff; margin: 0 0 8px; }
.zp-contacts-main-p { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.85); margin: 0; }
.zp-contacts-or { text-align: center; font-size: 14px; font-weight: 600; color: var(--zp-muted); margin: 22px 0; }
.zp-contacts-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.zp-contact {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(93, 102, 142, 0.07);
  transition: transform .15s ease, box-shadow .15s ease;
  display: block;
}
.zp-contact:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(93, 102, 142, 0.12); }
.zp-contact-k { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--zp-faint); margin-bottom: 6px; }
.zp-contact-v { font-size: 15px; font-weight: 800; color: var(--zp-ink); }

/* ==========================================================================
   Footer (shared component)
   ========================================================================== */
.zp-footer {
  background: #fff;
  border-top: 1px solid var(--zp-line);
  font-family: 'Manrope', system-ui, sans-serif;
}
.zp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
}
.zp-footer-brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.zp-footer-logo { font-size: 20px; font-weight: 800; color: var(--zp-ink); text-decoration: none; letter-spacing: -0.01em; }
.zp-footer-x { font-size: 14px; font-weight: 700; color: var(--zp-faint); }
.zp-footer-madein { font-size: 14px; font-weight: 700; color: var(--zp-ink-2); letter-spacing: -0.01em; }
.zp-footer-about { font-size: 14px; font-weight: 500; color: var(--zp-ink-2); line-height: 1.6; margin: 14px 0 0; max-width: 320px; }
.zp-footer-col-h { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--zp-muted); margin-bottom: 16px; }
.zp-footer-col a { display: block; font-size: 14px; font-weight: 500; color: var(--zp-ink-2); text-decoration: none; margin-bottom: 10px; transition: color .15s ease; }
.zp-footer-col a:hover { color: var(--zp-accent); }

/* section vertical rhythm (block-only; container owns the inline padding) */
.zp-pad { padding-block: 48px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .zp-container { padding-inline: 20px; }
  .zp-nav { display: none; }
  .zp-header-inner { gap: 16px; }

  .zp-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 56px 48px; }
  .zp-hero-right { order: 2; }

  .zp-bots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zp-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zp-custom { grid-template-columns: minmax(0, 1fr); }
  .zp-contacts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .zp-h2 { font-size: 30px; }
}

@media (max-width: 560px) {
  .zp-container { padding-inline: 16px; }
  .zp-logo { font-size: 17px; }
  .zp-header-write { display: none; }

  .zp-hero { padding-block: 40px; }
  .zp-h1 { font-size: 40px; }
  .zp-h2 { font-size: 26px; }

  .zp-sec-head { flex-direction: column; align-items: flex-start; }

  .zp-bots-grid,
  .zp-plans,
  .zp-notes { grid-template-columns: minmax(0, 1fr); }
  .zp-contacts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zp-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }

  .zp-term-body { height: 240px; font-size: 11.5px; }
  .zp-step { flex-direction: column; gap: 4px; }
  .zp-step-tag { min-width: 0; }
}
