/* Home features stack: mini feature heroes + layout */

.home-features-intro {
  background: #fff;
  border-bottom: 1px dashed #e4e5e1;
}

.home-features-intro-inner {
  border-left: 1px dashed #e4e5e1;
  border-right: 1px dashed #e4e5e1;
  margin: 0 auto;
  max-width: var(--landing-content-width);
  padding: 56px 24px 36px;
  text-align: center;
}

.home-features-intro-kicker {
  align-items: center;
  color: #155eee;
  display: inline-flex;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  letter-spacing: 0.14em;
  margin: 0 0 0.95rem;
  text-transform: uppercase;
}

.home-features-intro-kicker-icon {
  align-items: center;
  background: #eef4ff;
  border: 1px solid rgba(21, 94, 238, 0.18);
  border-radius: 9px;
  color: #155eee;
  display: inline-flex;
  flex: 0 0 28px;
  font-size: 14px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.home-features-intro-title {
  color: #050505;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 auto 12px;
  max-width: 720px;
}

.home-features-intro-title .home-ceo-accent {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: #155eee;
  display: inline;
  text-decoration: underline;
  text-decoration-color: rgba(21, 94, 238, 0.58);
  text-decoration-style: dashed;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}

.home-features-intro-sub {
  color: #4b5563;
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 640px;
}

.home-features-stack {
  background: #fff;
  border-bottom: 1px solid #e6e8ec;
  /* Stack-only: product blocks use SEO Agent blue. */
  --feature-reach-accent: var(--feature-seo-accent);
  --feature-reach-bg: var(--feature-seo-bg);
  --feature-reach-border: var(--feature-seo-border);
  --feature-reach-tint: var(--feature-seo-tint);
  --feature-leads-accent: var(--feature-seo-accent);
  --feature-leads-bg: var(--feature-seo-bg);
  --feature-leads-border: var(--feature-seo-border);
  --feature-leads-tint: var(--feature-seo-tint);
}

.home-features-stack .th-showcase-row:last-child {
  border-bottom: 0;
}

.home-feature-block .th-showcase-copy,
.home-feature-block .th-showcase-visual {
  min-width: 0;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.home-feature-block .th-showcase-visual {
  transform: translateY(28px);
  transition: opacity 0.65s ease 0.08s, transform 0.65s ease 0.08s;
}

.home-feature-block.is-inview .th-showcase-copy,
.home-feature-block.is-inview .th-showcase-visual {
  opacity: 1;
  transform: translateY(0);
}

.hf-visuals .home-feature-points {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0 0 1.35rem;
  max-width: 430px;
  padding: 0;
}

.hf-visuals .home-feature-points li {
  align-items: flex-start;
  color: #667085;
  display: flex;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  gap: 8px;
  line-height: 1.5;
}

.hf-visuals .home-feature-points li i {
  color: #155eee;
  flex: 0 0 auto;
  font-size: 15px;
  margin-top: 1px;
}

.hf-visuals .home-feature-cta-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hf-visuals .home-feature-cta {
  color: #fff !important;
  text-decoration: none !important;
}

.hf-visuals .home-feature-cta i,
.hf-visuals .home-feature-cta-view i {
  font-size: 16px;
}

.hf-visuals .home-feature-cta-view {
  text-decoration: none !important;
}

.hf-visuals .home-feature-demo {
  background: #fff;
  border: 1px solid rgba(21, 94, 238, 0.35);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  margin-top: 0.95rem;
  max-width: none;
  padding: 22px 18px 20px;
  position: relative;
  width: 100%;
}

.hf-visuals .home-feature-demo-copy {
  color: #5f6777;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 0.7rem;
}

.hf-visuals .home-feature-demo-link {
  align-items: center;
  color: #155eef;
  display: inline-flex;
  flex-wrap: wrap;
  font-size: 0.92rem;
  gap: 0.35rem 0.5rem;
  line-height: 1.4;
  text-decoration: none !important;
  transition: color 0.15s ease;
  width: fit-content;
}

.hf-visuals .home-feature-demo-link:hover {
  color: #0f4ecc;
}

.hf-visuals .home-feature-demo-cta {
  font-weight: 500;
}

.hf-visuals .home-feature-demo-url {
  align-items: center;
  color: inherit;
  display: inline-flex;
  font-weight: 650;
  gap: 0.2rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hf-visuals .home-feature-demo-url i {
  font-size: 0.95em;
  line-height: 1;
}

/* Animated mocks fill the showcase illustration frame */
.hf-visuals .th-showcase-visual {
  padding: 1.15rem;
}

.hf-visuals .th-showcase-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  max-width: none;
  padding: 0;
  width: 100%;
}

.hf-visuals .th-showcase-card > * {
  position: relative;
  width: 100%;
  z-index: 2;
}

.hf-visuals .th-feature-hero-card.th-ai-writing-hero-card,
.hf-visuals .th-feature-hero-card.th-prompt-tracking-hero-card,
.hf-visuals .th-feature-hero-card.th-community-agent-hero-card,
.hf-visuals .th-feature-hero-card.th-cd-hero-card,
.hf-visuals .th-feature-hero-card.th-alm-hero-card,
.hf-visuals .th-feature-hero-card.th-cat-hero-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  max-width: none;
  padding: 0;
  width: 100%;
}

.hf-visuals .th-ai-writing-hero {
  transform-origin: center top;
}

.hf-visuals .th-cd-hero,
.hf-visuals .th-alm-hero {
  width: 100%;
}

.hf-visuals .th-alm-hero {
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.hf-visuals .th-alm-widget {
  max-width: 340px;
  min-height: 420px;
}

@media (max-width: 900px) {
  .hf-visuals .th-showcase-visual {
    padding: 2px;
  }

  .hf-visuals .th-showcase-card {
    padding: 5px;
  }

  .hf-visuals .th-feature-hero-card.th-ai-writing-hero-card,
  .hf-visuals .th-feature-hero-card.th-prompt-tracking-hero-card,
  .hf-visuals .th-feature-hero-card.th-community-agent-hero-card,
  .hf-visuals .th-feature-hero-card.th-cd-hero-card,
  .hf-visuals .th-feature-hero-card.th-alm-hero-card,
  .hf-visuals .th-feature-hero-card.th-cat-hero-card {
    max-width: 100%;
    width: 100%;
  }

  .hf-visuals .th-ai-writing-results {
    grid-template-columns: 1fr;
  }
  .hf-visuals .th-ai-writing-flow {
    display: none;
  }
  .hf-visuals .th-ai-writing-result-card {
    min-height: 0;
  }

  .hf-visuals .th-pt-chat-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hf-visuals .th-pt-chat-tabs {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hf-visuals .th-alm-widget {
    max-width: min(320px, 100%);
    min-height: 380px;
  }

  .hf-visuals .th-alm-widget-body {
    max-height: 240px;
    min-height: 210px;
  }

  .hf-visuals .th-cd-hero-card {
    padding: 12px;
  }

  .hf-visuals .th-cd-hero-cal {
    max-width: 100%;
    overflow: hidden;
  }

  .hf-visuals .th-cd-hero-cal-row {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .hf-visuals .th-showcase-copy {
    padding: 1.5rem 1rem 1rem;
  }

  .hf-visuals .th-showcase-visual {
    margin: 6px;
    padding: 0;
  }

  .hf-visuals .th-ai-writing-result-card {
    padding: 0.72rem;
  }

  .hf-visuals .th-pt-chat-body {
    gap: 0.75rem;
    padding: 0.8rem;
  }

  .hf-visuals .th-pt-chat-tab {
    font-size: 0.58rem;
    padding: 0.36rem 0.42rem 0.5rem;
  }

  .hf-visuals .th-cd-hero-card {
    padding: 10px;
  }

  .hf-visuals .th-alm-widget {
    max-width: min(300px, 100%);
    min-height: 340px;
  }

  .hf-visuals .th-alm-widget-body {
    max-height: 210px;
    min-height: 180px;
  }

  .home-features-intro-inner {
    padding: 40px 16px 28px;
  }

  .hf-visuals .home-feature-cta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hf-visuals .home-feature-cta,
  .hf-visuals .home-feature-cta-view {
    justify-content: center;
    min-height: 44px;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-feature-block .th-showcase-copy,
  .home-feature-block .th-showcase-visual {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hf-visuals .th-ai-writing-flow-path,
  .hf-visuals .th-ai-writing-flow-orb,
  .hf-visuals .th-ai-writing-result-badge,
  .hf-visuals .th-ai-writing-ai-badge,
  .hf-visuals .th-ai-writing-answer-featured,
  .hf-visuals .th-rc-hero-row,
  .hf-visuals .th-rc-hero-suggestion,
  .hf-visuals .th-rc-hero-sparkle,
  .hf-visuals .th-pt-brand-highlight,
  .hf-visuals .th-pt-source-pill.is-highlighted,
  .hf-visuals .th-cd-hero-slot.is-company,
  .hf-visuals .th-alm-bubble,
  .hf-visuals .th-alm-widget-msg,
  .hf-visuals .th-alm-widget-typing span {
    animation: none !important;
    transition: none !important;
  }

  .hf-visuals .th-alm-widget-msg {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .hf-visuals .th-alm-widget-msg.is-visible {
    display: block;
  }
}

/* ---- Cloned feature hero visuals (from feature.php) ---- */

.hf-visuals .th-feature-hero-card.th-prompt-tracking-hero-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    max-width: 520px;
    padding: 0;
    width: min(98%, 520px);
  }

.hf-visuals .th-prompt-tracking-hero {
    position: relative;
    width: 100%;
  }

.hf-visuals .th-feature-hero-card.th-community-agent-hero-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    max-width: 680px;
    padding: 0;
    width: min(98%, 680px);
  }

.hf-visuals .th-rc-hero-feed {
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    box-shadow: none;
    overflow: hidden;
    width: 100%;
  }

.hf-visuals .th-rc-hero-row {
    --row-index: 0;
    align-items: stretch;
    animation: thRcHeroRowIn 0.62s ease forwards;
    animation-delay: calc(0.12s + (var(--row-index) * 0.16s));
    border-bottom: 1px solid #eaecf0;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.12fr) auto;
    min-height: 8.6rem;
    opacity: 0;
    padding: 0.95rem 0.8rem 0.95rem 1rem;
    transition: background-color 0.2s ease;
  }

.hf-visuals .th-rc-hero-row:last-child {
    border-bottom: 0;
  }

.hf-visuals .th-rc-hero-row:hover {
    background: #f9fafb;
  }

.hf-visuals .th-rc-hero-post-head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.42rem;
  }

.hf-visuals .th-rc-hero-logo {
    border-radius: 999px;
    display: block;
    flex: 0 0 18px;
    height: 18px;
    object-fit: contain;
    width: 18px;
  }

.hf-visuals .th-rc-hero-platform {
    color: #475467;
    font-size: 0.72rem;
    font-weight: 700;
  }

.hf-visuals .th-rc-hero-dot, .hf-visuals .th-rc-hero-time {
    color: #98a2b3;
    font-size: 0.72rem;
    font-weight: 500;
  }

.hf-visuals .th-rc-hero-post-title {
    color: #101828;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
  }

.hf-visuals .th-rc-hero-post-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
  }

.hf-visuals .th-rc-hero-badge {
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.22rem 0.5rem;
  }

.hf-visuals .th-rc-hero-badge.is-high {
    background: #ecfdf3;
    color: #027a48;
  }

.hf-visuals .th-rc-hero-badge.is-medium {
    background: #fff6ed;
    color: #b54708;
  }

.hf-visuals .th-rc-hero-comments {
    align-items: center;
    color: #667085;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 500;
    gap: 0.28rem;
  }

.hf-visuals .th-rc-hero-comments svg {
    flex: 0 0 auto;
    height: 13px;
    width: 13px;
  }

.hf-visuals .th-rc-hero-divider {
    align-self: stretch;
    background: repeating-linear-gradient(to bottom, #d0d5dd 0 4px, transparent 4px 8px);
    margin: 0.15rem 0.75rem;
    width: 1px;
  }

.hf-visuals .th-rc-hero-suggestion {
    animation: thRcSuggestionIn 0.58s ease forwards;
    animation-delay: calc(0.38s + (var(--row-index) * 0.16s));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 7.6rem;
    min-width: 0;
    opacity: 0;
    padding-right: 0.35rem;
  }

.hf-visuals .th-rc-hero-suggestion-head {
    align-items: center;
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.38rem;
  }

.hf-visuals .th-rc-hero-suggestion-label {
    color: var(--feature-reach-accent);
    font-size: 0.72rem;
    font-weight: 700;
  }

.hf-visuals .th-rc-hero-sparkle {
    animation: thRcSparklePulse 2.3s ease-in-out infinite;
    color: #4f8cff;
    display: inline-flex;
    flex: 0 0 auto;
    height: 14px;
    width: 14px;
  }

.hf-visuals .th-rc-hero-sparkle svg {
    display: block;
    height: 100%;
    width: 100%;
  }

.hf-visuals .th-rc-hero-suggestion-text {
    color: #667085;
    display: block;
    font-size: 0.72rem;
    height: 5.8em;
    line-height: 1.45;
    margin: 0;
    min-height: 5.8em;
    overflow: hidden;
  }

.hf-visuals .th-rc-hero-suggestion-text.is-typing::after {
    animation: thAiWritingCursor 1s step-end infinite;
    color: var(--feature-reach-accent);
    content: "|";
    font-weight: 700;
    margin-left: 1px;
  }

.hf-visuals .th-rc-hero-suggestion-text.is-done::after {
    display: none;
  }

.hf-visuals .th-rc-hero-chevron {
    align-items: center;
    color: #98a2b3;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 500;
    justify-content: center;
    line-height: 1;
    min-width: 14px;
    padding-left: 0.15rem;
  }

.hf-visuals .th-rc-hero-row.is-active {
    background: #f8f9fc;
  }

.hf-visuals .th-rc-hero-row.is-active .th-rc-hero-sparkle {
    animation-duration: 1.35s;
    color: var(--feature-seo-accent);
  }

.hf-visuals .th-rc-hero-post {
  min-width: 0;
}

@keyframes thRcHeroRowIn {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
  }

@keyframes thRcSuggestionIn {
    0% { opacity: 0; transform: translateX(10px); }
    100% { opacity: 1; transform: translateX(0); }
  }

/* Must come after base .hf-visuals .th-rc-hero-* rules or desktop grid overrides mobile */
@media (max-width: 980px) {
  .hf-visuals .th-rc-hero-row {
    animation: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    grid-template-columns: none;
    min-height: 0;
    opacity: 1;
    transform: none;
  }

  .hf-visuals .th-rc-hero-divider,
  .hf-visuals .th-rc-hero-chevron {
    display: none;
  }

  .hf-visuals .th-rc-hero-post,
  .hf-visuals .th-rc-hero-suggestion {
    min-width: 0;
    width: 100%;
  }

  .hf-visuals .th-rc-hero-post-title {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hf-visuals .th-rc-hero-suggestion {
    animation: none;
    min-height: 0;
    opacity: 1;
    padding-right: 0;
    transform: none;
  }

  .hf-visuals .th-rc-hero-suggestion-text {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .hf-visuals .th-rc-hero-row {
    padding: 0.75rem 0.7rem;
  }

  .hf-visuals .th-rc-hero-post-title {
    font-size: 0.78rem;
  }

  .hf-visuals .th-rc-hero-suggestion-text {
    font-size: 0.72rem;
  }
}

@keyframes thRcSparklePulse {
    0%, 100% { opacity: 0.45; transform: scale(0.9) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.08) rotate(14deg); }
  }

.hf-visuals .th-pt-chat {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    position: relative;
    z-index: 2;
  }

.hf-visuals .th-pt-chat-head {
    align-items: center;
    border-bottom: 1px solid #edf1f6;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.8rem;
    justify-content: space-between;
    padding: 0.82rem 0.95rem 0;
  }

.hf-visuals .th-pt-chat-title {
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

.hf-visuals .th-pt-chat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    position: relative;
  }

.hf-visuals .th-pt-chat-tab {
    align-items: center;
    border-bottom: 2px solid transparent;
    color: #64748b;
    display: inline-flex;
    font-size: 0.62rem;
    font-weight: 500;
    gap: 0.28rem;
    margin-bottom: -1px;
    padding: 0.42rem 0.5rem 0.58rem;
    transition: color 0.24s ease, background 0.24s ease, border-color 0.24s ease;
    white-space: nowrap;
  }

.hf-visuals .th-pt-chat-tab img {
    display: block;
    height: 14px;
    object-fit: contain;
    width: 14px;
  }

.hf-visuals .th-pt-chat-tab.is-active {
    background: var(--feature-prompt-bg);
    border-bottom-color: var(--feature-prompt-accent);
    border-radius: 8px 8px 0 0;
    color: #0f172a;
    font-weight: 600;
  }

.hf-visuals .th-pt-chat-body {
    display: grid;
    gap: 0.9rem;
    padding: 0.95rem;
  }

.hf-visuals .th-pt-user-row {
    align-items: flex-start;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: auto 1fr;
  }

.hf-visuals .th-pt-user-avatar {
    align-items: center;
    background: var(--feature-seo-bg);
    border-radius: 999px;
    color: var(--feature-seo-accent);
    display: inline-flex;
    height: 28px;
    justify-content: center;
    width: 28px;
  }

.hf-visuals .th-pt-user-avatar svg {
    height: 14px;
    width: 14px;
  }

.hf-visuals .th-pt-user-bubble {
    background: var(--feature-seo-bg);
    border: 1px solid var(--feature-seo-border);
    border-radius: 12px;
    color: #334155;
    font-size: 0.72rem;
    line-height: 1.45;
    max-width: 92%;
    padding: 0.62rem 0.72rem;
  }

.hf-visuals .th-pt-ai-row {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: auto 1fr;
  }

.hf-visuals .th-pt-ai-avatar {
    align-items: center;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
  }

.hf-visuals .th-pt-ai-avatar img {
    display: block;
    height: 18px;
    object-fit: contain;
    width: 18px;
  }

.hf-visuals .th-pt-ai-bubble {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    color: #334155;
    font-size: 0.68rem;
    line-height: 1.5;
    padding: 0.72rem 0.78rem;
  }

.hf-visuals .th-pt-ai-bubble > p {
    margin: 0 0 0.55rem;
  }

.hf-visuals .th-pt-ai-list {
    display: grid;
    gap: 0.42rem;
    list-style: none;
    margin: 0 0 0.55rem;
    padding: 0;
  }

.hf-visuals .th-pt-ai-item {
    align-items: flex-start;
    display: grid;
    gap: 0.45rem;
    grid-template-columns: auto 1fr;
  }

.hf-visuals .th-pt-ai-rank {
    align-items: center;
    background: #e8f8ef;
    border-radius: 999px;
    color: #0f766e;
    display: inline-flex;
    font-size: 0.58rem;
    font-weight: 600;
    height: 18px;
    justify-content: center;
    margin-top: 0.08rem;
    width: 18px;
  }

.hf-visuals .th-pt-ai-item strong {
    color: #0f172a;
    font-weight: 600;
  }

.hf-visuals .th-pt-brand-highlight {
    animation: thPtBrandHighlight 2.6s ease-in-out infinite;
    background: #fef08a;
    border-radius: 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    color: #854d0e;
    font-weight: 700;
    padding: 0 0.12em;
  }

@keyframes thPtBrandHighlight {
    0%, 100% {
      background: #fef9c3;
      box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
    }
    50% {
      background: #fde047;
      box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.16);
    }
  }

.hf-visuals .th-pt-sources {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
    margin-top: 0.2rem;
    position: relative;
  }

.hf-visuals .th-pt-sources > span:first-child {
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 500;
  }

.hf-visuals .th-pt-source-pill {
    align-items: center;
    background: var(--feature-seo-bg);
    border: 1px solid var(--feature-seo-border);
    border-radius: 999px;
    color: var(--feature-seo-accent);
    display: inline-flex;
    font-size: 0.6rem;
    font-weight: 600;
    gap: 0.28rem;
    padding: 0.24rem 0.48rem;
    position: relative;
  }

.hf-visuals .th-pt-source-pill svg {
    height: 11px;
    width: 11px;
  }

.hf-visuals .th-pt-source-pill.is-highlighted {
    animation: thPtSourcePulse 2.8s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(21, 94, 238, 0.18);
  }

.hf-visuals .th-pt-source-more {
    color: #94a3b8;
    font-size: 0.58rem;
    font-weight: 500;
  }

.hf-visuals .th-pt-sparkles {
    height: 18px;
    left: calc(100% - 0.2rem);
    pointer-events: none;
    position: absolute;
    top: -0.45rem;
    width: 18px;
  }

.hf-visuals .th-pt-sparkles i {
    animation: thPtSparkle 2.4s ease-in-out infinite;
    background: var(--feature-seo-accent);
    border-radius: 999px;
    display: block;
    height: 2px;
    position: absolute;
    transform-origin: left center;
    width: 7px;
  }

.hf-visuals .th-pt-sparkles i:nth-child(1) {
    left: 2px;
    top: 4px;
    transform: rotate(-28deg);
  }

.hf-visuals .th-pt-sparkles i:nth-child(2) {
    animation-delay: 0.18s;
    left: 6px;
    top: 1px;
    transform: rotate(-8deg);
    width: 5px;
  }

.hf-visuals .th-pt-sparkles i:nth-child(3) {
    animation-delay: 0.34s;
    left: 10px;
    top: 6px;
    transform: rotate(24deg);
    width: 6px;
  }

.hf-visuals .th-pt-time {
    color: #94a3b8;
    display: block;
    font-size: 0.56rem;
    margin-top: 0.42rem;
  }

.hf-visuals .th-pt-user-row .th-pt-time {
    margin-top: 0.2rem;
  }

.hf-visuals .th-pt-reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.36s ease, transform 0.36s ease;
  }

.hf-visuals .th-pt-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

.hf-visuals .th-pt-reveal--delay-1 { transition-delay: 0.12s; }

.hf-visuals .th-pt-reveal--delay-2 { transition-delay: 0.24s; }

.hf-visuals .th-pt-reveal--delay-3 { transition-delay: 0.36s; }

.hf-visuals .th-pt-reveal--late { transition-delay: 0.5s; }

.hf-visuals .th-pt-typewriter::after {
    animation: thAiWritingCursor 1s step-end infinite;
    content: "|";
    margin-left: 1px;
    opacity: 0.7;
  }

.hf-visuals .th-pt-typewriter.is-done::after {
    display: none;
  }

@keyframes thPtSourcePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(21, 94, 238, 0.16); transform: scale(1); }
    50% { box-shadow: 0 0 0 6px rgba(21, 94, 238, 0); transform: scale(1.03); }
  }

@keyframes thPtSparkle {
    0%, 100% { opacity: 0.25; transform: scaleX(0.7); }
    50% { opacity: 1; transform: scaleX(1); }
  }

@keyframes thAiWritingCursor {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
  }

.hf-visuals .th-feature-hero-card.th-ai-writing-hero-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    max-width: 560px;
    padding: 0;
    width: min(98%, 560px);
  }

