/* Shared tarfket experience: spotlight, assistant and public subpages */
/* Temporarily hidden UI. Keep the assistant and creator views in the DOM/code. */
.tarfket-ai-launch,
.tarfket-ai {
  display: none !important;
}

body.influencer-app .side-nav [data-inf-link="analytics"],
body.influencer-app .side-nav [data-inf-link="audience"],
body.influencer-app .side-nav [data-inf-link="media-kit"] {
  display: none !important;
}

body.influencer-app .influencer-topbar .top-actions {
  display: none !important;
}

.global-spotlight {
  position: fixed;
  z-index: 9998;
  left: 0;
  top: 0;
  width: 360px;
  height: 360px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.115),
    rgba(216, 180, 254, 0.045) 34%,
    transparent 70%
  );
  filter: blur(4px);
  transform: translate3d(
    calc(var(--cursor-x, 50vw) - 180px),
    calc(var(--cursor-y, 30vh) - 180px),
    0
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  mix-blend-mode: screen;
}

.global-spotlight.active {
  opacity: 1;
}

.tarfket-ai-launch {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid #3b334c;
  border-radius: 17px;
  color: #d8ccf8;
  background: linear-gradient(145deg, #18151f, #0d1014);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  transition: 0.22s ease;
}

.tarfket-ai-launch:hover {
  color: #fff;
  border-color: #75619e;
  transform: translateY(-4px);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(167, 139, 250, 0.14);
}

.tarfket-ai-launch svg {
  width: 30px;
  height: 30px;
}

.tarfket-ai-launch::after {
  content: "AI";
  position: absolute;
  right: -5px;
  top: -5px;
  padding: 2px 5px;
  border: 2px solid #080a0d;
  border-radius: 6px;
  color: #160e28;
  background: #bda6ff;
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.tarfket-ai {
  position: fixed;
  z-index: 121;
  right: 22px;
  bottom: 92px;
  width: min(390px, calc(100vw - 28px));
  height: min(620px, calc(100vh - 118px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #353044;
  border-radius: 22px;
  color: #eef2f1;
  background: rgba(10, 12, 16, 0.97);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(22px);
  transform: translateY(15px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tarfket-ai.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.tai-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px;
  border-bottom: 1px solid #242a2d;
  background: linear-gradient(110deg, rgba(167, 139, 250, 0.12), transparent);
}

.tai-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #4b3e65;
  border-radius: 11px;
  color: #d8ccf8;
  background: #17131f;
}

.tai-avatar svg {
  width: 24px;
  height: 24px;
}

.tai-head > div {
  display: flex;
  flex-direction: column;
}

.tai-head b {
  font-size: 0.83rem;
}

.tai-head small {
  color: #89938f;
  font-size: 0.625rem;
}

.tai-head small::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: #82e4be;
  box-shadow: 0 0 10px #82e4be;
}

.tai-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #89938f;
  background: #171b20;
}

.tai-close:hover {
  color: #fff;
  background: #22272e;
}

.tai-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 16px;
}

.tai-message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 0.72rem;
  line-height: 1.55;
}

.tai-message.bot {
  align-self: flex-start;
  color: #cfd6d4;
  border: 1px solid #252c30;
  background: #151a1e;
  border-bottom-left-radius: 4px;
}

.tai-message.user {
  align-self: flex-end;
  color: #170e28;
  background: #bda6ff;
  border-bottom-right-radius: 4px;
}

.tai-message.typing {
  display: flex;
  gap: 4px;
  width: max-content;
}

.tai-message.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9f8bd5;
  animation: taiTyping 1s infinite;
}

.tai-message.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.tai-message.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

.tai-prompts {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 14px 10px;
  scrollbar-width: none;
}

.tai-prompts button {
  flex: none;
  padding: 7px 9px;
  border: 1px solid #2e2b3d;
  border-radius: 99px;
  color: #b4a6dd;
  background: #15121d;
  font-size: 0.625rem;
  font-weight: 700;
}

