/* ==========================================================================
   MyUP Agent
   1. Tokens & base       5. Hero & logos         9. Footer
   2. Typography          6. Feature grid         10. Text roll & reveal
   3. Buttons             7. Focus text           11. Responsive
   4. Navbar              8. Call to action
   ========================================================================== */

/* ==========================================================================
   1. Tokens & base
   ========================================================================== */
:root {
  --black: #000;
  --gray-02: #181818;
  --gray-03: #3a3a3a;
  --gray-05: #8f8f8f;
  --gray-06: #dfdfdf;
  --white: #fff;
  --orange: #db1e02;
  --light-gray: rgba(255, 255, 255, 0.5);

  --font: "Inter Tight", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1070px;
  --section-gap: 80px;
  --hero-top: 100px;
  --card-pad: 30px;
  --title-gap: 50px;
  --cta-height: 712px;
  --cta-bottom: 150px;

  --h1-size: 72px;
  --h1-spacing: -1.5px;
  --h2-size: 48px;
  --h5-size: 24px;
  --h6-size: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

p {
  color: var(--gray-05);
  line-height: 130%;
}

a {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
}

img {
  display: inline-block;
  max-width: 100%;
  border: 0;
  vertical-align: middle;
}

svg {
  display: block;
}

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.page-wrapper {
  position: relative;
  overflow-x: clip;
}

.container {
  flex: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

.container-large {
  position: relative;
  z-index: 50;
  width: 100%;
  height: 100%;
  margin-inline: auto;
}

.section {
  padding: var(--section-gap) 0;
}

/* ==========================================================================
   2. Typography
   ========================================================================== */
h1 {
  font-size: var(--h1-size);
  font-weight: 400;
  line-height: 115%;
  letter-spacing: var(--h1-spacing);
}

h2 {
  color: var(--white);
  font-size: var(--h2-size);
  font-weight: 400;
  line-height: 120%;
}

h3 {
  font-size: 36px;
  font-weight: 500;
  line-height: 110%;
}

.heading-h1 {
  color: var(--white);
  font-size: var(--h1-size);
  line-height: 115%;
  letter-spacing: var(--h1-spacing);
}

.heading-h1.align-center {
  max-width: 650px;
}

.heading-h2 {
  font-size: var(--h2-size);
  line-height: 120%;
}

.heading-h5 {
  color: var(--white);
  font-size: var(--h5-size);
  font-weight: 400;
  line-height: 110%;
}

.heading-h6 {
  font-size: var(--h6-size);
  font-weight: 400;
  line-height: 120%;
}

.white {
  color: var(--white);
}

.gray {
  color: var(--light-gray);
}

.medium {
  font-weight: 500;
}

.small-text {
  font-size: 14px;
}

.align-center {
  text-align: center;
}

.section-title-wrap {
  margin-bottom: var(--title-gap);
}

.section-title {
  max-width: 510px;
  margin-inline: auto;
  text-align: center;
}

.section-title.left {
  max-width: 600px;
  margin-left: 0;
  text-align: left;
}

.section-short-text {
  max-width: 484px;
  margin: 10px auto 16px;
  text-align: center;
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.primary-btn {
  --roll-color: var(--gray-02);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 34px;
  padding: 6px 8px 6px 12px;
  overflow: hidden;
  border-radius: 40px;
  background: var(--white);
  transition: background-color 0.3s;
}

.primary-btn:hover {
  background: #ececec;
}

.primary-text-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.black-button-text {
  color: var(--black);
  font-size: 16px;
  font-weight: 500;
  line-height: 130%;
  white-space: nowrap;
}

.btn-icon-list {
  position: relative;
  z-index: 2;
}

.btn-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #020512;
}

.button-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.45s var(--ease);
}

.button-icon.v2 {
  position: absolute;
  inset: 0;
  transform: translateX(-130%);
}

.primary-btn:hover .button-icon.v1 {
  transform: translateX(130%);
}

.primary-btn:hover .button-icon.v2 {
  transform: translateX(0);
}

/* Navbar button */
.primary-btn.is-nav {
  --roll-color: var(--white);
  padding-right: 12px;
  border-radius: 30px;
  background: var(--gray-03);
}

.primary-btn.is-nav:hover,
.primary-btn.is-light:hover {
  background: #4a4a4a;
}

.primary-btn.is-nav .black-button-text,
.primary-btn.is-light .black-button-text {
  color: var(--white);
}

/* "Learn more" */
.primary-btn.is-light {
  --roll-color: var(--white);
  padding-right: 12px;
  background: var(--gray-03);
  box-shadow: 0 0 0 0.9px #333;
}

.primary-btn.is-light .btn-icon-wrap {
  color: var(--white);
}

/* Big call-to-action button */
.primary-btn.is-cta {
  gap: 8px;
  padding: 12px 16px 12px 25px;
}

.primary-btn.is-cta .black-button-text {
  font-size: 30px;
}

.primary-btn.is-cta .button-icon {
  width: 32px;
  height: 32px;
}

/* ==========================================================================
   4. Navbar
   ========================================================================== */
.navber-block {
  position: sticky;
  top: 15px;
  z-index: 1000;
  height: 50px;
  margin-top: 16px;
}

/* "backwards" only: a lingering animation would stop the navbar's backdrop blur */
.js .navber-block {
  animation: nav-in 0.9s var(--ease) backwards;
}

@keyframes nav-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.navbar {
  position: relative;
  z-index: 99999;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 8px 6px 8px 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
}

.container-large.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
}

.brand-link {
  align-self: center;
  max-height: 18px;
}

.brand-link img {
  width: auto;
  height: 18px;
  max-height: 18px;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.navber-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-06);
  font-size: 16px;
  line-height: 130%;
  transition: color 0.4s;
}

.navber-link:hover,
.navber-link[aria-current="page"] {
  color: var(--white);
}

.navber-link.v1 {
  padding-inline: 12px;
  color: var(--white);
}