.hf-visuals .th-ai-writing-hero {
    display: grid;
    gap: 0.62rem;
    width: 100%;
  }

.hf-visuals .th-ai-writing-article-card, .hf-visuals .th-ai-writing-result-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    box-shadow: none;
  }

.hf-visuals .th-ai-writing-article-card {
    align-items: center;
    display: grid;
    gap: 0.86rem;
    grid-template-columns: auto 1fr;
    justify-self: center;
    min-height: 86px;
    padding: 0.85rem 1rem;
    width: 100%;
  }

.hf-visuals .th-ai-writing-doc-icon {
    align-items: center;
    background: #eef6ff;
    border-radius: 14px;
    color: #155eee;
    display: inline-flex;
    height: 48px;
    justify-content: center;
    width: 48px;
  }

.hf-visuals .th-ai-writing-doc-icon svg {
    display: block;
    height: 28px;
    width: 28px;
  }

.hf-visuals .th-ai-writing-title {
    color: #0f172a;
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 0.62rem;
  }

.hf-visuals .th-ai-writing-checks {
    display: grid;
    gap: 0.56rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

.hf-visuals .th-ai-writing-check {
    align-items: center;
    color: #0f172a;
    display: grid;
    font-size: 0.56rem;
    font-weight: 500;
    gap: 0.34rem;
    grid-template-columns: auto 1fr;
    line-height: 1.22;
  }

.hf-visuals .th-ai-writing-check i {
    align-items: center;
    animation: thAiWritingCheck 2.8s ease-in-out infinite;
    background: #eef6ff;
    border-radius: 999px;
    color: #155eee;
    display: inline-flex;
    font-style: normal;
    height: 22px;
    justify-content: center;
    width: 22px;
  }

.hf-visuals .th-ai-writing-check:nth-child(2) i {
    animation-delay: 0.2s;
  }

.hf-visuals .th-ai-writing-check:nth-child(3) i {
    animation-delay: 0.4s;
  }

.hf-visuals .th-ai-writing-check:nth-child(4) i {
    animation-delay: 0.6s;
  }

.hf-visuals .th-ai-writing-flow {
    height: 42px;
    position: relative;
  }

.hf-visuals .th-ai-writing-flow svg {
    display: block;
    height: 100%;
    overflow: visible;
    width: 100%;
  }

.hf-visuals .th-ai-writing-flow-path {
    animation: thAiWritingDash 4.2s linear infinite;
    fill: none;
    stroke: #b7c6dc;
    stroke-dasharray: 5 6;
    stroke-linecap: round;
    stroke-width: 1.5;
  }

.hf-visuals .th-ai-writing-flow-orb {
    align-items: center;
    animation: thAiWritingArrowPulse 2.8s ease-in-out infinite;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 999px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.12);
    color: #155eee;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: 4px;
    transform: translateX(-50%);
    width: 34px;
  }

