/* ============================================================
   MATCHPOINT — Marketing site components
   ============================================================ */

/* ============================ CUSTOM CURSOR ============================ */
/* Only active on pointer:fine (mouse) devices — touch falls back to default */
@media (pointer: fine) {
  html, body, * { cursor: none !important; }

  .mp-cursor__dot,
  .mp-cursor__ring {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    will-change: transform;
  }

  /* Small solid dot — exact mouse position */
  .mp-cursor__dot {
    width: 6px; height: 6px;
    background: #fff;
    transition: width 180ms var(--e-out), height 180ms var(--e-out),
                background 180ms var(--e-out), opacity 120ms;
  }
  .mp-cursor__dot--hover {
    width: 4px; height: 4px;
    background: var(--blue-bright);
  }
  .mp-cursor__dot--click {
    width: 3px; height: 3px;
    background: var(--blue-bright);
  }

  /* Trailing ring — lags behind via JS lerp */
  .mp-cursor__ring {
    width: 32px; height: 32px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    transition: width 220ms var(--e-out), height 220ms var(--e-out),
                border-color 220ms var(--e-out), background 220ms var(--e-out),
                opacity 120ms;
  }
  .mp-cursor__ring--hover {
    width: 46px; height: 46px;
    border-color: transparent;
    background: rgba(79, 123, 255, 0.15);
    box-shadow: 0 0 0 1px rgba(79, 123, 255, 0.4),
                0 0 20px 2px rgba(79, 123, 255, 0.2);
  }

  /* Hidden when mouse leaves window */
  .mp-cursor--hidden { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html, body, * { cursor: auto !important; }
  .mp-cursor__dot, .mp-cursor__ring { display: none; }
}

/* Shared heading + lede */
.h-xl { font-size: var(--fs-h1); line-height: 1.03; letter-spacing: -0.025em; }
.lede { font-size: var(--fs-lg); color: var(--text-2); max-width: 54ch; line-height: 1.55; }
p { color: var(--text-2); max-width: 64ch; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-8); flex-wrap: wrap; margin-bottom: var(--s-16);
}
.section-head .eyebrow { margin-bottom: var(--s-5); }
.section-head__note { max-width: 32ch; font-size: var(--fs-sm); }

