/* ============================================================
   SlotAI — premium landing
   Design tokens + components
   ============================================================ */

:root {
  /* surfaces */
  --paper: #F5F7FB;
  --paper-2: #E9EEF6;
  --surface: #FFFFFF;

  /* ink */
  --ink: #0E1320;
  --ink-soft: #545D70;
  --ink-faint: #8890A1;
  --line: rgba(14, 19, 32, 0.09);
  --line-2: rgba(14, 19, 32, 0.045);

  /* brand — single deep indigo-blue accent */
  --primary: #2B49D4;
  --primary-600: color-mix(in srgb, var(--primary) 84%, #000);
  --primary-soft: color-mix(in srgb, var(--primary) 16%, #fff);
  --primary-tint: color-mix(in srgb, var(--primary) 7%, #fff);
  /* accent = deeper navy from same family (quiet two-tone, no warm hues) */
  --accent: #16225C;
  --accent-soft: color-mix(in srgb, var(--primary) 9%, #fff);
  /* functional only: online / confirmed */
  --mint: #12A06C;
  --mint-soft: #DEF1E9;

  /* effect tokens */
  --shadow-sm: 0 1px 2px rgba(20, 24, 29, 0.05), 0 2px 6px rgba(20, 24, 29, 0.04);
  --shadow-md: 0 4px 14px rgba(20, 24, 29, 0.07), 0 18px 40px -16px rgba(20, 24, 29, 0.14);
  --shadow-lg: 0 8px 24px rgba(14, 19, 32, 0.08), 0 40px 80px -28px rgba(20, 30, 70, 0.30);
  --shadow-glow: 0 24px 70px -24px rgba(43, 73, 212, 0.40);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --font-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--primary); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--primary);
  padding: 7px 14px 7px 11px; border-radius: 100px;
  background: var(--primary-tint);
  border: 1px solid var(--line); white-space: nowrap;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.eyebrow.warm { color: var(--accent); background: var(--accent-soft); }
.eyebrow.warm .dot { background: var(--accent); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.04; }

.h-sec { font-size: clamp(32px, 4.6vw, 56px); }
.h-sec .accent { color: var(--primary); }
.sec-lead { font-size: clamp(17px, 1.7vw, 21px); color: var(--ink-soft); max-width: 620px; line-height: 1.5; }
.sec-head { max-width: 760px; margin: 0 auto; text-align: center; }
.sec-head .sec-lead { margin: 18px auto 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  padding: 15px 26px; border-radius: 100px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent {
  background: var(--primary); color: #fff;
  box-shadow: 0 8px 22px -8px rgba(43,73,212,.55);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(43,73,212,.65); background: var(--primary-600); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 18px 34px; font-size: 17px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.nav.scrolled {
  background: rgba(245, 247, 251, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; position: relative; flex: none;
  background: linear-gradient(140deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #fff));
  box-shadow: 0 6px 16px -6px rgba(43,73,212,.6);
  display: grid; place-items: center;
}
.brand-mark::before {
  content: ""; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25);
}
.brand b { color: var(--primary); }
.brand-logo { width: 36px; height: 36px; border-radius: 11px; flex: none; object-fit: cover; display: block; }

/* hero typing word — own gradient so it stays visible as inline-block on mobile WebKit,
   where the parent .grad's background-clip:text does not paint inline-block children */
#heroWord {
  display: inline-block;
  background: linear-gradient(96deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #fff));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.type-cursor { display: inline; margin-left: 1px; animation: blink-cursor .85s step-start infinite; }
@keyframes blink-cursor { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15.5px; font-weight: 600; color: var(--ink-soft); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-login { font-weight: 700; font-size: 15.5px; color: var(--ink); }
@media (max-width: 1024px) { .nav-links { display: none; } }
@media (max-width: 600px) { .nav-login { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 150px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  animation: float 16s ease-in-out infinite;
}
.blob.b1 { width: 540px; height: 540px; top: -170px; right: -130px; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 38%, transparent), transparent 70%); }
.blob.b2 { width: 440px; height: 440px; top: 200px; left: -190px; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%); animation-delay: -5s; }
.blob.b3 { width: 360px; height: 360px; bottom: -120px; right: 22%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%); animation-delay: -9s; }
@keyframes float { 0%,100%{transform:translate(0,0) scale(1);} 33%{transform:translate(30px,-30px) scale(1.06);} 66%{transform:translate(-22px,20px) scale(.96);} }

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-copy { max-width: 580px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 70px); font-weight: 800; margin: 22px 0 0; }
.hero h1 .grad {
  background: linear-gradient(96deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #fff));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: clamp(17px, 1.85vw, 21px); color: var(--ink-soft); margin: 24px 0 0; line-height: 1.5; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid var(--paper);
  margin-left: -12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px;
}
.avatars span:first-child { margin-left: 0; }
.hero-trust .t-txt { font-size: 14.5px; color: var(--ink-soft); font-weight: 600; line-height: 1.35; }
.hero-trust .t-txt b { color: var(--ink); }
.stars { color: var(--primary); letter-spacing: 1px; font-size: 14px; }

/* ---- chat centerpiece ---- */
.hero-stage { position: relative; padding: 52px 0; }
.chat-card {
  position: relative; z-index: 3;
  background: var(--surface); border-radius: var(--radius-xl);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  padding: 0; overflow: hidden; max-width: 420px; margin: 0 auto;
}
.chat-head { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.chat-ava {
  width: 46px; height: 46px; border-radius: 14px; flex: none; position: relative;
  background: linear-gradient(140deg, var(--primary), color-mix(in srgb, var(--primary) 52%, #fff));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px;
}
.chat-ava .chat-ava-lottie { width: 100%; height: 100%; }
.chat-ava .pulse {
  position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--mint); border: 3px solid var(--surface);
}
.chat-ava .pulse::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--mint); animation: pulsering 2s ease-out infinite;
}
@keyframes pulsering { 0%{transform:scale(.9);opacity:.7;} 100%{transform:scale(2.1);opacity:0;} }
.chat-meta b { font-size: 15.5px; display: block; letter-spacing: -.01em; }
.chat-meta span { font-size: 12.5px; color: var(--mint); font-weight: 700; display: flex; align-items: center; gap: 5px; }
.chat-badge { margin-left: auto; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: var(--primary); background: var(--primary-tint); padding: 5px 9px; border-radius: 8px; text-transform: uppercase; }

.chat-body {
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
  /* Фиксированная высота + overflow: карточка не меняет размер при добавлении
     сообщений, поэтому страница не дёргается во время анимации чата (особенно на мобиле) */
  height: 360px; justify-content: flex-end; overflow: hidden;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(43,73,212,.04), transparent 60%),
    var(--surface);
}
.msg {
  max-width: 80%; padding: 12px 15px; font-size: 14.5px; line-height: 1.42; font-weight: 500;
  border-radius: 18px; opacity: 0; transform: translateY(14px) scale(.96);
  animation: msgin .5s var(--ease) forwards;
  position: relative;
}
@keyframes msgin { to { opacity: 1; transform: translateY(0) scale(1); } }
.msg.client { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--paper-2); color: var(--ink); border-bottom-left-radius: 6px; }
.msg .label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; opacity: .55; display: block; margin-bottom: 3px; }

/* slot chips inside a bot bubble */
.slot-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.slot-chip {
  font-size: 12.5px; font-weight: 700; padding: 7px 11px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: all .2s;
}
.slot-chip.pick { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 5px 14px -5px rgba(43,73,212,.55); }

.typing { display: inline-flex; gap: 4px; align-items: center; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); animation: blink 1.3s infinite; }
.typing i:nth-child(2){ animation-delay: .2s; } .typing i:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,60%,100%{opacity:.25; transform: translateY(0);} 30%{opacity:1; transform: translateY(-3px);} }