.nav-right-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nav-buttons-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Dropdown (desktop) */
.dropdown {
  position: relative;
  z-index: 1000;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  color: var(--gray-06);
}

.dropdown-icon {
  width: 10px;
  height: 0.375rem;
  transition: transform 0.3s var(--ease);
}

.dropdown-list {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  z-index: 1000;
  width: 383px;
  padding: 24px 24px 24px 20px;
  border-radius: 12px;
  background: var(--gray-02);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0.25s;
}

/* Bridges the gap between the toggle and the panel so hover is not lost */
.dropdown-list::before {
  content: "";
  position: absolute;
  inset: -22px 0 auto 0;
  height: 22px;
}

.dropdown.is-open .dropdown-list,
.dropdown:has(:focus-visible) .dropdown-list {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown.is-open .dropdown-icon,
.dropdown:has(:focus-visible) .dropdown-icon {
  transform: rotate(180deg);
}

@media (hover: hover) {
  .dropdown:hover .dropdown-list {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
  }

  .dropdown:hover .dropdown-toggle .navber-link {
    color: var(--white);
  }
}

.dropdown-links-wrapper,
.dropdown-links {
  display: flex;
  flex-direction: column;
}

.dropdown-links-wrapper,
.dropdown-links {
  gap: 20px;
}

.nav-heading {
  color: var(--gray-05);
  font-size: 14px;
}

.dropdown-wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.dropdown-svg {
  flex: none;
  width: 24px;
  height: 24px;
}

.dropdown-svg path {
  transition: fill 0.3s;
}

.dropdown-wrap:hover .dropdown-svg path {
  fill: var(--white);
}

.inner-drop-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Mobile / tablet menu */
.menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
}

.hamburger-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  min-height: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}

.hamburger-line.middle {
  margin-block: 0.4rem;
}

.menu[aria-expanded="true"] .hamburger-line.top {
  transform: translateY(0.65rem) rotate(45deg);
}

.menu[aria-expanded="true"] .hamburger-line.middle {
  opacity: 0;
}

.menu[aria-expanded="true"] .hamburger-line.bottom {
  transform: translateY(-0.65rem) rotate(-45deg);
}

.tab-menus {
  display: none;
}

.pages-items {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.dropdown-header {
  flex: none;
  width: 100%;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-03);
  color: var(--gray-05);
}

.nav-items {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.nav-pages {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.navber-link.mob {
  height: auto;
  color: var(--gray-05);
}

/* ==========================================================================
   5. Hero & logos
   ========================================================================== */
.banner-section {
  position: relative;
  z-index: 1;
  padding-top: var(--hero-top);
}

.banner-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  max-width: 750px;
  margin-inline: auto;
}

.banner-wrapper.ai {
  max-width: 770px;
}

myup-mascot.home-hero-mascot {
  font-size: 1em;
  vertical-align: -0.1em;
  margin-inline: 0.04em;
}

myup-mascot.home-hero-mascot:not(:defined) {
  display: none;
}

.section-tag-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--gray-02);
  border-radius: 20px;
}

.tag-icon {
  width: 20px;
  height: 20px;
}

.arrow-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--orange);
}

.arrow-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--ease);
}

.section-tag-wrap:hover .arrow-icon {
  transform: translateX(2px);
}

.section-button-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logo-section {
  padding-top: 40px;
}

.brand-logo-wrap {
  display: flex;
  flex-flow: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 30px 60px;
  max-width: 921px;
  margin: 40px auto 0;
}

.brand-logo-wrap.v2 {
  display: none;
}

.brand-logo {
  width: auto;
  height: 24px;
  opacity: 0.4;
}

/* ==========================================================================
   6. Feature grid
   ========================================================================== */
.feature-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--gray-02);
  border-left: 1px solid var(--gray-02);
}

.single-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: var(--card-pad);
  border-right: 1px solid var(--gray-02);
  border-bottom: 1px solid var(--gray-02);
}

.single-feature.is-flush {
  padding-bottom: 0;
}

.single-feature.flex {
  gap: 14px;
}

/* Row under the screenshots: hides the 70px of image that overflow the card */
.single-feature.is-cover {
  z-index: -1;
  background: var(--black);
}

.single-feature.is-compact {
  padding: 24px;
}

/* Corner dots */
.main-box {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.dot {
  position: absolute;
  z-index: 10;
  width: 11px;
  height: 11px;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: var(--gray-02);
}

.dot.v1 {
  top: -5.5px;
  left: -5.5px;
}

.dot.v2 {
  top: -5.5px;
  right: -5.5px;
}

.dot.v3 {
  bottom: -5.5px;
  left: -5.5px;
}

.dot.v4 {
  right: -5.5px;
  bottom: -5.5px;
}

.feature-short {
  margin-bottom: 12px;
}

.feature-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  object-fit: contain;
}

.feature-short-text {
  max-width: 320px;
}

.overview-insight {
  position: relative;
  z-index: -2;
  width: 100%;
  padding: 20px 12px 0;
  margin-bottom: -70px;
}

.toolkit-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.abs-image {
  position: absolute;
  inset: -20px 0 auto 50%;
  z-index: -1;
  width: 100%;
  height: 100%;
  max-height: 165px;
  object-fit: contain;
  transform: translateX(-50%);
}

/* ==========================================================================
   7. Focus text
   ========================================================================== */
.focus-text-wrap {
  position: relative;
  max-width: 690px;
  padding-block: 10px;
  margin-inline: auto;
  overflow: hidden;
}

.heading-h2.focus-text {
  margin-inline: auto;
  text-align: center;
}

/* Words sharpen one after another while scrolling (see js/main.js) */
.js .focus-text .word-inner {
  opacity: 0.55;
  filter: blur(7px);
  transition: filter 0.6s var(--ease), opacity 0.6s var(--ease);
}

.js .focus-text .word-inner.is-lit {
  opacity: 1;
  filter: blur(0);
}

/* ==========================================================================
   8. Call to action
   ========================================================================== */