.hf-visuals .th-ai-writing-flow-orb svg {
    height: 18px;
    width: 18px;
  }

.hf-visuals .th-ai-writing-flow-orb-favicon {
    display: none;
    height: 46px;
    object-fit: contain;
    width: 46px;
  }

.hf-visuals .th-ai-writing-flow-orb.has-favicon .th-ai-writing-flow-orb-favicon {
    display: block;
  }

.hf-visuals .th-ai-writing-flow-orb.has-favicon .th-ai-writing-flow-orb-fallback {
    display: none;
  }

.hf-visuals .th-ai-writing-results {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

@media (max-width: 900px) {
  .hf-visuals .th-ai-writing-results {
    grid-template-columns: 1fr;
  }

  .hf-visuals .th-ai-writing-flow {
    display: none;
  }

  .hf-visuals .th-showcase-copy {
    padding: 2rem 1.25rem 1.25rem;
  }
}

.hf-visuals .th-ai-writing-result-card {
    min-height: 235px;
    overflow: hidden;
    padding: 0.85rem;
  }

.hf-visuals .th-ai-writing-google-logo {
    display: inline-flex;
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: -0.08em;
    margin-bottom: 0.62rem;
  }

.hf-visuals .th-ai-writing-google-logo-img {
    display: block;
    height: 22px;
    margin-bottom: 0.62rem;
    object-fit: contain;
    width: auto;
  }

.hf-visuals .th-ai-writing-google-logo span:nth-child(1), .hf-visuals .th-ai-writing-google-logo span:nth-child(4) {
    color: #4285f4;
  }

.hf-visuals .th-ai-writing-google-logo span:nth-child(2), .hf-visuals .th-ai-writing-google-logo span:nth-child(6) {
    color: #ea4335;
  }

.hf-visuals .th-ai-writing-google-logo span:nth-child(3) {
    color: #fbbc05;
  }

.hf-visuals .th-ai-writing-google-logo span:nth-child(5) {
    color: #34a853;
  }

.hf-visuals .th-ai-writing-search {
    align-items: center;
    border: 1px solid #edf0f5;
    border-radius: 999px;
    color: #0f172a;
    display: flex;
    font-size: 0.56rem;
    gap: 0.5rem;
    justify-content: space-between;
    margin-bottom: 0.7rem;
    padding: 0.42rem 0.58rem;
  }

.hf-visuals .th-ai-writing-typewriter {
    min-height: 1.25em;
  }

.hf-visuals .th-ai-writing-typewriter::after {
    animation: thAiWritingCursor 0.8s steps(2, start) infinite;
    color: #155eee;
    content: "|";
    display: inline-block;
    font-weight: 500;
    margin-left: 2px;
  }

.hf-visuals .th-ai-writing-tabs {
    border-bottom: 1px solid #edf0f5;
    color: #334155;
    display: flex;
    font-size: 0.52rem;
    font-weight: 700;
    gap: 1rem;
    margin-bottom: 0.72rem;
  }

.hf-visuals .th-ai-writing-tabs span {
    padding-bottom: 0.48rem;
  }

.hf-visuals .th-ai-writing-tabs .is-active {
    color: #155eee;
    position: relative;
  }

.hf-visuals .th-ai-writing-tabs .is-active::after {
    background: #155eee;
    border-radius: 999px;
    bottom: -1px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
  }

.hf-visuals .th-ai-writing-serp {
    display: grid;
    gap: 0.48rem;
    grid-template-columns: auto 1fr auto;
  }

.hf-visuals .th-ai-writing-reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.38s ease, transform 0.38s ease;
  }