.chat-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line-2); }
.chat-input .field { flex: 1; height: 40px; border-radius: 100px; background: var(--paper-2); display: flex; align-items: center; padding: 0 16px; color: var(--ink-faint); font-size: 13.5px; }
.chat-input .send { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; flex: none; }
.chat-input .send svg { width: 17px; height: 17px; stroke: #fff; }

/* floating cards around chat */
.float {
  position: absolute; z-index: 5; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md);
  padding: 11px 14px; display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; animation: bob 5s ease-in-out infinite;
}
.float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-faint); }
.float.f1 { top: 0; right: 24px; }
.float.f2 { bottom: 0; left: 24px; animation-delay: -2.5s; }
@keyframes bob { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
@media (max-width: 460px) { .float { display: none; } }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-copy { max-width: 640px; }
  .float.f1 { left: 0; } .float.f2 { right: 0; }
}

/* ============================================================
   MARQUEE LOGOS / stat strip
   ============================================================ */
.stat-strip { padding: 8px 0 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.stat-card .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px,3.4vw,42px); letter-spacing: -.03em; line-height: 1; }
.stat-card .num .accent { color: var(--primary); }
.stat-card .lbl { font-size: 14.5px; color: var(--ink-soft); margin-top: 9px; font-weight: 600; line-height: 1.35; }
@media (max-width: 820px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem { padding: 96px 0; }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.chaos {
  position: relative; height: 420px; border-radius: var(--radius-lg);
  background: var(--paper-2); border: 1px solid var(--line); overflow: hidden;
}
.chaos-inner { position: absolute; inset: 0; }
.notif {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 11px 14px; box-shadow: var(--shadow-md);
  display: flex; gap: 10px; align-items: flex-start; width: 230px;
  font-size: 12.5px; animation: notifFloat 7s ease-in-out infinite;
}
.notif .nava { width: 30px; height: 30px; border-radius: 9px; flex: none; display:grid; place-items:center; color:#fff; font-weight:800; font-size:12px; }
.notif b { display: block; font-size: 12.5px; }
.notif p { color: var(--ink-soft); font-weight: 500; line-height: 1.3; margin-top: 1px; }
.notif .badge-n { position: absolute; top: -7px; right: -7px; background: var(--accent); color: #fff; font-weight: 800; font-size: 10px; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
@keyframes notifFloat { 0%,100%{transform:translateY(0) rotate(var(--r,0deg));} 50%{transform:translateY(-10px) rotate(var(--r,0deg));} }

.problem-list { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.problem-item { display: flex; gap: 14px; align-items: flex-start; }
.problem-item .x {
  width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.problem-item .x svg { width: 16px; height: 16px; }
.problem-item b { font-weight: 700; }
.problem-item p { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 880px) { .problem-grid { grid-template-columns: 1fr; gap: 40px; } .chaos { height: 360px; } }

/* ============================================================
   HOW IT WORKS — 3 steps
   ============================================================ */
.how { padding: 96px 0; background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step .num {
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--ink); color: #fff;
}
.step.s2 .num { background: var(--primary); }
.step.s3 .num { background: var(--accent); }
.step h3 { font-size: 22px; margin: 20px 0 8px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }
.step .glyph { position: absolute; right: -10px; top: -10px; font-size: 120px; line-height: 1; opacity: .04; font-family: var(--font-display); font-weight: 800; }
.step-visual { margin-top: 20px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--paper); padding: 14px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

/* mini visuals inside steps */
.mini-row { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.mini-row + .mini-row { margin-top: 8px; }
.mini-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.mini-slot { font-size: 12.5px; font-weight: 700; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); display:flex; align-items:center; justify-content:space-between; }
.mini-slot.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.mini-slot + .mini-slot { margin-top: 7px; }

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: 96px 0; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.feat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.feat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(43,73,212,.25); }
.feat .fic {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--primary-tint); color: var(--primary); margin-bottom: 20px;
}
.feat .fic svg { width: 25px; height: 25px; }
.feat.warm .fic { background: var(--accent-soft); color: var(--accent); }
.feat.mint .fic { background: var(--primary-tint); color: var(--primary); }
.feat h3 { font-size: 20px; margin-bottom: 9px; }
.feat p { color: var(--ink-soft); font-size: 15px; }
.feat.wide { grid-column: span 2; display: flex; gap: 28px; align-items: center; background: linear-gradient(120deg, var(--ink), #1C2540); color: #fff; }
.feat.wide h3 { color: #fff; font-size: 24px; }
.feat.wide p { color: rgba(255,255,255,.7); }
.feat.wide .fic { background: rgba(255,255,255,.1); color: #fff; flex: none; }
@media (max-width: 920px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } .feat.wide { grid-column: span 2; flex-direction: column; align-items: flex-start; } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } .feat.wide { grid-column: span 1; } }

/* ============================================================
   FOR WHOM — carousel marquee
   ============================================================ */
.whom { padding: 96px 0; background: var(--ink); color: #fff; overflow: hidden; }
.whom .eyebrow { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.12); }
.whom .eyebrow .dot { background: var(--mint); }
.whom h2 { color: #fff; }
.whom .sec-lead { color: rgba(255,255,255,.62); }
.marquee-area { margin-top: 50px; display: flex; flex-direction: column; gap: 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee { display: flex; gap: 14px; width: max-content; }
.marquee.row-a { animation: scrollx 60s linear infinite; }
.marquee.row-b { animation: scrollx 72s linear infinite reverse; }
.marquee.row-c { animation: scrollx 66s linear infinite; }
.marquee-area:hover .marquee { animation-play-state: paused; }
@keyframes scrollx { to { transform: translateX(-50%); } }
.chip {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 13px 20px; border-radius: 100px; font-weight: 700; font-size: 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff;
  transition: all .25s;
}
.chip:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.04); }
.chip .cd { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.whom-foot { text-align: center; margin-top: 46px; color: rgba(255,255,255,.6); font-size: 15.5px; }
.whom-foot b { color: #fff; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { padding: 96px 0; }
.price-toggle { display: inline-flex; background: var(--paper-2); border: 1px solid var(--line); border-radius: 100px; padding: 5px; margin: 26px auto 0; gap: 4px; }
.price-toggle button { padding: 10px 22px; border-radius: 100px; font-weight: 700; font-size: 14.5px; color: var(--ink-soft); transition: all .25s; white-space: nowrap; }
.price-toggle button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.price-toggle .save { font-size: 11px; color: var(--mint); font-weight: 800; margin-left: 5px; }

/* Два тарифа (Free + Pro): сетка сужена и центрирована, иначе оставалась пустая третья колонка */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 50px; align-items: stretch; max-width: 760px; margin-left: auto; margin-right: auto; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.plan.feature {
  background: linear-gradient(160deg, #131A30, #1E2A52); color: #fff;
  border-color: transparent; box-shadow: var(--shadow-glow); transform: scale(1.03);
}
.plan.feature:hover { transform: scale(1.03) translateY(-6px); }
.plan .pname { font-family: var(--font-display); font-weight: 700; font-size: 21px; }
.plan .pdesc { font-size: 14px; color: var(--ink-soft); margin-top: 6px; min-height: 40px; }
.plan.feature .pdesc { color: rgba(255,255,255,.65); }
.plan .ptag { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); background: var(--primary-tint); padding: 5px 11px; border-radius: 8px; margin-bottom: 16px; }
.plan.feature .ptag { background: rgba(255,255,255,.14); color: #fff; }
.plan .price { display: flex; align-items: flex-end; gap: 6px; margin: 22px 0 4px; }
.plan .price .cur { font-size: 22px; font-weight: 800; font-family: var(--font-display); }
.plan .price .amt { font-size: 48px; font-weight: 800; font-family: var(--font-display); letter-spacing: -.03em; line-height: .9; }
.plan .price .per { font-size: 14px; color: var(--ink-soft); font-weight: 600; margin-bottom: 6px; }
.plan.feature .price .per { color: rgba(255,255,255,.6); }
.plan .pfeatures { list-style: none; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.plan .pfeatures li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; font-weight: 500; }
.plan .pfeatures li svg { width: 19px; height: 19px; flex: none; color: var(--primary); margin-top: 1px; }
.plan.feature .pfeatures li svg { color: var(--mint); }
.plan .btn { width: 100%; }
.plan.feature .btn-accent { background: #fff; color: var(--ink); }
.plan.feature .btn-accent:hover { background: #fff; }
@media (max-width: 920px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-left:auto; margin-right:auto; } .plan.feature { transform: none; } .plan.feature:hover{ transform: translateY(-6px);} }

/* Setup service banner */
.setup-cta {
  margin-top: 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 32px;
  display: flex; align-items: center; gap: 32px;
}
.setup-main { flex: 1; }
.setup-cta h3 { font-family: var(--font-display); font-weight: 700; font-size: 23px; margin-top: 4px; }
.setup-cta p { font-size: 14.5px; color: var(--ink-soft); margin-top: 8px; max-width: 620px; }
.setup-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; }
.setup-list li { position: relative; padding-left: 18px; font-size: 14px; font-weight: 500; }
.setup-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.setup-cta .btn { flex: none; white-space: nowrap; }
@media (max-width: 760px) { .setup-cta { flex-direction: column; align-items: flex-start; gap: 22px; } .setup-cta .btn { width: 100%; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 96px 0; }
.faq-wrap { max-width: 820px; margin: 50px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq-item.open { box-shadow: var(--shadow-md); border-color: rgba(43,73,212,.25); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; cursor: pointer; font-weight: 700; font-size: 17.5px; }
.faq-q .ico { width: 30px; height: 30px; border-radius: 9px; background: var(--paper-2); display: grid; place-items: center; flex: none; transition: transform .35s var(--ease), background .3s; }
.faq-item.open .faq-q .ico { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-q .ico svg { width: 16px; height: 16px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 26px 24px; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final { padding: 30px 0 100px; }
.final-card {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: linear-gradient(140deg, #1B2A6B, var(--primary) 70%, color-mix(in srgb, var(--primary) 80%, #fff));
  padding: 72px 56px; text-align: center; color: #fff;
  box-shadow: var(--shadow-glow);
}
.final-card .fblob { position: absolute; border-radius: 50%; background: rgba(255,255,255,.13); filter: blur(2px); }
.final-card .fblob.a { width: 320px; height: 320px; top: -120px; left: -80px; }
.final-card .fblob.b { width: 260px; height: 260px; bottom: -120px; right: -60px; }
.final-card h2 { color: #fff; font-size: clamp(32px, 4.6vw, 56px); position: relative; z-index: 1; }
.final-card p { color: rgba(255,255,255,.85); font-size: clamp(17px,1.8vw,20px); max-width: 540px; margin: 18px auto 0; position: relative; z-index: 1; }
.final-actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; position: relative; z-index: 1; }
.final-card .btn-light { background: #fff; color: var(--ink); }
.final-card .btn-light:hover { background: #fff; }
.final-card .btn-outline { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.final-note { color: rgba(255,255,255,.8); font-size: 14px; margin-top: 20px; position: relative; z-index: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand { margin-bottom: 14px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin-bottom: 14px; font-weight: 800; }
.footer-col a { display: block; color: var(--ink-soft); font-size: 15px; font-weight: 600; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--ink); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-about { max-width: 280px; color: var(--ink-soft); font-size: 14.5px; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-faint); font-size: 13.5px; }

/* ============================================================
   CALENDAR DEMO SECTION — weekly view
   ============================================================ */
.cal-section { padding: 96px 0; background: linear-gradient(180deg, var(--paper-2), var(--paper)); }

/* widget wrapper */
.cwk {
  margin-top: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* top bar */
.cwk-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  flex-wrap: wrap; gap: 10px;
}
.cwk-bar-left { display: flex; align-items: center; gap: 12px; }
.cwk-bar-left b { font-size: 15px; font-weight: 700; }
.cwk-arrow-btn {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--paper-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 16px; line-height: 1;
  color: var(--ink-soft); cursor: pointer; transition: background .2s;
}
.cwk-arrow-btn:hover { background: var(--paper); }
.cwk-bar-right { display: flex; gap: 8px; flex-wrap: wrap; }
.cwk-badge {
  font-size: 12px; font-weight: 700; padding: 5px 12px;
  border-radius: 100px; white-space: nowrap;
}
.cwk-badge-green { background: var(--mint-soft); color: var(--mint); }
.cwk-badge-yellow { background: color-mix(in srgb, #F59E0B 14%, #fff); color: #B45309; }

/* scroll area */
.cwk-scroll { overflow-x: auto; }
.cwk-inner { display: flex; min-width: 600px; }

/* time gutter */
.cwk-gutter {
  flex: none; width: 54px;
  border-right: 1px solid var(--line);
}
.cwk-gcorner { height: 48px; border-bottom: 1px solid var(--line); }
.cwk-ghour {
  height: 60px; padding: 4px 6px 0;
  font-size: 11px; font-weight: 700; color: var(--ink-faint);
  letter-spacing: .02em; border-bottom: 1px solid var(--line-2);
  line-height: 1;
}

/* days area */
.cwk-days-area { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* day headers row */
.cwk-dheads {
  display: grid; grid-template-columns: repeat(7, 1fr);
  height: 48px; border-bottom: 1px solid var(--line); flex: none;
}
.cwk-dh {
  text-align: center; padding: 6px 4px;
  font-size: 11px; font-weight: 700; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: .05em; line-height: 1.25;
  border-right: 1px solid var(--line-2);
}
.cwk-dh b {
  display: block; font-size: 18px; font-family: var(--font-display);
  font-weight: 800; color: var(--ink); letter-spacing: -.02em;
  line-height: 1.1; margin-top: 1px;
}
.cwk-dh.today b {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-size: 16px; margin: 1px auto 0;
  box-shadow: 0 4px 10px -4px rgba(43,73,212,.55);
}
.cwk-dh.off { opacity: .45; }

/* day body columns */
.cwk-dbodies {
  display: grid; grid-template-columns: repeat(7, 1fr);
  /* horizontal hour lines */
  background-image: repeating-linear-gradient(
    to bottom, transparent 0px, transparent 59px,
    var(--line-2) 59px, var(--line-2) 60px
  );
}
.cwk-daycol {
  position: relative; height: 540px;
  border-right: 1px solid var(--line-2);
}
.cwk-daycol.off {
  background: repeating-linear-gradient(
    135deg, transparent, transparent 7px,
    rgba(14,19,32,.025) 7px, rgba(14,19,32,.025) 8px
  );
}
.cwk-daycol.today { background: color-mix(in srgb, var(--primary) 3%, transparent); }

/* event blocks */
.cwk-ev {
  position: absolute; left: 3px; right: 3px;
  height: 56px; border-radius: 8px;
  padding: 7px 9px; overflow: hidden; cursor: pointer;
  transition: filter .15s, transform .15s;
}
.cwk-ev:hover { filter: brightness(1.1); transform: scale(1.02); }
.cwk-ev b {
  display: block; font-size: 12px; font-weight: 800; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2;
}
.cwk-ev span {
  display: block; font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.82); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cwk-ev-mint    { background: var(--mint); }
.cwk-ev-primary { background: var(--primary); }
.cwk-ev-purple  { background: #7C5CC4; }
.cwk-ev-yellow  { background: #E08A00; }

@media (max-width: 700px) {
  .cwk-dh { font-size: 9px; }
  .cwk-dh b { font-size: 14px; }
  .cwk-ev span { display: none; }
  .cwk-ev b { font-size: 10.5px; }
}

/* ============================================================
   SCROLL REVEAL — base state visible; animate in only when JS arms it
   ============================================================ */
.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .js-anim .reveal { opacity: 0; transform: translateY(28px); will-change: opacity, transform; }
  .js-anim .reveal.in { animation: revealIn .7s var(--ease) forwards; }
  .js-anim .reveal.shown { opacity: 1; transform: none; }
  .js-anim .reveal.d1.in { animation-delay: .08s; }
  .js-anim .reveal.d2.in { animation-delay: .16s; }
  .js-anim .reveal.d3.in { animation-delay: .24s; }
  .js-anim .reveal.d4.in { animation-delay: .32s; }
}
@keyframes revealIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* animations master switch (Tweaks) */
.no-anim .blob,
.no-anim .float,
.no-anim .notif,
.no-anim .chat-ava .pulse::after,
.no-anim .marquee { animation: none !important; }
.no-anim .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
.no-anim .marquee.row-b { transform: translateX(-25%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