.tai-prompts button:hover {
  border-color: #65528c;
  color: #e4dbff;
}

.tai-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #252b2f;
}

.tai-form input {
  min-width: 0;
  flex: 1;
  padding: 11px 12px;
  border: 1px solid #2a3035;
  border-radius: 11px;
  outline: 0;
  color: #eef2f1;
  background: #14181d;
  font: inherit;
  font-size: 0.72rem;
}

.tai-form input:focus {
  border-color: #7f65bb;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.09);
}

.tai-form button {
  width: 39px;
  border-radius: 11px;
  color: #160e26;
  background: #bda6ff;
  font-size: 1rem;
  font-weight: 800;
}

@keyframes taiTyping {
  50% {
    transform: translateY(-3px);
    opacity: 0.45;
  }
}

.public-page {
  min-height: 100vh;
  color: #f4f6f5;
  background: #07090c;
  font-family: "Manrope", sans-serif;
}

.public-page * {
  box-sizing: border-box;
}

.public-page .nav {
  position: sticky;
  top: 0;
  background: rgba(7, 9, 12, 0.84);
  border-bottom: 1px solid #1c2226;
}

.public-page .nav-inner {
  width: auto;
  max-width: none;
  margin: 0;
  padding-inline: max(48px, calc((100vw - 1280px) / 2));
  height: 76px;
}

.public-page .logo {
  color: #f5f7f6;
}

.public-page .nav-links a {
  color: #a8b0ae;
}

.public-page .nav-links a:hover,
.public-page .nav-links a.active {
  color: #fff;
}

.public-page .btn-primary {
  color: #140c24;
  background: #a78bfa;
}

.public-page .btn-ghost {
  color: #e7eceb;
  border-color: #293034;
  background: #101418;
}

.public-page .nav-burger span {
  background: #fff;
}

.page-main {
  width: min(1184px, calc(100% - 48px));
  margin: auto;
  padding: 88px 0 110px;
}

.page-hero {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 70px;
  align-items: end;
  padding: 40px 0 80px;
  border-bottom: 1px solid #20262a;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a78bfa;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: #a78bfa;
}

.page-hero h1 {
  max-width: 760px;
  margin-top: 20px;
  font-size: clamp(3rem, 6.3vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.page-hero h1 span {
  color: #a78bfa;
}

.page-hero > p {
  max-width: 460px;
  color: #929d99;
  font-size: 1rem;
  line-height: 1.75;
}

.page-section {
  padding: 90px 0;
}

.page-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 38px;
}

.page-section-head h2 {
  max-width: 620px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.05em;
}

.page-section-head p {
  max-width: 420px;
  color: #87928f;
  font-size: 0.85rem;
}

.feature-cards,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.feature-card,
.guide-card {
  position: relative;
  min-height: 320px;
  padding: 26px;
  border: 1px solid #242b2f;
  border-radius: 19px;
  background: linear-gradient(145deg, #101418, #0a0d10);
  transition: 0.25s;
}

.feature-card:hover,
.guide-card:hover {
  transform: translateY(-5px);
  border-color: #4c3e67;
}

.feature-card > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 45px;
  border-radius: 14px;
  color: #160e27;
  background: #a78bfa;
  font-weight: 900;
}

.feature-card:nth-child(2) > span {
  background: #88dfc0;
}

.feature-card:nth-child(3) > span {
  background: #ee8ab8;
}

.feature-card h3,
.guide-card h3 {
  font-size: 1.35rem;
}

.feature-card p,
.guide-card p {
  margin-top: 12px;
  color: #818c89;
  font-size: 0.78rem;
}

.feature-card a,
.guide-card a {
  position: absolute;
  left: 26px;
  bottom: 24px;
  color: #bba9ef;
  font-size: 0.7rem;
  font-weight: 800;
}

.guide-card {
  min-height: 250px;
}

.guide-card small {
  color: #8274aa;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.guide-card h3 {
  margin-top: 17px;
  line-height: 1.25;
}

.guide-card .guide-meta {
  position: absolute;
  right: 23px;
  bottom: 24px;
  color: #68716f;
  font-size: 0.625rem;
}

.faq-stack {
  display: grid;
  gap: 9px;
  max-width: 850px;
}

.faq-stack details {
  padding: 20px 22px;
  border: 1px solid #242b2f;
  border-radius: 14px;
  background: #0e1215;
}

.faq-stack summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.faq-stack p {
  padding-top: 12px;
  color: #86918e;
  font-size: 0.76rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 18px;
}

.contact-aside,
.public-form {
  padding: 30px;
  border: 1px solid #252c30;
  border-radius: 20px;
  background: #0e1215;
}

.contact-aside h2 {
  font-size: 2rem;
}

.contact-aside p {
  margin: 14px 0 30px;
  color: #87928f;
  font-size: 0.8rem;
}

.contact-line {
  display: flex;
  flex-direction: column;
  padding: 17px 0;
  border-top: 1px solid #252b2f;
}

.contact-line small {
  color: #68736f;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
}

.contact-line b {
  margin-top: 5px;
  font-size: 0.82rem;
}

.public-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.public-form label {
  display: grid;
  gap: 7px;
  color: #99a4a0;
  font-size: 0.68rem;
}

.public-form label.full {
  grid-column: 1/-1;
}

.public-form input,
.public-form select,
.public-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #293136;
  border-radius: 10px;
  outline: 0;
  color: #f3f6f5;
  background: #151a1e;
  font: inherit;
  font-size: 0.78rem;
}