/* ============================ NAV ============================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  display: flex; justify-content: center;
  padding: clamp(14px, 2vw, 22px) var(--gutter);
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(16px, 2.5vw, 40px);
  padding: 10px 10px 10px 20px;
  border-radius: var(--r-pill);
  box-shadow: 0 20px 50px -30px rgba(0,0,0,0.9);
  transition: background var(--t-mid) var(--e-out), border-color var(--t-mid) var(--e-out), transform var(--t-mid) var(--e-out);
}
.nav.is-scrolled .nav__pill {
  background: rgba(8, 9, 15, 0.72);
  border-color: var(--line-2);
}
.nav__links { display: flex; gap: clamp(14px, 1.8vw, 26px); }
.nav__links a {
  font-size: 0.92rem; color: var(--text-2);
  position: relative; padding: 4px 0;
  transition: color var(--t-fast) var(--e-out);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--grad); transition: width var(--t-mid) var(--e-out);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__signin { font-size: 0.9rem; color: var(--text-2); transition: color var(--t-fast); }
.nav__signin:hover { color: var(--text); }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: var(--r-pill); border: 1px solid var(--line-2); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav__burger span { width: 16px; height: 1.6px; background: var(--text); transition: transform var(--t-mid) var(--e-out), opacity var(--t-fast); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(3.3px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-3.3px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(6, 7, 13, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity var(--t-mid) var(--e-out), visibility var(--t-mid);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; text-align: center; width: min(86vw, 420px); }
.mobile-menu nav a { font-family: var(--font-display); font-size: 2rem; font-weight: 500; padding: 10px; color: var(--text); }
.mobile-menu__cta { display: grid; gap: 12px; margin-top: 28px; }

/* ============================ HERO ============================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 132px; padding-bottom: 56px;
  overflow: hidden;
}
.hero__glow-a { width: 620px; height: 620px; top: -180px; left: -160px; }
.hero__glow-b { width: 560px; height: 560px; top: 40px; right: -200px; opacity: 0.42; }
.hero__grid-overlay {
  position: absolute; inset: 0; z-index: 0; opacity: 0.4;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: var(--s-12);
}
.hero__title {
  font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: -0.035em;
  margin: 22px 0 24px;
}
.hero__title .serif { letter-spacing: -0.01em; }
.hero__lede { max-width: 46ch; margin-bottom: 34px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line);
}
.hero__stats li { display: flex; flex-direction: column; gap: 4px; }
.hero__stats .ic { color: var(--blue-bright); width: 18px; height: 18px; margin-bottom: 6px; }
.hero__stats .num { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero__stats .num .unit { font-size: 0.6em; color: var(--text-2); }
.hero__stats .lbl { font-size: 0.72rem; color: var(--text-3); line-height: 1.35; max-width: 16ch; }

/* Hero art */
.hero__art { position: relative; display: flex; justify-content: center; }
.hero__art .orbit { width: 100%; max-width: 520px; height: auto; overflow: visible; }
.hero__art-tag {
  position: absolute; bottom: 8%; left: 4%;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: var(--r-pill); font-size: 0.8rem; color: var(--text);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2s var(--e-out) infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(84,230,168,0.5)} 70%{box-shadow:0 0 0 8px rgba(84,230,168,0)} 100%{box-shadow:0 0 0 0 rgba(84,230,168,0)} }

