/* Stack homepage overrides: hide unverifiable claims, swap residual brand art. */
@import url("/site/stack-homepage/icons/stack-icons.css");
/* Remove the supplied collaboration/achievements section in every layout. */
[data-testid="achievements"] { display: none !important; }
/* Remove only the teams navigation CTA; preserve the six interactive tabs. */
[data-testid="cu-home-teams-tab"] [class*="tabNavigationWrapper"] > a[class*="tabNavigationButton"] {
  display: none !important;
}
/* Remove the hero promo pill without changing React's hydrated markup. */
html[data-stack-homepage] [data-testid="gradient-pill"]:has([class*="PersonalSoftwarePromoPill_label"]) {
  display: none !important;
}
[class*="CuLogoMarquee"], [class*="CustomerLogos"], [class*="_logos__"]:has(img[src*="logos/"]),
img[src*="cert-"]:not([src*="/compliance/"]),
[class*="_disclaimer"], a[href*="forrester"]:not([class*="CuHomeImpact4o_"]),
[class*="g2Footnote"], [class*="_footnote__"]:has(sup) { display: none !important; }
svg:has(use[href*="icon-v3-ai-notetaker"]) use, svg:has(use[href*="icon-v3-rebase"]) use { display: none; }
svg:has(use[href*="icon-v3-ai-notetaker"]) { background: url("/site/stack-homepage/icons/ai-notetaker.svg") center / contain no-repeat; }
svg:has(use[href*="icon-v3-rebase"]) { background: url("/site/stack-homepage/icons/roadmaps.svg") center / contain no-repeat; }
img[src*="brain-2/brain.svg"] { content: url("/site/raydium-brand/mark-white.png"); object-fit: contain; }
img[src^="/site/stack-homepage/img/"] { object-fit: cover; }