.cta-section {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: var(--cta-height);
  padding-bottom: var(--cta-bottom);
  background-image: url("https://beta.myup.ai/uploads/theme-assets/home/AGENT-TEMPLATE/images/cta-text.webp");
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: contain;
}

.cta-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

/* One line under the closing title that invites a team or a single person to get in touch. */
.cta-sub {
  max-width: 520px;
  margin: -12px 0 0;
  color: var(--white);
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}

.button-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
.footer-section {
  padding-top: 80px;
  overflow: hidden;
}

.footer-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-left-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 104px;
}

.footer-left-wrap img {
  width: 100%;
  height: auto;
}

.footer-right-wrap {
  display: flex;
  flex-direction: column;
  gap: 80px;
  width: 100%;
  max-width: 690px;
}

.footer-menu {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-items: start;
  gap: 70px;
}

.footer-item-title {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 14px;
}

.footer-link-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.footer-link {
  --roll-color: var(--white);
  overflow: hidden;
  color: var(--gray-05);
  font-size: 14px;
  transition: color 0.4s;
}

.footer-link:hover,
.footer-link[aria-current="page"] {
  color: var(--white);
}

.public-language-switcher {
  margin-top: 24px;
}

.public-language-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.public-language-link {
  color: var(--gray-05);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.public-language-link:hover,
.public-language-link[aria-current="true"] {
  color: var(--white);
}

.public-language-link:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.footer-menu-copytext-block {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  margin-bottom: 20px;
}

.copyright-text {
  color: var(--gray-05);
}

/* ==========================================================================
   10. Text roll & reveal animations (activated by js/main.js)
   ========================================================================== */
.roll {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.roll-text {
  position: relative;
  display: block;
  transition: transform 0.45s var(--ease);
}

.roll-text::after {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 0;
  color: var(--roll-color, var(--white));
  white-space: nowrap;
}

:is(a, button):hover .roll-text {
  transform: translateY(-100%);
}

.js [data-reveal="up"],
.js [data-reveal="group"] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.js [data-reveal="up"].is-visible,
.js [data-reveal="group"].is-visible > * {
  opacity: 1;
  transform: none;
}

/* Cover cards keep their black background visible; only their content fades in */
.js .single-feature.is-cover[data-reveal="up"] {
  opacity: 1;
  transform: none;
}

.js .single-feature.is-cover[data-reveal="up"] > :not(.main-box) {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .single-feature.is-cover[data-reveal="up"].is-visible > :not(.main-box) {
  opacity: 1;
  transform: none;
}

.word,
.word-inner {
  display: inline-block;
}

.js [data-reveal="title"] .word {
  margin-bottom: -0.14em;
  padding-bottom: 0.14em;
  overflow: hidden;
  vertical-align: top;
}

.js [data-reveal="title"] .word-inner {
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms);
}

.js [data-reveal="title"].is-visible .word-inner {
  transform: none;
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media screen and (max-width: 991px) {
  :root {
    --container: 890px;
    --section-gap: 60px;
    --hero-top: 80px;
    --card-pad: 25px;
    --title-gap: 40px;
    --cta-height: 500px;
    --cta-bottom: 100px;
    --h1-size: 60px;
    --h1-spacing: -1.25px;
    --h2-size: 40px;
    --h5-size: 22px;
    --h6-size: 18px;
  }

  h3 {
    font-size: 32px;
  }

  .navber-block {
    margin-top: 16px;
  }

  .navbar {
    max-width: 90%;
    padding: 10px 12px;
  }

  .container-large.nav {
    z-index: 1100;
  }

  .menu {
    display: flex;
  }

  .nav-buttons-wrap,
  .dropdown {
    display: none;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding-top: 4px;
  }

  .navbar.is-open .nav-menu {
    display: block;
  }

  .nav-menu > .navber-link:not(.v1) {
    display: none;
  }

  .tab-menus {
    position: relative;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    align-items: flex-start;
    gap: 2.5rem 6.5rem;
    width: 100%;
    padding: 2rem 1.5rem 2.5rem;
    overflow: clip;
    border-radius: 12px;
    background: var(--gray-02);
  }

  .footer-wrap {
    flex-direction: column;
  }

  .footer-menu {
    column-gap: 20px;
  }

  .footer-left-wrap {
    align-items: center;
    align-self: flex-start;
  }

  .footer-menu-copytext-block {
    padding-top: 60px;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --container: 650px;
    --section-gap: 50px;
    --hero-top: 60px;
    --card-pad: 20px;
    --title-gap: 35px;
    --cta-height: 400px;
    --cta-bottom: 70px;
    --h1-size: 46px;
    --h1-spacing: -1px;
    --h2-size: 36px;
    --h5-size: 20px;
  }

  h3 {
    font-size: 28px;
  }

  .heading-h1.align-center {
    max-width: 400px;
  }

  .tab-menus {
    padding-inline: 1rem;
  }

  .nav-items {
    gap: 3.75rem;
  }

  .footer-menu {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px 10px;
  }

  .footer-menu-copytext-block {
    gap: 12px;
  }
}

@media screen and (max-width: 479px) {
  :root {
    --container: 100%;
    --section-gap: 40px;
    --hero-top: 80px;
    --card-pad: 20px;
    --title-gap: 30px;
    --cta-height: 300px;
    --cta-bottom: 60px;
    --h1-size: 36px;
    --h1-spacing: -0.75px;
    --h2-size: 32px;
    --h6-size: 18px;
  }

  h3 {
    font-size: 26px;
  }

  .section {
    padding-top: 20px;
  }

  .banner-section {
    padding-top: var(--hero-top);
  }

  .logo-section {
    padding-top: 25px;
    overflow: hidden;
  }

  .navbar {
    padding-block: 10px;
  }

  .tab-menus {
    grid-template-columns: 1fr;
    gap: 3.75rem;
    padding-inline: 1.5rem;
  }

  .nav-items {
    gap: 3.75rem;
  }

  .feature-wrapper {
    grid-template-columns: 1fr;
  }

  .overview-insight {
    margin-bottom: 0;
  }

  .footer-menu {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .footer-menu-copytext-block {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Static logo row becomes an endless marquee */
  .brand-logo-wrap:not(.v2) {
    display: none;
  }

  .brand-logo-wrap.v2 {
    display: flex;
    flex: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 40px;
    width: max-content;
    min-width: 100%;
    max-width: none;
    padding-right: 40px;
  }

  .js .brand-logo-wrap.v2 {
    animation: marquee 28s linear infinite;
  }

  .logo-slider {
    display: flex;
    overflow: hidden;
  }

  .brand-logo {
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal="up"],
  .js [data-reveal="group"] > *,
  .js [data-reveal="title"] .word-inner {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   12. Image-led Agent layout
   ========================================================================== */
.agent-visual-grid,
.agent-pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--gray-02);
  border-left: 1px solid var(--gray-02);
}

.agent-visual-card,
.agent-pair-copy,
.agent-pair-media {
  min-width: 0;
  border-right: 1px solid var(--gray-02);
  border-bottom: 1px solid var(--gray-02);
}

.agent-visual-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #050505;
}

.agent-visual-media,
.agent-pair-media,
.agent-tab-media {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000000;
}

.agent-visual-media {
  position: relative;
  aspect-ratio: 960 / 720;
  height: auto;
  padding: 16px 16px 0;
  background: #000000;
}

.agent-visual-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

myup-mascot.agent-visual-mascot {
  position: absolute;
  inset-inline-start: clamp(16px, 6%, 32px);
  inset-block-end: clamp(12px, 5%, 22px);
  z-index: 1;
  font-size: clamp(36px, 4.7vw, 58px);
  pointer-events: none;
}

/* Feature actions use the existing mascot props, with a different rhythm per card. */
.agent-visual-mascot[behavior="work-batch-sort"] .mm-fx-belt {
  left: -.22em;
  right: -.46em;
  bottom: -.2em;
  height: .29em;
}

.agent-visual-mascot[behavior="work-batch-sort"] .mm-fx-belt::before {
  bottom: .025em;
  height: .018em;
  background: #55585e;
}

.agent-visual-mascot[behavior="work-batch-sort"] .mm-fx-belt i {
  left: 0;
  bottom: .055em;
  width: .3em;
  height: .21em;
  border: .016em solid #aeb1b8;
  border-radius: .035em;
  background: #25272d;
  animation: feature-film-flow 3s linear infinite;
}

.agent-visual-mascot[behavior="work-batch-sort"] .mm-fx-belt i::after {
  content: "";
  position: absolute;
  left: .108em;
  top: .05em;
  width: .075em;
  height: .085em;
  background: #f4f4f5;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.agent-visual-mascot[behavior="work-batch-sort"] .mm-fx-belt i:nth-child(2) { animation-delay: -1s; }
.agent-visual-mascot[behavior="work-batch-sort"] .mm-fx-belt i:nth-child(3) { animation-delay: -2s; }

.agent-visual-mascot[behavior="work-batch-sort"] .mm-fx-check {
  left: .92em;
  top: -.08em;
  width: .27em;
  height: .27em;
  border: .014em solid #d8d9dd;
  background: #22252a;
  box-shadow: 0 .025em .08em #0008;
  animation: feature-check-beat 1s ease-in-out infinite;
}

.agent-visual-mascot[behavior="work-batch-sort"] .mm-fx-check::after {
  left: .078em;
  top: .038em;
  width: .06em;
  height: .12em;
  border-width: 0 .025em .025em 0;
}

.agent-visual-mascot[behavior="work-motion-morph"] .mm-fx-shapes {
  inset: -.12em auto auto .75em;
  width: 1.1em;
  height: 1.05em;
}

.agent-visual-mascot[behavior="work-motion-morph"] .mm-fx-shapes i.orb {
  animation: none;
}

.agent-visual-mascot[behavior="work-motion-morph"] .mm-fx-shapes .orb > b {
  inset: 50% auto auto 50%;
  width: .36em;
  height: .44em;
  margin: 0;
  border: .016em solid #d8d9dd;
  border-radius: .045em;
  clip-path: none;
  box-shadow: 0 .035em .07em #0009;
  transform-origin: 50% 80%;
  transform: translate(-50%, -50%) translate(var(--fan-x), var(--fan-y)) rotate(var(--fan-r));
  animation: feature-output-stack 3.4s ease-in-out infinite;
}

.agent-visual-mascot[behavior="work-motion-morph"] .mm-fx-shapes b.c {
  --fan-x: -.28em; --fan-y: .02em; --fan-r: -18deg;
  --stack-x: .04em; --stack-y: .05em; --stack-r: -3deg;
  z-index: 1;
  background: #ececef;
}

.agent-visual-mascot[behavior="work-motion-morph"] .mm-fx-shapes b.c::before {
  content: "";
  position: absolute;
  inset: .08em .06em;
  background: repeating-linear-gradient(to bottom, #777b83 0 .018em, transparent .018em .065em);
}

.agent-visual-mascot[behavior="work-motion-morph"] .mm-fx-shapes b.s {
  --fan-x: 0em; --fan-y: -.18em; --fan-r: 0deg;
  --stack-x: .02em; --stack-y: .025em; --stack-r: 0deg;
  z-index: 2;
  background: #c9cbd1;
}

.agent-visual-mascot[behavior="work-motion-morph"] .mm-fx-shapes b.s::before {
  content: "";
  position: absolute;
  inset: .13em .04em .07em;
  background: #666b75;
  clip-path: polygon(0 100%, 36% 18%, 57% 60%, 75% 36%, 100% 100%);
}

.agent-visual-mascot[behavior="work-motion-morph"] .mm-fx-shapes b.s::after {
  content: "";
  position: absolute;
  left: .075em;
  top: .075em;
  width: .06em;
  height: .06em;
  border-radius: 50%;
  background: #fff;
}

.agent-visual-mascot[behavior="work-motion-morph"] .mm-fx-shapes b.t {
  --fan-x: .28em; --fan-y: .02em; --fan-r: 18deg;
  --stack-x: 0em; --stack-y: 0em; --stack-r: 3deg;
  z-index: 3;
  background: #24272d;
}

.agent-visual-mascot[behavior="work-motion-morph"] .mm-fx-shapes b.t::before {
  content: "";
  position: absolute;
  inset: .035em;
  background: repeating-linear-gradient(90deg, #8b8f97 0 .025em, transparent .025em .06em) top / 100% .025em no-repeat,
    repeating-linear-gradient(90deg, #8b8f97 0 .025em, transparent .025em .06em) bottom / 100% .025em no-repeat;
}

.agent-visual-mascot[behavior="work-motion-morph"] .mm-fx-shapes b.t::after {
  content: "";
  position: absolute;
  left: .13em;
  top: .14em;
  width: .11em;
  height: .13em;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

@keyframes feature-film-flow {
  from { transform: translateX(-.34em); }
  to { transform: translateX(1.68em); }
}

@keyframes feature-check-beat {
  0%, 70%, 100% { transform: scale(1); }
  35% { transform: scale(1.16); }
}

@keyframes feature-output-stack {
  0%, 16%, 80%, 100% {
    transform: translate(-50%, -50%) translate(var(--fan-x), var(--fan-y)) rotate(var(--fan-r));
  }
  43%, 55% {
    transform: translate(-50%, -50%) translate(var(--stack-x), var(--stack-y)) rotate(var(--stack-r));
  }
}

.agent-visual-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 30px;
}

.agent-visual-copy .feature-short,
.agent-pair-copy .feature-short,
.agent-tab-copy .feature-short {
  margin: 0;
}

.agent-visual-copy .primary-btn {
  margin-top: auto;
}

.agent-visual-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  min-height: 360px;
}

.agent-visual-card-wide .agent-visual-media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 360px;
  padding: 30px;
}

.agent-visual-card-wide .agent-visual-media img {
  object-fit: contain;
}

.agent-visual-card-wide .agent-visual-copy {
  justify-content: center;
  padding: 48px;
}

.agent-pair-copy,
.agent-pair-media {
  min-height: 350px;
}

.agent-pair-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 40px;
}

.agent-pair-copy .feature-short {
  max-width: 410px;
}

/* Input and output chips under each pair of copy: dark, flat, no colour. */
.agent-chips {
  display: flex;
  max-width: 100%;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.agent-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.agent-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 40px;
  background: rgba(255, 255, 255, .07);
  color: #b4b4b9;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.agent-chip.is-strong {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.agent-chip svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.agent-chip-arrow {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: #6e6e73;
}

/* One dark panel per box, same look as the approval plan: gradient, no border, no colour. */
.vz {
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  background: linear-gradient(155deg, #2b2b2e 0%, #161618 46%, #080809 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  cursor: default;
  user-select: none;
}

.vz-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.vz-in {
  transition: opacity .55s ease, transform .6s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .agent-pair-media:not(.is-visible) .vz-in,
.js .agent-visual-card:not(.is-visible) .vz-in {
  opacity: 0;
  transform: translateY(10px);
}

.vz img {
  max-height: none;
  object-position: center;
}

.vz-send {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #000;
}

.vz-send svg {
  width: 13px;
  height: 13px;
}

/* John stands in front of the message bar, like in the app. */
.vz-mascot {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  margin-left: -6px;
}

/* Box 1: talk to your agent */
.vz-msg {
  display: flex;
  max-width: 90%;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  color: #f1f1f2;
  font-size: 13.5px;
  line-height: 1.35;
}

.vz-msg-user {
  justify-self: end;
  border-bottom-right-radius: 6px;
  background: rgba(255, 255, 255, .12);
}

.vz-msg-agent {
  flex-wrap: wrap;
  justify-self: start;
  border-bottom-left-radius: 6px;
  background: rgba(255, 255, 255, .05);
  color: #d6d6d9;
}

.vz-opts {
  display: flex;
  width: 100%;
  gap: 6px;
}

.vz-opt {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 40px;
  background: rgba(255, 255, 255, .1);
  color: #d6d6d9;
  font-size: 12.5px;
  font-weight: 500;
}

.vz-opt.is-on {
  background: #fff;
  color: #000;
}

.vz-input {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 6px 0 14px;
  border-radius: 40px;
  background: rgba(255, 255, 255, .07);
  color: #8e8e93;
  font-size: 13px;
}

.vz-input-text {
  flex: 1;
}

.vz-input > svg {
  width: 15px;
  height: 15px;
}

/* Photo tiles of the workspace panel. */
.vz-art {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #222;
}

.vz .vz-art-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Feature cards 1 and 2: a dark panel above the mascot, same look as the other panels. */
.agent-visual-media.is-panel {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  padding: 24px 16px 84px;
}

.vz-method,
.vz-board {
  max-width: 420px;
}

.vz-m-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vz-m-title b {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.15;
}

.vz-m-title em {
  display: block;
  margin-top: 3px;
  color: #8e8e93;
  font-size: 12px;
  font-style: normal;
  line-height: 1.2;
}

.vz-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 40px;
  background: rgba(255, 255, 255, .1);
  color: #e9e9eb;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.vz-label {
  color: #8e8e93;
  font-size: 12px;
  line-height: 1;
}

.vz-runs {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vz-run {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
}

.vz .vz-run-img {
  display: block;
  width: 48px;
  height: 36px;
  border-radius: 7px;
  object-fit: cover;
}

.vz-run-name {
  min-width: 0;
}

.vz-run-name b {
  display: block;
  color: #f4f4f5;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.vz-run-name em {
  display: block;
  margin-top: 4px;
  color: #98989d;
  font-size: 12px;
  font-style: normal;
  line-height: 1;
}

.vz-run-states {
  display: grid;
}

.vz-run-state {
  display: inline-flex;
  grid-area: 1 / 1;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: #c8c8cc;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.vz-run-state svg {
  width: 13px;
  height: 13px;
  color: #fff;
}

.vz-run-state.is-run i,
.vz-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: agentPlanPulse 1.2s ease-in-out infinite;
}

.vz-run.is-running .is-done {
  opacity: 0;
}

.vz-run-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .35), #fff);
  transform: scaleX(.55);
  transform-origin: left;
}

/* The third brief runs, then shows Done. It plays once the card is on screen. */
.agent-visual-card.is-visible .vz-method .vz-run-bar,
.agent-pair-media.is-visible .vz-method .vz-run-bar { animation: vzBar 8s infinite both; }
.agent-visual-card.is-visible .vz-method .is-running .is-run,
.agent-pair-media.is-visible .vz-method .is-running .is-run { animation: vzRunning 8s infinite both; }
.agent-visual-card.is-visible .vz-method .is-running .is-done,
.agent-pair-media.is-visible .vz-method .is-running .is-done { animation: vzRunDone 8s infinite both; }

@keyframes vzBar {
  0% { opacity: 1; transform: scaleX(.06); }
  68% { opacity: 1; transform: scaleX(1); }
  74%, 96% { opacity: 0; transform: scaleX(1); }
  96.1% { opacity: 0; transform: scaleX(.06); }
  100% { opacity: 1; transform: scaleX(.06); }
}

@keyframes vzRunning { 0%, 66% { opacity: 1; } 72%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes vzRunDone { 0%, 70% { opacity: 0; } 76%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }

.vz-b-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 8px;
}

.vz-proj {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.vz-proj-name {
  overflow: hidden;
  color: #d6d6d9;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vz-status {
  position: absolute;
  bottom: 6px;
  left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 40px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

.vz-status svg {
  width: 10px;
  height: 10px;
}

.vz-status i {
  width: 5px;
  height: 5px;
}

.vz-art-new {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .06);
  color: #a3a3a8;
}

.vz-art-new svg {
  width: 20px;
  height: 20px;
}

@media screen and (max-width: 479px) {
  .agent-visual-media.is-panel {
    height: auto;
    padding: 18px 14px 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vz-in {
    transition: none;
  }

  .agent-pair-media.is-visible .vz-method *,
  .agent-visual-card.is-visible .vz-method *,
  .vz-status i {
    animation: none !important;
  }
}

.agent-pair-media {
  padding: 28px;
}

.agent-pair-media img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.agent-tabs-sticky {
  position: sticky;
  top: 12px;
  z-index: 20;
  padding-bottom: 0;
  background: var(--black);
}

.agent-tabs-sticky .focus-text-wrap {
  margin-bottom: var(--title-gap);
}

.agent-tab-list {
  display: grid;
  grid-template-columns: repeat(var(--tabs, 4), minmax(0, 1fr));
  border-top: 1px solid var(--gray-02);
  border-left: 1px solid var(--gray-02);
}

.agent-tab-button {
  min-width: 0;
  min-height: 76px;
  padding: 18px 22px;
  border-right: 1px solid var(--gray-02);
  border-bottom: 1px solid var(--gray-02);
  color: var(--gray-05);
  font-size: 16px;
  line-height: 1.25;
  text-align: left;
  transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.agent-tab-button:hover,
.agent-tab-button[aria-selected="true"] {
  color: var(--white);
  background: var(--gray-02);
}

.agent-tab-button[aria-selected="true"] {
  box-shadow: inset 0 2px #38bdf8;
}

.agent-tab-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 430px;
  border-right: 1px solid var(--gray-02);
  border-bottom: 1px solid var(--gray-02);
  border-left: 1px solid var(--gray-02);
}

.agent-tab-panel[hidden] {
  display: none;
}

.agent-tab-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 44px;
}

.agent-tab-media {
  padding: 30px;
  border-left: 1px solid var(--gray-02);
}

.agent-tab-media img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

@media screen and (max-width: 767px) {
  .agent-visual-grid,
  .agent-pair-grid,
  .agent-tab-panel {
    grid-template-columns: 1fr;
  }

  .agent-visual-card-wide {
    grid-column: auto;
    display: flex;
  }

  .agent-visual-card-wide .agent-visual-media {
    height: 290px;
    min-height: 0;
  }

  .agent-visual-card-wide .agent-visual-copy {
    padding: 30px;
  }

  .agent-pair-copy {
    min-height: 230px;
  }

  .agent-pair-media {
    min-height: 290px;
  }

  .agent-tabs-sticky {
    position: static;
  }

  .agent-tab-list {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .agent-tab-button {
    flex: 0 0 205px;
    min-height: 66px;
  }

  .agent-tab-copy {
    min-height: 210px;
  }

  .agent-tab-media {
    min-height: 300px;
    border-top: 1px solid var(--gray-02);
    border-left: 0;
  }
}

@media screen and (max-width: 479px) {
  .agent-visual-media,
  .agent-visual-card-wide .agent-visual-media {
    height: 225px;
    padding: 14px 14px 0;
  }

  .agent-visual-copy,
  .agent-visual-card-wide .agent-visual-copy,
  .agent-pair-copy,
  .agent-tab-copy {
    padding: 24px;
  }

  .agent-pair-media,
  .agent-tab-media {
    min-height: 240px;
    padding: 18px;
  }

  .agent-tab-button {
    flex-basis: 175px;
    padding: 16px;
  }
}

/* The approval card shows one moment: a plan that waits for you, then runs once you approve it.
   The provider strip after the card follows the Creators marquee. */
.agent-approval-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #050505;
}

.agent-approval-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  min-width: 0;
}

.agent-approval-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 40px 32px;
  overflow: hidden;
  background: #000;
}

/* A compact plan: dark gradient, no border, no colour. */
.agent-plan {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  background: linear-gradient(155deg, #2b2b2e 0%, #161618 46%, #080809 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  cursor: default;
  user-select: none;
}

/* One word per state. The plan starts on "wait": the message of the card. */
.agent-plan .is-wait,
.agent-plan .is-run,
.agent-plan .is-done,
.agent-plan .is-sent {
  opacity: 0;
  transition: opacity .3s ease;
}

.agent-plan[data-state="wait"] .is-wait,
.agent-plan[data-state="run"] .is-run,
.agent-plan[data-state="done"] .is-done,
.agent-plan[data-state="run"] .is-sent,
.agent-plan[data-state="done"] .is-sent {
  opacity: 1;
}

.agent-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
}

.agent-plan-title {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.15;
}

.agent-plan-sub {
  display: block;
  margin-top: 3px;
  color: #8e8e93;
  font-size: 12px;
  line-height: 1.2;
}

.agent-plan-pill {
  display: grid;
  flex: 0 0 auto;
}

.agent-plan-pill-state {
  display: inline-flex;
  grid-area: 1 / 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 40px;
  background: rgba(255, 255, 255, .1);
  color: #e9e9eb;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.agent-plan-pill-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.agent-plan-pill-state svg {
  width: 10px;
  height: 10px;
}

.agent-plan-pill-state.is-wait i {
  animation: agentPlanPulse 1.8s ease-in-out infinite;
}

.agent-plan-pill-state.is-run {
  background: rgba(255, 255, 255, .16);
}

.agent-plan-pill-state.is-run i {
  animation: agentPlanPulse 1s ease-in-out infinite;
}

.agent-plan-pill-state.is-done {
  background: #fff;
  color: #000;
}

@keyframes agentPlanPulse {
  50% { opacity: .3; }
}

.agent-plan-steps {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 10px;
  list-style: none;
}

.agent-plan-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
}

.agent-plan-thumb {
  display: block;
  width: 48px;
  height: 36px;
  border-radius: 7px;
  background: #222;
  object-fit: cover;
}

.agent-plan-step-text {
  min-width: 0;
}

.agent-plan-step-text strong {
  display: block;
  color: #f4f4f5;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.agent-plan-model {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: #98989d;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.agent-plan-model svg {
  width: 9px;
  height: 9px;
  opacity: .8;
}

.agent-plan-model-logo {
  width: 12px;
  height: 12px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .85;
}

.agent-plan-status {
  position: relative;
  width: 20px;
  height: 20px;
}

.agent-plan-ring,
.agent-plan-tick {
  position: absolute;
  transition: opacity .25s ease, transform .35s var(--ease);
}

.agent-plan-ring {
  inset: 2px;
  border: 1.5px solid #5a5a5f;
  border-radius: 50%;
}

.agent-plan-tick {
  inset: 0;
  width: 20px;
  height: 20px;
  color: #fff;
  opacity: 0;
  transform: scale(.55);
}

.agent-plan-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .35), #fff);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}

/* Approved: each step ticks off in turn. */
.agent-plan[data-state="run"] .agent-plan-ring,
.agent-plan[data-state="done"] .agent-plan-ring {
  opacity: 0;
  transition-delay: calc(var(--i) * .65s + .7s);
}

.agent-plan[data-state="run"] .agent-plan-tick,
.agent-plan[data-state="done"] .agent-plan-tick {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * .65s + .7s);
}