/* orbit motion */
.orbit__ring { transform-box: fill-box; transform-origin: center; animation: ring-tilt 14s var(--e-in-out) infinite; }
.orbit__match { transform-box: fill-box; transform-origin: 260px 162px; animation: float-y 5s var(--e-in-out) infinite; }
.orbit__node--a { animation: orbit-a 9s linear infinite; }
.orbit__node--b { animation: orbit-b 9s linear infinite; }
@keyframes ring-tilt { 0%,100%{transform:rotate(-2deg)} 50%{transform:rotate(2deg)} }
@keyframes float-y { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
/* nodes travel the ellipse (rx168 ry64 around 260,250) and meet near the top */
@keyframes orbit-a {
  0%   { transform: translate(428px,250px); } 25%{ transform: translate(260px,314px); }
  50%  { transform: translate(92px,250px); }  75%{ transform: translate(260px,186px); }
  100% { transform: translate(428px,250px); }
}
@keyframes orbit-b {
  0%   { transform: translate(92px,250px); }  25%{ transform: translate(260px,186px); }
  50%  { transform: translate(428px,250px); } 75%{ transform: translate(260px,314px); }
  100% { transform: translate(92px,250px); }
}
@media (prefers-reduced-motion: reduce) {
  .orbit__ring, .orbit__match, .orbit__node--a, .orbit__node--b, .pulse-dot { animation: none; }
  .orbit__node--a { transform: translate(210px,196px); }
  .orbit__node--b { transform: translate(310px,196px); }
}

/* ============================ ABOUT ============================ */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.about__head .h-xl { margin-top: 18px; }
.about__body { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.about__body .lede { color: var(--text); }
.about__metrics { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 56px); margin-top: 20px; padding-top: 28px; border-top: 1px solid var(--line); }
.about__metrics > div { display: flex; flex-direction: column; gap: 8px; }
.metric { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }

/* ===================== TALENT CATEGORIES ===================== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card {
  position: relative; overflow: hidden;
  padding: 26px 22px 22px; min-height: 168px;
  background: linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.008));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--t-mid) var(--e-out), border-color var(--t-mid) var(--e-out), box-shadow var(--t-mid) var(--e-out), background var(--t-mid);
  cursor: pointer;
}
.cat-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; z-index: 0;
  background: radial-gradient(120% 80% at 50% -10%, var(--blue-12), transparent 60%);
  transition: opacity var(--t-mid) var(--e-out);
}
.cat-card > * { position: relative; z-index: 1; }
.cat-card__icon { color: var(--blue-bright); transition: transform var(--t-mid) var(--e-spring); }
.cat-card h3 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.01em; }
.cat-card p { font-size: var(--fs-sm); color: var(--text-3); margin-top: auto; max-width: 24ch; }
.cat-card__arrow {
  position: absolute; top: 22px; right: 20px; color: var(--text-4);
  opacity: 0; transform: translate(-4px, 4px); transition: all var(--t-mid) var(--e-out); z-index: 1;
}
.cat-card:hover, .cat-card:focus-visible {
  transform: translateY(-4px); border-color: var(--blue-40);
  box-shadow: 0 30px 60px -30px rgba(79,123,255,0.5);
}
.cat-card:hover::before, .cat-card:focus-visible::before { opacity: 1; }
.cat-card:hover .cat-card__icon { transform: scale(1.12) rotate(-4deg); }
.cat-card:hover .cat-card__arrow { opacity: 1; transform: none; color: var(--blue-bright); }

/* ======================= HOW IT WORKS ======================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 30px 28px 34px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); }
.step__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--blue-bright); letter-spacing: 0.1em; }
.step__body { margin-top: 56px; }
.step h3 { font-size: var(--fs-h3); margin-bottom: 12px; }
.step p { font-size: var(--fs-sm); color: var(--text-2); }
.step__line { position: absolute; top: 42px; right: -8px; width: 16px; height: 1px; background: var(--line-2); }
.step::after { content: ""; position: absolute; top: 36px; left: 28px; right: 28px; height: 1px; background: linear-gradient(90deg, var(--blue-40), transparent); }

/* ========================= SPLIT (brands/talent) ========================= */
.split { position: relative; overflow: hidden; }
.split__glow { width: 520px; height: 520px; top: 10%; right: -180px; opacity: 0.35; }
.split--rev .split__glow { right: auto; left: -180px; }
.split__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 88px); position: relative; z-index: 1; }
.split--rev .split__copy { order: 2; }
.split__copy .h-xl { margin: 18px 0 22px; }
.split__copy .lede { margin-bottom: 28px; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-bottom: 32px; }
.benefits li { display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); color: var(--text); }
.benefits .ic { color: var(--blue-bright); width: 18px; height: 18px; flex: none; }
.split--rev .benefits .ic { color: var(--violet-bright); }

/* preview cards */
.split__visual { display: flex; justify-content: center; }
.preview { width: 100%; max-width: 420px; border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-lg); }
.preview__bar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.preview__live { display: inline-flex; align-items: center; gap: 8px; font-size: 0.74rem; color: var(--text-2); }
.preview__brief { margin: 16px 0; display: flex; flex-direction: column; gap: 6px; }
.preview__brief p { color: var(--text); font-size: var(--fs-sm); }
.preview__list { display: flex; flex-direction: column; gap: 8px; }
.preview__row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-md); background: rgba(255,255,255,0.025); border: 1px solid var(--line); transition: background var(--t-fast), transform var(--t-fast); }
.preview__row:hover { background: rgba(255,255,255,0.05); transform: translateX(3px); }
.preview__row .meta { display: flex; flex-direction: column; }
.preview__row .meta b { font-size: 0.9rem; font-weight: 600; }
.preview__row .meta span { font-size: 0.72rem; color: var(--text-3); }
.preview__row .pct { margin-left: auto; font-family: var(--font-mono); font-size: 0.74rem; color: var(--ok); }
.preview__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.match-score { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--text-2); }
.match-score__bar { width: 70px; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.match-score__bar i { display: block; height: 100%; width: var(--w); background: var(--grad); border-radius: 999px; }
.preview__cta { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue-bright); }
.preview__cta:hover { color: var(--text); }