/* Keep the animated logo-bar geometry without implying customer adoption. */
[data-testid="ui-logo-bar-v5"] [class*="_monochromeLogo_"] { position: relative; width: 100px; height: 24px; color: #646464; }
[data-testid="ui-logo-bar-v5"] [class*="_monochromeLogo_"] > svg { visibility: hidden; }
[data-testid="ui-logo-bar-v5"] [class*="_monochromeLogo_"]::after { position: absolute; inset: 0; display: grid; place-items: center; font: 600 14px/24px Inter, sans-serif; content: "Projects"; }
[data-testid="ui-logo-bar-v5"] li:nth-child(6n + 2) [class*="_monochromeLogo_"]::after { content: "Tasks"; }
[data-testid="ui-logo-bar-v5"] li:nth-child(6n + 3) [class*="_monochromeLogo_"]::after { content: "Planning"; }
[data-testid="ui-logo-bar-v5"] li:nth-child(6n + 4) [class*="_monochromeLogo_"]::after { content: "Space Chat"; }
[data-testid="ui-logo-bar-v5"] li:nth-child(6n + 5) [class*="_monochromeLogo_"]::after { content: "Boards"; }
[data-testid="ui-logo-bar-v5"] li:nth-child(6n + 6) [class*="_monochromeLogo_"]::after { content: "Calendar"; }

/* These original marks are SVG paths, rather than searchable text. Replace
   their presentation without changing React's rendered element tree. */
/* "Every project, connected": all pills are text-only. Even 8px gaps for
   their natural heights (32px, 40px active, 35px, 29px); the active pill is
   centred on the arrows. */
#stack-workspace [class*="EveryModelCardVisual_modelItem_"][data-slot="0"] { transform: translate(-50%, -1px); }
#stack-workspace [class*="EveryModelCardVisual_modelItem_"][data-slot="1"] { transform: translate(-50%, 39px); }
#stack-workspace [class*="EveryModelCardVisual_modelItem_"][data-slot="2"] { transform: translate(-50%, 87px); }
#stack-workspace [class*="EveryModelCardVisual_modelItem_"][data-slot="3"] { transform: translate(-50%, 130px); }
#stack-workspace [class*="EveryModelCardVisual_modelItem_"][data-slot="prep"] { transform: translate(-50%, 165px); }
/* Without icons, each pill's height followed its text, and line-height
   changes instantly while the font size animates, so pills jumped while
   rotating. Fix each slot's height and animate it with the movement. */
#stack-workspace [class*="EveryModelCardVisual_modelItem_"] {
  box-sizing: border-box; block-size: 29px;
  transition: transform .7s cubic-bezier(.22,1,.36,1), inline-size .7s cubic-bezier(.22,1,.36,1),
    block-size .7s cubic-bezier(.22,1,.36,1), padding .7s cubic-bezier(.22,1,.36,1),
    border-color .7s ease, opacity .7s ease, filter .7s ease;
}
#stack-workspace [class*="EveryModelCardVisual_modelItem_"][data-slot="0"] { block-size: 32px; }
#stack-workspace [class*="EveryModelCardVisual_modelItem_"][data-slot="1"] { block-size: 40px; }
#stack-workspace [class*="EveryModelCardVisual_modelItem_"][data-slot="2"] { block-size: 35px; }
#stack-workspace [class*="EveryModelCardVisual_modelItem_"][class*="EveryModelCardVisual_modelItemPrep_"] { transition: none; }
#stack-workspace [class*="EveryModelCardVisual_modelContent_"] { justify-content: center; }
#stack-workspace [class*="EveryModelCardVisual_modelName_"] { line-height: 1 !important; }
@media (prefers-reduced-motion: reduce) {
  #stack-workspace [class*="EveryModelCardVisual_modelItem_"] { transition: none; }
}
[class*="ConnectedAppsCardVisual_iconPill_"] > svg,
[class*="ConnectedAppsCardVisual_badgeLogo_"] > svg { visibility: hidden; }
[class*="ConnectedAppsCardVisual_iconPill_"] { background-position: center; background-repeat: no-repeat; background-size: 24px; }
[class*="ConnectedAppsCardVisual_iconTopLeft_"] { background-image: url("/site/stack-homepage/icons/tasks.svg"); }
[class*="ConnectedAppsCardVisual_iconTopRight_"] { background-image: url("/site/stack-homepage/icons/calendar.svg"); }
[class*="ConnectedAppsCardVisual_iconBottomLeft_"] { background-image: url("/site/stack-homepage/icons/chat.svg"); }
[class*="ConnectedAppsCardVisual_iconBottomRight_"] { background-image: url("/site/stack-homepage/icons/kanban-boards.svg"); }
[class*="ConnectedAppsCardVisual_badgeLogo_"] {
  background: url("/site/raydium-brand/mark-white.png") center / 70% auto no-repeat, linear-gradient(145deg, #a78bfa, #6039ed);
  border-radius: 12px;
}

.stack-notice-backdrop { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 24px;
  background: rgb(8 9 14 / .62); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s ease; }
.stack-notice-backdrop[data-open] { opacity: 1; }
.stack-notice { width: min(440px, 100%); padding: 28px; border-radius: 18px; color: #f5f5f5;
  font: 15px/1.55 "Inter Variable", Inter, ui-sans-serif, system-ui, sans-serif;
  background: radial-gradient(60% 50% at 100% 0, rgb(107 76 246 / .28), transparent 70%), #0e1016;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09), 0 30px 80px -20px rgb(0 0 0 / .7);
  transform: translateY(10px); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.stack-notice-backdrop[data-open] .stack-notice { transform: none; }
.stack-notice img { width: 30px; height: auto; margin-bottom: 14px; }
.stack-notice h2 { margin: 0 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.stack-notice p { margin: 0 0 20px; color: #a3a5ad; }
.stack-notice code { color: #c4b5fd; font-size: 13px; }
.stack-notice-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.stack-notice button { border: 0; cursor: pointer; border-radius: 999px; padding: 10px 18px; font: 600 14px/1 inherit; font-family: inherit; }
.stack-notice .primary { background: #d1d1d1; color: #0d0f13; }
.stack-notice .ghost { background: rgb(255 255 255 / .06); color: #f5f5f5; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }

/* Section 7: "Built for" audience chips (replace competitor logos) and row icons. */
.stack-built-for { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px;
  font: 500 12.5px/1 inherit; white-space: nowrap; color: #4b3fb0; background: #efecff; box-shadow: inset 0 0 0 1px #dcd5ff; }
[class*="CuHomeTeamsTab4o_replacesItem__"]:has(.stack-built-for) { width: auto; height: auto; background: none; border: 0; box-shadow: none; padding: 0; }
[class*="CuHomeTeamsTab4o_replacesList__"]:has(.stack-built-for) { flex-wrap: wrap; gap: 8px; }
[class*="CuHomeTeamsTab4o_tabCardFeatureIconWrapper__"] > img[src*="/stack-homepage/icons/"] {
  box-sizing: border-box; width: 100%; height: 100%; padding: 22%; border-radius: 12px; background: #f3f1ff; object-fit: contain; }

/* Raydium² lockup above “Your work, your way”. The original SVG element keeps
   its sizing, glow filter and position; only its artwork is swapped. */
[class*="HomeBrain2Section_brainLogo_"] > * { display: none; }
[class*="HomeBrain2Section_brainLogo_"] {
  aspect-ratio: 1539 / 488;
  background: url("/site/raydium-brand/lockup-squared.png?v=2") center / contain no-repeat;
}

/* Standalone marks in the Raydium² section use the gradient symbol. */
#stack-workspace img[src*="raydium-brand/mark-white.png"],
#stack-workspace img[src*="brain-2/brain.svg"] { content: url("/site/raydium-brand/mark-gradient.png"); object-fit: contain; }
#stack-workspace [class*="ConnectedAppsCardVisual_badgeLogo_"] {
  background: url("/site/raydium-brand/mark-gradient.png") center / 72% auto no-repeat, #16151d;
}

/* Connected workspaces: centre logo 8% smaller and slightly raised; the
   status badge is text-only and centred. */
#stack-workspace [class*="ConnectedAppsCardVisual_brainIcon_"] img {
  inline-size: 100% !important; block-size: 100% !important; object-fit: contain;
  transform: translateY(-9%) scale(.92);
}
#stack-workspace [class*="ConnectedAppsCardVisual_badgeLogo_"] { display: none !important; }
#stack-workspace [class*="ConnectedAppsCardVisual_badge_"] { justify-content: center; text-align: center; }

/* "Workspace Updated" badge: square gradient mark at its natural 1:1 ratio. */
#stack-workspace [class*="Brain2MemoryVisual_brainIcon_"] img {
  content: url("/site/raydium-brand/mark-square.png");
  inline-size: 18px !important; block-size: 18px !important; object-fit: contain;
}

/* Clarity card badge: the same square mark as "Workspace Updated", kept 1:1. */
#stack-workspace [class*="ContextCardVisual_brainIcon_"] img {
  content: url("/site/raydium-brand/mark-square.png");
  inline-size: 100% !important; block-size: 100% !important; object-fit: contain;
}

/* "Built for the people behind great work" is removed. Hidden rather than
   deleted so React's hydrated tree stays intact. */
[class*="CuHomeTeamsTab4o_wrapper"]:has([data-testid="cu-content-card-grid"]) { display: none !important; }

/* Hero demo: the Raydium² nav glyph uses the square gradient mark. */
[class*="WorkflowGlobalNav_glyph"] img[src*="brain.svg"] { content: url("/site/raydium-brand/mark-square.png"); object-fit: contain; }

/* "A better way for teams to work together" and its layered board scene are
   removed. Hidden so React's hydrated tree stays intact. */
[data-testid="lp4-agents-section"] { display: none !important; }

/* Replacement art for the Brain visual in the feature grid. The source image
   has the same aspect ratio as the original, so existing sizing stays intact. */
[data-testid="cu-wall-of-features"] picture:has(source[srcset*="feature-brain.avif"]) {
  display: block; background: url("/site/raydium-brand/workspace-search-last-week.png") center / 100% 100% no-repeat;
}
[data-testid="cu-wall-of-features"] picture:has(source[srcset*="feature-brain.avif"]) img { opacity: 0; }

/* Replace the symbol beside the feature-grid Brain caption, keeping its slot. */
[data-testid="cu-wall-of-features"] [class*="iconWrapper"] picture:has(img[alt="Brain"][src*="brain.svg"]) {
  display: block; background: url("/site/raydium-brand/feature-grid-mark.png") center / contain no-repeat;
}
[data-testid="cu-wall-of-features"] [class*="iconWrapper"] picture:has(img[alt="Brain"][src*="brain.svg"]) img { opacity: 0; }


/* Preserve the closing CTA's square and SVG dimensions while replacing its mark. */
[class*="Lp4AiCta_iconContainer"] > svg {
  background: url("/site/raydium-brand/cta-logo.webp") center / contain no-repeat;
}
[class*="Lp4AiCta_iconContainer"] > svg > * {
  visibility: hidden;
}

/* Show a matching first-frame poster while the animated hero demo hydrates. */
[data-testid^="home-hero-0926"] [class*="sceneWrap"] {
  background-image: url("/site/stack-homepage/img/hero-demo-poster.webp");
  background-position: center;
  background-size: cover;
}
@media (max-width: 760px) {
  [data-testid^="home-hero-0926"] [class*="sceneWrap"] {
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
  }
}