.hf-visuals .th-ai-writing-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

.hf-visuals .th-ai-writing-reveal--delay {
    transition-delay: 0.16s;
  }

.hf-visuals .th-ai-writing-reveal--late {
    transition-delay: 0.32s;
  }

.hf-visuals .th-ai-writing-serp-avatar {
    align-items: center;
    background: #eef6ff;
    border-radius: 999px;
    color: #155eee;
    display: inline-flex;
    font-size: 1.3rem !important;
    font-weight: 600;
    height: 30px;
    justify-content: center;
    width: 30px;
    text-align: center;
  }

.hf-visuals .th-ai-writing-serp strong {
    color: #155eee;
    display: block;
    font-size: 0.66rem;
    line-height: 1.2;
    margin-top: 0.34rem;
  }

.hf-visuals .th-ai-writing-serp span, .hf-visuals .th-ai-writing-serp p {
    color: #475569;
    display: block;
    font-size: 0.52rem;
    line-height: 1.35;
    margin: 0;
  }

.hf-visuals .th-ai-writing-result-badge {
    align-items: center;
    animation: thAiWritingBadge 3.6s ease-in-out infinite;
    background: var(--feature-prompt-bg);
    border-radius: 8px;
    color: var(--feature-prompt-accent);
    display: inline-flex;
    font-size: 0.58rem;
    font-weight: 600;
    gap: 0.38rem;
    margin-top: 2.2rem;
    padding: 0.42rem 0.56rem;
  }