.agent-plan[data-state="run"] .agent-plan-bar,
.agent-plan[data-state="done"] .agent-plan-bar {
  animation: agentPlanBar .75s ease-out both;
  animation-delay: calc(var(--i) * .65s + .15s);
}

@keyframes agentPlanBar {
  0% { opacity: 0; transform: scaleX(0); }
  15% { opacity: 1; }
  80% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

.agent-plan-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 16px;
}

.agent-plan-note {
  display: grid;
  color: #98989d;
  font-size: 12px;
  line-height: 1.2;
}

.agent-plan-note > span {
  grid-area: 1 / 1;
  white-space: nowrap;
}

.agent-plan-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.agent-plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.agent-plan-btn.is-ghost {
  background: rgba(255, 255, 255, .08);
  color: #e8e8ea;
}

.agent-plan-btn.is-primary {
  display: grid;
  background: #fff;
  color: #000;
  font-weight: 600;
  transition: transform .18s ease, background-color .3s ease, color .3s ease;
}

.agent-plan-btn.is-primary > span {
  grid-area: 1 / 1;
  place-self: center;
}

.agent-plan[data-state="run"] .agent-plan-btn.is-primary,
.agent-plan[data-state="done"] .agent-plan-btn.is-primary {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

.agent-plan.is-pressed .agent-plan-btn.is-primary {
  transform: scale(.95);
}

/* The "You" cursor glides to the button and presses it: nothing starts without it. */
.agent-plan-approve {
  position: relative;
  display: inline-flex;
}

.agent-plan-cursor {
  position: absolute;
  top: 56%;
  left: 60%;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transform: translate(70px, 56px);
  transition: opacity .35s ease, transform .9s var(--ease);
}

.agent-plan-cursor svg {
  display: block;
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .55));
}