/* earnings preview */
.earn { display: flex; align-items: baseline; gap: 14px; margin: 18px 0 8px; flex-wrap: wrap; }
.earn__big { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.03em; }
.earn__delta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--ok); }
.earn__delta .ic { width: 15px; height: 15px; }
.earn__chart { height: 64px; margin: 8px 0 14px; }
.earn__rows { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.earn__rows li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.84rem; }
.earn__rows li span:first-child { color: var(--text-2); }
.earn__rows li span:last-child { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text); }

/* ========================= TESTIMONIALS ========================= */
.carousel { overflow: hidden; }
.carousel__nav { display: flex; gap: 10px; }
.carousel__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-2); transition: all var(--t-fast) var(--e-out); }
.carousel__btn:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,0.04); transform: translateY(-2px); }
.carousel__track { display: flex; transition: transform var(--t-slow) var(--e-out); }
.tcard { flex: 0 0 100%; padding-right: 0; }
@media (min-width: 880px) { .tcard { flex-basis: 50%; padding-right: 16px; } }
.tcard__inner { height: 100%; padding: 36px; border: 1px solid var(--line); border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent); display: flex; flex-direction: column; gap: 22px; }
.tcard .quote-ic { color: var(--blue-bright); width: 30px; height: 30px; }
.tcard blockquote { font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); line-height: 1.4; color: var(--text); letter-spacing: -0.01em; }
.tcard__person { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.tcard__person .meta b { font-weight: 600; display: block; }
.tcard__person .meta span { font-size: 0.78rem; color: var(--text-3); }
.tcard__stars { display: flex; gap: 3px; margin-left: auto; color: var(--warn); }
.tcard__stars .ic { width: 15px; height: 15px; fill: var(--warn); stroke: none; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.carousel__dots button { width: 8px; height: 8px; border-radius: 999px; background: var(--surface-3); transition: all var(--t-mid) var(--e-out); }
.carousel__dots button.is-active { width: 26px; background: var(--grad); }

/* ========================= TRUSTED BY ========================= */
.trusted__label { margin-bottom: 36px; }
.trusted__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; align-items: center; }
.trusted__grid .wm { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; color: var(--text-3); opacity: 0.7; transition: opacity var(--t-mid), color var(--t-mid); filter: grayscale(1); }
.trusted__grid .wm:hover { opacity: 1; color: var(--text); }
.trusted__grid .wm svg { width: 22px; height: 22px; }
.trusted__grid .wm b { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 1.02rem; }

/* ========================= CONTACT ========================= */
.contact { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__glow { width: 480px; height: 480px; bottom: -120px; left: -120px; opacity: 0.3; }
.contact__copy .h-xl { margin: 18px 0 22px; }
.contact__details { display: flex; flex-direction: column; gap: 4px; margin-top: 40px; }
.contact__details li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact__details li:last-child { border-bottom: 1px solid var(--line); }
.contact__details .ic { color: var(--blue-bright); width: 20px; height: 20px; flex: none; }
.contact__details div { display: flex; flex-direction: column; gap: 2px; color: var(--text); font-size: 0.95rem; }

/* Contact form (field atoms live in base.css) */
.contact__form { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); display: flex; flex-direction: column; gap: 18px; }
.contact__form-note { font-size: 0.8rem; text-align: center; min-height: 1em; }
.contact__form-note.is-ok { color: var(--ok); }

/* ============================ FOOTER ============================ */
.footer { border-top: 1px solid var(--line); padding-block: var(--s-20) var(--s-10); background: linear-gradient(180deg, transparent, rgba(79,123,255,0.03)); }
.footer__top { display: grid; grid-template-columns: 1.3fr 2fr; gap: clamp(32px, 6vw, 80px); padding-bottom: var(--s-16); }
.footer__tag { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); margin: 20px 0 26px; max-width: none; }
.news { max-width: 320px; }
.news .mono-label { display: block; margin-bottom: 10px; }
.news__row { display: flex; gap: 8px; }
.news__row input { flex: 1; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); color: var(--text); font-size: 0.9rem; }
.news__row input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-12); }
.news__btn { width: 46px; flex: none; border-radius: var(--r-md); background: var(--grad); color: #050810; display: grid; place-items: center; transition: transform var(--t-fast) var(--e-out), box-shadow var(--t-fast); }
.news__btn:hover { transform: translateY(-2px); box-shadow: var(--glow-blue); }
.news__note { font-size: 0.74rem; color: var(--ok); display: block; margin-top: 8px; min-height: 1em; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__cols > div { display: flex; flex-direction: column; gap: 14px; }
.footer__cols .mono-label { margin-bottom: 4px; }
.footer__cols a { color: var(--text-2); font-size: 0.92rem; transition: color var(--t-fast); }
.footer__cols a:hover { color: var(--text); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: var(--s-8); border-top: 1px solid var(--line); font-size: 0.84rem; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-2); transition: all var(--t-fast) var(--e-out); }
.footer__social a:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-2px); }
.footer__legal { display: flex; gap: 18px; }
.footer__legal a { color: var(--text-3); }
.footer__legal a:hover { color: var(--text); }