.hf-visuals .th-ai-writing-ai-head {
    align-items: center;
    color: #0f172a;
    display: flex;
    font-size: 0.78rem;
    font-weight: 600;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
  }

.hf-visuals .th-ai-writing-ai-head img {
    height: 26px;
    width: 26px;
  }

.hf-visuals .th-ai-writing-prompt {
    background: var(--feature-seo-bg);
    border-radius: 7px;
    color: #0f172a;
    display: inline-flex;
    font-size: 0.54rem;
    font-weight: 700;
    margin: 0px 0px 5px 0px;
    padding: 0.42rem 0.58rem;
  }

.hf-visuals .th-ai-writing-answer {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 11px;
    padding: 0.64rem;
  }

.hf-visuals .th-ai-writing-answer p {
    color: #475569;
    font-size: 0.54rem;
    line-height: 1.36;
    margin: 0 0 0.5rem;
  }

.hf-visuals .th-ai-writing-answer-featured {
    animation: thAiWritingAnswerGlow 4s ease-in-out infinite;
    background: linear-gradient(90deg, color-mix(in srgb, var(--feature-prompt-accent) 14%, transparent), color-mix(in srgb, var(--feature-prompt-accent) 5%, transparent));
    border-radius: 9px;
    display: grid;
    gap: 0.45rem;
    grid-template-columns: auto 1fr auto;
    padding: 0.56rem;
  }