.agent-plan-cursor em {
  margin: 13px 0 0 -4px;
  padding: 2px 7px;
  border-radius: 40px;
  background: #fff;
  color: #000;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
}

.agent-plan.is-aiming .agent-plan-cursor {
  opacity: 1;
  transform: none;
}

.agent-plan.is-pressed .agent-plan-cursor {
  transform: scale(.88);
}

.agent-approval-card .agent-approval-copy {
  justify-content: center;
  padding: 40px;
  border-left: 1px solid var(--gray-02);
}

.agent-approval-copy .heading-h5 {
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.agent-approval-copy .feature-short {
  max-width: 350px;
  font-size: 16px;
  line-height: 1.5;
}

.agent-providers {
  width: 100%;
  margin-top: 56px;
}

.agent-approval-marquee-label {
  margin: 0 16px 22px;
  color: rgba(244, 244, 245, .48);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.agent-approval-marquee-viewport {
  display: flex;
  width: 100%;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.agent-approval-marquee-track {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
  animation: agentApprovalMarquee 32s linear infinite;
  will-change: transform;
}

@keyframes agentApprovalMarquee {
  to { transform: translateX(-100%); }
}

.agent-approval-marquee-item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
  opacity: .8;
  transition: opacity .2s ease;
}

.agent-approval-marquee-item:hover {
  opacity: 1;
}

.agent-approval-marquee-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.agent-approval-marquee-name {
  color: rgba(244, 244, 245, .92);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
}

@media screen and (max-width: 860px) {
  .agent-approval-main {
    grid-template-columns: 1fr;
  }

  .agent-approval-visual {
    padding: 36px 24px;
  }

  .agent-approval-card .agent-approval-copy {
    min-height: 220px;
    padding: 32px;
    border-top: 1px solid var(--gray-02);
    border-left: 0;
  }
}

@media screen and (max-width: 479px) {
  .agent-approval-visual {
    padding: 24px 16px;
  }

  .agent-plan-head {
    padding: 14px 14px 10px;
  }

  .agent-plan-steps {
    padding: 0 8px;
  }

  .agent-plan-step {
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    gap: 10px;
  }

  .agent-plan-thumb {
    width: 44px;
    height: 33px;
  }

  .agent-plan-foot {
    padding: 12px 14px 14px;
  }

  .agent-plan-note {
    display: none;
  }

  .agent-plan-actions {
    flex: 1;
    justify-content: flex-end;
  }

  .agent-approval-card .agent-approval-copy {
    min-height: 0;
    padding: 26px 24px;
  }

  .agent-approval-copy .heading-h5 {
    font-size: 32px;
  }

  .agent-approval-marquee-track {
    gap: 36px;
    padding-right: 36px;
  }

  .agent-approval-marquee-logo {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .agent-approval-marquee-name {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-plan-pill-state i,
  .agent-approval-marquee-track {
    animation: none;
    will-change: auto;
  }

  .agent-approval-marquee-viewport {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .agent-approval-marquee-track[aria-hidden="true"] {
    display: none;
  }
}

/* Professional templates: the categories with the most templates, each with its best ones. */
.agent-tpl-panel {
  display: block;
  min-height: 0;
  padding: 36px 40px 40px;
}

.agent-tpl-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.agent-tpl-intro {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.agent-tpl-intro .feature-short {
  max-width: 460px;
  margin: 0;
}

.agent-tpl-all {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  opacity: .85;
  white-space: nowrap;
  transition: opacity .2s ease;
}

.agent-tpl-all svg {
  width: 14px;
  height: 14px;
  transition: transform .3s var(--ease);
}

.agent-tpl-all:hover {
  opacity: 1;
}

.agent-tpl-all:hover svg {
  transform: translateX(3px);
}

.agent-tpl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 16px;
}

.agent-tpl-card {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 6px;
}

.agent-tpl-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(155deg, #2b2b2e, #0f0f10);
}

.agent-tpl-thumb img,
.agent-tpl-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.agent-tpl-card:hover .agent-tpl-thumb img,
.agent-tpl-card:hover .agent-tpl-thumb video {
  transform: scale(1.04);
}

.agent-tpl-name {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: #f4f4f5;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.agent-tpl-more {
  display: flex;
  justify-content: center;
  padding-top: 44px;
}

@media screen and (max-width: 767px) {
  .agent-tpl-panel {
    padding: 28px 24px 32px;
  }

  .agent-tpl-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .agent-tpl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-tab-button {
    flex: 0 0 auto;
    min-width: 150px;
  }
}

@media screen and (max-width: 479px) {
  .agent-tpl-panel {
    padding: 22px 16px 26px;
  }

  .agent-tpl-grid {
    gap: 18px 10px;
  }

  .agent-tpl-name {
    font-size: 14px;
  }

  .agent-tpl-more {
    padding-top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-tpl-thumb img,
  .agent-tpl-thumb video,
  .agent-tpl-all svg {
    transition: none;
  }
}

/* Boxes 1 to 3 of "an AI agent for every job you repeat": documents, runs and the contact box. */
.vz-doc {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  color: #e9e9eb;
}

.vz-doc svg {
  width: 18px;
  height: 18px;
}

.vz-run .vz-doc {
  width: 48px;
  height: 36px;
  border-radius: 7px;
}

.vz-job {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
}

.vz-job-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vz-ask-box {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
}

.vz-ask-text {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #f1f1f2;
  font-size: 14px;
  line-height: 1.4;
}

.vz-ask-text .vz-mascot {
  margin: -2px 0 0 -6px;
}

.vz-ask-text > span:last-child {
  padding-top: 3px;
}

.vz-ask-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vz-ask-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8e8e93;
  font-size: 12.5px;
  line-height: 1;
}

.vz-ask-hint svg {
  width: 14px;
  height: 14px;
}

/* Stop repeating yourself: three plain steps, then the approval card. */
.agent-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--gray-02);
  border-left: 1px solid var(--gray-02);
}

.agent-step-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 36px 30px 40px;
  border-right: 1px solid var(--gray-02);
  border-bottom: 1px solid var(--gray-02);
  background: #050505;
}

.agent-step-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(155deg, #2b2b2e, #0f0f10);
  color: #e9e9eb;
}

.agent-step-icon svg {
  width: 22px;
  height: 22px;
}

.agent-step-eyebrow {
  color: var(--gray-05);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.agent-step-card .feature-short {
  max-width: 300px;
  margin: 0;
}

.agent-visual-grid.is-single {
  border-top: 0;
}

@media screen and (max-width: 767px) {
  .agent-steps-grid {
    grid-template-columns: 1fr;
  }

  .agent-step-card {
    padding: 28px 24px 30px;
  }
}

/* Templates block: plain heading and tabs in the normal flow, nothing sticks or blurs while scrolling. */
.agent-tpl-title {
  max-width: 860px;
  margin: 0 auto 40px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -.02em;
  text-align: center;
}

.agent-tpl-section .agent-tab-button {
  min-height: 60px;
  padding: 16px 22px;
}

@media screen and (max-width: 767px) {
  .agent-tpl-title {
    margin-bottom: 28px;
    text-align: left;
  }
}