.public-form textarea {
  min-height: 130px;
  resize: vertical;
}

.public-form input:focus,
.public-form select:focus,
.public-form textarea:focus {
  border-color: #765caf;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.09);
}

.public-form .btn {
  grid-column: 1/-1;
  justify-self: start;
}

.form-success {
  grid-column: 1/-1;
  padding: 12px;
  border: 1px solid #315f50;
  border-radius: 10px;
  color: #9ce8cc;
  background: #10251f;
  font-size: 0.72rem;
}

.campaign-builder {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 22px;
}

.builder-steps {
  align-self: start;
  position: sticky;
  top: 105px;
  display: grid;
  gap: 8px;
}

.builder-steps span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 11px;
  color: #6f7a76;
  font-size: 0.7rem;
}

.builder-steps span i {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #2b3336;
  border-radius: 8px;
  font-style: normal;
}

.builder-steps span.active {
  color: #ece8fa;
  background: #15121e;
}

.builder-steps span.active i {
  color: #160e27;
  border-color: #a78bfa;
  background: #a78bfa;
}

.campaign-panel {
  padding: 32px;
  border: 1px solid #272e32;
  border-radius: 21px;
  background: #0e1215;
}

.campaign-panel h2 {
  font-size: 2rem;
}

.campaign-panel > p {
  margin: 10px 0 28px;
  color: #87918e;
  font-size: 0.78rem;
}