.hf-visuals .th-ai-writing-answer-rank {
    align-items: center;
    background: var(--feature-prompt-accent);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 1rem !important;
    font-weight: 600;
    height: 20px;
    justify-content: center;
    width: 20px;
    text-align: center;
  }

.hf-visuals .th-ai-writing-answer-featured strong {
    color: var(--feature-prompt-accent);
    display: block;
    font-size: 0.58rem;
    line-height: 1.2;
  }

.hf-visuals .th-ai-writing-answer-featured > span:not(.th-ai-writing-answer-rank):not(.th-ai-writing-recommended) {
    color: #475569;
    display: block;
    font-size: 0.52rem;
    line-height: 1.3;
    margin-top: 0.2rem;
  }

.hf-visuals .th-ai-writing-answer-featured > span:not(.th-ai-writing-answer-rank):not(.th-ai-writing-recommended) span {
    color: #475569;
    display: block;
    font-size: 0.52rem;
    line-height: 1.3;
    margin-top: 0.2rem;
  }

.hf-visuals .th-ai-writing-recommended {
    color: var(--feature-prompt-accent);
    font-size: 0.42rem;
    font-weight: 600;
  }

.hf-visuals .th-ai-writing-muted-lines {
    display: grid;
    gap: 0.42rem;
    margin: 0.54rem 0 0.62rem;
  }