/* ============================ DOCK ============================ */
.dock { position: fixed; right: 18px; bottom: 18px; z-index: var(--z-sticky); display: flex; flex-direction: column; gap: 10px; }
.dock__btn { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: var(--text); background: rgba(12,14,24,0.8); border: 1px solid var(--line-2); backdrop-filter: blur(12px); box-shadow: var(--shadow-md); transition: all var(--t-fast) var(--e-out); cursor: pointer; }
.dock__btn:hover { transform: translateY(-3px); border-color: var(--blue-40); color: var(--blue-bright); box-shadow: var(--glow-blue); }
.dock__btn--wa:hover { border-color: rgba(37,211,102,0.5); color: #25d366; box-shadow: 0 0 0 1px rgba(37,211,102,0.25), 0 24px 70px -28px rgba(37,211,102,0.55); }
.dock__btn.is-active { border-color: var(--blue-40); color: var(--blue-bright); background: var(--blue-12); }

/* Call: two-step reveal → dial */
.dock__call { position: relative; }
.dock__pop { position: absolute; right: 60px; top: 50%; transform: translateY(-50%) translateX(8px); display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; padding: 9px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-md); color: var(--text); text-decoration: none; opacity: 0; pointer-events: none; transition: opacity var(--t-fast) var(--e-out), transform var(--t-fast) var(--e-out); }
.dock__call.is-open .dock__pop { opacity: 1; pointer-events: auto; transform: translateY(-50%) translateX(0); }
.dock__pop-label { font-size: var(--fs-mono); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); }
.dock__pop-num { font-size: var(--fs-lg); font-weight: 600; }
.dock__pop:hover { border-color: var(--blue-40); color: var(--blue-bright); }

/* ============================ CHAT WIDGET ============================ */
.chat { position: fixed; right: 18px; bottom: 84px; z-index: var(--z-modal); width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(16px) scale(0.98); opacity: 0; visibility: hidden; pointer-events: none; transform-origin: bottom right; transition: opacity var(--t-mid) var(--e-out), transform var(--t-mid) var(--e-out), visibility 0s linear var(--t-mid); }
.chat.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); transition: opacity var(--t-mid) var(--e-out), transform var(--t-mid) var(--e-out), visibility 0s; }