.campaign-type-grid {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.campaign-type {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 17px;
  border: 1px solid #293136;
  border-radius: 13px;
  color: #dfe4e2;
  background: #13181c;
  cursor: pointer;
}

.campaign-type input {
  position: absolute;
  opacity: 0;
}

.campaign-type:has(input:checked) {
  border-color: #9277d4;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.08);
}

.campaign-type b {
  font-size: 0.8rem;
}

.campaign-type small {
  color: #76817d;
  font-size: 0.625rem;
}

.campaign-actions {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.save-state {
  color: #7d8985;
  font-size: 0.625rem;
}

@media (max-width: 900px) {
  .page-hero,
  .contact-grid,
  .campaign-builder {
    grid-template-columns: 1fr;
  }
  .page-hero {
    gap: 25px;
  }
  .feature-cards,
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .builder-steps {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }
  .builder-steps span {
    justify-content: center;
  }
  .builder-steps span:not(.active) {
    font-size: 0;
  }
  .public-page .nav-links {
    display: none;
  }
  .public-page .nav-burger {
    display: flex;
  }
  .public-page .nav-inner {
    padding-inline: 24px;
  }
}

@media (max-width: 620px) {
  .global-spotlight {
    display: none;
  }
  .tarfket-ai-launch {
    right: 14px;
    bottom: 14px;
  }
  .tarfket-ai {
    right: 14px;
    bottom: 82px;
    height: calc(100vh - 100px);
  }
  .page-main {
    width: calc(100% - 32px);
    padding-top: 50px;
  }
  .page-hero {
    padding-bottom: 55px;
  }
  .page-hero h1 {
    font-size: 3.35rem;
  }
  .page-section {
    padding: 65px 0;
  }
  .page-section-head {
    display: block;
  }
  .page-section-head p {
    margin-top: 14px;
  }
  .public-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .public-form label {
    grid-column: 1/-1;
  }
  .campaign-panel {
    padding: 20px;
  }
  .campaign-type-grid {
    grid-template-columns: 1fr;
  }
  .builder-steps span {
    padding: 8px;
  }
  .builder-steps span i {
    width: 24px;
    height: 24px;
  }
  .public-page .nav-inner {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-spotlight {
    display: none;
  }
  .tai-message.typing i {
    animation: none;
  }
}

/* Brand campaign completion actions. */
.campaign-actions {
  gap: 16px;
}

.campaign-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 620px) {
  .campaign-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .campaign-action-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }
  .campaign-action-buttons .btn {
    width: 100%;
  }
}

.public-page .nav-links {
  align-items: center;
  height: 76px;
}

.public-page .nav-product {
  position: relative;
  display: flex;
  align-items: center;
  height: 76px;
}

.public-page .nav-product > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.public-page .product-menu {
  position: absolute;
  top: 66px;
  left: 50%;
  width: 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 10px;
  border: 1px solid #292f35;
  border-radius: 16px;
  background: rgba(11, 14, 18, 0.98);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.48);
  transform: translate(-50%, 9px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.2s ease;
}

.public-page .nav-product:hover .product-menu,
.public-page .nav-product:focus-within .product-menu {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.public-page .product-menu > a,
.public-page .menu-soon {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px;
  border-radius: 11px;
  color: #e8eceb;
}

.public-page .product-menu > a:hover {
  color: #fff;
  background: #171b21;
}

.public-page .product-menu i {
  grid-row: 1/3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #160e28;
  background: #bca5fa;
  font-style: normal;
  font-weight: 800;
}

.public-page .product-menu > a:nth-child(2) i {
  background: #8de0c2;
}

.public-page .product-menu > a:nth-child(3) i {
  background: #ec8ab6;
}

.public-page .menu-soon i {
  color: #77807e;
  background: #22282c;
}

.public-page .product-menu > a > span,
.public-page .menu-soon > span {
  display: flex;
  flex-direction: column;
}

.public-page .product-menu b {
  font-size: 0.7rem;
}

.public-page .product-menu small {
  margin-top: 2px;
  color: #737e7b;
  font-size: 0.625rem;
}

.public-page .menu-soon {
  display: grid !important;
  grid-template-columns: 38px 1fr !important;
  min-height: 60px !important;
  border: 1px dashed #30373b;
  opacity: 0.72;
}

@media (max-width: 900px) {
  .public-page .nav-product {
    display: none;
  }
}

.public-page .product-menu {
  width: 390px;
  gap: 5px;
  padding: 7px;
  top: 62px;
}

.public-page .product-menu > a,
.public-page .menu-soon {
  grid-template-columns: 32px 1fr;
  min-height: 50px;
  padding: 7px;
  gap: 8px;
}

.public-page .product-menu i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.76rem;
}

.public-page .menu-soon {
  grid-template-columns: 32px 1fr !important;
  min-height: 50px !important;
}