.hf-visuals .th-ai-writing-muted-line {
    align-items: center;
    display: grid;
    gap: 0.46rem;
    grid-template-columns: auto 1fr;
  }

.hf-visuals .th-ai-writing-muted-line i {
    align-items: center;
    background: #edf0f5;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.42rem;
    font-style: normal;
    font-weight: 600;
    height: 14px;
    justify-content: center;
    width: 14px;
  }

.hf-visuals .th-ai-writing-muted-line span {
    background: #f1f4f9;
    border-radius: 999px;
    display: block;
    height: 7px;
    width: var(--line-width, 72%);
  }

.hf-visuals .th-ai-writing-ai-badge {
    align-items: center;
    animation: thAiWritingBadge 3.6s ease-in-out infinite;
    background: var(--feature-seo-bg);
    border-radius: 8px;
    color: var(--feature-seo-accent);
    display: inline-flex;
    font-size: 0.58rem;
    font-weight: 600;
    gap: 0.38rem;
    padding: 0.42rem 0.56rem;
    margin-top: 10px;
  }

@keyframes thAiWritingDash {
    to {
      stroke-dashoffset: -60;
    }
  }

@keyframes thAiWritingCheck {
    0%, 100% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.12);
    }
  }

@keyframes thAiWritingArrowPulse {
    0%, 100% {
      box-shadow: 0 12px 34px rgba(15, 23, 42, 0.12);
      transform: translateX(-50%) translateY(0);
    }

    50% {
      box-shadow: 0 16px 42px rgba(21, 94, 238, 0.18);
      transform: translateX(-50%) translateY(3px);
    }
  }

@keyframes thAiWritingAnswerGlow {
    0%, 100% {
      box-shadow: inset 0 0 0 rgba(32, 201, 151, 0);
    }

    50% {
      box-shadow: inset 0 0 28px rgba(32, 201, 151, 0.14);
    }
  }

@keyframes thAiWritingBadge {
    0%, 100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-2px);
    }
  }

@keyframes thAiWritingCursor {
    0%, 45% {
      opacity: 1;
    }

    46%, 100% {
      opacity: 0;
    }
  }