.chat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.chat__id { display: flex; align-items: center; gap: 11px; }
.chat__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--grad); }
.chat__meta { display: flex; flex-direction: column; line-height: 1.25; }
.chat__name { font-size: var(--fs-body); }
.chat__status { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-3); }
.chat__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(84,230,168,0.5); animation: chatPulse 2s infinite; }
@keyframes chatPulse { 0% { box-shadow: 0 0 0 0 rgba(84,230,168,0.45); } 70% { box-shadow: 0 0 0 6px rgba(84,230,168,0); } 100% { box-shadow: 0 0 0 0 rgba(84,230,168,0); } }
.chat__close { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--text-2); background: transparent; border: 1px solid transparent; cursor: pointer; transition: all var(--t-fast) var(--e-out); }
.chat__close:hover { color: var(--text); background: var(--surface-3); border-color: var(--line-2); }

.chat__body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.msg { display: flex; flex-direction: column; max-width: 82%; }
.msg--bot { align-self: flex-start; align-items: flex-start; }
.msg--user { align-self: flex-end; align-items: flex-end; }
.msg__bubble { padding: 10px 13px; border-radius: 14px; font-size: var(--fs-sm); line-height: 1.45; word-wrap: break-word; }
.msg--bot .msg__bubble { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--text); }
.msg--user .msg__bubble { background: var(--grad); border-bottom-right-radius: 5px; color: #fff; }
.msg__bubble a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.msg--bot .msg__bubble a { color: var(--blue-bright); }
.msg__time { font-size: 0.66rem; color: var(--text-4); margin-top: 4px; padding: 0 4px; }
.msg--typing .msg__bubble { display: flex; gap: 4px; padding: 13px; }
.msg--typing .msg__bubble span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: chatType 1.2s infinite; }
.msg--typing .msg__bubble span:nth-child(2) { animation-delay: 0.2s; }
.msg--typing .msg__bubble span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatType { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat__quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 12px; }
.chat__chip { font-size: var(--fs-xs); padding: 7px 12px; border-radius: var(--r-pill); color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line-2); cursor: pointer; transition: all var(--t-fast) var(--e-out); }
.chat__chip:hover { color: var(--blue-bright); border-color: var(--blue-40); background: var(--blue-12); }

.chat__form { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface-2); }
.chat__input { flex: 1; height: 42px; padding: 0 14px; border-radius: var(--r-pill); color: var(--text); background: var(--surface-3); border: 1px solid var(--line-2); font: inherit; font-size: var(--fs-sm); outline: none; transition: border-color var(--t-fast) var(--e-out); }
.chat__input::placeholder { color: var(--text-3); }
.chat__input:focus { border-color: var(--blue-40); }
.chat__send { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); border: none; cursor: pointer; transition: transform var(--t-fast) var(--e-out), box-shadow var(--t-fast) var(--e-out); }
.chat__send:hover { transform: scale(1.06); box-shadow: var(--glow-blue); }

@media (prefers-reduced-motion: reduce) {
  .chat, .dock__pop, .dock__btn, .chat__send, .msg--typing .msg__bubble span, .chat__dot { transition: none; animation: none; }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .trusted__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
@media (max-width: 920px) {
  .nav__links, .nav__signin { display: none; }
  .nav__burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; gap: 8px; }
  .hero__art { order: -1; max-width: 360px; margin-inline: auto; }
  .hero { min-height: auto; padding-top: 120px; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .step__body { margin-top: 18px; }
  .step::after { display: none; }
  .split__inner, .contact { grid-template-columns: 1fr; }
  .split--rev .split__copy { order: 0; }
  .split__visual { order: -1; }
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav__pill { width: 100%; }
  .nav__actions .btn--primary { display: none; } /* CTA lives in the burger menu */
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 22px 8px; }
  .benefits { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .dock { right: 12px; bottom: 12px; }
  .chat { right: 12px; left: 12px; bottom: 78px; width: auto; height: min(70vh, 560px); }
}
@media (max-width: 400px) {
  .cat-grid { grid-template-columns: 1fr; }
}
